소스 검색

期删除重算计量金额

laiguoran 4 년 전
부모
커밋
d2abcd07df
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/service/stage.js

+ 3 - 1
app/service/stage.js

@@ -548,7 +548,9 @@ module.exports = app => {
                 await transaction.delete(this.ctx.service.stageBonus.tableName, { sid: id });
                 await transaction.delete(this.ctx.service.stageOther.tableName, { sid: id });
                 // 同步删除进度里所选的期
-                await transaction.delete(this.ctx.service.scheduleStage.tableName, { tid: this.ctx.tender.id, order: stageInfo.order });
+                await transaction.delete(this.ctx.service.scheduleStage.tableName, { tid: stageInfo.tid, order: stageInfo.order });
+                // 重算进度计量总金额
+                await this.ctx.service.scheduleStage.calcStageSjTp(transaction, stageInfo.tid);
                 // 记录删除日志
                 await this.ctx.service.projectLog.addProjectLog(transaction, projectLogConst.type.stage, projectLogConst.status.delete, '第' + stageInfo.order + '期');
                 await transaction.commit();