From 544b8c1998c344bd9f870cb3efd10e0ae0d61731 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 11 Mar 2024 14:35:03 +0700 Subject: [PATCH 1/3] =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3(=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/GovernmentInformation/01_Info.vue | 768 +++++++++++++++++- .../interface/index/government.ts | 28 + 2 files changed, 794 insertions(+), 2 deletions(-) create mode 100644 src/modules/04_registryNew/interface/index/government.ts diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue index 94f83fdf0..a5e544100 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue @@ -1,6 +1,770 @@ - + diff --git a/src/modules/04_registryNew/interface/index/government.ts b/src/modules/04_registryNew/interface/index/government.ts new file mode 100644 index 000000000..df450a86c --- /dev/null +++ b/src/modules/04_registryNew/interface/index/government.ts @@ -0,0 +1,28 @@ +interface MyObjectRef { + containDate: object | null; + workDate: object | null; + reasonSameDate: object | null; + [key: string]: any; +} + +interface RequestItemsHistoryObject { + oc: string | null; + position: string | null; + positionPathSide: string | null; + posNo: string | null; + positionLine: string | null; + positionType: string | null; + positionLevel: string | null; + positionExecutive: string | null; + positionExecutiveSide: string | null; + dateAppoint: Date; + dateStart: Date; + retireDate: string | null; + govAge: string | null; + govAgeAbsent: string | null; + govAgePlus: string | null; + reasonSameDate: string | null; + createdFullName: string | null; + createdAt: Date; + } +export type { MyObjectRef,RequestItemsHistoryObject }; From e35edfeed74920ef9bb6f66bdb0a89ceaa4384e2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 11 Mar 2024 14:58:20 +0700 Subject: [PATCH 2/3] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94?= =?UTF-8?q?=E0=B8=B7=E0=B8=AD=E0=B8=99=E0=B8=82=E0=B9=89=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3=20=20=3D>=20?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20body=20filter=20?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94?= =?UTF-8?q?=E0=B8=B7=E0=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SalaryLists/DialogAddPerson.vue | 4 ++ .../13_salary/interface/index/SalaryList.ts | 2 + .../13_salary/store/SalaryListsStore.ts | 4 +- src/modules/13_salary/views/salaryLists.vue | 38 +++++++++++-------- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/src/modules/13_salary/components/SalaryLists/DialogAddPerson.vue b/src/modules/13_salary/components/SalaryLists/DialogAddPerson.vue index 9e161c03c..6aaeefa4d 100644 --- a/src/modules/13_salary/components/SalaryLists/DialogAddPerson.vue +++ b/src/modules/13_salary/components/SalaryLists/DialogAddPerson.vue @@ -97,6 +97,8 @@ const formFilter = reactive({ pageSize: 10, keyword: "", rootId: "", + year: 0, + period: "", }); const maxPage = ref(1); @@ -111,6 +113,8 @@ function closeModal() { function fetchListPerson() { showLoader(); formFilter.rootId = store.rootId; + formFilter.period = store.roundMainCode; + formFilter.year = store.roundYear; http .post(config.API.salaryListPerson, formFilter) .then((res) => { diff --git a/src/modules/13_salary/interface/index/SalaryList.ts b/src/modules/13_salary/interface/index/SalaryList.ts index a490b5dff..0d62b7224 100644 --- a/src/modules/13_salary/interface/index/SalaryList.ts +++ b/src/modules/13_salary/interface/index/SalaryList.ts @@ -10,6 +10,8 @@ interface DataFilterPerson { pageSize: number; keyword: string; rootId: string; + year: number; + period: string; } export type { DataFilter, DataFilterPerson }; diff --git a/src/modules/13_salary/store/SalaryListsStore.ts b/src/modules/13_salary/store/SalaryListsStore.ts index 2b43dc022..ff11a843e 100644 --- a/src/modules/13_salary/store/SalaryListsStore.ts +++ b/src/modules/13_salary/store/SalaryListsStore.ts @@ -21,6 +21,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => { const groupId = ref(""); const rootId = ref(""); const roundMainCode = ref(""); + const roundYear = ref(0); const roundCode = ref(""); const isClosedRound = ref(false); // การปิดรอบ /** List Menu*/ @@ -152,6 +153,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => { groupOp, roundMainCode, remaining, - isClosedRound + isClosedRound, + roundYear, }; }); diff --git a/src/modules/13_salary/views/salaryLists.vue b/src/modules/13_salary/views/salaryLists.vue index aa126ca50..e2122f53a 100644 --- a/src/modules/13_salary/views/salaryLists.vue +++ b/src/modules/13_salary/views/salaryLists.vue @@ -4,7 +4,7 @@ import { useQuasar } from "quasar"; import config from "@/app.config"; import http from "@/plugins/http"; import ProcessStep from "@/modules/13_salary/components/SalaryLists/ProcessStep.vue"; -import PageDashBoard from '@/modules/13_salary/components/SalaryLists/Dashboard.vue' +import PageDashBoard from "@/modules/13_salary/components/SalaryLists/Dashboard.vue"; /** importType*/ import type { DataOption, @@ -63,6 +63,7 @@ function getRound() { revisionId: x.revisionId, shortCode: x.period, isClose: x.isClose, + year: x.year, name: (x.period === "OCT" ? "รอบตุลาคม " @@ -78,6 +79,7 @@ function getRound() { : ""); store.roundMainCode = roundFilter.value.shortCode; + store.roundYear = roundFilter.value.year; store.isClosedRound = roundFilter.value.isClose; await getSnap(roundFilter.value.shortCode); @@ -239,6 +241,7 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) { async function onChangeRound() { // เก็บสถานะการปิดรอบในตัวแปร isClosedRound เพื่อใช้ในการเช็ค store.isClosedRound = roundFilter.value.isClose; + console.log(roundFilter.value); await getSnap(roundFilter.value.shortCode); await getAgency(roundFilter.value.revisionId); @@ -251,6 +254,7 @@ async function onChangeRound() { // ); store.tabType = "PENDING"; store.roundMainCode = roundFilter.value.shortCode; + store.roundYear = roundFilter.value.year; } else { isLoad.value = false; } @@ -271,7 +275,11 @@ async function onChangeSnap() { async function onChangeAgency() { store.rootId = agencyFilter.value; - if (agencyFilter.value !== 'ALL' && roundFilter.value.id && snapFilter.value) { + if ( + agencyFilter.value !== "ALL" && + roundFilter.value.id && + snapFilter.value + ) { await fetchSalalyPeriod( agencyFilter.value, roundFilter.value.id, @@ -394,20 +402,18 @@ onMounted(async () => { -->
- - - - -
- - ไม่มีข้อมูล - -
-
-
-
- -
+ + +
+ + ไม่มีข้อมูล + +
+
+ +
+ +
Date: Mon, 11 Mar 2024 15:58:36 +0700 Subject: [PATCH 3/3] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4:=20UI=20=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=84=E0=B8=A3=E0=B8=AD=E0=B8=9A?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B1=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/04_Family.vue | 1151 ++++++++++++++++- 1 file changed, 1149 insertions(+), 2 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue index ecfe8f03f..1c6623747 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue @@ -1,6 +1,1153 @@ - + +