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

@ -7,6 +7,7 @@ import http from "@/plugins/http";
import axios from "axios";
import genReport from "@/plugins/genreport";
import LoadView from "@/components/LoadView.vue";
import { calculateFiscalYear } from "@/utils/function";
/**
* importType
*/
@ -45,7 +46,7 @@ const route = useRoute();
*/
const fullNameShow = ref<string>("");
const isLoadPDF = ref<boolean>(false);
const year = ref<number | null>(new Date().getFullYear());
const year = ref<number | null>(calculateFiscalYear(new Date())); //
const round = ref<string>("");
const organization = ref<string>("");
const roundOp = ref<DataOption[]>([]);
@ -487,7 +488,7 @@ watch(
function clearFilter() {
organization.value = "";
year.value = new Date().getFullYear();
year.value = calculateFiscalYear(new Date());
typeReport.value = "KPI1";
pdfSrc.value = undefined;
dataDownload.value = undefined;