MaiXinRong 5 年之前
父節點
當前提交
049e843b2f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/report_memory.js

+ 2 - 2
app/service/report_memory.js

@@ -177,9 +177,9 @@ module.exports = app => {
         }
 
         async _generateStageIm(tid, sid, isTz = true) {
-            if (isTz && this.ctx.stage.im_type !== imType.tz.value) {
+            if (isTz && [imType.tz.value, imType.bb.value].indexOf(this.ctx.stage.im_type) >= 0) {
                 throw '您查看的报表跟设置不符,请查看“总量控制”的报表';
-            } else if (!isTz && this.ctx.stage.im_type === imType.tz.value) {
+            } else if (!isTz && [imType.zl.value, imType.bw.value].indexOf(this.ctx.stage.im_type) >= 0) {
                 throw '您查看的报表跟设置不符,请查看“0号台账”的报表';
             }
             const stageIm = new StageIm(this.ctx);