Commit 3b5be850 by 张立顺

fix bug

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