浏览代码

修复调差审批bug

ellisran 8 月之前
父节点
当前提交
782bf29460
共有 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.stage.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) {