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/ArrivalNotice.html |  114 ++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 92 insertions(+), 22 deletions(-)

diff --git a/HTML/views/ASNSetting/ArrivalNotice.html b/HTML/views/ASNSetting/ArrivalNotice.html
index 6190fca..461c73a 100644
--- a/HTML/views/ASNSetting/ArrivalNotice.html
+++ b/HTML/views/ASNSetting/ArrivalNotice.html
@@ -145,7 +145,22 @@
 							<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>鎼滅储
 						</button>
 					</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>
 					<!-- 缁存姢澶囨敞寮规 -->
 					<div class="layui-inline" id="divEditDemo" style="display: none; padding-top: 10px;">
 						<label class="layui-form-label">澶囨敞</label>
@@ -728,30 +743,78 @@
 
 						break;
 					case "check" :
-						// 浠g爜鍖哄煙
-						layer.confirm('纭畾澶嶆牳姝ゅ崟鎹悧锛�', function(index) { 	
-							// 浠g爜鍖哄煙
-							var param = {
-								Id:data.Id,
-							};
-							sendData(IP + "/UpApi/FinishAsn", 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 (doing== true) {
+									doing= false;
+									
+									if($('#admin').val()==''){
+										layer.msg("璇疯緭鍏ヨ处鍙�", {
+											icon: 2,
+											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+										});
+										doing= true;
+										return;
+									}
+									if($("#password").val() == '')
+									{
+										layer.msg("璇疯緭鍏ュ瘑鐮�", {
+											icon: 2,
+											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+										});
+										doing= true;
+										return;
+									}
+									
+									var param = {
+										Id:data.Id,
+										UserNo:$('#admin').val(),
+										Password:$('#password').val(),
+									};
+									console.log(param);
+									sendData(IP + "/UpApi/FinishAsn", param, 'post', function (res) {
+										if (res.code == 0) { //鎴愬姛
+											layer.msg(res.msg, {
+												icon: 1,
+												time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											}, function () {
+												refreshTable();
+												$('#admin').val("");
+												$('#password').val("");
+												doing = true
+											});
+										} else { //涓嶆垚鍔�
+											layer.msg(res.msg, {
+												icon: 2,
+												time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+											}, function () { 
+												doing = 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 });
+									});
 								}
-							});
-						});
-						
+								
+							}
+						}); 
+												
 						break;
 					case "chexiao" :
 						layer.open({
@@ -846,6 +909,10 @@
 			//鏄庣粏琛ㄦ搷浣滄爮浜嬩欢
 			table.on('tool(LAY-app-content-list2)', function (obj) {
 				var data = obj.data;
+				console.log("data.supplierlot:"+data.SupplierLot);
+				var lotno = data.LotNo;
+				
+				
 				var id = data.Id;
 				switch(obj.event)
 				{
@@ -874,6 +941,7 @@
 								}
 							});
 						});	
+						
 
 						break;
 					case "Addlabel" :
@@ -892,11 +960,13 @@
 								iframeWindow.layui.form.on('submit('+ submitID +')', function(data){
 									var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈�
 									console.log(field);
+									
 									//鎻愪氦 Ajax 鎴愬姛鍚庯紝闈欐�佹洿鏂拌〃鏍间腑鐨勬暟鎹�
 									//"&Level="+field.level+"&Type="+field.type+"&BoxType="+field.boxType+"&Qty="+field.qty+
 									var str = "Id="+id+"&IsReset="+field.reset+"&ArriveQty="+field.arriveQty
 									+"&ProductionTime="+field.productionTime+"&ExpirationTime="+field.expirationTime
-									+"&StoreTime="+field.storeTime+"&SupplierLot="+field.SupplierLot;
+									+"&StoreTime="+field.storeTime+"&SupplierLot="+field.SupplierLot +"&Lotno="+lotno;
+									console.log("field.lotno:"+lotno);
 									
 									layer.open({
 										type: 2,

--
Gitblit v1.8.0