From 157abc191c34e57c1b958ae74fc3de6518ca8a30 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期五, 28 二月 2025 11:06:36 +0800
Subject: [PATCH] 修改客户需求

---
 HTML/views/SOSetting/ExportNotice.html |  763 +++++++++++++++++++---------------------------------------
 1 files changed, 254 insertions(+), 509 deletions(-)

diff --git a/HTML/views/SOSetting/ExportNotice.html b/HTML/views/SOSetting/ExportNotice.html
index 5706555..8bf72a2 100644
--- a/HTML/views/SOSetting/ExportNotice.html
+++ b/HTML/views/SOSetting/ExportNotice.html
@@ -96,9 +96,9 @@
 							</div>
 						</div>
 						<div class="layui-inline">
-							<label class="layui-form-label">鎵规鍙�</label>
+							<label class="layui-form-label">杩涘巶缂栧彿</label>
 							<div class="layui-input-inline">
-								<input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�"
+								<input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿"
 									autocomplete="off" class="layui-input">
 							</div>
 						</div>
@@ -155,7 +155,6 @@
 										<option value="1">1</option>
 										<option value="2">2</option>
 										<option value="3">3</option>
-										<option value="4">4</option>
 									</select>
 								</div>
 							</div>							
@@ -164,11 +163,30 @@
 								<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="033">033</option>
+										<option value="039">039</option>
+										<option value="044">044</option>
+										<option value="051">051</option>
+										<option value="059">059</option>
+										<option value="440">440</option>
+										<option value="443">443</option>
 									</select>
+								</div>
+							</div>
+						</div>
+						<div class="layui-inline" id="divFinish" style="display: none; padding-top: 10px;">
+							<div class="layui-inline">
+								<label class="layui-form-label">璐﹀彿</label>
+								<div class="layui-input-inline" style="width: 220px;">
+									<input type="text" id="admin" name="admin" placeholder="璐﹀彿" autocomplete="off"
+									class="layui-input">
+								</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;">
+									<input type="password" id="password" name="password" placeholder="瀵嗙爜" autocomplete="off"
+									class="layui-input">
 								</div>
 							</div>
 						</div>
