|
|
@@ -249,7 +249,7 @@ module.exports = app => {
|
|
|
async checkShenpi(safeStage) {
|
|
|
const status = audit.status;
|
|
|
const info = this.ctx.tender.info;
|
|
|
- const shenpi_status = info.shenpi.safe_stage;
|
|
|
+ const shenpi_status = info.shenpi.safe_payment;
|
|
|
if ((safeStage.audit_status === status.uncheck || safeStage.audit_status === status.checkNo) && shenpi_status !== shenpiConst.sp_status.sqspr) {
|
|
|
// 进一步比较审批流是否与审批流程设置的相同,不同则替换为固定审批流或固定的终审
|
|
|
const auditList = await this.ctx.service.safeStageAudit.getAllDataByCondition({ where: { stage_id: safeStage.id, audit_times: safeStage.audit_times }, orders: [['audit_order', 'asc']] });
|
|
|
@@ -280,7 +280,7 @@ module.exports = app => {
|
|
|
await this.loadUser(safeStage);
|
|
|
} else if (!shenpiInfo) {
|
|
|
// 不存在终审人的状态下这里恢复为授权审批人
|
|
|
- this.ctx.tender.info.shenpi.safe_stage = shenpiConst.sp_status.sqspr;
|
|
|
+ this.ctx.tender.info.shenpi.safe_payment = shenpiConst.sp_status.sqspr;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -380,4 +380,4 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
return SafeStage;
|
|
|
-};
|
|
|
+};
|