Jelajahi Sumber

feat: 报表新增汇总类型

lishihao 3 hari lalu
induk
melakukan
9c0ef5a3c6

+ 28 - 2
web/maintain/report/html/rpt_tpl_dtl_info.html

@@ -50,14 +50,40 @@
                     <div class="input-group-addon">计税方式</div>
                     <select class="form-control input-sm" id="element_flags_select" onchange="zTreeOprObj.onChangeFlag('taxType', this)"><option value ="NA">N/A</option><option value ="1">一般计税</option><option value ="2">简易计税</option></select>
                 </div>
-                <div class="input-group col-3">
+                <div class="input-group col-2">
                     <div class="input-group-addon">建设项目汇总类型</div>
                     <select class="form-control input-sm" id="element_constructSumFlags_select" onchange="zTreeOprObj.onChangeFlag('constructSumType', this)"><option value ="NA">N/A</option><option value ="constructSum">建设项目汇总</option><option value="singleSum">单项项目汇总</option></select>
                 </div>
-                <div class="input-group col-2">
+                <div class="input-group col-3">
                     <div class="input-group-addon">审核对比类型</div>
                     <select class="form-control input-sm" id="element_constructSumFlags_audit" onchange="zTreeOprObj.onChangeFlag('auditType', this)"><option value ="NA">N/A</option><option value ="audit_compare">审核对比</option><option value="project_compare">步骤对比</option></select>
                 </div>
+                <div class="input-group col-4">
+                    <div class="input-group-addon">项目汇总级别</div>
+                    <select class="form-control input-sm" id="element_sumLv_flags"
+                        onchange="zTreeOprObj.onChangeFlag('sumLevelType', this)">
+                        <option value="NA">N/A</option>
+                        <option value="construct">建设项目级别</option>
+                        <option value="Single">单项工程级别</option>
+                        <option value="custom">用户自选工程</option>
+                        <option value="unitPriceContrast">单价偏差对比</option>
+                        <option value="stageUnitContrast">审核项目对比(一对一)</option>
+                        <option value="stageUnitFontContrast">项目对比(当前单位对其他单位)</option>
+                        <option value="stageUnitBackContrast">项目对比(其他单位对当前单位)</option>
+                        <option value="stageContrast">前后阶段对比(当前项目对其他项目)</option>
+                        <option value="stageGLJContrast">前后阶段工料机对比(当前项目对其他项目)</option>
+                        <option value="stageBackContrast">审核项目对比(其他项目对当前项目)</option>
+                        <option value="stageMultipleUnitContrast">审核项目对比(多对多)</option>
+                        <option value="complexUnit">跨项目自选工程(3个建设项目单位工程,一对一对一)</option>
+                        <option value="complexConstruct">跨项目汇总对比(3个建设项目,一对多对多)</option>
+                        <option value="complexConstructMultiple">各阶段项目对比(3个建设项目,多对多对多)</option>
+                        <option value="complexSelfConstructMultiple">各阶段项目对比(当前建设项目对本阶段对其他阶段)</option>
+                        <option value="businessSummary">多个业务汇总</option>
+                        <option value="changeProjectSummary">变更业务对比汇总</option>
+                        <option value="changeProjectGljSummary">变更业务工料机对比汇总</option>
+                        <option value="compareConstruct">对比建设项目</option>
+                    </select>
+                </div>
             </div>
             <p>
             <div class="row">

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

@@ -1417,6 +1417,61 @@ let zTreeOprObj = {
               } else {
                 $("#element_Flags_tplType")[0].selectedIndex = 0;
               }
+
+              if (me.currentNode.flags.hasOwnProperty("sumLevelType")) {
+                let sumLvType = me.currentNode.flags["sumLevelType"];
+                if (sumLvType === "construct")
+                  $("#element_sumLv_flags")[0].selectedIndex = 1;
+                else if (sumLvType === "Single")
+                  $("#element_sumLv_flags")[0].selectedIndex = 2;
+                else if (sumLvType === "custom")
+                  $("#element_sumLv_flags")[0].selectedIndex = 3;
+                else if (sumLvType === "unitPriceContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 4;
+                else if (sumLvType === "stageUnitContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 5;
+                else if (sumLvType === "stageUnitFontContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 6;
+                else if (sumLvType === "stageUnitBackContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 7;
+                else if (sumLvType === "stageContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 8;
+                else if (sumLvType === "stageGLJContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 9;
+                else if (sumLvType === "stageBackContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 10;
+                else if (sumLvType === "stageMultipleUnitContrast")
+                  $("#element_sumLv_flags")[0].selectedIndex = 11;
+                else if (sumLvType === "complexUnit")
+                  $("#element_sumLv_flags")[0].selectedIndex = 12;
+                else if (sumLvType === "complexConstruct")
+                  $("#element_sumLv_flags")[0].selectedIndex = 13;
+                else if (sumLvType === "complexConstructMultiple")
+                  $("#element_sumLv_flags")[0].selectedIndex = 14;
+                else if (sumLvType === "complexSelfConstructMultiple")
+                  $("#element_sumLv_flags")[0].selectedIndex = 15;
+                else if (sumLvType === "businessSummary")
+                  $("#element_sumLv_flags")[0].selectedIndex = 16;
+                else if (sumLvType === "changeProjectSummary")
+                  $("#element_sumLv_flags")[0].selectedIndex = 17;
+                else if (sumLvType === "changeProjectGljSummary")
+                  $("#element_sumLv_flags")[0].selectedIndex = 18;
+                else if (sumLvType === "compareConstruct")
+                  $("#element_sumLv_flags")[0].selectedIndex = 19;
+                else {
+                  $("#element_sumLv_flags")[0].selectedIndex = 0;
+                }
+                $("#outputDesignDataBar").show();
+                if (me.currentNode.flags.hasOwnProperty("outputDesignData")) {
+                  if (me.currentNode.flags.outputDesignData) {
+                    $("#outputDesignData").attr("checked", true);
+                  } else {
+                    $("#outputDesignData").attr("checked", false);
+                  }
+                }
+              } else {
+                $("#element_sumLv_flags")[0].selectedIndex = 0;
+              }
             } else {
               $("#element_flags_select")[0].selectedIndex = 0;
               $("#element_constructSumFlags_select")[0].selectedIndex = 0;
@@ -1431,6 +1486,7 @@ let zTreeOprObj = {
               $("#element_prjFlags_select")[0].value = "";
               $("#element_prjFlags_selectStr")[0].value = "";
               $("#valuationSelector .mutiSelector li").removeClass("checked");
+              $("#element_sumLv_flags")[0].selectedIndex = 0;
             }
 
             if (