Sfoglia il codice sorgente

修复调差清单页本期完成金额计算值bug

ellisran 1 anno fa
parent
commit
c973278e6f
1 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. 3 5
      app/public/js/material_list.js

+ 3 - 5
app/public/js/material_list.js

@@ -216,12 +216,10 @@ $(document).ready(() => {
                 }
             },
             gather_tp: function (data) {
-                if (materialQtySource === qtySourceValueConst.gather_qty) {
-                    return data.gather_tp;
-                } else if (materialQtySource === qtySourceValueConst.contract_qty) {
+                if (materialQtySource === qtySourceValueConst.contract_qty) {
                     return data.contract_tp;
-                } else if (materialQtySource === qtySourceValueConst.gather_minus_qty) {
-                    return ZhCalc.round(ZhCalc.mul(ZhCalc.add(data.gather_qty, data.qc_minus_qty), data.unit_price), 2);
+                } else {
+                    return data.gather_tp;
                 }
             },
         }