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: diff --git a/src/modules/05_placement/components/PersonalDetail/Information/Address.vue b/src/modules/05_placement/components/PersonalDetail/Information/Address.vue index 482b5b1bf..e83889aa4 100644 --- a/src/modules/05_placement/components/PersonalDetail/Information/Address.vue +++ b/src/modules/05_placement/components/PersonalDetail/Information/Address.vue @@ -1,6 +1,6 @@ +