From 3a050b4d542dd2aefa65de27a6acecca1d9dda3d Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期日, 25 五月 2025 14:27:04 +0800
Subject: [PATCH] 修改问题

---
 HTML/views/SOSetting/ExportNotice.html |  181 +++++++++++++++++++++------------------------
 1 files changed, 84 insertions(+), 97 deletions(-)

diff --git a/HTML/views/SOSetting/ExportNotice.html b/HTML/views/SOSetting/ExportNotice.html
index ffa8410..375d93b 100644
--- a/HTML/views/SOSetting/ExportNotice.html
+++ b/HTML/views/SOSetting/ExportNotice.html
@@ -62,14 +62,13 @@
 						<div class="layui-input-inline">
 							<select name="Type" id="Type" lay-filter="Type" lay-search>
 								<option value=""></option>
-								<!--JC26-->
+								<!--JC34  鐢熶骇棰嗘枡銆佸叾浠栭鏂欍�侀攢鍞�佷笉鍚堟牸鎶ュ簾銆佹娊妫�銆佸叾浠�-->
 								<option value="0">鎴愬搧鍑哄簱</option>
 								<option value="1">棰嗘枡鍑哄簱</option>
 								<option value="2">鎶芥鍑哄簱</option>
 								<option value="4">涓嶅悎鏍煎搧鍑哄簱</option>
-								<option value="5">涓棿鍝佸嚭搴�</option>
-								<!-- <option value="7">鍏朵粬鍑哄簱</option> -->
-								<option value="9">閲囪喘閫�璐у嚭搴�</option>								
+								<option value="7">鍏朵粬鍑哄簱</option>
+								<option value="9">鐢熶骇棰嗘枡鍑哄簱</option>								
 							</select>
 						</div>
 					</div>
@@ -131,7 +130,7 @@
 					</div>
 					<!-- 纭鍑哄簱鍙e脊绐� -->
 					<div class="layui-inline" id="divPickingArea" style="display: none; padding-top: 10px;">
-						<div class="layui-inline">
+						<!-- <div class="layui-inline">
 							<label class="layui-form-label">鎷嗗灈鏂瑰紡</label>
 							<div class="layui-input-inline" style="width: 220px;">
 								<select name="UnstackWay" id="UnstackWay" lay-filter="UnstackWay" lay-search>
@@ -139,7 +138,7 @@
 									<option value="1">PDA鎷嗗灈</option>
 								</select>
 							</div>
-						</div>
+						</div> -->
 						<!-- <div class="layui-inline DivLoadingArea" style="margin-top: 10px;">
 							<label class="layui-form-label">瑁呰溅鍙�</label>
 							<div class="layui-input-inline" style="width: 220px;">
@@ -157,10 +156,8 @@
 							<div class="layui-input-inline" style="width: 220px;">
 								<select name="PickingArea" id="PickingArea" lay-search>
 									<option value=""></option>
-									<option value="1">1</option>
-									<option value="2">2</option>
-									<option value="3">3</option>
-									<option value="4">4</option>
+									<option value="17">17宸ヤ綅</option>
+									<option value="18">18宸ヤ綅</option>
 								</select>
 							</div>
 						</div>
@@ -210,7 +207,7 @@
 										case "8":
 											return "瀵勫瓨鍑哄簱";
 										case "9":
-											return "閲囪喘閫�璐у嚭搴�";
+											return "鐢熶骇棰嗘枡鍑哄簱";
 										default:
 											return "";
 									}
@@ -341,7 +338,11 @@
 					</script>
 					<!-- #endregion -->
 				</div>
