From 9f2f1f535d4abfc9cdf68eef651cb73ef2e04bcb Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期二, 29 七月 2025 11:06:14 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/orderPakout/out.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/orderPakout/out.js b/src/main/webapp/static/js/orderPakout/out.js index 585f941..d84ce61 100644 --- a/src/main/webapp/static/js/orderPakout/out.js +++ b/src/main/webapp/static/js/orderPakout/out.js @@ -91,6 +91,30 @@ return false; }); + form.on('submit(defaultOutSta)', function (data) { + let val = $("#defaultOutStaSelect").val(); + $.ajax({ + url: baseUrl + "/user/updateDefaultOutSta", + headers: {'token': localStorage.getItem('token')}, + contentType: 'application/json;charset=UTF-8', + data: JSON.stringify({ + defaultOutSta: val + }), + method: 'POST', + success: function (res) { + if (res.code === 200){ + layer.msg(res.msg, {icon: 1}) + $("#defaultOutSta").html(val) + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg, {icon: 2}) + } + } + }) + return false; + }); + /* 琛ㄦ牸2澶村伐鍏锋爮鐐瑰嚮浜嬩欢 */ table.on('toolbar(orderDetlTable)', function (obj) { @@ -356,6 +380,23 @@ }); +$.ajax({ + url: baseUrl + "/user/getDefaultOutSta", + headers: {'token': localStorage.getItem('token')}, + contentType: 'application/json;charset=UTF-8', + data: {}, + method: 'POST', + success: function (res) { + if (res.code === 200){ + $("#defaultOutSta").html(res.data) + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg, {icon: 2}) + } + } +}) + function tableReload(child) { var searchData = {}; $.each($('#search-box [name]').serializeArray(), function() { -- Gitblit v1.9.1