Przeglądaj źródła

feat: 报表后台系统,数据汇总金额重新计算

lishihao 8 godzin temu
rodzic
commit
769c5d1680

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

@@ -264,6 +264,12 @@
                     <option value="settlement">结算列</option>
                 </select>
             </div>
+            <div class="input-group input-group-sm col-3">
+                <label class="form-check-label">汇总金额时重新计算
+                    <input onchange="zTreeOprObj.onChangeFlag('recalculateSummaryAmount', this)"
+                        id="recalculateSummaryAmount" type="checkbox">
+                </label>
+            </div>
         </div>
         <p>
         <div class="form-group col-md-6">

+ 7 - 1
web/maintain/report/js/rpt_tpl_main.js

@@ -1032,7 +1032,7 @@ let zTreeOprObj = {
       if (!me.currentNode.hasOwnProperty("flags")) {
         me.currentNode.flags = {};
       }
-      if (flagProp === "outputDesignData") {
+      if (flagDom.type === "checkbox") {
         me.currentNode.flags[flagProp] = flagDom.checked;
       } else {
         me.currentNode.flags[flagProp] =
@@ -1209,6 +1209,7 @@ let zTreeOprObj = {
         // 该属性是根据项目汇总级别显示的
         $("#outputDesignDataBar").hide();
         $("#outputDesignData").attr("checked", false);
+        $("#recalculateSummaryAmount").prop("checked", false);
         // 初始化dom
         params.rptTplId = me.currentNode.refId;
         CommonAjax.postEx(
@@ -1343,6 +1344,11 @@ let zTreeOprObj = {
                 $("#element_sumLv_flags")[0].selectedIndex = 0;
               }
 
+              $("#recalculateSummaryAmount").prop(
+                "checked",
+                !!me.currentNode.flags.recalculateSummaryAmount,
+              );
+
               if (me.currentNode.flags.hasOwnProperty("contrastType")) {
                 let contrastType = me.currentNode.flags["contrastType"];
                 if (contrastType === "chapter")