From 591bf89e5aec19ac24b25c82bc7a8c5afa61a324 Mon Sep 17 00:00:00 2001 From: alina <1449359159@qq.com> Date: Thu, 16 Feb 2023 15:26:18 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20=E6=89=BF=E8=BE=A6=E4=BA=BA=E6=9C=AA?= =?UTF-8?q?=E6=9F=A5=E8=A9=A2=E5=87=BA=E5=88=97=E8=A1=A8=E6=99=82=E9=A1=AF?= =?UTF-8?q?=E7=A4=BA=E7=A9=BA=20[WHY]=20FEATURE=20[HOW]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scripts/pages/ShowEasy/ONSiteMaintain_Upd.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/EuroTran/WebApp/Scripts/pages/ShowEasy/ONSiteMaintain_Upd.js b/EuroTran/WebApp/Scripts/pages/ShowEasy/ONSiteMaintain_Upd.js index 790a1c2..6b9c848 100644 --- a/EuroTran/WebApp/Scripts/pages/ShowEasy/ONSiteMaintain_Upd.js +++ b/EuroTran/WebApp/Scripts/pages/ShowEasy/ONSiteMaintain_Upd.js @@ -1109,9 +1109,7 @@ var fnPageInit = function () { }, //設置供應商聯絡人 setSupplierContactorDrop = function () { - - - return g_api.ConnectLite(canDo.QueryPrgId, "QuerySupplierContactorList", { LangID: ($('#LangID').val() || sLang), SupplierID: $('#SupplierID').val() }, function (res) { + return g_api.ConnectLite(canDo.QueryPrgId, "QuerySupplierContactorList", { LangID: ($('#LangID').val() || sLang), SupplierID: $('#SupplierID').val() }, function (res) { if (res.RESULT) { let saSupplier = res.DATA.rel; if (saSupplier.length > 0) { @@ -1119,12 +1117,13 @@ var fnPageInit = function () { $('#Undertaker').append(createOptions(saSupplier, 'Guid', 'ContacterName', false)).select2(); $('#Undertaker').val([]); $('#Undertaker').trigger('change'); + } else { + $('#Undertaker').html(""); + $('#Undertaker').val([]); + $('#Undertaker').trigger('change'); } } }); - - - }, //設置服務子類別 setSubCategoryDrop = function () {