瀏覽代碼

修复调差审批bug

ellisran 6 月之前
父節點
當前提交
211be7bd79
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {