Commit 65138ffd by zhangxw

太阳膜商品创建部位历史遗留bug修复

1 parent 01c52c6c
......@@ -762,6 +762,11 @@ export default {
'goodsInfoData.goodsPositionList': {
handler(newValue) {
this.productPositionTypeList = this.positionTypeList.filter(v => newValue?.indexOf(v.position) > -1)
this.goodsInfoData.goodsSpecificationList?.forEach(val => {
val?.position?.forEach((v, index) => {
if (!this.productPositionTypeList?.map(v => v.position)?.includes(v)) val.position.splice(index, 1)
})
})
},
deep: true
},
......
......@@ -590,6 +590,11 @@ export default {
'goodsInfoData.goodsPositionList': {
handler(newValue) {
this.productPositionTypeList = this.positionTypeList.filter(v => newValue?.indexOf(v.position) > -1)
this.goodsInfoData.goodsSpecificationSingleList?.forEach(val => {
val?.position?.forEach((v, index) => {
if (!this.productPositionTypeList?.map(v => v.position)?.includes(v)) val.position.splice(index, 1)
})
})
},
deep: true
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!