From fac80878ebff86d4cfb548da53e20ef1e2831cea Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 18 六月 2020 11:24:29 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/pakStore/stockAdjust.js |   17 ++++++++++++++++-
 src/main/webapp/views/pakStore/stockAdjust.html   |    2 +-
 src/main/webapp/views/pakStore/matQuery.html      |    2 --
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/static/js/pakStore/stockAdjust.js b/src/main/webapp/static/js/pakStore/stockAdjust.js
index dfdb21d..16ce5ac 100644
--- a/src/main/webapp/static/js/pakStore/stockAdjust.js
+++ b/src/main/webapp/static/js/pakStore/stockAdjust.js
@@ -30,6 +30,11 @@
 
     // 妫�绱簨浠�
     form.on('submit(search)', function (data) {
+        if (data.field.loc_no === "") {
+            inputTip($("#searchLocNo"));
+            layer.msg("璇疯緭鍏ュ簱浣嶅彿");
+            return;
+        }
         http.post(baseUrl + "/locDetl/list/auth", {loc_no: data.field.loc_no,limit: 1000}, function (res) {
             matCodeData = [];
             let data = res.data.records;
@@ -47,7 +52,9 @@
 
     // 閲嶇疆浜嬩欢
     form.on('submit(reset)', function (data) {
-
+        clearFormVal($('#search-box'));
+        matCodeData = [];
+        tableReload();
     });
 
     function tableReload() {
@@ -71,3 +78,11 @@
         }
     });
 }
+
+// 鎼滅储妗嗙┖鍊兼彁绀�
+function inputTip(el) {
+    el.css("border-color", "red");
+    setTimeout(function () {
+        el.css("border-color", "#b8b8b8");
+    }, 2000);
+}
diff --git a/src/main/webapp/views/pakStore/matQuery.html b/src/main/webapp/views/pakStore/matQuery.html
index 84eb658..5af04f7 100644
--- a/src/main/webapp/views/pakStore/matQuery.html
+++ b/src/main/webapp/views/pakStore/matQuery.html
@@ -119,8 +119,6 @@
                     for (var i=0;i<data.length;i++){
                         data[i]["count"] = parent.initCountVal;
                     }
-
-
                     parent.matCodeData.push.apply(parent.matCodeData, data);
                     parent.tableIns.reload({data: parent.matCodeData});
                     parent.layer.close(parent.matCodeLayerIdx);
diff --git a/src/main/webapp/views/pakStore/stockAdjust.html b/src/main/webapp/views/pakStore/stockAdjust.html
index 6edc9fb..f88846a 100644
--- a/src/main/webapp/views/pakStore/stockAdjust.html
+++ b/src/main/webapp/views/pakStore/stockAdjust.html
@@ -74,7 +74,7 @@
 <div id="search-box" class="layui-form layui-card-header">
     <div class="layui-inline">
         <div class="layui-input-inline">
-            <input class="layui-input" type="text" name="loc_no" placeholder="搴撲綅鍙�" autocomplete="off">
+            <input id="searchLocNo" class="layui-input" type="text" name="loc_no" placeholder="搴撲綅鍙�" autocomplete="off"  style="height: 45px;border-color: #b8b8b8">
         </div>
     </div>
     <!-- 寰呮坊鍔� -->

--
Gitblit v1.9.1