diff --git a/src/api/exam/api.candidate.ts b/src/api/exam/api.candidate.ts index 6ad8845..cfa5139 100644 --- a/src/api/exam/api.candidate.ts +++ b/src/api/exam/api.candidate.ts @@ -45,5 +45,8 @@ export default { candidateReport: (candidateId: string) => `${env.API_URI}/placement/candidate/pdf/${candidateId}`, - candidatePaymentExport: (examId: string) => `${candidate}period-exam/payment-export/${examId}` + candidatePaymentExport: (examId: string) => `${candidate}period-exam/payment-export/${examId}`, + + registerConfirm: (examId: string, positionId: string) => + `${candidate}register-confirm/${examId}/${positionId}` } diff --git a/src/modules/01_exam/components/ExamCard.vue b/src/modules/01_exam/components/ExamCard.vue index c26bcfe..baec980 100644 --- a/src/modules/01_exam/components/ExamCard.vue +++ b/src/modules/01_exam/components/ExamCard.vue @@ -3,7 +3,15 @@
ข้อมูลการสมัคร - + ดาวน์โหลดใบสมัคร
@@ -17,11 +25,11 @@
เลขประจำตัวประชาชน :
{{ citizenId }}
-
+
เลขประจำตัวผู้สมัคร :
{{ examNumber }}
-
+
สนามสอบ :
{{ examSeat }}
@@ -131,7 +139,7 @@
-->
- + diff --git a/src/modules/01_exam/components/Form/Address.vue b/src/modules/01_exam/components/Form/Address.vue index 6d59cf1..1af5591 100644 --- a/src/modules/01_exam/components/Form/Address.vue +++ b/src/modules/01_exam/components/Form/Address.vue @@ -12,14 +12,14 @@
@@ -235,6 +235,10 @@ const props = defineProps({ form: { type: Object, required: true + }, + isStatusRegister: { + type: Boolean, + required: true } }) const emit = defineEmits(['update:form']) diff --git a/src/modules/01_exam/components/Form/Career.vue b/src/modules/01_exam/components/Form/Career.vue index 8fe8913..dbc7551 100644 --- a/src/modules/01_exam/components/Form/Career.vue +++ b/src/modules/01_exam/components/Form/Career.vue @@ -14,8 +14,8 @@ :addData="false" :bottom="true" :editBtn="false" - :boss="status == 'register' || status == 'rejectRegister'" - :editData="status == 'register' || status == 'rejectRegister'" + :boss="isStatusRegister" + :editData="isStatusRegister" name="ประวัติการทำงาน (ตั้งแต่เริ่มปฏิบัติงานกับกรุงเทพมหานคร - ปัจจุบัน)" icon="mdi-briefcase" :is-showfilter="false" @@ -247,7 +247,7 @@ :validate="validateData" :clickNext="clickNext" :clickPrevious="clickPrevious" - :editData="status == 'register' || status == 'rejectRegister'" + :editData="isStatusRegister" v-model:editvisible="edit" v-model:next="next" v-model:previous="previous" @@ -281,6 +281,10 @@ const props = defineProps({ status: { type: String, required: true + }, + isStatusRegister: { + type: Boolean, + required: true } }) diff --git a/src/modules/01_exam/components/Form/Contact.vue b/src/modules/01_exam/components/Form/Contact.vue index 15a9365..3d5d508 100644 --- a/src/modules/01_exam/components/Form/Contact.vue +++ b/src/modules/01_exam/components/Form/Contact.vue @@ -12,9 +12,9 @@
, required: true + }, + isStatusRegister: { + type: Boolean, + required: true } }) const emit = defineEmits(['update:form']) @@ -173,7 +177,7 @@ const fetchData = async () => { defaultContact.value.contactlastname = data.contactLastname defaultContact.value.contactrelations = data.contactRelations defaultContact.value.contacttel = data.contactTel - defaultContact.value.contactprefixName = data.contactPrefixName + defaultContact.value.contactprefixName = data.contactPrefix } }) .catch((e) => { diff --git a/src/modules/01_exam/components/Form/Education.vue b/src/modules/01_exam/components/Form/Education.vue index 2908722..0d50a2c 100644 --- a/src/modules/01_exam/components/Form/Education.vue +++ b/src/modules/01_exam/components/Form/Education.vue @@ -13,10 +13,10 @@