|
|
@@ -84,6 +84,8 @@ module.exports = app => {
|
|
|
const lastAuditors = auditList.filter(x => { return x.audit_order === auditList.length - 1; });
|
|
|
if (shenpiInfo && (lastAuditors.length === 0 || (lastAuditors.length > 1 || shenpiInfo.audit_id !== lastAuditors[0].aid))) {
|
|
|
await this.updateLastAudit(contract, type, auditList, shenpiInfo.audit_id);
|
|
|
+ await this.loadUser(contract, type);
|
|
|
+ await this.loadAuditViewData(contract, type);
|
|
|
} else if (!shenpiInfo) {
|
|
|
// 不存在终审人的状态下这里恢复为授权审批人
|
|
|
shenpi.contract = shenpiConst.sp_status.sqspr;
|