zhangweicheng 8 年之前
父节点
当前提交
78799ed33d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/ration_glj/facade/glj_calculate_facade.js

+ 2 - 2
modules/ration_glj/facade/glj_calculate_facade.js

@@ -90,8 +90,7 @@ async function calculateQuantityPerGLJ(glj,ration,coeList,assList,adjustState,is
             projectID:glj.projectID
         },
         doc:{
-            quantity: quantity,
-            customQuantity:glj.customQuantity
+            quantity: quantity
         }
     };
     try {
@@ -102,6 +101,7 @@ async function calculateQuantityPerGLJ(glj,ration,coeList,assList,adjustState,is
                 quantity = calculateQuantityByCoes(quantity,coeList,glj);
             }else {
                 quantity = glj.customQuantity;
+                result.doc.customQuantity = glj.customQuantity;
             }
             let customerCoe = _.last(coeList);
             if(customerCoe.isAdjust==1){