|
@@ -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();
|