更新耗材
This commit is contained in:
@@ -616,7 +616,8 @@ export default {
|
||||
this.informationdialogshow = false;
|
||||
},
|
||||
haocaiConfirm() {
|
||||
if(JSON.stringify(haocaiSelectedMap)!=='{}' ){
|
||||
let hasEmpty=JSON.stringify(haocaiSelectedMap)=='{}'
|
||||
if(!hasEmpty){
|
||||
this.commodityArr.forEach((ele) => {
|
||||
if (ele.skuId == this.ALLisDistribute.skuId) {
|
||||
ele.haocais = [];
|
||||
@@ -634,6 +635,13 @@ export default {
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
//当选中耗材为空,重置耗材
|
||||
this.commodityArr.forEach((ele) => {
|
||||
if (ele.skuId == this.ALLisDistribute.skuId) {
|
||||
ele.haocais = [{...haocaisBasic}];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.informationdialogshow = false;
|
||||
|
||||
Reference in New Issue
Block a user