-
+<!-- if(d.Type == "1" && (d.Status == '2' || d.Status == '3')){
+										html += `<a class="layui-btn layui-btn-normal layui-btn-xs outClass" lay-event="beiLiaoOutKu">
+											<i class="layui-icon layui-icon-ok"></i>澶囨枡
+										</a>`;
+									} -->
 				<script type="text/html" id="table-content-list">
 						{{# function GetBtn1(d){
 								var html = ''; 
@@ -366,11 +367,7 @@
 													<i class="layui-icon layui-icon-delete"></i>鍙栨秷鍒嗛厤
 												</a>`;
 									}
-									if(d.Type == "1" && (d.Status == '2' || d.Status == '3')){
-										html += `<a class="layui-btn layui-btn-normal layui-btn-xs outClass" lay-event="beiLiaoOutKu">
-											<i class="layui-icon layui-icon-ok"></i>澶囨枡
-										</a>`;
-									}
+									
 									if( d.Status == '2' || d.Status == '3'){
 										html += `<a class="layui-btn layui-btn-normal layui-btn-xs outClass" lay-event="outKu">
 													<i class="layui-icon layui-icon-ok"></i>鍑哄簱
@@ -491,23 +488,27 @@
 			var TotalColsArr = [[
 				{ field: '', title: '搴忓彿', type: 'numbers', width: 50, align: 'center', fixed: 'left', "disabled": true },
 				{ field: 'SONo', title: '鍑哄簱鍗曞彿', align: 'center', fixed: 'left', width: 165, "disabled": true },
-				{ field: 'Type', title: '鍗曟嵁绫诲瀷', align: 'center', templet: '#templetType' },
-				{ field: 'Status', title: '鎵ц鐘舵��', align: 'center', templet: '#templetStatus' },
-				{ field: 'LogisticsName', title: '鎵胯繍鍟�', align: 'center' },
-				{ field: 'CustomerName', title: '瀹㈡埛鍚嶇О', align: 'center' },
+				{ field: 'Type', title: '鍗曟嵁绫诲瀷', align: 'center', templet: '#templetType' , width: 120,},
+				{ field: 'Status', title: '鎵ц鐘舵��', align: 'center', templet: '#templetStatus', width: 90, },
+				{ field: 'LogisticsName', title: '鎵胯繍鍟�', align: 'center', width: 120, },
+				{ field: 'CustomerName', title: '瀹㈡埛鍚嶇О', align: 'center', width: 120, },
+				{ field: 'WareHouseName', title: '浠撳簱', align: 'center', width: 90, },
+				{ field: 'Origin', title: '鏉ユ簮', align: 'center', width: 90, },
+				{ field: 'Demo', title: '澶囨敞', align: 'center', width: 180 },
+				{ field: 'CreateUserName', title: '鍒涘缓浜�', align: 'center' , width: 110},
+				{ field: 'CreateTime', title: '鍒涘缓鏃堕棿', align: 'center', width: 160, templet: '#templetCreateTime' },
+				{ field: 'UpdateUserName', title: '淇敼浜�', align: 'center', width: 110 },
+				{ field: 'UpdateTime', title: '淇敼鏃堕棿', align: 'center', width: 160, templet: '#templetUpdateTime' },
+				{ field: 'CheckUserName', title: '澶嶆牳浜�', align: 'center', width: 110 },
+				{ field: 'CheckTime', title: '澶嶆牳鏃堕棿', align: 'center', width: 160, templet: '#templetCheckTime' },
+
+
 				{ field: 'LotNo', title: '鎵规鍙�', align: 'center' },
 				{ field: 'LotNoText', title: '鎵规鎻忚堪', align: 'center' },
 				{ field: 'IsDespatch', title: '鏄惁鍙戣繍', align: 'center', templet: '#templetIsDespatch' },
 				{ field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center' },
-				{ field: 'Origin', title: '鏉ユ簮', align: 'center' },
-				{ field: 'Demo', title: '澶囨敞', align: 'center', width: 180 },
-				{ field: 'CreateUserName', title: '鍒涘缓浜�', align: 'center' },
-				{ field: 'CreateTime', title: '鍒涘缓鏃堕棿', align: 'center', templet: '#templetCreateTime' },
-				{ field: 'UpdateUserName', title: '淇敼浜�', align: 'center' },
-				{ field: 'UpdateTime', title: '淇敼鏃堕棿', align: 'center', templet: '#templetUpdateTime' },
-				{ field: 'CheckUserName', title: '澶嶆牳浜�', align: 'center', width: 110 },
-				{ field: 'CheckTime', title: '澶嶆牳鏃堕棿', align: 'center', templet: '#templetCheckTime' },
-				{ field: 'caozuo', title: '鎿嶄綔', fixed: 'right', align: 'center', width: 200, toolbar: '#table-content-list', "disabled": false }
+				
+				{ field: 'caozuo', title: '鎿嶄綔', fixed: 'right', align: 'center', width: 360, toolbar: '#table-content-list', "disabled": false }
 			]];
 			var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜
 			//#endregion
@@ -1271,50 +1272,12 @@
 						area: ['1200px', '90%'],
 					});
 				} else if (obj.event === 'outKu') {
-					$("#UnstackWay").val(0)
-					$("#UnstackWay").attr("disabled", false);
-					//$("#LoadingArea").val('')
-					$("#PickingArea").val('')
-					$('.DivLoadingArea').show()
-					form.render('select');
-					var param = {
-						soNo: SoNo
-					};
-					if (orderType == "0") {
-						// 鍒ゆ柇鏄惁闇�瑕佹媶绠憋紝闇�瑕佹媶绠卞氨闇�瑕侀�夋嫨鍑哄簱鍙�
-						sendData(IP + "/BllSo/IsNeedUnpack", param, 'get', function (res) {
-							if (res.code == 0) { //鎴愬姛
-								if (res.data == "1") {
-									isNeedUnpack = '1'
-									$('.DivPickingArea2').show()
-								} else {
-									isNeedUnpack = '0'
-									$('.DivPickingArea2').hide()
-								}
-								if ($('#UnstackWay').val() == '1') {
-									$('.DivPickingArea2').show()
-								}
-
-								outFunction(data.SONo)
-							} else { //涓嶆垚鍔�
-								layer.msg(res.msg, {
-									icon: 2,
-									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-								}, function () {
-									return;
-								});
-							}
-						});
-					} else {
-						$("#UnstackWay").val(1)
-						$("#UnstackWay").attr("disabled", true);
-						form.render('select');
-
-						$('.DivLoadingArea').hide()
-
-						outFunction(data.SONo)
-					}
-
+					
+					//if(data.WareHouseName =="鎴愬搧搴�"){
+						outFunction(data.SONo);
+					// }else{
+					// 	outFunction2(data.SONo)
+					// }
 
 				} else if (obj.event === 'beiLiaoOutKu') {
 					if (orderType != "1") {
@@ -1427,6 +1390,7 @@
 
 			//閫夋嫨鍑哄簱鍙e脊绐楁柟娉�
 			function outFunction(soNo) {
+
 				layer.open({
 					type: 1,
 					title: '纭鍑哄簱鍙�',
@@ -1435,29 +1399,11 @@
 					area: ['350px', '285px'],
 					btn: ['纭畾', '鍙栨秷'],
 					yes: function (index, layero) {
-						var pa = $('#PickingArea').val();
-						console.log(pa)
+						
 						if (isChongFu == true) {
 							isChongFu = false;
-							if (pa == null) {
-								layer.msg("璇峰嬁閲嶅鐐瑰嚮", {
-									icon: 2,
-									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-								});
-								return;
-							}
-							// if ($('#UnstackWay').val() == '0') {
-							// 	if ($('#LoadingArea').val() == '') {
-							// 		layer.msg("璇烽�夋嫨瑁呰溅鍙�", {
-							// 			icon: 2,
-							// 			time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-							// 		});
-							// 		isChongFu = true;
-							// 		return;
-							// 	}
-							// }
-							console.log($("#PickingArea").val())
-							if ($("#PickingArea").val() == '') {
+							
+							if ($("#PickingArea").val() == '' || $('#PickingArea').val() == null) {
 								layer.msg("璇烽�夋嫨鍑哄簱鍙�", {
 									icon: 2,
 									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -1467,8 +1413,8 @@
 							}
 							var param = {
 								soNo: soNo,
-								unstackingMode: $('#UnstackWay').val(),
-								outMode: pa,
+								//unstackingMode: $('#UnstackWay').val(),
+								outMode: $("#PickingArea").val(),
 								//loadingAddre: $('#LoadingArea').val()
 							};
 							console.log(param);
@@ -1503,6 +1449,47 @@
 					}
 				});
 			}
+			
+			//涓嶉�夋嫨鍑哄簱鍙g殑寮圭獥鏂规硶
+			function outFunction2(soNo) {
+				layer.confirm('纭畾褰撳墠鍗曟嵁鍑哄簱鍚楋紵', function (index) {
+					
+					if (isChongFu == true) {
+						isChongFu = false;
+						
+						var param = {
+							soNo: soNo,
+						};
+						console.log(param);
+						sendData(IP + "/DownApi/IssueOutHouse", param, 'get', function (res) {
+							console.log(res);
+							if (res.code == 0) { //鎴愬姛
+								layer.msg(res.msg, {
+									icon: 1,
+									time: 3000 //1绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+								}, function () {
+									refreshTable();
+									isChongFu = true;
+								});
+							} else { //涓嶆垚鍔�
+								layer.msg(res.msg, {
+									icon: 2,
+									time: 3000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+								}, function () {
+									refreshTable();
+									isChongFu = true;
+								});
+							}
+							layer.close(index);
+						});
+					} else {
+						layer.msg("璇峰嬁閲嶅鐐瑰嚮", {
+							icon: 2,
+							time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+						});
+					}
+				});
+			}
 
 			//閫夋嫨鍑哄簱鍙e脊绐楁柟娉�
 			function beiLiaoOutFunction(soNo) {

--
Gitblit v1.8.0