Quellcode durchsuchen

期删除重算计量金额

laiguoran vor 4 Jahren
Ursprung
Commit
d2abcd07df
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  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();