优化耗材管理绑定商品页面同商品不同规格绑定耗材时未重置选中耗材
This commit is contained in:
parent
3ae0d7991b
commit
c1beec0efc
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue