diff --git a/src/components/CardProfile.vue b/src/components/CardProfile.vue new file mode 100644 index 000000000..e73dbbab3 --- /dev/null +++ b/src/components/CardProfile.vue @@ -0,0 +1,140 @@ + + + + + + + {{ profile.fullName }} + + + + + + + + + + + + + + ตำแหน่งในสายงาน + + {{ profile.position }} + + + + + + ประเภทตำแหน่ง + + {{ profile.positionLevel }} + + + + + + สังกัด + + {{ profile.organization }} + + + + + + + + + + + diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index d9664e4cb..df0e8794a 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -142,7 +142,7 @@ async function fetchProfileGov(id: string) { goverment.positionType = data.posType !== "" ? data.posType : "-"; goverment.positionLevel = data.posLevel !== "" ? data.posLevel : "-"; goverment.positionExecutive = - data.posExecutive !== "" ? data.posExecutive : "-"; + data.posExecutive !== null ? data.posExecutive : "-"; goverment.positionExecutiveSide = data.positionExecutiveField !== "" ? data.positionExecutiveField : "-"; }) @@ -172,9 +172,12 @@ watch( async () => { modal.value = props.modal ? props.modal : false; if (modal.value) { - props.id && (fetchInformation(props.id), fetchProfileGov(props.id)); - (fileName.value = `profile-${props.id}`), + if (props.id) { + fetchInformation(props.id); + fetchProfileGov(props.id); + fileName.value = `profile-${props.id}`; fetchProfile(props.id as string); + } } } ); @@ -214,11 +217,6 @@ async function fetchProfile(id: string) { style="color: red; background-color: #ffdede" /> - diff --git a/src/interface/main.ts b/src/interface/main.ts index cb2e79ee5..21a88d9d6 100644 --- a/src/interface/main.ts +++ b/src/interface/main.ts @@ -2,5 +2,13 @@ interface DataOption { id: string; label: string; } +interface FormProfile { + id: string; + avatar: string; + fullName: string; + position: string; + positionLevel: string; + organization: string; +} -export type { DataOption }; +export type { DataOption, FormProfile }; diff --git a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue index 68f398dfb..864bf2f71 100644 --- a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue +++ b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue @@ -1,21 +1,21 @@ -div @@ -195,99 +145,58 @@ onMounted(async () => { /> รายละเอียดการส่งตัวกลับ {{ fullname }} - - - - {{ fullname }} - - - - - - - - - - - - - - ตำแหน่งในสายงาน - - {{ position }} - - - - - - ประเภทตำแหน่ง - - {{ positionLevel }} - - - - - - สังกัด - - {{ organization }} - - - - - - + + - - - แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย + + + + แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย + + + + + + + + + - - - - - - - - - - - + + @@ -351,7 +260,7 @@ onMounted(async () => { lazy-rules :readonly="!edit" :borderless="!edit" - v-model="posNo" + v-model="positionNumberOld" :rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]" hide-bottom-space :label="`${'เลขที่'}`" @@ -501,12 +410,6 @@ onMounted(async () => { - -