Browse Source

人材机批量插入组成物逻辑修改

zhongzewei 6 years ago
parent
commit
fbbe91a283
1 changed files with 2 additions and 1 deletions
  1. 2 1
      web/maintain/std_glj_lib/js/components.js

+ 2 - 1
web/maintain/std_glj_lib/js/components.js

@@ -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){