|
@@ -101,7 +101,7 @@ module.exports = options => {
|
|
|
} else {
|
|
|
stage.curOrder = stage.curAuditors[0].order - 1
|
|
|
}
|
|
|
- stage.readOnly = stage.readOnly && _.isEqual(stage.flowAuditorIds, stage.curAuditorIds);
|
|
|
+ if (!stage.readOnly) stage.readOnly = !_.isEqual(stage.flowAuditorIds, stage.curAuditorIds);
|
|
|
}
|
|
|
if (stage.readOnly) {
|
|
|
stage.assist = accountId === stage.user_id || stage.auditorIds.indexOf(accountId) >= 0 ? null : stage.auditAssists.find(x => { return x.ass_user_id === accountId});
|
|
@@ -159,6 +159,7 @@ module.exports = options => {
|
|
|
const lastAuditors = auditList.filter(x => { x.order === auditList.order; });
|
|
|
if (shenpiInfo && (lastAuditors.length === 0 || (lastAuditors.length > 1 || shenpiInfo.audit_id !== lastAuditors[0].aid))) {
|
|
|
yield this.service.stageAudit.updateLastAudit(stage, auditList, shenpiInfo.audit_id);
|
|
|
+ yield this.service.stage.loadStageUser(stage);
|
|
|
} else if (!shenpiInfo) {
|
|
|
// 不存在终审人的状态下这里恢复为授权审批人
|
|
|
this.tender.info.shenpi.stage = shenpiConst.sp_status.sqspr;
|