From 50b9207fb0835f0eb011b68b891bb4420b591de2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 01 七月 2020 13:31:09 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/pakStore/locMove.js | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/static/js/pakStore/locMove.js b/src/main/webapp/static/js/pakStore/locMove.js
index c611890..9164199 100644
--- a/src/main/webapp/static/js/pakStore/locMove.js
+++ b/src/main/webapp/static/js/pakStore/locMove.js
@@ -50,6 +50,7 @@
}
pageCurr=curr;
limit();
+ clearSelect();
form.on('checkbox(tableCheckbox)', function (data) {
var _index = $(data.elem).attr('table-index')||0;
if(data.elem.checked){
@@ -70,8 +71,7 @@
, where: {loc_no: el.value}
, done:function (res) {
limit();
- $("#targetLocNo").empty();
- layui.form.render('select');
+ clearSelect();
// 鑾峰彇鍚屼竴鍫嗗灈鏈虹殑绌哄簱浣�
http.post(baseUrl + "/group/empty/stock", {sourceLocNo: el.value}, function (res) {
if (res.data != null) {
@@ -84,7 +84,6 @@
});
}
});
-
}
// 绉诲簱鍚姩
@@ -121,15 +120,14 @@
$("#sourceLocNo").val("");
$("#targetLocNo").empty();
layui.form.render('select');
- layer.closeAll();
- layer.msg(res.msg);
tableIns.reload({
data: [],
url: '',
done:function (res) {
- limit();
+ limit();clearSelect();
}
});
+ layer.msg(res.msg);
} else if (res.code === 403) {
top.location.href = baseUrl + "/";
} else {
@@ -139,6 +137,11 @@
})
}
+function clearSelect() {
+ $("#targetLocNo").empty();
+ layui.form.render('select');
+}
+
// // 搴撲綅鐘舵�佽幏鍙�
// var tips;
// function locStatus(el) {
--
Gitblit v1.9.1