Преглед на файлове

中间计量数据相关

MaiXinRong преди 3 години
родител
ревизия
dd6c265e99
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      app/service/stage_rela.js

+ 3 - 1
app/service/stage_rela.js

@@ -49,8 +49,10 @@ class srCache {
                 l.contract_tp = this.ctx.helper.mul(l.unit_price, l.contract_qty, decimal.tp);
                 l.qc_tp = this.ctx.helper.mul(l.unit_price, l.qc_qty, decimal.tp);
             }
+            l.gather_qty = this.ctx.helper.add(l.contract_qty, l.qc_qty);
             l.gather_tp = this.ctx.helper.add(l.contract_tp, l.qc_tp);
-            l.pre_gather_tp = this.ctx.helper.add(l.pre_contract_qty, l.pre_contract_tp);
+            l.pre_gather_qty = this.ctx.helper.add(l.pre_contract_qty, l.pre_contract_qty);
+            l.pre_gather_tp = this.ctx.helper.add(l.pre_contract_tp, l.pre_contract_tp);
             l.end_contract_qty = this.ctx.helper.add(l.pre_contract_qty, l.contract_qty);
             l.end_contract_tp = this.ctx.helper.add(l.pre_contract_tp, l.contract_tp);
             l.end_qc_qty = this.ctx.helper.add(l.pre_qc_qty, l.qc_qty);