From 22c2a272694c485f7fb86239fcd25b2b7356c5d8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 13 六月 2020 14:12:18 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/pakStore/emptyOut.js | 34 ++++++++++++++++++++++++----------
1 files changed, 24 insertions(+), 10 deletions(-)
diff --git a/src/main/webapp/static/js/pakStore/emptyOut.js b/src/main/webapp/static/js/pakStore/emptyOut.js
index 6453b9d..12eb095 100644
--- a/src/main/webapp/static/js/pakStore/emptyOut.js
+++ b/src/main/webapp/static/js/pakStore/emptyOut.js
@@ -6,6 +6,26 @@
var layDate = layui.laydate;
var form = layui.form;
+ // 鑾峰彇鍙敤鍏ュ簱绔欑偣
+ $.ajax({
+ url: baseUrl+"/available/take/site",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ success: function (res) {
+ if (res.code === 200){
+ var tpl = $("#takeSiteSelectTemplate").html();
+ var template = Handlebars.compile(tpl);
+ var html = template(res);
+ $('#staNoSelect').append(html);
+ form.render('select');
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg)
+ }
+ }
+ })
+
// 鏁版嵁娓叉煋
tableIns = table.render({
elem: '#locMast',
@@ -73,16 +93,10 @@
var checkStatus = table.checkStatus(obj.config.id);
switch (obj.event) {
case 'outbound':
- layer.open({
- type: 1,
- title: '鍑哄簱',
- maxmin: true,
- area: [top.detailWidth, top.detailHeight],
- shadeClose: true,
- content: $("#outboundDiv"),
- success: function (layero, index) {
- }
- });
+ var staNo = $("#staNoSelect").val();
+ if (staNo === ""){
+ layer.msg("璇烽�夋嫨鍑哄簱鍙�");
+ }
break;
}
});
--
Gitblit v1.9.1