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/locNormalIn.html |   32 +++++++++++++++-----------------
 1 files changed, 15 insertions(+), 17 deletions(-)

diff --git a/src/main/webapp/views/pda/locNormalIn.html b/src/main/webapp/views/pda/locNormalIn.html
index f91e840..ec81695 100644
--- a/src/main/webapp/views/pda/locNormalIn.html
+++ b/src/main/webapp/views/pda/locNormalIn.html
@@ -21,7 +21,7 @@
     <div>
         <div class="layui-input-inline">
             <label class="layui-form-label">搴撳尯</label>
-            <input class="layui-input" type="number" id="warehouse" onkeyup="findCode(this)" placeholder="鎵爜 / 杈撳叆"
+            <input class="layui-input" id="uuid" onkeyup="exist(this.id, 'locArea')" placeholder="鎵爜 / 杈撳叆"
                    autocomplete="off">
         </div>
     </div>
@@ -76,14 +76,11 @@
     });
 
     window.onload = function () {
-        document.getElementById("warehouse").focus();
+        document.getElementById("uuid").focus();
     }
 
     function findCode(el) {
-        if (el.value.length === 7) {
-            $('#mat-btn').focus();
-            getMat();
-        }
+
     }
 
     var matCodeLayerIdx;
@@ -126,19 +123,12 @@
         tableIns.reload({data: matData});
     }
 
-    // 閲嶇疆
-    function reset() {
-        $('#warehouse').val("");
-        matData = [];
-        tableIns.reload({data: matData});
-    }
-
     // 缁勬墭
     function comb() {
-        let barcode = $('#warehouse').val();
+        let barcode = $('#uuid').val();
         if (isEmpty(barcode)) {
             tips("搴撳尯鏉$爜涓虹┖", true);
-            document.getElementById("warehouse").focus();
+            document.getElementById("uuid").focus();
             return;
         }
         if (matData.length === 0) {
@@ -202,13 +192,21 @@
             $("#comb-btn").focus();
             comb();
         } else if (key === 113) {
-            $("#warehouse").val("");
-            $("#warehouse").focus();
+            $("#uuid").val("");
+            $("#uuid").focus();
         }
     }
 
     function back() {
         parent.backIndex();
     }
+
+    // 閲嶇疆
+    function reset() {
+        $('#uuid').val("");
+        matData = [];
+        tableIns.reload({data: matData});
+        layer.closeAll();
+    }
 </script>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1