From 156e0d593769d1c4438eb1c6d4547063f76331b3 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期三, 19 十一月 2025 15:52:31 +0800
Subject: [PATCH] 修改拣货拼托bug

---
 HTML/views/ASNSetting/ArrivalNotice.html |   50 +++++++++++++++++++++++++++++---------------------
 1 files changed, 29 insertions(+), 21 deletions(-)

diff --git a/HTML/views/ASNSetting/ArrivalNotice.html b/HTML/views/ASNSetting/ArrivalNotice.html
index 0643f15..1194753 100644
--- a/HTML/views/ASNSetting/ArrivalNotice.html
+++ b/HTML/views/ASNSetting/ArrivalNotice.html
@@ -175,7 +175,7 @@
 					<script type="text/html" id="toolbarDemo1">
 						{{# function GetBtn1(d){
 							var html = ''; 
-							if (d.Status == '0' && (d.Origin == '褰曞叆' || d.Origin == '瀵煎叆' || d.Origin == '閲囪喘鍗�')) {
+							if (d.Status == '0' && (d.Origin == '褰曞叆' || d.Origin == '瀵煎叆' || d.Origin == '閲囪喘鍗�' || d.Origin == 'SAP')) {
 								html += `<a class="layui-btn layui-btn-normal layui-btn-xs editClass" lay-event="edit">
 									<i class="layui-icon layui-icon-edit"></i>缂栬緫</a>`;
 							}
@@ -875,26 +875,34 @@
 					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
-									});
-								} else { //涓嶆垚鍔�
-									layer.msg(res.msg, {
-										icon: 2,
-										time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-									}, function () { doing = true });
-								}
-							});
+							if (doing == true) {
+								doing = false;
+								// 浠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
+										});
+									} else { //涓嶆垚鍔�
+										layer.msg(res.msg, {
+											icon: 2,
+											time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+										}, function () { doing = true });
+									}
+								});
+							} else {
+								layer.msg("璇峰嬁閲嶅鐐瑰嚮", {
+									icon: 2,
+									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+								});
+							}
 						});
 
 						break;

--
Gitblit v1.8.0