소스 검색

审批退回原报判断

MaiXinRong 1 년 전
부모
커밋
a55f677de7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/stage.js

+ 1 - 1
app/service/stage.js

@@ -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 });