|
|
@@ -83,12 +83,13 @@ export function handleSubcriteOnDemandQuote<T extends object>(tableList: Ref<T[]
|
|
|
const result: Array<{ exchangeCode: 250, goodsCode: string, subState: 0 }> = []
|
|
|
for (let i = start; i < end; i++) {
|
|
|
const obj = tableList.value[i] as unknown as any
|
|
|
- if (Reflect.has(obj, codeKey)) {
|
|
|
- result.push({ exchangeCode: 250, goodsCode: obj[codeKey], subState: 0 })
|
|
|
- } else {
|
|
|
- console.warn(`订阅商品的code对应的key${codeKey}不存在,请手动传入!`)
|
|
|
+ if (obj) {
|
|
|
+ if (Reflect.has(obj, codeKey)) {
|
|
|
+ result.push({ exchangeCode: 250, goodsCode: obj[codeKey], subState: 0 })
|
|
|
+ } else {
|
|
|
+ console.warn(`订阅商品的code对应的key${codeKey}不存在,请手动传入!`)
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
console.log('开始订阅', result)
|
|
|
addSubscribeQuotation(uuid, result);
|