Przeglądaj źródła

修复调差审批bug

ellisran 6 miesięcy temu
rodzic
commit
211be7bd79
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -1306,7 +1306,7 @@ module.exports = app => {
          */
         async checkAudit(ctx) {
             try {
-                if (!ctx.material || (ctx.material.status !== auditConst.status.checking || ctx.material.status !== auditConst.status.checkNoPre)) {
+                if (!ctx.material || (ctx.material.status !== auditConst.status.checking && ctx.material.status !== auditConst.status.checkNoPre)) {
                     throw '当前材料调差期数据有误';
                 }
                 if (ctx.material.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) < 0) {