From 260c6e54c4f100ca49376a6afd70f73843868171 Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期三, 28 八月 2024 08:49:35 +0800
Subject: [PATCH] 组托收货测试

---
 Pda/View/SoSetting/pingKuOut.html |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/Pda/View/SoSetting/pingKuOut.html b/Pda/View/SoSetting/pingKuOut.html
index 20043e3..3f0cecb 100644
--- a/Pda/View/SoSetting/pingKuOut.html
+++ b/Pda/View/SoSetting/pingKuOut.html
@@ -186,6 +186,8 @@
 					Type: "1",
 				};
 				synData(IP + "/PdaSo/GetRunSoNoticeList", param, 'post', function (res) {
+					console.log(res);
+
 					if (res.code == 0) { //鎴愬姛
 						console.log(res.data);
 						for (var i = 0; i < res.data.length; i++) {
@@ -275,11 +277,11 @@
 
 			//妫�鏌ユ墭鐩樼姸鎬�
 			function checkPalletState() {
-
 				var param = {
 					"PalletNo": $("#PalletNo").val()
 				}
 				synData(IP + "/PdaSo/IsEnableOkPalletNo", param, 'post', function (res) {
+					console.log(res);
 
 					if (res.code == 0) { //鎴愬姛 
 						updateBillList();
@@ -300,11 +302,21 @@
 
 			//褰撴墭鐩樻潯鐮佽緭鍏ユ澶卞幓鐒︾偣鏃�,妫�鏌ヤ竴涓嬫墭鐩樼姸鎬�
 			$("#PalletNo").blur(function () {
-				checkPalletState()
+				if ($("#PalletNo").val().length == 8) {
+					checkPalletState()
+				}
+				
 			})
 
 			$("#PalletNo").keydown(function (e) {
 				if (e.keyCode === 13) {
+					if ($("#PalletNo").val().length != 8) {
+						layer.msg('璇疯緭鍏ユ纭殑鎵樼洏鏉$爜', {
+							icon: 2,
+							time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+						});
+						return;
+					}
 					checkPalletState();
 				}
 			});

--
Gitblit v1.8.0