MaiXinRong 3 lat temu
rodzic
commit
a4e5548318
2 zmienionych plików z 5 dodań i 4 usunięć
  1. 4 4
      app/lib/sum_load.js
  2. 1 0
      app/public/js/stage.js

+ 4 - 4
app/lib/sum_load.js

@@ -394,12 +394,12 @@ class gatherStageGclTree extends loadGclBaseTree {
             }
             if (bn.contract_qty !== bn.org_contract_qty || bn.contract_tp !== bn.org_contract_tp || bn.qc_qty !== bn.org_qc_qty) {
                 let data = { lid: bn.id, contract_qty: bn.contract_qty, contract_tp: bn.contract_tp };
-                if (bn.is_import) {
-                    data.qc_qty = bn.qc_qty;
-                    data.qc_tp = bn.qc_tp;
-                } else {
+                if (!bn.is_import && bn.org_qc_qty) {
                     data.qc_qty = bn.org_qc_qty;
                     data.qc_tp = bn.org_qc_tp;
+                } else {
+                    data.qc_qty = bn.qc_qty;
+                    data.qc_tp = bn.qc_tp;
                 }
                 result.update.push(data);
             }

+ 1 - 0
app/public/js/stage.js

@@ -830,6 +830,7 @@ $(document).ready(() => {
         relaSpread: slSpread,
         storeKey: 'stage-slm-' + stage.id,
         id: 'stage-slm',
+        type: 'stage',
         afterLocated:  function () {
             stagePosSpreadObj.loadCurPosData();
         },