From 0b7bd8cd736cc7c0182fcf0e46ca0cb0fa3cb00f Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 28 十月 2024 19:22:23 +0800
Subject: [PATCH] 包装混箱功能

---
 WebTM/views/PublicPage/PowerInformation.html |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/WebTM/views/PublicPage/PowerInformation.html b/WebTM/views/PublicPage/PowerInformation.html
index 182ea2f..774a2b5 100644
--- a/WebTM/views/PublicPage/PowerInformation.html
+++ b/WebTM/views/PublicPage/PowerInformation.html
@@ -75,6 +75,8 @@
             var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
             var linterid = params[params[1]];//婧愬崟id
             var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷
+            //灏唘rl鍙傛暟涓殑涓枃涔辩爜閲嶆柊杞崲鎴愪腑鏂囥�� 娉細linterid 鏄弬鏁板懡鍚嶏紝涓嶆槸鍊�
+            linterid = getParams("linterid");
         }
 
         var treeCkData = { id: 0 };
@@ -346,20 +348,21 @@
                 } else {
                     treeData.push(it)
                 }
-            })
-            // 閫掑綊杩囨护鎺夋病鏈夊瓙鑺傜偣鐨勯」
-            function filterTree(node) {
-                if (!node.children || node.children.length === 0) {
-                    return null; // 杩囨护鎺夋病鏈夊瓙鑺傜偣鐨勯」
-                }
-                node.children = node.children.map(filterTree).filter(n => n !== null);
-                return node;
-            }
-            // 瀵规瘡涓牴鑺傜偣搴旂敤杩囨护
-            treeData = treeData.map(filterTree).filter(n => n !== null);
+            })                      
             return treeData;
         }
 
+        //灏唘rl鍙傛暟涓殑涓枃涔辩爜閲嶆柊杞崲鎴愪腑鏂�
+        function getParams(key) {
+            var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)");
+            //濡傛灉鍦板潃鏍忎腑鍑虹幇涓枃鍒欒繘琛岀紪鐮�    
+            var r = encodeURI(window.location.search).substr(1).match(reg);
+            if (r != null) {
+                //灏嗕腑鏂囩紪鐮佺殑瀛楃閲嶆柊鍙樻垚涓枃
+                return decodeURI(unescape(r[2]));
+            }
+            return null;
+        };
     </script>
 
 </body>

--
Gitblit v1.9.1