Explorar o código

修复变更立项终止不出现撤回bug

ellisran hai 1 ano
pai
achega
f6b40c00c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/change_project.js

+ 1 - 1
app/service/change_project.js

@@ -385,7 +385,7 @@ module.exports = app => {
                         change.cancancel = 4;// 审批人撤回退回原报
                     }
                 } else if (change.status === status.checkNo) {
-                    const onAuditor = this._.find(auditors, function(item) {
+                    const onAuditor = this._.findLast(auditors, function(item) {
                         return item.status === status.checkNo;
                     });
                     if (onAuditor && onAuditor.aid === accountId) {