Commit 3b5be850 by 张立顺

fix bug

1 parent fb9f398f
......@@ -624,7 +624,6 @@ export default {
}
]
},
tableInfo: [],
upgradeGoodsInfo: {
suitCarType: 1
},
......@@ -662,6 +661,13 @@ export default {
upgradeGoodsId: selected.id,
suitCarTypeList: this.goodsInfo.suitCarTypeList || []
}
},
tableInfo() {
const selected = this.selectedUpgradeGoods
if (!selected?.merchantGoodsInfo) {
return []
}
return selected.merchantGoodsInfo.filter(item => item.goodsAlias)
}
},
watch: {
......@@ -922,7 +928,6 @@ export default {
// this.handleClickSpecs1(item.id, sku.propertyId, sku, index, sku.index)
// })
this.goodsInfo = res
this.tableInfo = res?.upgradeGoodsList[0]?.merchantGoodsInfo
} else {
this.goodsInfo = res
// 默认选中第一个
......@@ -942,8 +947,6 @@ export default {
upgradeGoodsId: id,
purchasePrice
})
this.tableInfo = item.merchantGoodsInfo && item.merchantGoodsInfo.filter(item => item.goodsAlias)
console.log(this.tableInfo)
},
handleDetailClose() {
this.dialogShow = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!