From e88205f5a9a1a1be5eb721c122d74bf9a626fab2 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期一, 11 九月 2023 09:09:57 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/plan/plan.js | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/plan/plan.js b/src/main/webapp/static/js/plan/plan.js index a540409..8ae8155 100644 --- a/src/main/webapp/static/js/plan/plan.js +++ b/src/main/webapp/static/js/plan/plan.js @@ -850,6 +850,7 @@ autoRow: true, filterable: true, remoteSearch: true, + clickClose: true, radio: true, remoteMethod: function (val, cb, show) { $.ajax({ @@ -868,6 +869,25 @@ } } }); + }, + on: function (data){ + if (data.change.length > 0) { + let orderId = data.change[0].value; + $.ajax({ + url: baseUrl + "/order/" + orderId + "/auth", + headers: {'token': localStorage.getItem('token')}, + data: {}, + method: 'GET', + success: function (res) { + if (res.code === 200) { + let cstmrSel = loadCstmrSel(); + cstmrSel.setValue([{name: res.data.cstmrId$, value: res.data.cstmrId}]); + } else { + layer.msg(res.msg, {icon: 2}); + } + } + }); + } } }); } -- Gitblit v1.9.1