From a89370434a36ec67debe256d7bf1638a913b2bba Mon Sep 17 00:00:00 2001 From: Kittapath Date: Thu, 21 Sep 2023 11:19:06 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=84=E0=B8=B1=E0=B8=94=E0=B9=80?= =?UTF-8?q?=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/02_qualify/PeriodAdd.vue | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index f33f90ddb..58d81888c 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -385,10 +385,8 @@ @@ -412,9 +410,9 @@ square class="q-my-none q-ml-xs q-mr-none" > - {{ scope.opt.positionName }} + {{ scope.opt.name }} - + @@ -1021,8 +1019,8 @@ const myFormPayment = ref(); const myFormPosition = ref(); const positionPathOptions = ref([]); const governmentCodeOption = ref([]); -const organizationShortName = ref({ id: "", name: "" }); -const organizationName = ref({ id: "", name: "" }); +const organizationShortName = ref(); +const organizationName = ref(); const organizationNameOptions = ref([]); const examTypeOptions = [ { name: "ทั่วไป", id: "normol" }, @@ -1221,14 +1219,18 @@ const fetchData = async () => { data.paymentStartDate != null && data.paymentEndDate != null ? [new Date(data.paymentStartDate), new Date(data.paymentEndDate)] : null; - organizationShortName.value = { - id: data.organizationCodeId, - name: data.organizationCodeName, - }; - organizationName.value = { - id: data.organizationId, - name: data.organizationName, - }; + if (data.organizationCodeId != null) { + organizationShortName.value = { + id: data.organizationCodeId, + name: data.organizationCodeName, + }; + } + if (data.organizationId != null) { + organizationName.value = { + id: data.organizationId, + name: data.organizationName, + }; + } rowsPosition.value = positionData; pay.value = data.paymentKrungThai; rowsPayment.value = bankData; @@ -1369,7 +1371,7 @@ const sendData = () => { highDegree: r.highDegree ? true : false, }); }); - const valueData: RequestPeriodExam = { + const valueData: any = { announcementDate: dateAnnounce.value != null ? dateToISO(dateAnnounce.value) : null, announcementEndDate: