|
@@ -237,7 +237,7 @@ module.exports = app => {
|
|
|
}
|
|
|
} else {
|
|
|
const lastAuditors = await this.service.stageAudit.getAuditors(stage.id, stage.times - 1);
|
|
|
- const onAuditor = _.find(lastAuditors, { status: status.checkNo });
|
|
|
+ const onAuditor = _.findLast(lastAuditors, { status: status.checkNo });
|
|
|
if (onAuditor.aid === accountId) {
|
|
|
stage.cancancel = 4;// 审批人撤回退回原报
|
|
|
stage.preAuditors = lastAuditors.filter(x => { return x.order === onAuditor.order });
|