Quellcode durchsuchen

审批退回原报判断

MaiXinRong vor 1 Jahr
Ursprung
Commit
a55f677de7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 });