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 | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 43 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/orderPakout/out.js b/src/main/webapp/static/js/orderPakout/out.js index ee74a9d..d84ce61 100644 --- a/src/main/webapp/static/js/orderPakout/out.js +++ b/src/main/webapp/static/js/orderPakout/out.js @@ -32,7 +32,8 @@ {type: 'checkbox'} ,{type: 'numbers', title: '#'} ,{field: 'orderNo', align: 'center',title: '鍗曟嵁缂栧彿', templet: '#orderNoTpl', width: 160} - ,{field: 'standby1$', align: 'center',title: '鍑哄簱浠撳簱'} + ,{field: 'cstmrName$', align: 'center',title: '瀹㈡埛', width: 160} + ,{field: 'standby1$', align: 'center',title: '鍑哄簱浠撳簱', width: 160} ,{field: 'matnr', align: 'center',title: '鍟嗗搧缂栫爜', width: 160} ,{field: 'maktx', align: 'center',title: '鍟嗗搧鍚嶇О', width: 200} ,{field: 'batch', align: 'center',title: '鎵规'} @@ -87,6 +88,30 @@ /* 琛ㄦ牸2鎼滅储 */ form.on('submit(sensorTbSearch)', function (data) { insTb2.reload({where: data.field, page: {curr: 1}}); + 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; }); @@ -355,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