Prechádzať zdrojové kódy

预处理表改size问题

TonyKang 4 rokov pred
rodič
commit
bdb3483e83
1 zmenil súbory, kde vykonal 22 pridanie a 1 odobranie
  1. 22 1
      app/public/report/js/rpt_main.js

+ 22 - 1
app/public/report/js/rpt_main.js

@@ -290,8 +290,8 @@ let zTreeOprObj = {
             let params = {};
             params.pageSize = rptControlObj.getCurrentPageSize();
             params.orientation = rptControlObj.getCurrentOrientation();
-            params.rpt_tpl_id = me.currentNode.refId;
             params.custCfg = CUST_CFG;
+            params.rpt_tpl_id = me.currentNode.refId;
             params.project_id = PROJECT_ID;
             params.tender_id = TENDER_ID;
             params.stage_id = getStageId();
@@ -299,7 +299,28 @@ let zTreeOprObj = {
             params.stage_order = getStageOrder();
             params.stage_times = getStageTimes();
             params.material_order = getMaterialOrder();
+            // me.requestNormalReport(params);
+
+            const gather_select = customSelects.gather_select.find(function (x) {
+                return x.id === me.currentNode.refId;
+            });
+            if (gather_select) {
+                rptCustomObj.init(gather_select.custom_define, customSelects.stageFlow, gather_select);
+                return;
+            }
+
+            const stage_select = customSelects.stage_select.find(function (x) {
+                return x.id === me.currentNode.refId;
+            });
+            if (stage_select) {
+                rptCustomObj.init(stage_select.custom_define, customSelects.stageFlow, stage_select);
+                return;
+            }
+
             me.requestNormalReport(params);
+            me.countChkedRptTpl();
+            rptCustomObj.showMaterialSelect();
+
         }
     },
     resetAfter: function (pageRst) {