This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-16 09:49:12 +07:00
parent 9256f6cd16
commit 6aa8a61b40
3 changed files with 362 additions and 2 deletions

View file

@ -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<boolean>(false); //
const formDetail = ref<ResponseObject>(); //
const modalDialogRetired = ref<boolean>(false);
const modalDialogResign = ref<boolean>(false); //
const modalDialogTransfer = ref<boolean>(false); //
const modalDialogRetired = ref<boolean>(false); //
//
const baseItemsMenu = ref<DataOptionSys[]>([
{
@ -95,6 +103,8 @@ const baseItemsMenu = ref<DataOptionSys[]>([
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 () => {
<!-- Dialog อมลการพนจากราชการ -->
<DialogRetired v-model:modal="modalDialogRetired" :data="formDetail" />
<!-- ลาออก -->
<DialogResign v-model:modal="modalDialogResign" />
<!-- ขอโอน -->
<DialogTransfer v-model:modal="modalDialogTransfer" />
</template>
<style scoped>