From 6aa8a61b4087fe191ba6195367d321a4491d956a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 16 Jan 2026 09:49:12 +0700 Subject: [PATCH 1/2] feat --- .../components/DialogResingn.vue | 217 ++++++++++++++++++ .../components/DialogTransfer.vue | 118 ++++++++++ .../04_registryPerson/views/detailView.vue | 29 ++- 3 files changed, 362 insertions(+), 2 deletions(-) create mode 100644 src/modules/04_registryPerson/components/DialogResingn.vue create mode 100644 src/modules/04_registryPerson/components/DialogTransfer.vue diff --git a/src/modules/04_registryPerson/components/DialogResingn.vue b/src/modules/04_registryPerson/components/DialogResingn.vue new file mode 100644 index 000000000..88505c136 --- /dev/null +++ b/src/modules/04_registryPerson/components/DialogResingn.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/src/modules/04_registryPerson/components/DialogTransfer.vue b/src/modules/04_registryPerson/components/DialogTransfer.vue new file mode 100644 index 000000000..836e5fedd --- /dev/null +++ b/src/modules/04_registryPerson/components/DialogTransfer.vue @@ -0,0 +1,118 @@ +div + + + + + diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index 51132ac2e..527c4b5ae 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -33,10 +33,15 @@ const DialogHeader = defineAsyncComponent( const TabMain = defineAsyncComponent( () => import("@/modules/04_registryPerson/components/detail/TabMain.vue") ); - const DialogRetired = defineAsyncComponent( () => import("@/modules/04_registryPerson/components/DialogRetired.vue") ); +const DialogResign = defineAsyncComponent( + () => import("@/modules/04_registryPerson/components/DialogResingn.vue") +); +const DialogTransfer = defineAsyncComponent( + () => import("@/modules/04_registryPerson/components/DialogTransfer.vue") +); /** use*/ const $q = useQuasar(); @@ -72,7 +77,10 @@ const reasonDeath = ref(""); //เหตุผลการเสียชีว const dialogImage = ref(false); //แสดงเลือกรูปภาพ const formDetail = ref(); //ข้อมูลส่วนตัว -const modalDialogRetired = ref(false); +const modalDialogResign = ref(false); //ป๊อบอัพขอลาออก +const modalDialogTransfer = ref(false); //ป๊อบอัพขอโอน +const modalDialogRetired = ref(false); //ป๊อบอัพข้อมูลการพ้นจากราชการ + //รายการเมนูออกคำสั่งข้าราชการ const baseItemsMenu = ref([ { @@ -95,6 +103,8 @@ const baseItemsMenu = ref([ name: "ให้ออกจากราชการ", system: "SYS_DISMISS", }, + { id: "7", name: "ขอโอน", system: "SYS_TRANSFER_REQ" }, + { id: "8", name: "ขอลาออก", system: "SYS_RESIGN" }, { id: "6", name: "อื่นๆ", @@ -765,6 +775,14 @@ const titleName = computed(() => { : "ทะเบียนประวัติ"; }); +function openDialogSendTransferResign( + system: "SYS_TRANSFER_REQ" | "SYS_RESIGN" +) { + system === "SYS_TRANSFER_REQ" + ? (modalDialogTransfer.value = true) + : (modalDialogResign.value = true); +} + onMounted(async () => { await fetchDataPersonal(); }); @@ -830,6 +848,9 @@ onMounted(async () => { ? outPost() : item.name == 'อื่นๆ' ? otherPost() + : item.system === 'SYS_TRANSFER_REQ' || + item.system === 'SYS_RESIGN' + ? openDialogSendTransferResign(item.system) : null " v-close-popup @@ -1211,6 +1232,10 @@ onMounted(async () => { + + + +