|
@@ -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);
|