From d9cd01b4a8ff8f02d155a02d832a7ea407f180e6 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期二, 16 三月 2021 15:29:29 +0800
Subject: [PATCH] 1.0.3 pda-优化库区输入提示

---
 src/main/webapp/views/pda/locNormalMove.html |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/main/webapp/views/pda/locNormalMove.html b/src/main/webapp/views/pda/locNormalMove.html
index 0f7d878..6e9d3bb 100644
--- a/src/main/webapp/views/pda/locNormalMove.html
+++ b/src/main/webapp/views/pda/locNormalMove.html
@@ -24,15 +24,15 @@
     <div>
         <div class="layui-input-inline">
             <label class="layui-form-label" style="margin-left: 16px">婧愬簱鍖�</label>
-            <input class="layui-input" type="number" id="warehouse1" onkeyup="find()" placeholder="鎵爜 / 杈撳叆"
+            <input class="layui-input" id="warehouse1" onkeyup="find(true)" placeholder="鎵爜 / 杈撳叆"
                    autocomplete="off" style="width: 60%">
         </div>
     </div>
     <div>
         <div class="layui-input-inline">
             <label class="layui-form-label">鐩爣搴撳尯</label>
-            <input class="layui-input" type="number" id="warehouse2" placeholder="鎵爜 / 杈撳叆"
-                   autocomplete="off" style="width: 60%">
+            <input class="layui-input" id="warehouse2" placeholder="鎵爜 / 杈撳叆"
+                   autocomplete="off" style="width: 60%" onkeyup="exist('uuid', 'locArea', 'warehouse2')">
         </div>
     </div>
 </header>
@@ -92,7 +92,7 @@
             return;
         }
         if (warehouse1 == warehouse2) {
-            layer.msg("鐩爣搴撳尯鍜屾簮搴撳尯涓�鑷�");
+            layer.msg("鐩爣搴撳尯鍜屾簮搴撳尯涓嶈兘涓�鑷�");
             return;
         }
         // 鍒ゆ柇鍕鹃�夋暟鎹槸鍚︿负绌�
@@ -131,7 +131,10 @@
     }
 
     /* 鏍规嵁搴撳尯鍙锋绱㈢墿鏂欎俊鎭� */
-    find = () => {
+    find = (flag) => {
+        if (flag) {
+            exist('uuid', 'locArea', 'warehouse1');
+        }
         var warehouse = $("#warehouse1").val();
         var matnr = $("#matnr").val();
         // 鏌ヨ鎺ュ彛
@@ -144,7 +147,7 @@
                 if (res.code === 200) {
                     tableIns.reload({
                         data: res.data,
-                    })
+                    });
                 } else if (res.code === 403) {
                     top.location.href = baseUrl + "/pda";
                 } else {
@@ -168,7 +171,7 @@
      * @param warn true锛氱孩鑹插瓧浣�
      */
     function tips(msg, warn) {
-        layer.msg(msg, {icon: warn?2:1})
+        layer.msg(msg, {icon: warn ? 2 : 1})
     }
 
     function reset() {
@@ -176,6 +179,7 @@
         $('#warehouse2').val("");
         $('#matnr').val("");
         tableIns.reload({data: []});
+        layer.closeAll();
     }
 </script>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1