From 25c7cdf3ea9c4e63f16bbb52ce40e28bc65dc87c Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期六, 13 九月 2025 11:08:50 +0800
Subject: [PATCH] 1

---
 src/main/webapp/views/pakStore/locDetlCheckQuery.html |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/main/webapp/views/pakStore/locDetlCheckQuery.html b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
index c17c59a..80c20bd 100644
--- a/src/main/webapp/views/pakStore/locDetlCheckQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
@@ -73,14 +73,18 @@
         </div>
         <div class="layui-inline">
             <div class="layui-input-inline">
-                <input class="layui-input" type="text" name="matnr" placeholder="鍟嗗搧缂栧彿"  autocomplete="off">
+                <input class="layui-input" type="text" name="brand" placeholder="鍖呰缁勫彿"  autocomplete="off">
             </div>
         </div>
         <div class="layui-inline">
             <div class="layui-input-inline">
-                <input class="layui-input" type="text" name="maktx" placeholder="鐗╂枡鎻忚堪" autocomplete="off">
+                <input class="layui-input" type="text" name="model" placeholder="鍗峰彿" autocomplete="off">
             </div>
         </div>
+        <div class="layui-inline">
+            <div class="layui-input-inline">
+                <input class="layui-input" type="text" name="unit" placeholder="绠卞彿" autocomplete="off">
+            </div>
         <!-- 鏃ユ湡鑼冨洿 -->
         <div class="layui-inline" style="width: 300px">
             <div class="layui-input-inline">
@@ -181,27 +185,24 @@
                         layer.msg("璇烽�夋嫨鏁版嵁", {icon: 2});
                         return;
                     }
-                    let locNos = [];
-                    data.forEach(function(elem) {
-                        locNos.push(elem.locNo);
-                    });
+                    const reqDate = [...new Set(data.map(obj => obj.brand))]
                     $.ajax({
-                        url: baseUrl+"/locDetl/auth",
+                        url: baseUrl+"/getLocDateByLocNo",
                         headers: {'token': localStorage.getItem('token')},
-                        data: {locNos:locNos},
+                        data: JSON.stringify(reqDate),
+                        contentType:'application/json;charset=UTF-8',
+                        dataType:'json',
                         method: 'POST',
-                        async: false,
                         success: function (res) {
-                            if (res.code === 200) {
-                                data = res.data;
-                            } else if (res.code === 403) {
-                                top.location.href = baseUrl + "/";
+                            if (res.code === 200){
+                                parent.addTableData(res.data);
+                            } else if (res.code === 403){
+                                top.location.href = baseUrl+"/";
                             } else {
-                                layer.msg(res.msg)
+                                layer.msg(res.msg, {icon: 2})
                             }
                         }
-                    })
-                    parent.addTableData(data);
+                    });
                     break;
             }
         });

--
Gitblit v1.9.1