From b301170fd119b1519b2b2cc8dfabf0c3bb754440 Mon Sep 17 00:00:00 2001 From: 王佳豪 <g675230687@126.com> Date: 星期二, 09 三月 2021 08:55:52 +0800 Subject: [PATCH] 1.0.3 平仓库区功能 出库作业-查询通知单号功能优化 --- 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