From 19e95f4acc328bbf62a0427fe658d00268019e66 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期一, 07 四月 2025 10:14:34 +0800
Subject: [PATCH] 修改IIS配置

---
 HTML/views/ASNSetting/LabelPrintSelect.html |  205 ++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 147 insertions(+), 58 deletions(-)

diff --git a/HTML/views/ASNSetting/LabelPrintSelect.html b/HTML/views/ASNSetting/LabelPrintSelect.html
index 31beeec..d7a2ea3 100644
--- a/HTML/views/ASNSetting/LabelPrintSelect.html
+++ b/HTML/views/ASNSetting/LabelPrintSelect.html
@@ -10,16 +10,41 @@
 	</head>
 	<body>
 		<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
+           
+			<div class="layui-form-item">
+				<label class="layui-form-label">渚涜揣鎵规</label>
+				<div class="layui-input-block">
+					<input type="text" name="SupplierLot" id="SupplierLot" placeholder="璇疯緭鍏ヤ緵璐ф壒娆�" autocomplete="off" class="layui-input">
+				</div>
+			</div>
+            <div class="layui-form-item">
+				<label class="layui-form-label">鐢熶骇鏃ユ湡</label>
+				<div class="layui-input-block">
+					<input type="text" name="productionTime" id="productionTime" placeholder="璇疯緭鍏ョ敓浜ф棩鏈�" autocomplete="off" class="layui-input">
+				</div>
+			</div>
+            <div class="layui-form-item">
+				<label class="layui-form-label">鏈夋晥鏈熻嚦</label>
+				<div class="layui-input-block">
+					<input type="text" name="expirationTime" id="expirationTime" placeholder="璇疯緭鍏ユ湁鏁堟湡鑷�" autocomplete="off" class="layui-input">
+				</div>
+			</div>
+            <div class="layui-form-item">
+				<label class="layui-form-label">鍌ㄥ瓨鏈熻嚦</label>
+				<div class="layui-input-block">
+					<input type="text" name="storeTime" id="storeTime"  placeholder="璇疯緭鍏ュ偍瀛樻湡鑷�" autocomplete="off" class="layui-input">
+				</div>
+			</div>
             <div class="layui-form-item">
 				<label class="layui-form-label">閲嶇疆鎵瑰彿</label>
 				<div class="layui-input-block">
-					<select name="reset" id="reset" lay-verify="required">
-						<option value="1">鏄�</option>
+					<select name="reset" id="reset" lay-filter="reset" lay-verify="required">
+						<!-- <option value="1">鏄�</option> -->
                         <option value="0">鍚�</option>
 					</select>
 				</div> 
 			</div>
-			<div class="layui-form-item">
+			<!-- <div class="layui-form-item">
 				<label class="layui-form-label">鏍囩绾у埆</label>
 				<div class="layui-input-block">
 					<select name="level" id="level" lay-filter="levelFil" lay-verify="required">
@@ -36,14 +61,16 @@
 						<option value="0">鏃犲眰绾�</option> 
 					</select>
 				</div>
-			</div>
+			</div> -->
 			<div class="layui-form-item">
 				<label class="layui-form-label">鍒拌揣鏁伴噺</label>
 				<div class="layui-input-block">
-					<input type="text" name=arriveQty" id="arriveQty" lay-verify="required"  placeholder="璇疯緭鍏ュ贩閬撳悕绉�" autocomplete="off" class="layui-input">
+					<input type="text" name="arriveQty" id="arriveQty" lay-verify="required"  placeholder="璇疯緭鍏ュ埌璐ф暟閲�" autocomplete="off" class="layui-input"  oninput="value=value.replace(/[^\d^\.]+/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3')"
+                     onafterpaste="this.value=this.value.replace(/[^\d^\.]+/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3')">
 				</div>
 			</div>
-            <div class="layui-form-item" id="boxTypeDiv" style="display: none;">
+            
+            <!-- <div class="layui-form-item" id="boxTypeDiv" style="display: none;">
 				<label class="layui-form-label">绠辨敮绫诲瀷</label>
 				<div class="layui-input-block">
 					<select name="boxType" id="boxType" lay-filter="boxTypeFil" lay-search>
@@ -56,9 +83,10 @@
 			<div class="layui-form-item" id="qtyDiv" style="display: none;">
 				<label class="layui-form-label">鏁伴噺</label>
 				<div class="layui-input-block">
-					<input type="text" name="qty" id="qty"   placeholder="璇疯緭鍏ュ贩閬撳悕绉�" autocomplete="off" class="layui-input">
+					<input type="text" name="qty" id="qty" placeholder="璇疯緭鍏ユ暟閲�" autocomplete="off" class="layui-input"  oninput="value=value.replace(/[^\d^\.]+/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3')" 
+                    onafterpaste="this.value=this.value.replace(/[^\d^\.]+/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/,'$1$2.$3')">
 				</div>
-			</div>
+			</div> -->
 			<div class="layui-form-item layui-hide">
 				<input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" id="layuiadmin-app-form-submit" value="纭娣诲姞">
 				<input type="button" lay-submit lay-filter="layuiadmin-app-form-edit" id="layuiadmin-app-form-edit" value="纭缂栬緫">
