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/SOSetting/ExportNoticeAddFrom.html |  185 ++++++++++++++++++++++++++++++++-------------
 1 files changed, 131 insertions(+), 54 deletions(-)

diff --git a/HTML/views/SOSetting/ExportNoticeAddFrom.html b/HTML/views/SOSetting/ExportNoticeAddFrom.html
index 0cd8b39..0c26517 100644
--- a/HTML/views/SOSetting/ExportNoticeAddFrom.html
+++ b/HTML/views/SOSetting/ExportNoticeAddFrom.html
@@ -32,7 +32,7 @@
 					<label class="layui-form-label">鍗曟嵁绫诲瀷</label>
 					<div class="layui-input-inline">
 						<select name="Type" id="Type" lay-filter="Type" lay-verify="required" lay-search>
-							<option value=""></option>
+							<!-- <option value=""></option> -->
 							<!-- 24 -->
 							<option value="0">鎴愬搧鍑哄簱</option>
 							<option value="1">棰嗘枡鍑哄簱</option>
@@ -41,7 +41,8 @@
 							<option value="4">涓嶅悎鏍煎搧鍑哄簱</option>
 							<option value="5">涓棿鍝佸嚭搴�</option>
 							<option value="6">浠e偍鍑哄簱</option>
-							<option value="7">鍏朵粬鍑哄簱</option>
+							<option value="7">鍏跺畠鍑哄簱</option>
+							<option value="8">瀵勫瓨鍑哄簱</option>
 							<!-- 09 -->
 							<!-- <option value="0">鏍囧噯閿�鍞嚭搴�</option>
 							<option value="1">闈炴爣閿�鍞嚭搴�</option>
@@ -56,7 +57,7 @@
 					</div>
 				</div>
 				<div class="layui-inline">
-					<label class="layui-form-label">瀹㈡埛鍚嶇О</label>
+					<label class="layui-form-label" id="CustomerNamep">瀹㈡埛鍚嶇О</label>
 					<div class="layui-input-inline">
 						<select name="CustomerNo" id="CustomerNo" lay-search>
 							<option value=""></option>
@@ -125,6 +126,7 @@
 				};
 
 				var arr = []; 
+				var TypeValue=$("#Type").val();
 				function refreshTable(data) {
 					//table.clear();
 					
@@ -272,10 +274,21 @@
 							},function() {});
 							return;
 						}
