From 716b29fea5945ca7dc4419d9f1f980c379312b32 Mon Sep 17 00:00:00 2001 From: chengsc <Demo@DESKTOP-CPA90BF> Date: 星期四, 24 十月 2024 18:46:48 +0800 Subject: [PATCH] 修改问题 --- Pda/View/SoSetting/productOut.html | 28 ++++++++++++++++++++++++---- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Pda/View/SoSetting/productOut.html b/Pda/View/SoSetting/productOut.html index cda229e..b538ac9 100644 --- a/Pda/View/SoSetting/productOut.html +++ b/Pda/View/SoSetting/productOut.html @@ -303,8 +303,8 @@ <div class="layui-form-item layout-input" style="margin-top: 6px;"> <label class="layui-form-label lableWidth">鎷h揣鏁伴噺锛�</label> <div class="layui-input-block"> - <input id="pickQty1" type="number" placeholder="璇疯緭鍏ユ嫞璐ф暟閲�"autocomplete="off" - class="layui-input" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"> + <input id="pickQty1" type="text" placeholder="璇疯緭鍏ユ嫞璐ф暟閲�"autocomplete="off" + class="layui-input" > </div> </div> </td> @@ -509,9 +509,9 @@ <label class="layui-form-label lableWidth" >鎷h揣鏁伴噺锛�</label> <div id="" class="local-input"> <div class="layui-input-block"> - <input id="pickQty2" type="number" placeholder="璇疯緭鍏ユ嫞璐ф暟閲�" + <input id="pickQty2" type="text" placeholder="璇疯緭鍏ユ嫞璐ф暟閲�" autocomplete="off" class="layui-input" style="padding-left:0.1rem;" - oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"> + > </div> </div> <div id="" class="local-ok"> @@ -1009,6 +1009,16 @@ //纭鎷h揣 function reqPickScatter() { + if($('#pickQty1').val()!= "" && $('#pickQty1').val()!= undefined){ + var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,4})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; + if (!reg.test($("#pickQty1").val())) { + layer.msg("鏁伴噺蹇呴』澶т簬0(鍙繚鐣�4浣嶅皬鏁�)", { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }); + return -1; + } + } var param = { "SoNo": $("#bar").val(), "SoDetailId": $("#skuLotNo").val(), @@ -1489,6 +1499,16 @@ //纭鎷h揣 function reqPickScatter2() { + if($('#pickQty2').val()!= "" && $('#pickQty2').val()!= undefined){ + var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,4})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; + if (!reg.test($("#pickQty2").val())) { + layer.msg("鏁伴噺蹇呴』澶т簬0(鍙繚鐣�4浣嶅皬鏁�)", { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }); + return -1; + } + } var param = { "SoNo": $("#bar2").val(), "SoDetailId": $("#skuLotNo2").val(), -- Gitblit v1.8.0