From 8e943b7104561c3b14cf223016698709c5ade4b5 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 03 二月 2026 15:37:26 +0800
Subject: [PATCH] #pda料箱组托和换码
---
src/main/webapp/static/js/pakStore/emptyIn.js | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/pakStore/emptyIn.js b/src/main/webapp/static/js/pakStore/emptyIn.js
index 305f2a3..e334c95 100644
--- a/src/main/webapp/static/js/pakStore/emptyIn.js
+++ b/src/main/webapp/static/js/pakStore/emptyIn.js
@@ -7,6 +7,7 @@
var form = layui.form;
getInBound();
+ limit();
// 鑾峰彇鍏ュ簱鍙�
function getInBound(){
@@ -14,7 +15,7 @@
url: baseUrl+"/available/empty/put/site",
headers: {'token': localStorage.getItem('token')},
method: 'POST',
- asymc: false,
+ async: false,
success: function (res) {
if (res.code === 200){
var tpl = $("#putSiteSelectTemplate").html();
@@ -25,12 +26,34 @@
} else if (res.code === 403){
top.location.href = baseUrl+"/";
}else {
- layer.msg(res.msg)
+ layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
}
}
})
}
+ // 绌烘澘鍏ュ簱
+ form.on('submit(inbound)', function (data) {
+ var inSite = $('#inSiteSelect').val();
+ $.ajax({
+ url: baseUrl+"/empty/plate/in/start",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ data: {sourceStaNo: inSite},
+ async: false,
+ success: function (res) {
+ if (res.code === 200){
+ layer.msg(typeof I18n !== 'undefined' ? I18n.t('inbound_started_success_target_loc') + res.data : "鍏ュ簱鍚姩鎴愬姛锛岀洰鏍囧簱浣嶏細" + res.data);
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
+ }
+ }
+ })
+ });
+
+
})
--
Gitblit v1.9.1