|
@@ -73,8 +73,8 @@ module.exports = options => {
|
|
|
inspection.shenpiPower = (inspection.status === status.checking || inspection.status === status.checkNoPre) && inspection.curAuditorIds.indexOf(accountId) !== -1;
|
|
inspection.shenpiPower = (inspection.status === status.checking || inspection.status === status.checkNoPre) && inspection.curAuditorIds.indexOf(accountId) !== -1;
|
|
|
this.inspection = inspection;
|
|
this.inspection = inspection;
|
|
|
// 根据状态判断是否需要更新审批人列表
|
|
// 根据状态判断是否需要更新审批人列表
|
|
|
- if ((inspection.status === status.uncheck || inspection.status === status.checkNo) && this.tender.info.shenpi.inspection !== shenpiConst.sp_status.sqspr) {
|
|
|
|
|
- const shenpi_status = this.tender.info.shenpi.inspection;
|
|
|
|
|
|
|
+ if ((inspection.status === status.uncheck || inspection.status === status.checkNo) && this.tender.info.shenpi.safe_inspection !== shenpiConst.sp_status.sqspr) {
|
|
|
|
|
+ const shenpi_status = this.tender.info.shenpi.safe_inspection;
|
|
|
// 进一步比较审批流是否与审批流程设置的相同,不同则替换为固定审批流或固定的终审
|
|
// 进一步比较审批流是否与审批流程设置的相同,不同则替换为固定审批流或固定的终审
|
|
|
const auditList = yield this.service.safeInspectionAudit.getAllDataByCondition({ where: { qiid: inspection.id, times: inspection.times, is_rectification: 0 }, orders: [['order', 'asc']] });
|
|
const auditList = yield this.service.safeInspectionAudit.getAllDataByCondition({ where: { qiid: inspection.id, times: inspection.times, is_rectification: 0 }, orders: [['order', 'asc']] });
|
|
|
if (shenpi_status === shenpiConst.sp_status.gdspl) {
|
|
if (shenpi_status === shenpiConst.sp_status.gdspl) {
|
|
@@ -103,7 +103,7 @@ module.exports = options => {
|
|
|
yield this.service.safeInspection.loadUser(inspection);
|
|
yield this.service.safeInspection.loadUser(inspection);
|
|
|
} else if (!shenpiInfo) {
|
|
} else if (!shenpiInfo) {
|
|
|
// 不存在终审人的状态下这里恢复为授权审批人
|
|
// 不存在终审人的状态下这里恢复为授权审批人
|
|
|
- this.tender.info.shenpi.inspection = shenpiConst.sp_status.sqspr;
|
|
|
|
|
|
|
+ this.tender.info.shenpi.safe_inspection = shenpiConst.sp_status.sqspr;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|