|
@@ -161,7 +161,7 @@ let componentOprObj = {
|
|
|
let isExist = false;
|
|
|
for(let gljPerComponent of gljComponent){
|
|
|
if(selectedComponent.ID === gljPerComponent.ID){
|
|
|
- newComponent.push({ID: selectedComponent.ID, consumeAmt: gljPerComponent.consumeAmt});
|
|
|
+ //newComponent.push({ID: selectedComponent.ID, consumeAmt: gljPerComponent.consumeAmt});
|
|
|
isExist = true;
|
|
|
break;
|
|
|
}
|
|
@@ -170,6 +170,7 @@ let componentOprObj = {
|
|
|
newComponent.push({ID: selectedComponent.ID, consumeAmt: 0});
|
|
|
}
|
|
|
}
|
|
|
+ newComponent = newComponent.concat(gljComponent);
|
|
|
}
|
|
|
else if(me.insertType === 'batchClear'){//去除消耗量为0的组成物
|
|
|
for(let gljPerComponent of gljComponent){
|