|
|
@@ -245,8 +245,13 @@ module.exports = app => {
|
|
|
} else {
|
|
|
// 会签,会签人部分审批通过时,只读,但是curSort需按原来的取值
|
|
|
safeStage.curSort = safeStage.flowAuditorIds.indexOf(accountId) >= 0 ? safeStage.curAuditors[0].active_order : safeStage.curAuditors[0].active_order - 1;
|
|
|
- safeStage.readOnly = safeStage.curAuditorIds.indexOf(accountId) < 0;
|
|
|
- safeStage.canCheck = safeStage.readOnly && safeStage.curAuditorIds.indexOf(accountId) > 0;
|
|
|
+ if (safeStage.curAuditors[0].audit_type === auditType.key.and) {
|
|
|
+ safeStage.readOnly = !_.isEqual(safeStage.flowAuditorIds, safeStage.curAuditorIds);
|
|
|
+ safeStage.canCheck = true;
|
|
|
+ } else {
|
|
|
+ safeStage.readOnly = safeStage.curAuditorIds.indexOf(accountId) < 0;
|
|
|
+ safeStage.canCheck = safeStage.readOnly && safeStage.curAuditorIds.indexOf(accountId) > 0;
|
|
|
+ }
|
|
|
}
|
|
|
await this.doCheckCanCancel(safeStage);
|
|
|
}
|