+						if($("#Type").val()=='6'){
+							if($("#CustomerNo").val()==''){
+								layer.msg("浠e偍鍗曟嵁璇烽�夋嫨璐т富锛�", {
+									icon: 2,
+									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+								}, function () {
+
+								});
+								return;
+							}
+						}
 						layer.open({
 							type: 2,
 							title: '閫夋嫨鐗╁搧淇℃伅',
-							content: 'ExportSelectSkuFrom.html?Type='+$("#Type").val(),
+							content: 'ExportSelectSkuFrom.html?Type='+$("#Type").val()+'&OwnerNo='+$("#CustomerNo").val(),
 							maxmin: true,
 							area: ['950px', '90%'],
 							fixed: false,
@@ -334,8 +347,22 @@
 						isrun = 0;
 						return;
 					}
+					var type= $("#Type").val();
+					if(type=='6'){
+						var CustomerNo=$("#CustomerNo").val();
+						if(CustomerNo==''){
+							layer.msg("浠e偍鍗曟嵁璇烽�夋嫨璐т富锛�", {
+								icon: 2,
+								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+							}, function () {
+
+							});
+							return;
+						}
+					}
 					var DataList = [];
 					console.log(infoOptions.data);
+					var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,4})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
 					for (var i in infoOptions.data) {
 						console.log(infoOptions.data[i].ExQty);
 						if (infoOptions.data[i].ExQty == "") {
@@ -346,40 +373,47 @@
 							isrun = 0;
 							return;
 						}
+						if (!reg.test(infoOptions.data[i].ExQty)) {
+							layer.msg("鍑哄簱鏁伴噺蹇呴』澶т簬0(鍙繚鐣�4浣嶅皬鏁�)", {
+								icon: 2,
+								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+							});
+							isrun = 0;
+							return ;
+						}
+						// if(infoOptions.data[i].ExQty.indexOf('.')>=0){
+						// 	layer.msg("鍑哄簱鏁伴噺蹇呴』鏄ぇ浜�0鐨勬暣鏁�", {
+						// 		icon: 2,
+						// 		time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+						// 	}, function() {});
+						// 	isrun = 0;
+						// 	return;
+						// }
+						// if(infoOptions.data[i].ExQty.indexOf('-')>=0){
+						// 	layer.msg("鍑哄簱鏁伴噺蹇呴』鏄ぇ浜�0鐨勬暣鏁�", {
+						// 		icon: 2,
+						// 		time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+						// 	}, function() {});
+						// 	isrun = 0;
+						// 	return;
+						// }
+						// if(infoOptions.data[i].ExQty.charAt(0)=='0'){ 
+						// 	layer.msg("鍑哄簱鏁伴噺蹇呴』鏄ぇ浜�0鐨勬暣鏁�", {
+						// 		icon: 2,
+						// 		time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+						// 	}, function() {});
+						// 	isrun = 0;
+						// 	return;
+						// }
 						
-						if(infoOptions.data[i].ExQty.indexOf('.')>=0){
-							layer.msg("鍑哄簱鏁伴噺蹇呴』鏄ぇ浜�0鐨勬暣鏁�", {
-								icon: 2,
-								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-							}, function() {});
-							isrun = 0;
-							return;
-						}
-						if(infoOptions.data[i].ExQty.indexOf('-')>=0){
-							layer.msg("鍑哄簱鏁伴噺蹇呴』鏄ぇ浜�0鐨勬暣鏁�", {
-								icon: 2,
-								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-							}, function() {});
-							isrun = 0;
-							return;
-						}
-						if(infoOptions.data[i].ExQty.charAt(0)=='0'){ 
-							layer.msg("鍑哄簱鏁伴噺蹇呴』鏄ぇ浜�0鐨勬暣鏁�", {
-								icon: 2,
-								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-							}, function() {});
-							isrun = 0;
-							return;
-						}
-						
-						if (infoOptions.data[i].ExQty <= 0) {
-							layer.msg("鍑哄簱鏁伴噺蹇呴』澶т簬0锛�", {
-								icon: 2,
-								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-							}, function() {});
-							isrun = 0;
-							return;
-						}
+						// if (infoOptions.data[i].ExQty <= 0) {
+						// 	layer.msg("鍑哄簱鏁伴噺蹇呴』澶т簬0锛�", {
+						// 		icon: 2,
+						// 		time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+						// 	}, function() {});
+						// 	isrun = 0;
+						// 	return;
+						// }
 						if (infoOptions.data[i].ExQty > infoOptions.data[i].Qty) {
 							layer.msg("鍑哄簱鏁伴噺涓嶈兘澶т簬搴撳瓨鏁伴噺锛�", {
 								icon: 2,
@@ -391,7 +425,7 @@
 						var item = {
 							SkuNo: infoOptions.data[i].SkuNo,
 							LotNo: infoOptions.data[i].LotNo,
-							Qty: parseInt(infoOptions.data[i].ExQty),
+							Qty: parseFloat(infoOptions.data[i].ExQty),
 							IsBale:infoOptions.data[i].IsBale,
 							IsBelt:infoOptions.data[i].IsBelt,
 						};
@@ -429,19 +463,16 @@
 				 
 				
 				//涓嬫媺鍗曟嵁绫诲瀷閫変腑鍚庝簨浠�
-				// form.on('select(Type)', function(data) {
-				// 	// console.log(data.value);
-				// 	if (data.value == "0" || data.value == "1") { //閿�鍞嚭搴�
-				// 		$("#chengyunshang").removeClass("isNoShow"); 
-				// 		$("#chengyunshang").addClass("isShow"); 
-				// 		form.render('select'); 
-				// 	}else if(data.value == "2" ||data.value == "3"){//涓嶅悎鏍煎嚭搴�
-						
-				// 		$("#chengyunshang").removeClass("isShow"); 
-				// 		$("#chengyunshang").addClass("isNoShow"); 
-				// 		form.render('select'); 
-				// 	} 
-				// });
+				form.on('select(Type)', function(data) {
+					var value = data.value;
+					if(value!=TypeValue){
+						getCustomerList();
+						arr = [];
+						// 娓叉煋Table
+						refreshTable(null);
+						TypeValue=value;
+					}
+				});
 				//鑾峰彇浠撳簱涓嬫媺妗嗕俊鎭�
 				// function getWareHouseList(){
 				// 	sendData(IP + "/Sys/GetWarehouseDic", {}, 'get', function(res) {
@@ -470,9 +501,55 @@
 							$("#CustomerNo").empty();
 							$("#CustomerNo").append('<option value =""></option>');
 							for (var i = 0; i < res.data.length; i++) {
-								$("#CustomerNo").append('<option value =' + res.data[i].CustomerNo + '>' + 
-									res.data[i].CustomerName + '</option>');
-							} 
+								var TypeNum = 0;
+								
+								switch($("#Type").val())
+								{									
+									case "0": //鎴愬搧鍑哄簱
+										TypeNum = 0;
+										console.log(TypeNum)
+										break;
+									case "1": //棰嗘枡鍑哄簱
+									case "2": //鎶芥鍑哄簱
+									case "3": //鐗╂枡鍙栨牱鍑哄簱
+									case "4": //涓嶅悎鏍煎搧鍑哄簱
+									case "5": //涓棿鍝佸嚭搴�
+									case "6": //浠e偍鍑哄簱
+									case "7": //鍏朵粬鍑哄簱
+									case "8": //瀵勫瓨鍑哄簱
+										TypeNum = 2;
+										console.log(TypeNum)
+										break;
+								}
+								//鍒ゆ柇鍗曟嵁绫诲瀷
+								if (TypeNum == 0)
+								{
+									if (res.data[i].Type == 0)
+									{
+										$("#CustomerNamep").html("瀹㈡埛");
+										$("#CustomerNo").append('<option value =' + res.data[i].CustomerNo + '>' +
+										res.data[i].CustomerName + '</option>');
+									}
+								}
+								else if (TypeNum == 1)
+								{
+									if (res.data[i].Type == 1)
+									{
+										$("#CustomerNamep").html("渚涘簲鍟�");
+										$("#CustomerNo").append('<option value =' + res.data[i].CustomerNo + '>' +
+										res.data[i].CustomerName + '</option>');
+									}
+								}
+								else if (TypeNum == 2)
+								{
+									if (res.data[i].Type == 2)
+									{
+										$("#CustomerNamep").html("璐т富");
+										$("#CustomerNo").append('<option value =' + res.data[i].CustomerNo + '>' +
+										res.data[i].CustomerName + '</option>');
+									}
+								}
+							}
 							form.render('select');
 						} else { //涓嶆垚鍔�
 							layer.msg(res.msg, {

--
Gitblit v1.8.0