From 27daf7546721754a451b5df16bb716c1cbb33458 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期六, 19 十月 2024 19:06:43 +0800
Subject: [PATCH] 修改问题

---
 Wms/Wms/Controllers/UpApiController.cs             |    8 
 Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs      |   20 ++
 Wms/WMS.IBLL/IBllAsnServer/IArrivalNoticeServer.cs |    4 
 HTML/views/index.html                              |   25 +++
 Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs    |   44 +++++-
 Wms/WMS.IBLL/IBllSoServer/IExportNoticeServer.cs   |    2 
 HTML/views/ASNSetting/ArrivalNotice.html           |  105 ++++++++++++---
 Wms/Model/ModelVm/IdVm.cs                          |   11 +
 Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDto.cs   |   21 +++
 HTML/views/SOSetting/ExportNotice.html             |  100 +++++++++++--
 Pda/View/SoSetting/SampleOut.html                  |   23 +-
 HTML/views/ASNSetting/LabelPrintSelect.html        |    6 
 12 files changed, 301 insertions(+), 68 deletions(-)

diff --git a/HTML/views/ASNSetting/ArrivalNotice.html b/HTML/views/ASNSetting/ArrivalNotice.html
index 6190fca..9bf5690 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="text" 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({
diff --git a/HTML/views/ASNSetting/LabelPrintSelect.html b/HTML/views/ASNSetting/LabelPrintSelect.html
index 09fa573..6bf016f 100644
--- a/HTML/views/ASNSetting/LabelPrintSelect.html
+++ b/HTML/views/ASNSetting/LabelPrintSelect.html
@@ -141,7 +141,11 @@
 					 
 					synData(IP + "/BllAsn/GetAsnDetailQtyList", param , 'get', function (res) {
 						if (res.code == 0) { //鎴愬姛  
-							$("#arriveQty").val(res.data);
+							$("#arriveQty").val(res.data.Qty);
+							$("#productionTime").val(res.data.ProductionTime);
+							$("#expirationTime").val(res.data.ExpirationTime);
+							$("#storeTime").val(res.data.StoreTime);
+							console.log(res.data);
 						} else { //涓嶆垚鍔�
 							layer.msg(res.msg, {
 								icon: 2,
diff --git a/HTML/views/SOSetting/ExportNotice.html b/HTML/views/SOSetting/ExportNotice.html
index 7934f3e..cc00349 100644
--- a/HTML/views/SOSetting/ExportNotice.html
+++ b/HTML/views/SOSetting/ExportNotice.html
@@ -173,6 +173,22 @@
 								</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="text" 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>
@@ -977,27 +993,77 @@
 							}
 						}); 
 					}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 });
+									});
 								}
-							});
+								
+							}
 						});
 					}
 				});
diff --git a/HTML/views/index.html b/HTML/views/index.html
index ba720fe..8238ecd 100644
--- a/HTML/views/index.html
+++ b/HTML/views/index.html
@@ -136,6 +136,31 @@
 				}else{
 					$("#token").text($.cookie('token'));
 				}				
+
+				var lastTime = new Date().getTime();
+				var currentTime = new Date().getTime();
+				var timeOut = 1*5*1000;
+				$(function () {
+					$(document).mouseover(function () {
+						lastTime = new Date().getTime();
+					})
+				});
+				function testTime() {
+					// console.log("璁℃椂锛�"+new Date().getTime());
+					console.log("lastTime锛�"+lastTime);
+					//console.log("currentTime锛�"+currentTime);
+
+					//console.log("lastTime - currentTime锛�"+lastTime - currentTime);
+					
+					currentTime = new Date().getTime();
+					if(currentTime - lastTime > timeOut){
+						console.log("瓒呮椂");
+						location.href = "Login.html";
+					}
+				}
+
+				window.setInterval(testTime,1000);
+
 				var element = layui.element; 
 				 
 				var xml = '';
diff --git a/Pda/View/SoSetting/SampleOut.html b/Pda/View/SoSetting/SampleOut.html
index 8ed7e48..2602607 100644
--- a/Pda/View/SoSetting/SampleOut.html
+++ b/Pda/View/SoSetting/SampleOut.html
@@ -169,12 +169,13 @@
 				</ul>
 			</div>
 
