From 3d3fc58d20b03ad3a5bd6a40975608c8c8bf9e4c Mon Sep 17 00:00:00 2001
From: Administrator <335182714>
Date: 星期二, 02 九月 2025 08:52:21 +0800
Subject: [PATCH] WMS功能完善
---
src/main/webapp/views/pakStore/locDetlCheckQuery.html | 32 ++++++++++++++------------------
1 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/src/main/webapp/views/pakStore/locDetlCheckQuery.html b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
index 0e71897..80c20bd 100644
--- a/src/main/webapp/views/pakStore/locDetlCheckQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
@@ -73,19 +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="specs" 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="maktx" placeholder="鐗╂枡鎻忚堪" autocomplete="off">
+ <input class="layui-input" type="text" name="unit" placeholder="绠卞彿" autocomplete="off">
</div>
- </div>
<!-- 鏃ユ湡鑼冨洿 -->
<div class="layui-inline" style="width: 300px">
<div class="layui-input-inline">
@@ -186,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