From eb992eefd1d2d2c6815fcc0702104be5ae06c55b Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 24 Feb 2025 13:51:03 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registryPerson/views/listView.vue | 4 +- .../21_report/views/02_reportRegistry.vue | 64 +++++++++++++++++-- 2 files changed, 58 insertions(+), 10 deletions(-) diff --git a/src/modules/04_registryPerson/views/listView.vue b/src/modules/04_registryPerson/views/listView.vue index 89f64532f..e28df35c2 100644 --- a/src/modules/04_registryPerson/views/listView.vue +++ b/src/modules/04_registryPerson/views/listView.vue @@ -780,9 +780,7 @@ onMounted(async () => {
- - Advanced search - + Advanced search
diff --git a/src/modules/21_report/views/02_reportRegistry.vue b/src/modules/21_report/views/02_reportRegistry.vue index 3d70e56a9..0b5f03647 100644 --- a/src/modules/21_report/views/02_reportRegistry.vue +++ b/src/modules/21_report/views/02_reportRegistry.vue @@ -24,6 +24,7 @@ import type { } from "@/modules/21_report/interface/Main"; import DialogOrg from "@/modules/21_report/components/01_org/DialogOrg.vue"; +import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue"; const $q = useQuasar(); const route = useRoute(); @@ -89,12 +90,13 @@ const org = ref(""); const isProbation = ref(false); const isRetire = ref(false); +const isRetireLaw = ref(false); const pagination = ref({ sortBy: "dateAppoint", descending: true, page: 1, - rowsPerPage: 19, + rowsPerPage: 20, }); const sortBy = ref("DESC"); const retireType = ref(""); @@ -377,9 +379,7 @@ function updateLevel(val: string) { } } -/** - * ฟังก์เรียกข้อมูลรายการประเภทตำแหน่ง - */ +/** ฟังก์เรียกข้อมูลรายการประเภทตำแหน่ง*/ async function getType() { posType.value = ""; posLevel.value = ""; @@ -497,6 +497,7 @@ async function onSearch() { retireType: retireType.value, sortBy: sortBy.value ? "dateAppoint" : "", sort: sortBy.value ? sortBy.value : "ASC", + isRetireLaw: isRetireLaw.value, }; showLoader(); await http @@ -510,6 +511,7 @@ async function onSearch() { const data = res.data.result.data; total.value = res.data.result.total; rows.value = data.map((item: any, index: number) => ({ + profileId: item.profileId, no: index + 1, fullName: item.firstName ? `${item.prefix ?? ""}${item.firstName ?? ""} ${item.lastName ?? ""}` @@ -528,6 +530,7 @@ async function onSearch() { age: item.age ?? "-", currentPosition: item.currentPosition ?? "-", lengthPosition: item.lengthPosition ?? "-", + empType: employeeClass.value, })); }) .catch((e) => { @@ -544,7 +547,7 @@ async function onSearch() { function exportToExcel() { const newData = rows.value.map((e: any) => { - const { dateAppointFull, ...rest } = e; + const { dateAppointFull, profileId, empType, ...rest } = e; return rest; }); @@ -625,11 +628,26 @@ function updateSelectedTreeMain(data: any) { org.value = data.orgName; storeReport.formFilter.node = data.orgLevel; storeReport.formFilter.nodeId = data.orgTreeId; - expandedModal.value = false + expandedModal.value = false; +} + +const personId = ref(""); +const empType = ref(""); +const modalPersonal = ref(false); +function onViewInfo(id: string, type: string) { + personId.value = id; + empType.value = type; + modalPersonal.value = true; +} + +function updatemodalPersonal(modal: boolean) { + modalPersonal.value = modal; } onMounted(async () => { showLoader(); + storeReport.formFilter.node = null; + storeReport.formFilter.nodeId = ""; Promise.all([ getType(), getOptions(), @@ -799,7 +817,7 @@ onMounted(async () => { autogrow borderless label="สังกัด" - class="bg-white full-width " + class="bg-white full-width" > +