From b13b24e37d402cf6d7389628121729b1a0e88f73 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 25 Jul 2025 11:24:17 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B9=80?= =?UTF-8?q?=E0=B9=80=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=20=E0=B8=9E=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/PopupPersonalNew.vue | 51 ++++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index e0bd788f5..0f9c2c695 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -5,6 +5,7 @@ import http from "@/plugins/http"; import config from "@/app.config"; import { useRouter, useRoute } from "vue-router"; import { checkPermissionGet } from "@/utils/permissions"; +import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store"; /** importType*/ import type { PersonalImformation } from "@/components/information/interface/response/Information"; @@ -20,6 +21,7 @@ import { useCounterMixin } from "@/stores/mixin"; import CardPosition from "@/modules/21_report/components/CardPosition.vue"; /** use*/ +const store = useRegistryNewDataStore(); const route = useRoute(); const mixin = useCounterMixin(); const router = useRouter(); @@ -27,6 +29,11 @@ const $q = useQuasar(); const retireDate = ref(); const { showLoader, hideLoader, messageError, date2Thai } = mixin; +const isLeave = ref(false); +const dateLeave = ref(null); +const leaveType = ref(""); +const leaveReason = ref(""); +const leaveCommandNo = ref(""); const isEmployee = defineModel("isEmployee", { type: String }); const empType = ref("officer"); const checkRoute = ref(route.name == "reportRegistry"); @@ -146,6 +153,12 @@ async function fetchInformation(id: string) { imformation.birthDate = data.birthDate ? date2Thai(data.birthDate) : "-"; imformation.age = data.birthDate ? calculateAge(data.birthDate) : "-"; imformation.gender = data.gender ?? "-"; + isLeave.value = data.isLeave; + dateLeave.value = data.dateLeave ? date2Thai(data.dateLeave) : "-"; + leaveType.value = store.convertTypeRetired(data.leaveType); + leaveReason.value = data.leaveReason; + leaveCommandNo.value = data.leaveCommandNo; + employeeClass.value = data.employeeClass ?? "officer"; avatar.fullname = `${data.prefix}${data.firstName} ${data.lastName}`; @@ -297,7 +310,7 @@ watch(modal, (newValue) => { ทะเบียนประวัติ + >ทะเบียนประวัติ{{ isLeave ? "ผู้พ้นจากราชการ" : "" }} { }} - +
+
+ +
+
+ +
+
+ +
+
+ +
+
+