@@ -336,9 +354,11 @@
 								var html = ''; 
 								if(d.IsWave == '0'){
 									if(d.Status == '0' || d.Status == '1' ){
-										html += `<a class="layui-btn layui-btn-normal layui-btn-xs zifenClass" lay-event="auto"> 
-													<i class="layui-icon layui-icon-ok"></i>鑷姩鍒嗛厤
-												</a>`;
+										if(d.Type != "8" && d.Type != "2" && d.Type != "3") {
+											html += `<a class="layui-btn layui-btn-normal layui-btn-xs zifenClass" lay-event="auto"> 
+												<i class="layui-icon layui-icon-ok"></i>鑷姩鍒嗛厤
+											</a>`;
+										}
 									}
 									if(d.Status == '0' && d.Origin == 'WMS'){
 										html += `<a class="layui-btn layui-btn-normal layui-btn-xs uptClass" lay-event="edit">
@@ -353,7 +373,7 @@
 													<i class="layui-icon layui-icon-delete"></i>鍙栨秷鍒嗛厤
 												</a>`;
 									}
-									if( d.Status == '2' || d.Status == '3'){
+									if( d.Status == '1' ||d.Status == '2' || d.Status == '3'|| (d.Status == '4' && d.Type == "1")){
 										html += `<a class="layui-btn layui-btn-normal layui-btn-xs outClass" lay-event="outKu">
 													<i class="layui-icon layui-icon-ok"></i>鍑哄簱
 												</a>`;
@@ -384,7 +404,11 @@
 					<script type="text/html" id="table-content-list2">
 						{{# function GetBtn2(d){
 								var html = '';
-								
+								if((d.StatusZ == "2" || d.StatusZ == "3"|| d.StatusZ == "4") && (d.Type == "1" || d.Type == "2" || d.Type == "3") && d.IsWave == "0"){
+									html += `<a class="layui-btn layui-btn-normal layui-btn-xs shoufenClass" lay-event="wan">
+										<i class="layui-icon layui-icon-ok"></i>鎵嬪姩鍒嗛厤
+									</a>`;
+								}
 								if((d.Status == "0" ||d.Status == "1") && d.Qty > d.AllotQty && d.IsWave == "0"){ 
 									html += `<a class="layui-btn layui-btn-normal layui-btn-xs shoufenClass" lay-event="wan">
 												<i class="layui-icon layui-icon-ok"></i>鎵嬪姩鍒嗛厤
@@ -473,14 +497,14 @@
 				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: 'Type',title: '鍗曟嵁绫诲瀷',align: 'center',width: 124,templet:'#templetType'},
 							{field: 'Status',title: '鎵ц鐘舵��', align: 'center',templet: '#templetStatus'},
 							{field: 'LogisticsName',title: '鎵胯繍鍟�',align: 'center'},
 							{field: 'CustomerName',title: '瀹㈡埛鍚嶇О',align: 'center'},
-							{field: 'LotNo',title: '鎵规鍙�',align: 'center'},
+							{field: 'LotNo',title: '杩涘巶缂栧彿',align: 'center'},
 							{field: 'LotNoText',title: '鎵规鎻忚堪',align: 'center'},							
 							{field: 'IsDespatch',title: '鏄惁鍙戣繍',align: 'center',templet: '#templetIsDespatch'},
-							{field: 'SupplierLot',title: '渚涜揣鎵规',align: 'center'},
+							{field: 'SupplierLot',title: '鍘熷巶鎵瑰彿',align: 'center'},
 							{field: 'Origin',title: '鏉ユ簮',align: 'center'},
 							{field: 'Demo',title: '澶囨敞',align: 'center',width: 180},
 							{field: 'CreateUserName',title: '鍒涘缓浜�',align: 'center'},
@@ -494,208 +518,7 @@
 				var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜
 				//#endregion
 				function refreshTable() {
-					//#region 鍘熷闈炶嚜瀹氫箟鍒�
-					// var param = {
-					// 	No: $("#No").val(),
-					// 	Type: $("#Type").val(),
-					// 	Status: $("#Status").val(),
-					// 	LotNo: $("#LotNo").val(),
-					// 	LogisticsId: parseInt($("#LogisticsId").val()),
-					// 	IsWave: $("#IsWave").val(),
-					// 	IsDespatch: $("#IsDespatch").val(),
-					// 	// WaveNo: $("#WaveNo").val(),
-					// }; 
-					 
-					// table.render({
-					// 	elem: '#LAY-app-content-list',
-					// 	url: IP+"/BllSo/GetExportNoticeList",
-					// 	method: 'POST',
-					//     height: h1 ,//'full-'+hei1
-					// 	id: 'LAY-app-content-list',
-					// 	where: param,
-					// 	contentType: 'application/json',
-					// 	headers:{ToKen:$.cookie('token')},
-					// 	page: true,
-					// 	defaultToolbar:  ['filter'], //'print', 'exports'
-					// 	even: true,
-					// 	limit: pageCnt,
-					// 	limits: pageLimits,
-					// 	cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
-					// 	even:true,
-					// 	done: function(res){ 
-					// 		initMenu(); 
-					// 		var soCode = "res.data[0].SONo";
-					// 		if (res.data.length != 0) {
-					// 			soCode = res.data[0].SONo;
-					// 		}
-					// 		refreshTablemx(soCode)
-					// 	},
-					// 	cols: [
-					// 	[   {
-					// 			title: '搴忓彿',
-					// 			type: 'numbers',
-					// 			width: 65,
-					// 			fixed: 'left',
-					// 		},{
-					// 			field: 'SONo',
-					// 			title: '鍑哄簱鍗曞彿',
-					// 			align: 'center',
-					// 			fixed: 'left',
-					// 			width: 165,
-					// 		},{
-					// 			field: 'Type',
-					// 			title: '鍗曟嵁绫诲瀷',
-					// 			align: 'center',
-					// 			// width: 150,
-					// 			templet:function(d){
-					// 				switch (d.Type) {
-					// 					case "0":
-					// 						return "鏍囧噯閿�鍞嚭搴�";
-					// 					case "1":
-					// 						return "闈炴爣鍑嗛攢鍞嚭搴�";
-					// 					case "2":
-					// 						return "鏍囧噯璋冩嫧鍑哄簱";
-					// 					case "3":
-					// 						return "闈炴爣鍑嗚皟鎷ㄥ嚭搴�";
-					// 					default:
-					// 						return "";
-					// 				}
-					// 			}
-					// 		},{
-					// 			field: 'Status',
-					// 			title: '鎵ц鐘舵��', 
-					// 			align: 'center',
-					// 			// width: 130,
-					// 			templet: function(d){
-					// 				switch (d.Status) {
-					// 					case "0":
-					// 						return `<button class="layui-btn layui-btn-radius layui-btn-xs">绛夊緟鎵ц</button>`;
-					// 					case "1":
-					// 						return `<button class="layui-btn layui-btn-radius layui-btn-warm layui-btn-xs">閮ㄥ垎鍒嗛厤</button>`;
-					// 					case "2":
-					// 						return `<button class="layui-btn layui-btn-radius layui-btn-warm layui-btn-xs">宸插垎閰�</button>`;
-					// 					case "3":
-					// 						return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">姝e湪鎵ц</button>`;
-					// 					case "4":
-					// 						return `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">鎵ц瀹屾瘯</button>`;
-					// 					case "5":
-					// 						return `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">涓婁紶瀹屾瘯</button>`;
-					// 					default:
-					// 						return "";
-					// 				}
-					// 			}
-					// 		},{
-					// 			field: 'LogisticsName',
-					// 			title: '鎵胯繍鍟�',
-					// 			align: 'center',
-					// 			// minWidth: 150
-					// 		},{
-					// 			field: 'CustomerName',
-					// 			title: '瀹㈡埛鍚嶇О',
-					// 			align: 'center',
-					// 			// minwidth: 130
-					// 		},{
-					// 			field: 'LotNo',
-					// 			title: '鎵规鍙�',
-					// 			align: 'center',
-					// 			// width: 180,
-					// 			hide:true
-					// 		},{
-					// 			field: 'LotNoText',
-					// 			title: '鎵规鎻忚堪',
-					// 			align: 'center',
-					// 			// width: 180,
-					// 			hide:true
-					// 		},
-					// 		// {
-					// 		// 	field: 'IsWave',
-					// 		// 	title: '鐢熸垚娉㈡',
-					// 		// 	align: 'center',
-					// 		// 	width: 95,
-					// 		// 	templet: function (d) {
-					// 		// 		switch (d.IsWave) {
-					// 		// 			case "0":
-					// 		// 				return "鍚�"; 
-					// 		// 			case "1":
-					// 		// 				return "鏄�"; 
-					// 		// 			default:
-					// 		// 				return ""; 
-					// 		// 		}
-									
-					// 		// 	},
-					// 		// },
-					// 		// {
-					// 		// 	field: 'WaveNo',
-					// 		// 	title: '娉㈡鍗曞彿',
-					// 		// 	align: 'center',
-					// 		// 	width: 170
-					// 		// },
-					// 		{
-					// 			field: 'IsDespatch',
-					// 			title: '鏄惁鍙戣繍',
-					// 			align: 'center',
-					// 			// width: 95,
-					// 			templet: function (d) {
-					// 				switch (d.IsDespatch) {
-					// 					case "0":
-					// 						return "鍚�"; 
-					// 					case "1":
-					// 						return "鏄�"; 
-					// 					default:
-					// 						return ""; 
-					// 				}
-									
-					// 			},
-					// 		},{
-					// 			field: 'SupplierLot',
-					// 			title: '渚涜揣鎵规',
-					// 			align: 'center',
-					// 			// width: 100,
-					// 			hide:true
-					// 		},{
-					// 			field: 'Origin',
-					// 			title: '鏉ユ簮',
-					// 			align: 'center',
-					// 			// width: 100
-					// 		},{
-					// 			field: 'CreateUserName',
-					// 			title: '鍒涘缓浜�',
-					// 			align: 'center',
-					// 			// width: 120,
-					// 		},{
-					// 			field: 'CreateTime',
-					// 			title: '鍒涘缓鏃堕棿',
-					// 			align: 'center',
-					// 			// width: 160,
-					// 			templet: function(d) {
-					// 				return formatDate(d.CreateTime);
-					// 			},
-					// 		},{
-					// 			field: 'UpdateUserName',
-					// 			title: '淇敼浜�',
-					// 			align: 'center',
-					// 			// width: 120,
-					// 			hide:true
-					// 		},{
-					// 			field: 'UpdateTime',
-					// 			title: '淇敼鏃堕棿',
-					// 			align: 'center',
-					// 			// width: 160,
-					// 			templet: function(d) {
-					// 				return formatDate(d.UpdateTime);
-					// 			},
-					// 			hide:true
-					// 		},{
-					// 			title: '鎿嶄綔',
-					// 			fixed: 'right',
-					// 			align: 'center',
-					// 			toolbar: '#table-content-list',
-					// 			// width: 240
-					// 		}]
-					// 	]
-					// });
-					//#endregion
-
+					
 					//#region 鑷畾涔夎〃澶�
 					var colsJson
 					var param1={
@@ -755,201 +578,29 @@
 				//娓叉煋鍑哄簱鍗曟槑缁�
 				//#region 鑷畾涔夎〃澶�
 				var DetailColsArr = [[
-							{field: '',title: '搴忓彿',type:'numbers',width: 50,align: 'center',fixed: 'left', "disabled": true}, 
-							{field: 'SONo',title: '鍑哄簱鍗曞彿',align: 'center',fixed: 'left',width:165 }, 
-							{field: 'SkuNo',title: '鐗╂枡缂栫爜',align: 'center', width: 130}, 
-							{field: 'SkuName',title: '鐗╂枡鍚嶇О',align: 'center', width: 152}, 
-							{field: 'Standard',title: '鐗╂枡瑙勬牸',align: 'center', width: 270}, 
-							{field: 'LotNo',title: '鎵规鍙�',align: 'center',width: 150}, 
-							{field: 'Qty',title: '璁″垝鏁伴噺',align: 'center',width: 100},
-							{field: 'AllotQty',title: '鍒嗛厤鏁伴噺',align: 'center',width: 100}, 
-							{field: 'FactQty',title: '涓嬫灦鏁伴噺',align: 'center', width: 100}, 
-							{field: 'CompleteQty',title: '鎷h揣鏁伴噺',align: 'center', width: 100}, 
-							{field: 'IsBale',title: '鏄惁瑁瑰寘',align: 'center',templet: '#templetIsBale',width: 90},
-							{field: 'IsBelt',title: '鏄惁鎵撳甫',align: 'center',templet: '#templetIsBelt',width: 90}, 
-							{field: 'LotText',title: '鎵规鎻忚堪',align: 'center', width: 100}, 
-							{field: 'PackagName',title: '鍖呰鍚嶇О',align: 'center', width: 120}, 
-							{field: 'SupplierLot',title: '渚涜揣鎵规',align: 'center', width: 120},							
-							{field: 'Price',title: '鍗曚环', align: 'center', width: 80},
-							{field: 'Money',title: '鎬婚噾棰�', align: 'center', width: 90}, 
-							{field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 100,align: 'left',toolbar: '#table-content-list2', "disabled": true}
-						]];
+					{field: '',title: '搴忓彿',type:'numbers',width: 50,align: 'center',fixed: 'left', "disabled": true}, 
+					{field: 'SONo',title: '鍑哄簱鍗曞彿',align: 'center',fixed: 'left',width:165 }, 
+					{field: 'SkuNo',title: '鐗╂枡缂栫爜',align: 'center', width: 130}, 
+					{field: 'SkuName',title: '鐗╂枡鍚嶇О',align: 'center', width: 152}, 
+					{field: 'Standard',title: '鐗╂枡瑙勬牸',align: 'center', width: 270}, 
+					{field: 'LotNo',title: '杩涘巶缂栧彿',align: 'center',width: 150}, 
+					{field: 'Qty',title: '璁″垝鏁伴噺',align: 'center',width: 100},
+					{field: 'AllotQty',title: '鍒嗛厤鏁伴噺',align: 'center',width: 100}, 
+					{field: 'FactQty',title: '涓嬫灦鏁伴噺',align: 'center', width: 100}, 
+					{field: 'CompleteQty',title: '鎷h揣鏁伴噺',align: 'center', width: 100}, 
+					{field: 'IsBale',title: '鏄惁瑁瑰寘',align: 'center',templet: '#templetIsBale',width: 90},
+					{field: 'IsBelt',title: '鏄惁鎵撳甫',align: 'center',templet: '#templetIsBelt',width: 90}, 
+					{field: 'LotText',title: '鎵规鎻忚堪',align: 'center', width: 100}, 
+					{field: 'PackagName',title: '鍖呰鍚嶇О',align: 'center', width: 120}, 
+					{field: 'SupplierLot',title: '鍘熷巶鎵瑰彿',align: 'center', width: 120},							
+					{field: 'Price',title: '鍗曚环', align: 'center', width: 80},
+					{field: 'Money',title: '鎬婚噾棰�', align: 'center', width: 90}, 
+					{field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 100,align: 'left',toolbar: '#table-content-list2', "disabled": true}
+				]];
 				var DetailColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜
 				//#endregion
 				function refreshTablemx(soNo) {
-					//#region 鍘熷闈炶嚜瀹氫箟鍒�
-					// var param = {
-					// 	SoNo: soNo,
-					// }; 
-					// table.render({
-					// 	elem: '#LAY-app-content-list2',
-					// 	url: IP + "/BllSo/GetExportNoticeDetailList",
-					// 	method: 'POST',
-					// 	height: h2,
-					// 	id: 'LAY-app-content-list2',
-					// 	where: param,
-					// 	contentType: 'application/json',
-					// 	headers:{ToKen:$.cookie('token')},
-					// 	toolbar:'#toolbarDemo',
-                    // 	defaultToolbar:  ['print'], //'print', 'exports'
-					// 	page: true, 
-					// 	limit: pageCnt,
-					// 	limits: pageLimits,
-					// 	cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
-					// 	done: function(){ 
-					// 		initMenu();
-					// 	}, 
-					// 	cols: [
-					// 		[{
-					// 			title: '搴忓彿',
-					// 			type: 'numbers',
-					// 			width: 65,
-					// 			fixed: 'left',
-					// 		}, {
-					// 			field: 'SONo',
-					// 			title: '鍑哄簱鍗曞彿',
-					// 			align: 'center',
-					// 			fixed: 'left',
-					// 			width:	165 
-					// 		}, {
-					// 			field: 'SkuNo',
-					// 			title: '鐗╂枡缂栫爜',
-					// 			align: 'center', 
-					// 			width: 130
-					// 		}, {
-					// 			field: 'SkuName',
-					// 			title: '鐗╂枡鍚嶇О',
-					// 			align: 'center', 
-					// 			width: 152
-					// 		}, {
-					// 			field: 'Standard',
-					// 			title: '鐗╂枡瑙勬牸',
-					// 			align: 'center', 
-					// 			width: 270
-					// 		}, {
-					// 			field: 'LotNo',
-					// 			title: '鎵规鍙�',
-					// 			align: 'center', 
-					// 			width: 150
-					// 		}, {
-					// 			field: 'Qty',
-					// 			title: '璁″垝鏁伴噺',
-					// 			align: 'center',  
-					// 			width: 100
-					// 		}, {
-					// 			field: 'AllotQty',
-					// 			title: '鍒嗛厤鏁伴噺',
-					// 			align: 'center',
-					// 			width: 100
-					// 		}, {
-					// 			field: 'FactQty',
-					// 			title: '涓嬫灦鏁伴噺',
-					// 			align: 'center', 
-					// 			width: 100
-					// 		}, {
-					// 			field: 'CompleteQty',
-					// 			title: '鎷h揣鏁伴噺',
-					// 			align: 'center', 
-					// 			width: 100
-					// 		}, {
-					// 			field: 'IsBale',
-					// 			title: '鏄惁瑁瑰寘',
-					// 			align: 'center',
-					// 			templet: function (d) {
-					// 				console.log(d);
-					// 				switch (d.IsBale) {
-					// 					case "0":
-					// 						return "涓嶈9鍖�"; 
-					// 					case "1":
-					// 						return "瑁瑰寘"; 
-					// 					default:
-					// 						return ""; 
-					// 				}
-									
-					// 			},
-					// 			width: 90,
-					// 			hide:true, 
-					// 		}, {
-					// 			field: 'IsBelt',
-					// 			title: '鏄惁鎵撳甫',
-					// 			align: 'center',
-					// 			templet: function (d) {
-					// 				switch (d.IsBelt) {
-					// 					case "0":
-					// 						return "涓嶆墦甯�"; 
-					// 					case "1":
-					// 						return "鎵撳甫"; 
-					// 					default:
-					// 						return ""; 
-					// 				}
-									
-					// 			},
-					// 			width: 90,
-					// 			hide:true, 
-					// 		}, {
-					// 			field: 'LotText',
-					// 			title: '鎵规鎻忚堪',
-					// 			align: 'center', 
-					// 			width: 100
-					// 		}, {
-					// 			field: 'PackagName',
-					// 			title: '鍖呰鍚嶇О',
-					// 			align: 'center', 
-					// 			width: 120
-					// 		}, {
-					// 			field: 'SupplierLot',
-					// 			title: '渚涜揣鎵规',
-					// 			align: 'center', 
-					// 			width: 120
-					// 		}, 
-					// 		// {
-					// 		// 	field: 'IsWave',
-					// 		// 	title: '鐢熸垚娉㈡',
-					// 		// 	align: 'center',
-					// 		// 	width: 90,
-					// 		// 	templet: function (d) {
-					// 		// 		switch (d.IsWave) {
-					// 		// 			case "0":
-					// 		// 				return "鍚�"; 
-					// 		// 			case "1":
-					// 		// 				return "鏄�"; 
-					// 		// 			default:
-					// 		// 				return ""; 
-					// 		// 		}
-									
-					// 		// 	}, 
-					// 		// 	hide:true,
-					// 		// }, 
-					// 		// {
-					// 		// 	field: 'WaveNo',
-					// 		// 	title: '娉㈡鍗曞彿',
-					// 		// 	align: 'center', 
-					// 		// 	width: 170,
-					// 		// 	hide:true
-					// 		// }, 
-					// 		{
-					// 			field: 'Price',
-					// 			title: '鍗曚环', 
-					// 			align: 'center', 
-					// 			width: 80,
-					// 			hide:true
-					// 		}, {
-					// 			field: 'Money',
-					// 			title: '鎬婚噾棰�', 
-					// 			align: 'center', 
-					// 			width: 90,
-					// 			hide:true
-					// 		}, {
-					// 			title: '鎿嶄綔',
-					// 			fixed: 'right',
-					// 			width: 180,
-					// 			align: 'center',
-					// 			toolbar: '#table-content-list2'
-					// 		}]
-					// 	]
-					// });
-					//#endregion
-
+					
 					//#region 鑷畾涔夎〃澶�
 					var colsJson2
 					var param1={
@@ -1113,6 +764,7 @@
 					console.log(data);
 					Id = data.Id;
 					SoNo = data.SONo;
+					var orderType=data.Type//鍗曟嵁绫诲瀷
 					if (obj.event === 'delete') {//鍒犻櫎
 						layer.confirm('纭畾鍒犻櫎姝ゅ崟鎹悧锛�', function(index) {
 							var param = {
@@ -1224,91 +876,52 @@
 							maxmin: true,
 							area: ['1200px', '90%'],
 						});
-					}else if(obj.event === 'outKu'){	
-						$("#UnstackWay option[value='0']").attr("selected","selected");
-						$("#LoadingArea option[value='']").attr("selected","selected");
-						$("#PickingArea option[value='']").attr("selected","selected");
-						form.render('select'); 					
+					}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
 						};
-						sendData(IP + "/BllSo/IsNeedUnpack", param, 'get', function(res) {
-							if (res.code == 0) { //鎴愬姛
-								if(res.data=="1"){
-									isNeedUnpack='1'
-									$('.DivPickingArea2').show()//.attr("style", "display:block")
-								}else{
-									isNeedUnpack='0'
-									$('.DivPickingArea2').hide()//.attr("style", "display:none")									
-								}	
-								if($('#UnstackWay').val()=='1'){
-									$('.DivPickingArea2').show()//.attr("style", "display:block")
-								}							
-							} else { //涓嶆垚鍔�
-								layer.msg(res.msg, {
-									icon: 2,
-									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-								}, function() {
-									return;
-								});
-							}
-						});
-						layer.open({
-							type: 1,
-							title: '纭鍑哄簱鍙�',
-							content: $('#divPickingArea'),
-							maxmin: true,
-							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绉掞級
-										});
-									}
-									var param = {
-										soNo: data.SONo, 
-										unstackingMode:$('#UnstackWay').val(),
-										outMode: pa,
-										loadingAddre:$('#LoadingArea').val()
-									};
-									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("璇峰嬁閲嶅鐐瑰嚮", {
+						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)
+						}
+						
+						
 					}else if(obj.event === 'xml'){//缂栬緫
 						layer.confirm('纭畾瑕佸皢閫変腑鐨勫崟鎹笂浼犲悧锛�', function() {
 							if (isChongFu== true) {
@@ -1381,31 +994,163 @@
 							}
 						}); 
 					}else if(obj.event === 'check'){//澶嶆牳
-						// 浠g爜鍖哄煙
-						layer.confirm('纭畾澶嶆牳姝ゅ崟鎹悧锛�', function(index) { 	
-							var param = {
-								Id:data.Id,
-							};
-							sendData(IP + "/UpApi/FinishExportNotice", param, 'post', function (res) {
-								if (res.code == 0) { //鎴愬姛
-									layer.msg(res.msg, {
-										icon: 1,
-										time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-									}, function () {
-										refreshTable();
-										doing = true
+						
+						layer.open({
+							type: 1,
+							title: '澶嶆牳纭',
+							content: $('#divFinish'),
+							maxmin: true,
+							area: ['350px','215px'],
+							btn: ['纭畾', '鍙栨秷'],
+							yes: function(index, layero) {
+								var pa = $('#PickingArea').val();
+								console.log(pa)
+								if (isChongFu== true) {
+									isChongFu= false;
+									
+									if($('#admin').val()==''){
+										layer.msg("璇疯緭鍏ヨ处鍙�", {
+											icon: 2,
+											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+										});
+										isChongFu= true;
+										return;
+									}
+									if($("#password").val() == '')
+									{
+										layer.msg("璇疯緭鍏ュ瘑鐮�", {
+											icon: 2,
+											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+										});
+										isChongFu= true;
+										return;
+									}
+									
+									var param = {
+										Id:data.Id,
+										UserNo:$('#admin').val(),
+										Password:$('#password').val(),
+									};
+									console.log(param);
+									sendData(IP + "/UpApi/FinishExportNotice", param, 'post', function (res) {
+										if (res.code == 0) { //鎴愬姛
+											layer.msg(res.msg, {
+												icon: 1,
+												time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											}, function () {
+												refreshTable();
+												$('#admin').val("");
+												$('#password').val("");
+												isChongFu = true
+											});
+										} else { //涓嶆垚鍔�
+											layer.msg(res.msg, {
+												icon: 2,
+												time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											}, function () { 
+												isChongFu = true ;
+												$('#admin').val("");
+												$('#password').val("")
+											});
+										}
+										layer.close(index);
 									});
-								} else { //涓嶆垚鍔�
-									layer.msg(res.msg, {
+									
+									
+								}else{
+									layer.msg("璇峰嬁閲嶅鐐瑰嚮", {
 										icon: 2,
 										time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-									}, function () { doing = true });
+									});
 								}
-							});
+								
+							}
 						});
 					}
 				});
 				
+				//閫夋嫨鍑哄簱鍙e脊绐楁柟娉�
+				function outFunction(soNo){
+					layer.open({
+						type: 1,
+						title: '纭鍑哄簱鍙�',
+						content: $('#divPickingArea'),
+						maxmin: true,
+						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;
+									}
+								}
+								if(isNeedUnpack == 1){
+								console.log($("#PickingArea").val())
+								if($("#PickingArea").val() == '')
+								{
+									layer.msg("璇烽�夋嫨鍑哄簱鍙�", {
+										icon: 2,
+										time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+									});
+									isChongFu= true;
+									return;
+								}}
+								var param = {
+									soNo: soNo, 
+									unstackingMode:$('#UnstackWay').val(),
+									outMode: pa,
+									loadingAddre:$('#LoadingArea').val()
+								};
+								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绉掞級
+								});
+							}
+							
+						}
+					}); 
+				}
+
 				table.on('tool(LAY-app-content-list2)', function(obj) {
 					var data = obj.data;
 					var id = data.Id;
@@ -1501,15 +1246,15 @@
 				form.on('select(UnstackWay)',function(data){
 					var value = data.value;
 					if(value==0){
-						$('.DivLoadingArea').show()//.attr("style", "display:block")
+						$('.DivLoadingArea').show()
 						if(isNeedUnpack=='0'){
-							$('.DivPickingArea2').hide()//.attr("style", "display:none")
+							$('.DivPickingArea2').hide()
 						}else{
-							$('.DivPickingArea2').show()//.attr("style", "display:block")
+							$('.DivPickingArea2').show()
 						}						
 					}else{						
-						$('.DivLoadingArea').hide()//.attr("style", "display:none")
-						$('.DivPickingArea2').show()//.attr("style", "display:block")					
+						$('.DivLoadingArea').hide()
+						$('.DivPickingArea2').show()				
 					}    			
 				});
 

--
Gitblit v1.8.0