From 24654f1681b8f00a75a867730449858affc3f59e Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期二, 08 六月 2021 09:56:21 +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