浏览代码

报表指标设置,新增清单预算选项

lishihao 10 月之前
父节点
当前提交
408046596a
共有 2 个文件被更改,包括 23 次插入0 次删除
  1. 10 0
      web/maintain/report/html/rpt_tpl_dtl_info.html
  2. 13 0
      web/maintain/report/js/rpt_tpl_main.js

+ 10 - 0
web/maintain/report/html/rpt_tpl_dtl_info.html

@@ -196,6 +196,16 @@
                     <option value="mainScaleContrastThree">各阶段主要工程规模对比(3个)</option>
                 </select>
             </div>
+
+            <div class="input-group col-3">
+                <div class="input-group-addon">是否过滤清单预算</div>
+                <select class="form-control input-sm" id="element_isBillBudgetReport_audit"
+                    onchange="zTreeOprObj.onChangeFlag('isBillBudgetReport', this)">
+                    <option value="NA">N/A</option>
+                    <option value="true">是</option>
+                    <option value="false">否</option>
+                </select>
+            </div>
         </div>
 
     </div>

+ 13 - 0
web/maintain/report/js/rpt_tpl_main.js

@@ -1026,6 +1026,18 @@ let zTreeOprObj = {
                         } else {
                             $("#element_costIndexFlags_audit")[0].selectedIndex = 0;
                         }
+                        if (me.currentNode.flags.hasOwnProperty('isBillBudgetReport')) {
+                            let val = me.currentNode.flags['isBillBudgetReport'];
+                            if (val === 'true') {
+                                $("#element_isBillBudgetReport_audit")[0].selectedIndex = 1;
+                            } else if (val === 'false') {
+                                $("#element_isBillBudgetReport_audit")[0].selectedIndex = 2;
+                            } else {
+                                $("#element_isBillBudgetReport_audit")[0].selectedIndex = 0;
+                            }
+                        } else {
+                            $("#element_isBillBudgetReport_audit")[0].selectedIndex = 0;
+                        }
                     } else {
                         $("#element_flags_select")[0].selectedIndex = 0;
                         $("#element_prjFlags_select")[0].selectedIndex = 0;
@@ -1039,6 +1051,7 @@ let zTreeOprObj = {
                         $("#element_existLevel_select")[0].selectedIndex = 0;
                         $("#element_Flags_tplType")[0].selectedIndex = 0;
                         $("#element_costIndexFlags_audit")[0].selectedIndex = 0;
+                        $("#element_isBillBudgetReport_audit")[0].selectedIndex = 0;
                     }
 
                     if ($("#rpt_tpl_visual_tab")[0].className === "nav-link p-1 active") {