From b9f7560cbe0e562a40e9515a0559a3e951f0fee6 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期一, 07 四月 2025 09:16:01 +0800
Subject: [PATCH] 问题修改

---
 HTML/views/ASNSetting/LabelPrintSelect.html |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/HTML/views/ASNSetting/LabelPrintSelect.html b/HTML/views/ASNSetting/LabelPrintSelect.html
index 6bf016f..d7a2ea3 100644
--- a/HTML/views/ASNSetting/LabelPrintSelect.html
+++ b/HTML/views/ASNSetting/LabelPrintSelect.html
@@ -122,9 +122,9 @@
                     });
 
 					var id = getQueryString('Id');
-					var SupplierLot=getQueryString('SupplierLot');//渚涜揣鎵规
-					$('#SupplierLot').val(SupplierLot);
-					console.log(SupplierLot);
+					//var SupplierLot=getQueryString('SupplierLot');//渚涜揣鎵规
+					//$('#SupplierLot').val(SupplierLot);
+					//console.log(SupplierLot);
 					var asnType = getQueryString('Type');
 					console.log(asnType);
 					console.log(asnType == 4);
@@ -145,6 +145,7 @@
 							$("#productionTime").val(res.data.ProductionTime);
 							$("#expirationTime").val(res.data.ExpirationTime);
 							$("#storeTime").val(res.data.StoreTime);
+							$("#SupplierLot").val(res.data.SupplierLot);
 							console.log(res.data);
 						} else { //涓嶆垚鍔�
 							layer.msg(res.msg, {
@@ -215,6 +216,13 @@
 						if (r != null) return unescape(r[2]);
 						return null;
 					}
+					// 鑾峰彇浼犻�掑弬鏁�
+					function getQueryString2(name) {
+						var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
+						var r = window.location.search.substr(1).match(reg);
+						if (r != null) return unescape(r[2]);
+						return null;
+					}
 
 				})
 			</script>

--
Gitblit v1.8.0