From f7c98db042dce0717011f9424ff92dbdc4b0efa0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 29 三月 2022 14:42:54 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/pakStore/pakStore.js |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/pakStore/pakStore.js b/src/main/webapp/static/js/pakStore/pakStore.js
index d40dd18..e7af385 100644
--- a/src/main/webapp/static/js/pakStore/pakStore.js
+++ b/src/main/webapp/static/js/pakStore/pakStore.js
@@ -74,7 +74,9 @@
                         if (res.code === 200){
                             layer.msg("鍏ュ簱鍚姩鎴愬姛锛岀洰鏍囧簱浣嶏細" + res.data);
                             matCodeData = [];
+                            $('#focusMatByMat').val("");
                             tableIns.reload({data: matCodeData,done:function (res) { limit(); getInBound();}});
+                            document.getElementById("focusMatByMat").focus();
                         } else if (res.code === 403){
                             top.location.href = baseUrl+"/";
                         }else {
@@ -174,6 +176,30 @@
     });
 }
 
+// 鎵爜
+function focusMat(el) {
+    if (isEmpty(el.value)) {
+        return
+    }
+    $.ajax({
+        url: baseUrl + "/matCode/" + el.value + "/auth",
+        headers: {'token': localStorage.getItem('token')},
+        method: 'GET',
+        success: function (res) {
+            if (res.code === 200) {
+                matCodeData = [];
+                var param = new Array();
+                param[0] = res.data;
+                addTableData(param);
+            } else if (res.code === 403) {
+                top.location.href = baseUrl + "/";
+            } else {
+                layer.msg(res.msg, {icon: 2})
+            }
+        }
+    })
+}
+
 // 娣诲姞琛ㄦ牸鏁版嵁
 function addTableData(data) {
     for (var i=0;i<data.length;i++){
@@ -193,4 +219,4 @@
     matCodeData.push.apply(matCodeData, data);
     tableIns.reload({data: matCodeData});
     layer.close(matCodeLayerIdx);
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1