Parcourir la source

工程量清单模式,含有部位明细的清单,计算问题

MaiXinRong il y a 5 ans
Parent
commit
342d49a8b9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/service/stage_pos.js

+ 1 - 1
app/service/stage_pos.js

@@ -192,7 +192,7 @@ module.exports = app => {
                         if (d.qc_qty) ps.qc_qty = this.round(d.qc_qty, precision.value);
                         if (d.postil) ps.postil = d.postil;
                         await transaction.insert(this.tableName, ps);
-                        if (d.contract_qty || d.qc_qty) {
+                        if ((d.contract_qty || d.qc_qty) && calcStageBills.indexOf(ps.lid) === -1) {
                             calcStageBills.push(ps.lid);
                         }
                         result.stageUpdate = true;