From 9aa4be6aeddb097d4048647022433ea047e6eeab Mon Sep 17 00:00:00 2001 From: waruneeta Date: Thu, 18 Jan 2024 16:37:08 +0700 Subject: [PATCH] =?UTF-8?q?fix=20bug=20=E0=B8=A3=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../09_leave/components/3_Report/LeaveReport.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/09_leave/components/3_Report/LeaveReport.vue b/src/modules/09_leave/components/3_Report/LeaveReport.vue index e5a68ef6c..a0acab875 100644 --- a/src/modules/09_leave/components/3_Report/LeaveReport.vue +++ b/src/modules/09_leave/components/3_Report/LeaveReport.vue @@ -43,14 +43,14 @@ const detailReport = ref(); /** function อัปเดทบัญชีแสดงวันลา */ async function updateLeaveday() { if (yearType.value === "FULL") { - dateStart.value = new Date(year.value, 9, 1); - dateEnd.value = new Date(year.value + 1, 8, 30); + dateStart.value = new Date(year.value - 1, 9, 1); + dateEnd.value = new Date(year.value, 8, 30); } else if (yearType.value === "FIRSTHAFT") { - dateStart.value = new Date(year.value, 9, 1); - dateEnd.value = new Date(year.value + 1, 2, 31); + dateStart.value = new Date(year.value - 1, 9, 1); + dateEnd.value = new Date(year.value, 2, 31); } else if (yearType.value === "SECONDHAFT") { - dateStart.value = new Date(year.value + 1, 3, 1); - dateEnd.value = new Date(year.value + 1, 8, 30); + dateStart.value = new Date(year.value, 3, 1); + dateEnd.value = new Date(year.value, 8, 30); } fetchLeaveday(