From c85c0933dfc370c830e97f580eadc92ff37a4081 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 20 Dec 2023 17:24:21 +0700 Subject: [PATCH 1/8] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/09_leave/api.leave.ts | 5 + .../components/3_Report/DetailReport.vue | 161 ++++++++++++++++-- src/modules/09_leave/views/ReportMain.vue | 30 +--- 3 files changed, 162 insertions(+), 34 deletions(-) diff --git a/src/api/09_leave/api.leave.ts b/src/api/09_leave/api.leave.ts index 8219083b5..6988f5e4e 100644 --- a/src/api/09_leave/api.leave.ts +++ b/src/api/09_leave/api.leave.ts @@ -1,5 +1,6 @@ import env from "../index"; const leave = `${env.API_URI}/leave`; +const leaveReport = `${env.API_URI}/leave/report`; export default { roundDutytime: () => `${leave}/duty-time`, roundDutytimeByid: (id: string) => `${leave}/duty-time/${id}`, @@ -33,4 +34,8 @@ export default { leaveReportReject: (id: string) => `${leave}/report/reject/${id}`, leaveDeleteApprove: (id: string) => `${leave}/admin/delete/approve/${id}`, leaveDeleteReject: (id: string) => `${leave}/admin/delete/reject/${id}`, + + /**รายงาน */ + leaveReportTimeRecords: () => `${leaveReport}/time-records/officer`, + leaveReportLeaveday: (type: string) => `${leaveReport}/leaveday/${type}`, }; diff --git a/src/modules/09_leave/components/3_Report/DetailReport.vue b/src/modules/09_leave/components/3_Report/DetailReport.vue index e50c97593..0ebda31dd 100644 --- a/src/modules/09_leave/components/3_Report/DetailReport.vue +++ b/src/modules/09_leave/components/3_Report/DetailReport.vue @@ -1,6 +1,11 @@