-			<ul>
+			<!-- <ul>
                 <li id="option1">鏍囩</li>
                 <li id="option2">鏁伴噺</li>
-            </ul>
-
-            <br />
+            </ul> -->
+			<button id="option1" class="layout-btn" type="button">鏍囩</button>
+            <button id="option2" class="layout-btn" type="button">鏁伴噺</button>
+            <br /><br />
 
 			<!-- 鏈夌爜 -->
 			<div id="content1">
@@ -560,18 +561,18 @@
             
             $('#kuneiQty').hide();
 
-			$('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
-			$('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //榛樿棰滆壊
+			$('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
+			$('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //榛樿棰滆壊
 			$('#content2').hide();
 			$(document).ready(function () {
 				$('#option1').click(function () {
-					// qingkong();
+					// qingkong();aqua
 					xianshiyemian = 0;
 					$('#content1').show();
-					$('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
+					$('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
 
 					$('#content2').hide();
-					$('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //榛樿棰滆壊
+					$('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //榛樿棰滆壊
 					$("#palletNo").focus();//鍏夋爣榛樿閫変腑
 				});
 
@@ -579,10 +580,10 @@
 					// qingkong();
 					xianshiyemian = 1;
 					$('#content1').hide();
-					$('#option1').attr("style", "background-color: #999;width: 45.77%;float: left;text-align: center;"); //榛樿棰滆壊
+					$('#option1').attr("style", "background-color: #999;width: 50%;float: left;text-align: center;"); //榛樿棰滆壊
 
 					$('#content2').show();
-					$('#option2').attr("style", "background-color: aqua;width: 45.77%;float: right;text-align: center;"); //閫変腑鍚庨鑹�
+					$('#option2').attr("style", "background-color: red;width: 50%;float: right;text-align: center;"); //閫変腑鍚庨鑹�
 					$("#palletNo2").focus();//鍏夋爣榛樿閫変腑
 				});
 			});
diff --git a/Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDto.cs b/Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDto.cs
index 824d16f..e2fc37a 100644
--- a/Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDto.cs
+++ b/Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDto.cs
@@ -99,4 +99,25 @@
 
         public string CheckUserName { get; set; }
     }
+
+    public class LabelPrintInfoDto
+    {
+        /// <summary>
+        /// 鍓╀綑鎵撳嵃鐨勬暟閲�
+        /// </summary>
+        public string Qty { get; set; }
+        /// <summary>
+        /// 鐢熶骇鏃ユ湡
+        /// </summary>
+        public string ProductionTime { get; set; }  
+        /// <summary>
+        /// 鏈夋晥鏈�
+        /// </summary>
+        public string ExpirationTime { get; set; }
+        /// <summary>
+        /// 鍌ㄥ瓨鏈熻嚦
+        /// </summary>
+        public string StoreTime { get; set; }
+    }
+
 }
diff --git a/Wms/Model/ModelVm/IdVm.cs b/Wms/Model/ModelVm/IdVm.cs
index 57606d1..ac7cf1e 100644
--- a/Wms/Model/ModelVm/IdVm.cs
+++ b/Wms/Model/ModelVm/IdVm.cs
@@ -7,4 +7,15 @@
         public int Id { get; set; }
         public List<int> Ids { get; set; }
     }
+
+    /// <summary>
+    /// 澶嶆牳VM
+    /// </summary>
+    public class FinshVm
+    {
+        public int Id { get; set; }
+        public string UserNo { get; set; }
+        public string Password { get; set; }
+    }
+
 }
diff --git a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
index 355b71a..4f495a4 100644
--- a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
+++ b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -131,7 +131,7 @@
         }
 
         //鑾峰彇鍏ュ簱鍗曟槑缁嗗墿浣欐墦鍗版暟閲�
-        public string GetAsnDetailQtyList(int id)
+        public LabelPrintInfoDto GetAsnDetailQtyList(int id)
         {
             try
             {
@@ -140,11 +140,29 @@
                 {
                     throw new Exception("鏈煡璇㈠埌鍏ュ簱鍗曟槑缁�");
                 }
+                var data = new LabelPrintInfoDto();
+                
+                var notice = Db.Queryable<BllArrivalNotice>().Where(m => m.IsDel == "0" && m.ASNNo == detail.ASNNo).First();
+                if (notice != null && notice.Type == "4") //鍒ゆ柇鏄惁鏄綑鏂欓��鍥炲崟
+                {
+                    var noticeStr = Db.Queryable<BllArrivalNotice>().Where(m => m.Type == "1").Select(m => m.ASNNo).ToList();
+                    var detailOld = Db.Queryable<BllArrivalNoticeDetail>().Where(m => m.IsDel == "0" && noticeStr.Contains(m.ASNNo) && m.SkuNo == detail.SkuNo && m.LotNo == detail.LotNo).OrderByDescending(m => m.CreateTime).First();
+                    if (detailOld != null)
+                    {
+                        var boxInfo = Db.Queryable<BllBoxInfo>().First(m => m.IsDel == "0" && m.ASNNo == detailOld.ASNNo);
+                        if (boxInfo!= null)
+                        {
+                            data.ProductionTime = boxInfo.ProductionTime!= null ? ((DateTime)boxInfo.ProductionTime).ToString("yyyy-MM-dd"):"";
+                            data.ExpirationTime = boxInfo.ExpirationTime != null ? ((DateTime)boxInfo.ExpirationTime).ToString("yyyy-MM-dd") : "";
+                            data.StoreTime = boxInfo.StoreTime != null ? ((DateTime)boxInfo.StoreTime).ToString("yyyy-MM-dd") : "";
+                        }
+                    }
+                }
 
                 var labelQty = Db.Queryable<BllBoxInfo>().Where(m => m.IsDel == "0" && m.ASNDetailNo == id).Sum(m => m.Qty);
                 var qty = detail.Qty - labelQty;
-
-                return qty.ToString();
+                data.Qty = qty.ToString();
+                return data;
             }
             catch (Exception e)
             {
@@ -1051,10 +1069,22 @@
         }
 
         //璁㈠崟鍥炰紶涓婃父绯荤粺
-        public bool FinishAsn(int id, string erpUrl, string mesUrl,string mesTokenUrl, int userId)
+        public bool FinishAsn(int id, string erpUrl, string mesUrl,string mesTokenUrl,string userNo,string pwd, int userId)
         {
             try
             {
+                var loginPwd = Md5Tools.CalcMd5(pwd);
+                var date = Db.Queryable<SysUserInfor>().First(m =>m.IsDel=="0" && m.UserName == userNo && m.PassWord == loginPwd);
+
+                if (date == null) //璐﹀彿瀵嗙爜鏄惁姝g‘
+                {
+                   throw new Exception("璐﹀彿瀵嗙爜涓嶆纭垨娌℃湁姝よ处鍙�");
+                }
+                if (date.Status != "0") //褰撳墠璐﹀彿鏄惁姝e父鍚敤
+                {
+                    throw new Exception("褰撳墠璐﹀彿闈炲惎鐢ㄧ姸鎬�");
+                }
+
                 var notice = Db.Queryable<BllArrivalNotice>().First(m => m.Id == id && m.IsDel == "0");
                 if (notice == null)
                 {
@@ -1069,7 +1099,7 @@
                 {
                     throw new Exception("鏈煡璇㈠埌鍗曟嵁鏄庣粏淇℃伅");
                 }
-                if (userId == notice.UpdateUser)
+                if (date.Id == notice.UpdateUser)
                 {
                     throw new Exception("澶嶆牳澶辫触锛屽鏍镐汉鍛樺拰鍏抽棴璁㈠崟浜哄憳涓嶈兘鐩稿悓锛�");
                 }
@@ -1150,10 +1180,10 @@
 
                 notice.Status = "4";
                 notice.CheckTime = DateTime.Now;
-                notice.CheckUser = userId;
+                notice.CheckUser = date.Id;
                 Db.Updateable(notice).ExecuteCommand();
 
-                new OperationASNServer().AddLogOperationAsn("鍏ュ簱浣滀笟", "鍏ュ簱鍗曟嵁", notice.ASNNo, "澶嶆牳", $"澶嶆牳浜嗗崟鎹彿涓簕notice.ASNNo}鐨勫崟鎹俊鎭�", userId);
+                new OperationASNServer().AddLogOperationAsn("鍏ュ簱浣滀笟", "鍏ュ簱鍗曟嵁", notice.ASNNo, "澶嶆牳", $"{date.RealName}澶嶆牳浜嗗崟鎹彿涓簕notice.ASNNo}鐨勫崟鎹俊鎭�", userId);
                 return true;
             }
             catch (Exception e)
diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
index bccc202..c714390 100644
--- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
+++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
@@ -262,10 +262,22 @@
         }
 
         //鍥炰紶鍑哄簱鍗�
-        public bool FinishSo(int id, string url, int userId)
+        public bool FinishSo(int id, string url, string userNo, string pwd, int userId)
         {
             try
             {
+                var loginPwd = Md5Tools.CalcMd5(pwd);
+                var date = Db.Queryable<SysUserInfor>().First(m => m.IsDel == "0" && m.UserName == userNo && m.PassWord == loginPwd);
+
+                if (date == null) //璐﹀彿瀵嗙爜鏄惁姝g‘
+                {
+                    throw new Exception("璐﹀彿瀵嗙爜涓嶆纭垨娌℃湁姝よ处鍙�");
+                }
+                if (date.Status != "0") //褰撳墠璐﹀彿鏄惁姝e父鍚敤
+                {
+                    throw new Exception("褰撳墠璐﹀彿闈炲惎鐢ㄧ姸鎬�");
+                }
+
                 var notice = Db.Queryable<BllExportNotice>().First(m => m.Id == id && m.IsDel == "0");
                 if (notice == null)
                 {
@@ -280,7 +292,7 @@
                 {
                     throw new Exception("鏈煡璇㈠埌鍗曟嵁鏄庣粏淇℃伅");
                 }
-                if (userId == notice.UpdateUser)
+                if (date.Id == notice.UpdateUser)
                 {
                     throw new Exception("澶嶆牳澶辫触锛屽鏍镐汉鍛樺拰鍏抽棴璁㈠崟浜哄憳涓嶈兘鐩稿悓锛�");
                 }
@@ -315,10 +327,10 @@
 
                 notice.Status = "6";
                 notice.CheckTime = DateTime.Now;
-                notice.CheckUser = userId;
+                notice.CheckUser = date.Id;
                 Db.Updateable(notice).ExecuteCommand();
 
-                new OperationSOServer().AddLogOperationSo("鍑哄簱浣滀笟", "鍑哄簱鍗曟嵁", notice.SONo, "澶嶆牳", $"澶嶆牳浜嗗崟鎹彿涓簕notice.SONo}鐨勫崟鎹俊鎭�", userId);
+                new OperationSOServer().AddLogOperationSo("鍑哄簱浣滀笟", "鍑哄簱鍗曟嵁", notice.SONo, "澶嶆牳", $"{date.RealName}澶嶆牳浜嗗崟鎹彿涓簕notice.SONo}鐨勫崟鎹俊鎭�", userId);
                 return true;
             }
             catch (Exception e)
diff --git a/Wms/WMS.IBLL/IBllAsnServer/IArrivalNoticeServer.cs b/Wms/WMS.IBLL/IBllAsnServer/IArrivalNoticeServer.cs
index a55e6df..e8a088d 100644
--- a/Wms/WMS.IBLL/IBllAsnServer/IArrivalNoticeServer.cs
+++ b/Wms/WMS.IBLL/IBllAsnServer/IArrivalNoticeServer.cs
@@ -32,7 +32,7 @@
         /// </summary>
         /// <param name="id">id</param> 
         /// <returns></returns>
-        string GetAsnDetailQtyList(int id);
+        LabelPrintInfoDto GetAsnDetailQtyList(int id);
 
         /// <summary>
         /// 鑾峰彇鐗╂枡淇℃伅锛堟坊鍔犲叆搴撳崟鏄庣粏浣跨敤锛�
@@ -103,7 +103,7 @@
         /// <param name="mesTokenUrl">mes鑾峰彇浠ょ墝璺緞</param>
         /// <param name="userId">鎿嶄綔浜�</param>
         /// <returns></returns>
-        bool FinishAsn(int id, string erpurl, string mesUrl,string mesTokenUrl, int userId);
+        bool FinishAsn(int id, string erpurl, string mesUrl,string mesTokenUrl, string userNo, string pwd, int userId);
 
         void UpLocate(string wareNo, string locatNo);
 
diff --git a/Wms/WMS.IBLL/IBllSoServer/IExportNoticeServer.cs b/Wms/WMS.IBLL/IBllSoServer/IExportNoticeServer.cs
index 165a748..ee5de99 100644
--- a/Wms/WMS.IBLL/IBllSoServer/IExportNoticeServer.cs
+++ b/Wms/WMS.IBLL/IBllSoServer/IExportNoticeServer.cs
@@ -23,7 +23,7 @@
         /// <param name="url">涓婁紶璺緞</param>
         /// <param name="userId">鎿嶄綔浜�</param>
         /// <returns></returns>
-        bool FinishSo(int id, string url, int userId);
+        bool FinishSo(int id, string url, string userNo, string pwd, int userId);
         //------------------------------------------------------------------------------------------
 
         /// <summary>
diff --git a/Wms/Wms/Controllers/UpApiController.cs b/Wms/Wms/Controllers/UpApiController.cs
index 0c805e3..e215e71 100644
--- a/Wms/Wms/Controllers/UpApiController.cs
+++ b/Wms/Wms/Controllers/UpApiController.cs
@@ -74,7 +74,7 @@
         /// <param name="model">鍏ュ簱鍗曞彿</param>
         /// <returns></returns>
         [HttpPost]
-        public IActionResult FinishAsn(IdVm model) 
+        public IActionResult FinishAsn(FinshVm model) 
         {
             try
             {
@@ -89,7 +89,7 @@
                 {
                     return Ok(new { code = 1, msg = "鏈幏鍙栧埌褰撳墠鎿嶄綔浜轰俊鎭�" });
                 }
-                _arrivalNoticeSvc.FinishAsn(model.Id, _config.ErpHost + _config.AsnFinishUrl, _config.MesHost + _config.MesAsnFinishUrl, _config.MesHost + _config.MesGetTokenUrl, int.Parse(userId));
+                _arrivalNoticeSvc.FinishAsn(model.Id, _config.ErpHost + _config.AsnFinishUrl, _config.MesHost + _config.MesAsnFinishUrl, _config.MesHost + _config.MesGetTokenUrl,model.UserNo,model.Password, int.Parse(userId));
 
                 return Ok(new { code = 0, count = 0, msg = "鍏ュ簱鍗曞鏍稿苟涓婁紶鎴愬姛" });
             }
@@ -135,7 +135,7 @@
         /// <param name="model"></param>
         /// <returns></returns>
         [HttpPost]
-        public IActionResult FinishExportNotice(IdVm model)
+        public IActionResult FinishExportNotice(FinshVm model)
         {
             try
             {
@@ -150,7 +150,7 @@
                 {
                     return Ok(new { code = 1, msg = "鏈幏鍙栧埌褰撳墠鎿嶄綔浜轰俊鎭�" });
                 }
-                _exNoticeSvc.FinishSo(model.Id, _config.ErpHost + _config.SoFinishUrl, int.Parse(userId));
+                _exNoticeSvc.FinishSo(model.Id, _config.ErpHost + _config.SoFinishUrl, model.UserNo, model.Password, int.Parse(userId));
                 return Ok(new { code = 0, count = 0, msg = "鍑哄簱鍗曞鏍稿苟涓婁紶鎴愬姛" });
             }
             catch (Exception e)

--
Gitblit v1.8.0