优化绑定商品的名称

This commit is contained in:
duan 2024-07-10 16:53:25 +08:00
parent 1172883260
commit 8099e17e2c
1 changed files with 5 additions and 1 deletions

View File

@ -271,6 +271,7 @@ export default {
res.forEach((ele, i) => {
// isDistribute1-0
//
let sname = ele.name
if (ele.isDistribute == 1) {
ele.specSnap = ele.name
ele.conName = ele.conName
@ -281,6 +282,9 @@ export default {
element.conInfoId = element.id
element.conName = element.conName
this.commodityArr.push(element)
if(element.specSnap==null){
element.specSnap=sname
}
})
}
})
@ -393,7 +397,7 @@ export default {
tableDatainformationtable(item) {
this.commodityArr.forEach(ele => {
if (ele.id == this.ALLisDistribute.id) {
ele.consInfoId = this.ALLisDistribute.id
ele.consInfoId = item.id
ele.conName = item.conName
ele.skuId = ele.id
}