From fccd9966ddc9d3e1e0f02cc117f634bf3136067e Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期二, 27 八月 2024 09:01:05 +0800 Subject: [PATCH] Merge branch 'master' into Liudl --- 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