fix:add function calculateFiscalYear

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-01 15:20:45 +07:00
parent 70be19b5c4
commit 7877f26ac6
47 changed files with 131 additions and 68 deletions

View file

@ -8,6 +8,7 @@ import http from "@/plugins/http";
import config from "@/app.config";
import { checkPermission } from "@/utils/permissions";
import { useCounterMixin } from "@/stores/mixin";
import { calculateFiscalYear } from "@/utils/function";
import type { DataOption } from "@/modules/09_leave/interface/index/Main";
@ -21,7 +22,7 @@ const { showLoader, hideLoader, messageError } = mixin;
const isLoadPDF = ref<boolean>(false);
const year = ref<number>(new Date().getFullYear());
const year = ref<number>(calculateFiscalYear(new Date()));
const reportSelect = ref<DataOption>({
id: "",
@ -145,7 +146,7 @@ function clearFilter() {
name: "",
};
detailReport.value = undefined;
year.value = new Date().getFullYear();
year.value = calculateFiscalYear(new Date());
pdfSrc.value = undefined;
detailReport.value = undefined;
}