فهرست منبع

修改数量变更不参与调差计算方法

ellisran 1 سال پیش
والد
کامیت
31f8f3b5ba
3فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      app/extend/helper.js
  2. 1 1
      app/public/js/material.js
  3. 1 1
      app/public/js/material_list.js

+ 2 - 2
app/extend/helper.js

@@ -1665,7 +1665,7 @@ module.exports = {
             default: throw '未配置计量来源出错';
         }
         if (qty_source !== qtySourceValueConst.contract_qty && no_qc_qty) {
-            qty = '(' + qty + '-`qc_qty`)';
+            qty = '`contract_qty`';
         }
         return qty;
     },
@@ -1675,5 +1675,5 @@ module.exports = {
         qtys.qc_qty = qtys.qc_qty ? qtys.qc_qty : null;
         qtys.qc_minus_qty = qtys.qc_minus_qty ? qtys.qc_minus_qty : null;
         return qtys;
-    }
+    },
 };

+ 1 - 1
app/public/js/material.js

@@ -1426,7 +1426,7 @@ $(document).ready(() => {
             default: throw '未配置计量来源出错';
         }
         if (qtySource !== qtySourceValueConst.contract_qty && info.is_join === 2) {
-            qty = ZhCalc.sub(qty, info.qc_qty);
+            qty = info.contract_qty;
         }
         return qty;
     }

+ 1 - 1
app/public/js/material_list.js

@@ -91,7 +91,7 @@ function calcQty(info, is_join) {
         default: throw '未配置计量来源出错';
     }
     if (qtySource !== qtySourceValueConst.contract_qty && is_join === 2) {
-        qty = ZhCalc.sub(qty, info.qc_qty);
+        qty = info.contract_qty;
     }
     return qty;
 }