Pārlūkot izejas kodu

导入变更数据,显示数量、部位

MaiXinRong 3 gadi atpakaļ
vecāks
revīzija
604365c429
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 2 1
      app/public/js/stage.js
  2. 1 2
      app/public/js/stage_change.js

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

@@ -3826,8 +3826,9 @@ $(document).ready(() => {
                     return x.rela_cbid === b.id;
                 });
                 if (eub) b.used_qty = eub.rela_qty;
+                b.qty = _.toNumber(b.samount);
                 delete b.unit_price;
-                delete b.bwmx;
+                // b.tp = ZhCalc.round(ZhCalc.mul(b.qty, b.unit_price), tenderInfo.decimal.tp);
                 b.pos = _.filter(change.detail.curUsedBills, { rela_cbid: b.id });
                 b.cur_qty = 0;
                 for (const p of b.pos) {

+ 1 - 2
app/public/js/stage_change.js

@@ -63,8 +63,7 @@ class ChangeAnalysis {
 
             // 移除单价、部位,不计算数量、金额、未变更
             delete b.unit_price;
-            delete b.bwmx;
-            // b.qty = _.toNumber(b.samount);
+            b.qty = _.toNumber(b.samount);
             // b.valid_qty = ZhCalc.sub(b.qty, b.used_qty);
             // b.tp = ZhCalc.round(ZhCalc.mul(b.qty, b.unit_price), tenderInfo.decimal.tp);