From 2f8843c8f3ff4cfdffcb7ef6fca333d3022f0f84 Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期二, 27 八月 2024 08:09:35 +0800
Subject: [PATCH] PDA平库出库和收货组托功能修改

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

diff --git a/Pda/View/SoSetting/pingKuOut.html b/Pda/View/SoSetting/pingKuOut.html
index e8c5d73..3f0cecb 100644
--- a/Pda/View/SoSetting/pingKuOut.html
+++ b/Pda/View/SoSetting/pingKuOut.html
@@ -277,12 +277,10 @@
 
 			//妫�鏌ユ墭鐩樼姸鎬�
 			function checkPalletState() {
-
 				var param = {
 					"PalletNo": $("#PalletNo").val()
 				}
 				synData(IP + "/PdaSo/IsEnableOkPalletNo", param, 'post', function (res) {
-					console.log("AAA");
 					console.log(res);
 
 					if (res.code == 0) { //鎴愬姛 
@@ -304,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