From 7a7f218dbcdca1b51f30b10967d611a7830d38f7 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期一, 12 一月 2026 11:21:27 +0800
Subject: [PATCH] 页面获取参数
---
WebTM/views/基础资料/公用基础资料/Gy_MaterialPackingRelationList.html | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterialPackingRelationList.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterialPackingRelationList.html"
index 169cdc0..9311ca2 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterialPackingRelationList.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterialPackingRelationList.html"
@@ -219,6 +219,9 @@
window.HDefaultFilter = ""; //鏄惁宸茬粡閫夋嫨浜嗚繃婊ゆ柟妗堬紙鍏ㄥ眬鍙橀噺锛�
window.HInterID_Choose = 0; //閫夋嫨鐨勮繃婊ゆ柟妗堝唴鐮侊紙鍏ㄥ眬鍙橀噺锛�
//#endregion
+ var params = get_UrlVars();
+ var hmaterid = params[params[0]];
+ var orgid = params[params[1]];
//#region 杩涘叆椤甸潰鍗冲姞杞�
//#region 鍒濆鍖栫晫闈�
@@ -570,6 +573,12 @@
}
if (HOrgID) {
sWhere += " and HOrgID = '" + HOrgID + "'";
+ }
+ if (orgid != undefined) {
+ sWhere += " and HOrgID = '" + orgid + "'";
+ }
+ if (hmaterid != undefined) {
+ sWhere += " and HMaterID = '" + hmaterid + "'";
}
get_Display(sWhere);
@@ -1113,7 +1122,16 @@
}
}
-
+ function get_UrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
//璇诲彇鏂规
function set_ReadScheme() {
var HIsClose_Manual = false;
--
Gitblit v1.9.1