From 9f344c723c694a8fc77f22d199a5939ffa84809a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 11 Feb 2025 18:58:33 +0700 Subject: [PATCH] fix report --- src/api/15_development/api.development.ts | 4 +- .../07_insignia/views/06_ReportMain.vue | 4 + .../13_salary/store/SalaryListsStore.ts | 5 + .../21_report/views/03_reportDevelopment.vue | 148 ++++++++++++------ .../21_report/views/05_reportSalary.vue | 1 + 5 files changed, 113 insertions(+), 49 deletions(-) diff --git a/src/api/15_development/api.development.ts b/src/api/15_development/api.development.ts index 7d0960b58..99845f6a7 100644 --- a/src/api/15_development/api.development.ts +++ b/src/api/15_development/api.development.ts @@ -34,6 +34,7 @@ export default { /** download File */ developmentReportMain: () => `${developmentReport}/main`, + developmentReport: () => `${developmentReport}/`, developmentReportHistory: () => `${developmentReport}/history-officer`, developmentReportHistoryOfficer: () => `${developmentReport}/history-employee`, @@ -51,6 +52,7 @@ export default { devStrategy, /** IDP */ - developmentReQuestIDP: (id: string) => `${developmentOrg}/profile/development/registry/OFFICER/${id}`, + developmentReQuestIDP: (id: string) => + `${developmentOrg}/profile/development/registry/OFFICER/${id}`, developmentIDP: (id: string) => `${development}/main/registry/OFFICER/${id}`, }; diff --git a/src/modules/07_insignia/views/06_ReportMain.vue b/src/modules/07_insignia/views/06_ReportMain.vue index a8b7f354a..09c6c7c75 100644 --- a/src/modules/07_insignia/views/06_ReportMain.vue +++ b/src/modules/07_insignia/views/06_ReportMain.vue @@ -52,6 +52,10 @@ const optionReport = ref([ id: "report6", name: "รายงานผลการจ่ายประกาศนียบัตรกำกับเครื่องราชอิสริยาภรณ์ แยกรายหน่วยงาน", }, + { + id: "report7", + name: "รายงานแสดงรายชื่อลูกจ้างประจำที่ได้รับ/ไมได้รับ การจ่ายใบกำกับฯ เครื่องราชอิสริยาภรณที่ได้รับพระราชทาน (ลูกจ้าง)", + }, ]); const roundId = ref(""); diff --git a/src/modules/13_salary/store/SalaryListsStore.ts b/src/modules/13_salary/store/SalaryListsStore.ts index 6a3d7b657..c7491fe98 100644 --- a/src/modules/13_salary/store/SalaryListsStore.ts +++ b/src/modules/13_salary/store/SalaryListsStore.ts @@ -170,6 +170,11 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => { name: "แนบท้ายคำสั่งค่าตอบแทนพิเศษ และผู้ไม่ได้เลื่อนเงินเดือน รอบตุลาคม (PDF)", type: "pdf", }, + + { + id: "gov-10", + name: "แบบบัญชีถือจ่าย (จ.๑๘) ของข้าราชการกรุงเทพมหานครสามัญ", + }, ]); function fetchPeriodLatest(data: DataPeriodLatest, type: string) { diff --git a/src/modules/21_report/views/03_reportDevelopment.vue b/src/modules/21_report/views/03_reportDevelopment.vue index 30717c94a..86264c8bc 100644 --- a/src/modules/21_report/views/03_reportDevelopment.vue +++ b/src/modules/21_report/views/03_reportDevelopment.vue @@ -24,25 +24,51 @@ const employeeClassOption = ref([ { id: "employee", name: "ลูกจ้างประจำ กทม." }, ]); +const typeReport = ref("main"); +const optionReport = ref([ + { + id: "main", + name: "โครงการ/กิจกรรมตามแผนพัฒนาทรัพยากรบุคคลของกรุงเทพมหานคร", + }, + { + id: "report3", + name: "รายงานข้อมูลข้าราชการกรุงเทพมหานครสามัญที่ได้รับทุนการศึกษาในประเทศ", + }, + { + id: "report4", + name: "รายงานข้อมูลข้าราชการกรุงเทพมหานครสามัญที่ได้รับทุนฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรที่ไม่มีการไปต่างประเทศ)", + }, + { + id: "report5", + name: "รายงานข้อมูลข้าราชการกรุงเทพมหานครสามัญที่ได้รับทุนฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรที่มีการไปต่างประเทศ)", + }, + { + id: "report6", + name: "รายงานข้อมูลข้าราชการกรุงเทพมหานครสามัญ ที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรประเภทนักบริหาร)", + }, + { + id: "report7", + name: "รายงานข้อมูลข้าราชการกรุงเทพมหานครสามัญที่ไปศึกษา ฝึกอบรม ประชุม ดูงาน และปฏิบัติการวิจัย ณ ต่างประเทศ", + }, + { + id: "report8", + name: "รายงานข้อมูลข้าราชการกรุงเทพมหานครสามัญที่ได้รับทุนไปศึกษา", + }, + { + id: "report9", + name: "รายงานสถิติข้อมูลการฝึกอบรม ศึกษาดูงาน ของข้าราชการกรุงเทพมหานครสามัญ", + }, + { + id: "report10", + name: "รายงานสถิติข้อมูลการศึกษาต่อของข้าราชการกรุงเทพมหานครสามัญ", + }, +]); + const splitterModel = ref(14); const numOfPages = ref(0); const page = ref(1); const pdfSrc = ref(); -interface RangeAge { - min: number; - max: number; -} - -const objMarkerLabel = computed(() => { - return { 39: `ช่วงอายุ ${rangeAge.value.min}-${rangeAge.value.max} ปี` }; -}); - -const rangeAge = ref({ - min: 18, - max: 60, -}); - const detailReport = ref(); /** ไปหน้าต่อไปของรายงาน */ @@ -61,8 +87,9 @@ function backPage() { async function getReport() { loadingBtn.value = true; + pdfSrc.value = undefined; await http - .get(config.API.developmentReportMain()) + .get(config.API.developmentReport() + `${typeReport.value}`) .then(async (res) => { const data = res.data.result; detailReport.value = data; @@ -131,39 +158,25 @@ onMounted(async () => {
-
- - - - - +
+
+ +
{
+ +
+ +
+ + + + + +
+
+
diff --git a/src/modules/21_report/views/05_reportSalary.vue b/src/modules/21_report/views/05_reportSalary.vue index 8b4b69cac..960b9d5d0 100644 --- a/src/modules/21_report/views/05_reportSalary.vue +++ b/src/modules/21_report/views/05_reportSalary.vue @@ -211,6 +211,7 @@ async function fetchDataReportUnified( "gov-07", "gov-07-01", "gov-08", + "gov-10", ].includes(reportCode); const finalUrl = isGovernmentId ? `${url}/${group.value}` : url;