@@ -75,65 +103,126 @@
 					base: '../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
 				}).extend({
 					index: 'lib/index' //涓诲叆鍙fā鍧�
-				}).use(['index', 'form', 'layer'], function() {
+				}).use(['index', 'form', 'layer', 'laydate'], function() {
 					var $ = layui.$;
 					var	form = layui.form;
 					var	layer = layui.layer;
-					form.on('select(levelFil)', function(data){  
-                        console.log($("#type").val());  
-                        var type = $("#type").val();
-                        if (data.value == "1" ) {
-                            $("#boxTypeDiv").css("display","none");  
-                            form.val("layuiadmin-app-form-list", {
-                                "boxType": ""  
-                            });
-                            $("#boxType").removeAttr("lay-verify");
+                    var laydate = layui.laydate;
+                    laydate.render({
+                        elem: '#productionTime'
+                        , format: 'yyyy-MM-dd' //鍙换鎰忕粍鍚�
+                    });
+                    laydate.render({
+                        elem: '#expirationTime'
+                        , format: 'yyyy-MM-dd' //鍙换鎰忕粍鍚�
+                    });
+                    laydate.render({
+                        elem: '#storeTime'
+                        , format: 'yyyy-MM-dd' //鍙换鎰忕粍鍚�
+                    });
 
-                            $("#qtyDiv").css("display","none");
-                            $("#qty").removeAttr("lay-verify");
-                            $("#qty").val("");
+					var id = getQueryString('Id');
+					//var SupplierLot=getQueryString('SupplierLot');//渚涜揣鎵规
+					//$('#SupplierLot').val(SupplierLot);
+					//console.log(SupplierLot);
+					var asnType = getQueryString('Type');
+					console.log(asnType);
+					console.log(asnType == 4);
+					if(asnType == 4){
 
-                            form.render('select'); 
-                        }
-                        if (data.value == "2" && type == "0") {
-                            $("#boxTypeDiv").css("display","block"); 
-                            $("#boxType").attr("lay-verify","required"); 
+						$("#reset option[value='0']").attr("selected","selected"); //鎬у埆
+						$("#reset").attr("disabled","disabled"); 
+						form.render('select');
+					}
+
+					var param = {
+						id: parseInt(id),
+					};
+					 
+					synData(IP + "/BllAsn/GetAsnDetailQtyList", param , 'get', function (res) {
+						if (res.code == 0) { //鎴愬姛  
+							$("#arriveQty").val(res.data.Qty);
+							$("#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, {
+								icon: 2,
+								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+							}, function () { });
+						}
+					});
+					// form.on('select(levelFil)', function(data){  
+                    //     console.log($("#type").val());  
+                    //     var type = $("#type").val();
+                    //     if (data.value == "1" ) {
+                    //         $("#boxTypeDiv").css("display","none");  
+                    //         form.val("layuiadmin-app-form-list", {
+                    //             "boxType": ""  
+                    //         });
+                    //         $("#boxType").removeAttr("lay-verify");
+
+                    //         $("#qtyDiv").css("display","none");
+                    //         $("#qty").removeAttr("lay-verify");
+                    //         $("#qty").val("");
+
+                    //         form.render('select'); 
+                    //     }
+                    //     if (data.value == "2" && type == "0") {
+                    //         $("#boxTypeDiv").css("display","block"); 
+                    //         $("#boxType").attr("lay-verify","required"); 
                             
-                        }
-                    });   
-                    form.on('select(typeFil)', function(data){  
-                        var level = $("#level").val();
-                        if (data.value == "1") {
-                            $("#boxTypeDiv").css("display","none"); 
+                    //     }
+                    // });   
+                    // form.on('select(typeFil)', function(data){  
+                    //     var level = $("#level").val();
+                    //     if (data.value == "1") {
+                    //         $("#boxTypeDiv").css("display","none"); 
  
-                            form.val("layuiadmin-app-form-list", {
-                                "boxType": ""  
-                            });
-                            $("#boxType").removeAttr("lay-verify");
-                            
-                            $("#qtyDiv").css("display","none");
-                            $("#qty").removeAttr("lay-verify");
-                            $("#qty").val("");
-                            form.render('select'); 
-                        }
-                        if (data.value == "0" && level == "2") {
-                            $("#boxTypeDiv").css("display","block"); 
-                            $("#boxType").attr("lay-verify","required");
+                    //         form.val("layuiadmin-app-form-list", {
+                    //             "boxType": ""  
+                    //         });
+                    //         $("#boxType").removeAttr("lay-verify");
 
-                        }
-                    });
-                    form.on('select(boxTypeFil)', function(data){   
-                        if (data.value == "1") { //绠�
-                            $("#qtyDiv").css("display","none");
-                            $("#qty").removeAttr("lay-verify");
-                            $("#qty").val("");
-                        }
-                        if (data.value == "2" ) { 
-                            $("#qtyDiv").css("display","block");
-                            $("#qty").attr("lay-verify","required");
-                        }
-                    });
+                    //         $("#qtyDiv").css("display","none");
+                    //         $("#qty").removeAttr("lay-verify");
+                    //         $("#qty").val("");
+                    //         form.render('select'); 
+                    //     }
+                    //     if (data.value == "0" && level == "2") {
+                    //         $("#boxTypeDiv").css("display","block"); 
+                    //         $("#boxType").attr("lay-verify","required");
 
+                    //     }
+                    // });
+                    // form.on('select(boxTypeFil)', function(data){   
+                    //     if (data.value == "1") { //绠�
+                    //         $("#qtyDiv").css("display","none");
+                    //         $("#qty").removeAttr("lay-verify");
+                    //         $("#qty").val("");
+                    //     }
+                    //     if (data.value == "2" ) { 
+                    //         $("#qtyDiv").css("display","block");
+                    //         $("#qty").attr("lay-verify","required");
+                    //     }
+                    // });
+
+					// 鑾峰彇浼犻�掑弬鏁�
+					function getQueryString(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;
+					}
+					// 鑾峰彇浼犻�掑弬鏁�
+					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