浏览代码

表2-x调整

TonyKang 4 年之前
父节点
当前提交
4172e34d5e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/reports/controllers/rpt_controller.js

+ 1 - 1
modules/reports/controllers/rpt_controller.js

@@ -281,7 +281,7 @@ async function getAllPagesCommon(construct_id, user_id, prj_id, prj_ids, rpt_id,
                     cb('Exception occurs while on going...', null);
                 }
             };
-        if (flag !== undefined && flag !== null && (flag.constructSumType === 'constructSum' || flag.auditType === 'audit_compare' || (flag.budgetSumType === 'budget_single' && summaryRst.indexOf(`ConstructDetail`) < 0))) {
+        if (flag !== undefined && flag !== null && (flag.constructSumType === 'constructSum' || flag.auditType === 'audit_compare' || (flag.budgetSumType === 'budget_single' && summaryRst.indexOf(`BudgetDetail`) < 0))) {
                 //备注:原先这个功能是为了合并建设项目下所有的单位工程的数据,
                 //     现在发现就是通用型,审核对比也可以用这个逻辑把数据合并在一起再处理(审核对比的处理逻辑放在模板计算式里)
                 try {