From b4a8d50e3d97fc9e893b554a60134e4eceb012eb Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 05 一月 2026 08:58:08 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/locNormal/addLocNormal.js | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/static/js/locNormal/addLocNormal.js b/src/main/webapp/static/js/locNormal/addLocNormal.js
index 2f4175a..e6db8bf 100644
--- a/src/main/webapp/static/js/locNormal/addLocNormal.js
+++ b/src/main/webapp/static/js/locNormal/addLocNormal.js
@@ -11,6 +11,24 @@
var upload = layui.upload;
var form = layui.form;
+ // 鑾峰彇浠撳簱涓嬫媺
+ $.ajax({
+ url: baseUrl+"/locArea/queryAll/auth",
+ headers: {'token': localStorage.getItem('token')},
+ // data: top.reObject(data),
+ method: 'POST',
+ success: function (res) {
+ var html = "";
+ if (res.data && res.data.length > 0) {
+ html += res.data.map(function (item) {
+ return "<Option value="+item.id+">"+item.name+"</Option>";
+ });
+ }
+ $('#warehouse').append(html);
+ form.render('select');
+ },
+ });
+
// 鏁版嵁淇濆瓨鍔ㄤ綔
form.on('submit(save)', function () {
if (banMsg != null) {
@@ -51,6 +69,7 @@
success: function (res) {
if (res.code === 200){
parent.layer.closeAll();
+ parent.tableReload();
} else if (res.code === 403){
top.location.href = baseUrl+"/";
}else {
@@ -60,6 +79,5 @@
layer.close(loadingIndex);
},
});
-
});
});
\ No newline at end of file
--
Gitblit v1.9.1