解决多属性商品选择多属性的时候接口报错的bug

This commit is contained in:
jishenghua
2024-12-31 00:29:03 +08:00
parent 11b8896577
commit a0ea3a8b7e

View File

@@ -834,22 +834,22 @@
this.skuThreeTitle = item.name this.skuThreeTitle = item.name
} }
}) })
if(skuOneId) {
getMaterialAttributeValueListById({'id': skuOneId}).then((res)=>{ getMaterialAttributeValueListById({'id': skuOneId}).then((res)=>{
if(res) { this.skuOneList = res? res:[]
this.skuOneList = res
}
}) })
}
if(skuTwoId) {
getMaterialAttributeValueListById({'id': skuTwoId}).then((res)=>{ getMaterialAttributeValueListById({'id': skuTwoId}).then((res)=>{
if(res) { this.skuTwoList = res? res:[]
this.skuTwoList = res
}
}) })
}
if(skuThreeId) {
getMaterialAttributeValueListById({'id': skuThreeId}).then((res)=>{ getMaterialAttributeValueListById({'id': skuThreeId}).then((res)=>{
if(res) { this.skuThreeList = res? res:[]
this.skuThreeList = res
}
}) })
} }
}
//控制条码列表中的多属性列 //控制条码列表中的多属性列
if(value.length>0) { if(value.length>0) {
this.meTable.columns[2].type = FormTypes.input this.meTable.columns[2].type = FormTypes.input