소스 검색

部位明细,计量相关

MaiXinRong 5 년 전
부모
커밋
ff52adb322
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      app/service/stage_pos.js

+ 9 - 0
app/service/stage_pos.js

@@ -261,6 +261,15 @@ module.exports = app => {
                             this.ctx.helper.checkFieldPrecision(sp, this.qtyFields, precision.value);
                         }
                         if (osp && osp.times === this.ctx.stage.curTimes && osp.order === this.ctx.stage.curOrder) {
+                            if (d.contract_qty === undefined) {
+                                d.contract_qty = osp.contract_qty;
+                            }
+                            if (d.qc_qty === undefined) {
+                                d.qc_qty = osp.qc_qty;
+                            }
+                            if (d.postil === undefined) {
+                                d.postil = osp.postil;
+                            }
                             await transaction.update(this.tableName, d, {where: {id: osp.id}});
                         } else {
                             sp.tid = this.ctx.tender.id;