fix:add function calculateFiscalYear

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-02 13:21:41 +07:00
parent 72aa6f44ac
commit 27280c393f
5 changed files with 18 additions and 4 deletions

View file

@ -7,6 +7,7 @@ import config from "@/app.config";
import http from "@/plugins/http";
import { useCounterMixin } from "@/stores/mixin";
import { useKpiDataStore } from "@/modules/08_KPI/store";
import { calculateFiscalYear } from "@/utils/functions";
import type { QTableProps } from "quasar";
import type { DataProfile } from "@/interface/Main";
@ -94,7 +95,7 @@ const columns = ref<QTableProps["columns"]>([
]);
/** List*/
const year = ref<number>(new Date().getFullYear());
const year = ref<number>(calculateFiscalYear(new Date()));
const round = ref<string>("");
const roundMainOp = ref<DataOptions[]>([]);
const roundDialgOp = ref<DataOptions[]>([]);