Bläddra i källkod

feat: 报表新增报表汇总规则,报表汇总等级

lishihao 4 dagar sedan
förälder
incheckning
99cf20380d
2 ändrade filer med 69 tillägg och 1 borttagningar
  1. 32 1
      web/maintain/report/html/rpt_tpl_dtl_info.html
  2. 37 0
      web/maintain/report/js/rpt_tpl_main.js

+ 32 - 1
web/maintain/report/html/rpt_tpl_dtl_info.html

@@ -85,7 +85,38 @@
                     </select>
                 </div>
             </div>
-            <p>
+            <p><div class="row p-3">
+                <div class="input-group col-3">
+                    <div class="input-group-addon">审核对比数据级别</div>
+                    <select id="element_contrastType_select" class="form-control"
+                        onchange="zTreeOprObj.onChangeFlag('contrastType', this)">
+                        <option value="NA">N/A</option>
+                        <option value="chapter">项目节</option>
+                        <option value="bill">清单</option>
+                        <option value="quantities">工程量明细</option>
+                    </select>
+                </div>
+                <div class="input-group col-2">
+                    <div class="input-group-addon">存在数据级别</div>
+                    <select id="element_existLevel_select" class="form-control"
+                        onchange="zTreeOprObj.onChangeFlag('existLevel', this)">
+                        <option value="NA">N/A</option>
+                        <option value="true">是</option>
+                        <option value="false">否</option>
+                    </select>
+                </div>
+                <div class="input-group col-2">
+                    <div class="input-group-addon">汇总规则设置</div>
+                    <select id="element_summaryRule_select" class="form-control"
+                        onchange="zTreeOprObj.onChangeFlag('existSummaryRule', this)">
+                        <option value="NA">N/A</option>
+                        <option value="true">是</option>
+                        <option value="false">否</option>
+                    </select>
+                </div>
+            </div></p>
+            
+            
             <div class="row">
                 <div class="input-group col-2">
                     <div class="input-group-addon">概算类型</div>

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

@@ -1472,6 +1472,40 @@ let zTreeOprObj = {
               } else {
                 $("#element_sumLv_flags")[0].selectedIndex = 0;
               }
+              if (me.currentNode.flags.hasOwnProperty("contrastType")) {
+                let contrastType = me.currentNode.flags["contrastType"];
+                if (contrastType === "chapter")
+                  $("#element_contrastType_select")[0].selectedIndex = 1;
+                else if (contrastType === "bill")
+                  $("#element_contrastType_select")[0].selectedIndex = 2;
+                else if (contrastType === "quantities")
+                  $("#element_contrastType_select")[0].selectedIndex = 3;
+                else $("#element_contrastType_select")[0].selectedIndex = 0;
+              }
+              if (me.currentNode.flags.hasOwnProperty("existLevel")) {
+                let existLevel = me.currentNode.flags["existLevel"];
+                if (existLevel === "true") {
+                  $("#element_existLevel_select")[0].selectedIndex = 1;
+                } else if (existLevel === "false") {
+                  $("#element_existLevel_select")[0].selectedIndex = 2;
+                } else {
+                  $("#element_existLevel_select")[0].selectedIndex = 0;
+                }
+              } else {
+                $("#element_existLevel_select")[0].selectedIndex = 0;
+              }
+              if (me.currentNode.flags.hasOwnProperty("existSummaryRule")) {
+                let existSummaryRule = me.currentNode.flags["existSummaryRule"];
+                if (existSummaryRule === "true") {
+                  $("#element_summaryRule_select")[0].selectedIndex = 1;
+                } else if (existSummaryRule === "false") {
+                  $("#element_summaryRule_select")[0].selectedIndex = 2;
+                } else {
+                  $("#element_summaryRule_select")[0].selectedIndex = 0;
+                }
+              } else {
+                $("#element_summaryRule_select")[0].selectedIndex = 0;
+              }
             } else {
               $("#element_flags_select")[0].selectedIndex = 0;
               $("#element_constructSumFlags_select")[0].selectedIndex = 0;
@@ -1481,6 +1515,9 @@ let zTreeOprObj = {
               $("#element_Flags_budgetCalcType")[0].selectedIndex = 0;
               $("#element_Flags_tplType")[0].selectedIndex = 0;
               $("#element_prjFlags_select")[0].selectedIndex = 0;
+              $("#element_contrastType_select")[0].selectedIndex = 0;
+              $("#element_existLevel_select")[0].selectedIndex = 0;
+              $("#element_summaryRule_select")[0].selectedIndex = 0;
               // 清空工程类型
               $("#valuationSelector").hide();
               $("#element_prjFlags_select")[0].value = "";