From 81b6889eb01716cf66651f91679e9cd728c904cb Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 18 Jun 2024 16:42:40 +0700 Subject: [PATCH 01/11] =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=81=E0=B8=A9?= =?UTF-8?q?=E0=B8=B2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=83=E0=B8=99=E0=B8=95?= =?UTF-8?q?=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87=20=3D>?= =?UTF-8?q?=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/request/main/main.ts | 7 + src/modules/17_acting/router.ts | 14 + src/modules/17_acting/views/main.vue | 626 ++++++++++++++++++++++++++ src/router/index.ts | 2 + src/views/TestManagement.vue | 631 +++++++++++++++++++++++---- 5 files changed, 1203 insertions(+), 77 deletions(-) create mode 100644 src/modules/17_acting/router.ts create mode 100644 src/modules/17_acting/views/main.vue diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 18e1cf255..94b84afc0 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -134,6 +134,13 @@ const menuList = readonly([ path: "organizationalNew", role: "organization", }, + { + key: 3, + icon: "mdi-account-convert", + label: "รักษาการในตำแหน่ง", + path: "acting", + role: "organization", + }, { key: 3, icon: "o_groups", diff --git a/src/modules/17_acting/router.ts b/src/modules/17_acting/router.ts new file mode 100644 index 000000000..2a063dbf0 --- /dev/null +++ b/src/modules/17_acting/router.ts @@ -0,0 +1,14 @@ +const mainPage = () => import("@/modules/17_acting/views/main.vue"); + +export default [ + { + path: "/acting", + name: "acting", + component: mainPage, + meta: { + Auth: true, + Key: [1], + Role: "organization", + }, + }, +]; diff --git a/src/modules/17_acting/views/main.vue b/src/modules/17_acting/views/main.vue new file mode 100644 index 000000000..35658b8c0 --- /dev/null +++ b/src/modules/17_acting/views/main.vue @@ -0,0 +1,626 @@ + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index c40e5cc50..6f2f6b949 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -24,6 +24,7 @@ import ModuleSalary from "@/modules/13_salary/router"; import ModuleKPI from "@/modules/14_KPI/router"; import ModuleDevelopment from "@/modules/15_development/router"; import ModuleSupport from "@/modules/00_support/router"; +import ModuleActing from "@/modules/17_acting/router"; // TODO: ใช้หรือไม่? import keycloak from "@/plugins/keycloak"; @@ -66,6 +67,7 @@ const router = createRouter({ ...ModuleKPI, ...ModuleDevelopment, ...ModuleSupport, + ...ModuleActing, ], }, /** diff --git a/src/views/TestManagement.vue b/src/views/TestManagement.vue index 80139f275..3fba0e280 100644 --- a/src/views/TestManagement.vue +++ b/src/views/TestManagement.vue @@ -1,89 +1,566 @@ - + From 13370f2b706f4f45d8344490ee21c53ba8f00659 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 18 Jun 2024 17:30:51 +0700 Subject: [PATCH 02/11] updated --- src/modules/17_acting/views/main.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/17_acting/views/main.vue b/src/modules/17_acting/views/main.vue index 35658b8c0..191a1a463 100644 --- a/src/modules/17_acting/views/main.vue +++ b/src/modules/17_acting/views/main.vue @@ -361,7 +361,7 @@ onMounted(() => {
@@ -598,12 +598,12 @@ onMounted(() => {
- + From 8ed23a95a96a0497b46a49dbe87f16375ef2c482 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 19 Jun 2024 10:11:32 +0700 Subject: [PATCH 03/11] =?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=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B9=80?= =?UTF-8?q?=E0=B8=81=E0=B9=88=E0=B8=B2=20=3D>=20=E0=B9=80=E0=B8=9E?= =?UTF-8?q?=E0=B8=B4=E0=B9=88=E0=B8=A1=20template=20=E0=B8=95=E0=B8=B3?= =?UTF-8?q?=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registry/stores/salary.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/04_registry/stores/salary.ts b/src/modules/04_registry/stores/salary.ts index 750d2889e..59e993edf 100644 --- a/src/modules/04_registry/stores/salary.ts +++ b/src/modules/04_registry/stores/salary.ts @@ -94,6 +94,10 @@ export const useSalaryDataStore = defineStore("salary", () => { id: 21, name: "โปรดเกล้าฯ แต่งตั้งให้ดำรงตำแหน่ง{รายละเอียดของตำแหน่งและหน่วยงาน}", }, + { + id: 22, + name: "รักษาการในตำแหน่งหัวหน้าฝ่าย {ฝ่าย…} {หน่วยงาน/สำนัก} {ลำดับที่…} คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่/ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, ]); const optionDoc = ref([ From 85de8eba4f58476fab0e26fb92d8d4659589a6fd Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 19 Jun 2024 11:43:34 +0700 Subject: [PATCH 04/11] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20=E0=B8=A3=E0=B8=B0=E0=B8=94=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=9D=E0=B9=88=E0=B8=B2=E0=B8=A2/=E0=B8=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=B8=E0=B9=88=E0=B8=A1=E0=B8=87=E0=B8=B2=E0=B8=99=20"?= =?UTF-8?q?=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B5=E0=B8=94=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=E0=B9=80=E0=B8=9E=E0=B8=A5=E0=B8=B4=E0=B8=87=E0=B9=81?= =?UTF-8?q?=E0=B8=A5=E0=B8=B0=E0=B8=81=E0=B8=B9=E0=B9=89=E0=B8=A0=E0=B8=B1?= =?UTF-8?q?=E0=B8=A2"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../02_organizationalNew/components/DialogFormAgency.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/02_organizationalNew/components/DialogFormAgency.vue b/src/modules/02_organizationalNew/components/DialogFormAgency.vue index 30f625473..cce3791da 100644 --- a/src/modules/02_organizationalNew/components/DialogFormAgency.vue +++ b/src/modules/02_organizationalNew/components/DialogFormAgency.vue @@ -303,6 +303,10 @@ function selectOrgLevele(val: string, status: boolean = true) { name: "กลุ่มงาน", id: "WORK", }, + { + name: "สถานีดับเพลิงและกู้ภัย", + id: "FIRESTATION", + }, ]; default: From 36ac4e7807d583d69347309b3afbc50be777fec6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 19 Jun 2024 15:51:15 +0700 Subject: [PATCH 05/11] KPI => report --- src/modules/14_KPI/views/report.vue | 261 +++++++++++++++++++++------- 1 file changed, 195 insertions(+), 66 deletions(-) diff --git a/src/modules/14_KPI/views/report.vue b/src/modules/14_KPI/views/report.vue index 4cbb751f5..e438463dd 100644 --- a/src/modules/14_KPI/views/report.vue +++ b/src/modules/14_KPI/views/report.vue @@ -21,6 +21,48 @@ const organization = ref(""); const roundOp = ref([]); const organizationOpsMain = ref([]); const organizationOps = ref([]); +const typeReport = ref(""); +const listReportMain = ref([ + { + id: "1", + name: "รายงานสรุปผลการประเมินผลการปฏิบัติราชการระดับบุคคล", + }, + { + id: "2", + name: "รายงานสรุปผลการประเมินผลการปฏิบัติราชการระดับบุคคล", + }, + { + id: "3", + name: "รายงานสรุปผลการประเมินผลการปฏิบัติราชการระดับบุคคล", + }, + { + id: "4", + name: "แบบสรุปผลการประเมินผลการปฏิบัติราชการระดับบุคคล (รายบุคคล)", + }, + { + id: "5", + name: "รายงานผลการประเมินผลการปฏิบัติราชการย้อนหลัง ๕ ปี", + }, + { + id: "6", + name: "รายงานผลการประเมินผลการปฏิบัติราชการย้อนหลัง ๓ ปี", + }, + { + id: "7", + name: "รายงานสรุปแผนพัฒนาการปฏิบัติราชการรายบุคคล", + }, + { + id: "8", + name: "รายงานแผนพัฒนาการปฏิบัติราชการรายบุคคล", + }, +]); +const listReport = ref([]); +const searchField = ref("fullName"); +const search = ref(""); +const typeFilter = ref([ + { id: "fullName", name: "ชื่อ-นามสกุล" }, + { id: "citizenId", name: "เลขประจำตัวประชาชน" }, +]); function fetchRoundOption() { http @@ -112,9 +154,9 @@ function fetchReport() { * function เรียกไฟล์ PDF * @param data ข้อมูลบัญชีวันลา */ -async function genPDf(data: any) { +function genPDf(data: any) { showLoader(); - await axios + axios .post(config.API.reportTemplate + `/docx`, data, { headers: { accept: "application/pdf", @@ -144,12 +186,26 @@ function changOption() { fetchReport(); } -function filterSelector(val: string, update: Function) { - update(() => { - organizationOps.value = organizationOpsMain.value.filter( - (v: DataOption) => v.name.toLowerCase().indexOf(val) > -1 - ); - }); +function filterSelector(val: string, update: Function, type: string) { + switch (type) { + case "typereport": + update(() => { + listReport.value = listReportMain.value.filter( + (v: DataOption) => v.name.toLowerCase().indexOf(val) > -1 + ); + }); + break; + case "organization": + update(() => { + organizationOps.value = organizationOpsMain.value.filter( + (v: DataOption) => v.name.toLowerCase().indexOf(val) > -1 + ); + }); + break; + + default: + break; + } } const splitterModel = ref(14); @@ -184,60 +240,11 @@ onMounted(() => { From db0bdd161ec3f042685977b61ddcb5261ffba160 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 20 Jun 2024 17:03:16 +0700 Subject: [PATCH 11/11] fixing org --- .../02_organizationalNew/components/DialogFormAgency.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/02_organizationalNew/components/DialogFormAgency.vue b/src/modules/02_organizationalNew/components/DialogFormAgency.vue index 5859b367a..3ca95bea3 100644 --- a/src/modules/02_organizationalNew/components/DialogFormAgency.vue +++ b/src/modules/02_organizationalNew/components/DialogFormAgency.vue @@ -315,6 +315,10 @@ function selectOrgLevele(val: string, status: boolean = true) { name: "สถานีดับเพลิงและกู้ภัย", id: "FIRESTATION", }, + { + name: "โรงเรียน", + id: "SCHOOL", + }, ]; default: