From 754618ebe67bff20d4cbcf0edd96062d81169bf9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 8 May 2025 16:51:23 +0700 Subject: [PATCH 1/8] =?UTF-8?q?fix=20=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=20=3D=3D>=20=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=AA=E0=B8=A7?= =?UTF-8?q?=E0=B8=99=E0=B8=95=E0=B8=B1=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/detail/PersonalInformation/01_Profile.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue index ac0565fcf..5b11bf542 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue @@ -283,6 +283,8 @@ async function getData() { if (res.data.result.birthDate) { // กำหนดอายุ ส่งวันเกิดไปคำนวน age.value = calculateAge(res.data.result.birthDate); + } else { + age.value = null; } }) .catch((e) => { From 2b9ee64d04af5811aef6fc403e882d4be255b60e Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 8 May 2025 17:43:24 +0700 Subject: [PATCH 2/8] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/05_Leave/DetailLeaveReject.vue | 36 ++++++--------- .../components/05_Leave/TableList.vue | 46 +++++++++++-------- src/modules/09_leave/stores/LeaveStore.ts | 4 +- 3 files changed, 44 insertions(+), 42 deletions(-) diff --git a/src/modules/09_leave/components/05_Leave/DetailLeaveReject.vue b/src/modules/09_leave/components/05_Leave/DetailLeaveReject.vue index 8da9d1c98..163d8b63c 100644 --- a/src/modules/09_leave/components/05_Leave/DetailLeaveReject.vue +++ b/src/modules/09_leave/components/05_Leave/DetailLeaveReject.vue @@ -1,5 +1,5 @@ diff --git a/src/modules/07_insignia/components/2_Manage/Tab3.vue b/src/modules/07_insignia/components/2_Manage/Tab3.vue index e5efde690..2654f15b1 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab3.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab3.vue @@ -271,15 +271,17 @@ function onSearch() { watch( () => DataStore.typeOc, async () => { - filterOrganizationOP.value = await DataStore.optionsTypeOc; - organization.value = await DataStore.typeOc; + filterOrganizationOP.value = DataStore.optionsTypeOc; + organization.value = DataStore.typeOc; + DataStore.selectOrganization = DataStore.typeOc; } ); /** Hook*/ onMounted(async () => { - filterOrganizationOP.value = await DataStore.optionsTypeOc; - organization.value = await DataStore.typeOc; + filterOrganizationOP.value = DataStore.optionsTypeOc; + organization.value = DataStore.typeOc; + DataStore.selectOrganization = DataStore.typeOc; if (organization.value !== "" || organization.value !== undefined) { if (props.fecthInsigniaByOc) { isDeputy.value = await (DataStore.optionsTypeOc.findIndex( diff --git a/src/modules/07_insignia/store.ts b/src/modules/07_insignia/store.ts index d6a99c582..c1b8892f5 100644 --- a/src/modules/07_insignia/store.ts +++ b/src/modules/07_insignia/store.ts @@ -47,6 +47,8 @@ export const useInsigniaDataStore = defineStore("insignia", () => { const isOfficer = ref(false); const isStaff = ref(false); const isDirector = ref(false); + const isDeputy = ref(false); + const selectOrganization = ref(""); /** option รายงาน */ const optionReport = ref([ @@ -285,5 +287,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => { isStaff, isOfficer, isDirector, + isDeputy, + selectOrganization, }; }); diff --git a/src/modules/07_insignia/views/02_ManageMain.vue b/src/modules/07_insignia/views/02_ManageMain.vue index 9d3cdec7c..0de4d28d8 100644 --- a/src/modules/07_insignia/views/02_ManageMain.vue +++ b/src/modules/07_insignia/views/02_ManageMain.vue @@ -158,6 +158,7 @@ async function fecthAgency(id: string) { }) .then((res) => { DataStore.agency = res.data.result.rootId; + DataStore.selectOrganization = res.data.result.rootId; DataStore.typeOc = DataStore.agency; }) .catch((err) => { @@ -190,6 +191,7 @@ async function fetchCheckIsofficer() { DataStore.isStaff = data.isStaff; DataStore.isOfficer = data.isOfficer; DataStore.isDirector = data.isDirector; + DataStore.isDeputy = data.isDeputy; }) .catch((err) => { messageError($q, err); @@ -556,7 +558,7 @@ onUnmounted(() => { >
{ { flat round color="primary" - v-if="DataStore.isStaff && checkPermission($route)?.attrIsGet" + v-if="checkPermission($route)?.attrIsGet" :href="document" target="_blank" > @@ -684,9 +686,11 @@ onUnmounted(() => { >
+ Date: Thu, 15 May 2025 13:18:21 +0700 Subject: [PATCH 8/8] fix --- .../07_insignia/views/01_RoundMain.vue | 23 ++++--------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/src/modules/07_insignia/views/01_RoundMain.vue b/src/modules/07_insignia/views/01_RoundMain.vue index 13d5bfd3e..4a163283d 100644 --- a/src/modules/07_insignia/views/01_RoundMain.vue +++ b/src/modules/07_insignia/views/01_RoundMain.vue @@ -32,7 +32,6 @@ const { const rows = ref([]); //รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์ const rowsData = ref([]); //รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์ const filterKeyword = ref(""); //คำค้นหาข้อมูลในตาราง -const filterRef = ref(null); const columns = ref([ { name: "period_name", @@ -103,9 +102,7 @@ const modalForm = ref(false); //แสดงรายละเอีย const actionType = ref(""); // ประเภท ดูรายละเอียด,แก้ไข const roundId = ref(""); //id ที่ต้องการ ดูรายละเอียด,แก้ไข -/** - * Function เรียกรายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์ - */ +/** Function เรียกรายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์*/ async function fetchData() { showLoader(); await http @@ -149,7 +146,7 @@ function clickDelete(id: string) { .delete(config.API.RoundInsignia(id)) .then(async () => { await fetchData(); - await success($q, "ลบข้อมูลสำเร็จ"); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((e) => { messageError($q, e); @@ -160,16 +157,6 @@ function clickDelete(id: string) { }); } -/** - * Function กำหนดค่า filterKeyword เป็นค่าว่าง - */ -function resetFilter() { - filterKeyword.value = ""; - if (filterRef.value) { - filterRef.value.focus(); - } -} - /** * function ดูข้อมูลรายละเอียดรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์ * @param action ประเภท ดูรายละเอียด,แก้ไข @@ -189,9 +176,7 @@ function onSearch() { ); } -/** - * ทำงานเมื่อ Componenets ถูกเรียกใช้งาน - */ +/** ทำงานเมื่อ Componenets ถูกเรียกใช้งาน*/ onMounted(async () => { await fetchData(); }); @@ -201,6 +186,7 @@ onMounted(async () => {
รายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์
+
@@ -222,7 +208,6 @@ onMounted(async () => { standout dense v-model="filterKeyword" - ref="filterRef" outlined placeholder="ค้นหา" @keydown.enter="onSearch"