优化耗材管理绑定商品页面同商品不同规格绑定耗材时未重置选中耗材

This commit is contained in:
YeMingfei666 2024-07-23 18:09:43 +08:00
parent 3ae0d7991b
commit c1beec0efc
1 changed files with 3 additions and 2 deletions

View File

@ -778,10 +778,11 @@ export default {
},
//
selecthaocai(item) {
console.log(item)
console.log(haocaiSelectedMap)
this.ALLisDistribute = item;
this.commodityArr.forEach((ele) => {
if (ele.id == this.ALLisDistribute.id) {
console.log(ele.haocais);
if (ele.id == this.ALLisDistribute.id && ele.skuId==item.skuId) {
ele.haocais.map((v) => {
if (v.conInfoId) {
haocaiSelectedMap[v.conInfoId] = v;