From 8cab17153dd8b7e47f9749b02293f169d078212f Mon Sep 17 00:00:00 2001
From: yuyou_x <2336760928@qq.com>
Date: 星期四, 14 三月 2024 10:33:45 +0800
Subject: [PATCH] 1

---
 HTML/views/ASNSetting/PalletBindFrom.html |   52 ++++++++++++++++++++++++++--------------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/HTML/views/ASNSetting/PalletBindFrom.html b/HTML/views/ASNSetting/PalletBindFrom.html
index b3650a0..9020df2 100644
--- a/HTML/views/ASNSetting/PalletBindFrom.html
+++ b/HTML/views/ASNSetting/PalletBindFrom.html
@@ -308,33 +308,33 @@
 
 					console.i
 
-					// if (doing) {
-					// 	doing = false;
-					// 	//缁勭洏
-					// 	sendData(IP + "/PdaAsn/BindPallet", param, 'post', function (res) {
-					// 		if (res.code == 0) { //鎴愬姛 
-					// 			layer.msg(res.msg, {
-					// 				icon: 1,
-					// 				time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-					// 			}, function () {
-					// 				renderTable(null);
-					// 				$("#boxNo").val("");
-					// 				$("#boxNo2").val("");
-					// 				var index = parent.layer.getFrameIndex(window.name)
-					// 				parent.layer.close(index); //鍏抽棴寮瑰眰
-					// 				parent.layui.table.reload('PalletBind');
-					// 				parent.layui.table.reload('BoxInfo');
-					// 				doing = true;
-					// 			});
-					// 		} else { //涓嶆垚鍔�
-					// 			layer.msg(res.msg, {
-					// 				icon: 2,
-					// 				time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-					// 			}, function () { doing = true;});
-					// 		}
-					// 	});
+					if (doing) {
+						doing = false;
+						//缁勭洏
+						sendData(IP + "/PdaAsn/BindPallet", param, 'post', function (res) {
+							if (res.code == 0) { //鎴愬姛 
+								layer.msg(res.msg, {
+									icon: 1,
+									time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+								}, function () {
+									renderTable(null);
+									$("#boxNo").val("");
+									$("#boxNo2").val("");
+									var index = parent.layer.getFrameIndex(window.name)
+									parent.layer.close(index); //鍏抽棴寮瑰眰
+									parent.layui.table.reload('PalletBind');
+									parent.layui.table.reload('BoxInfo');
+									doing = true;
+								});
+							} else { //涓嶆垚鍔�
+								layer.msg(res.msg, {
+									icon: 2,
+									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+								}, function () { doing = true;});
+							}
+						});
 
-					// }
+					}
 				}
 
 				return false;

--
Gitblit v1.8.0