fix(command):queryParams.year :newDate().getFullYear()

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-09 16:43:10 +07:00
parent 74de61a809
commit 7ecf76701a

View file

@ -6,7 +6,6 @@ import { checkPermission } from "@/utils/permissions";
import { useCounterMixin } from "@/stores/mixin";
import { useCommandListStore } from "@/modules/18_command/store/ListStore";
import { usePagination } from "@/composables/usePagination";
import { calculateFiscalYear } from "@/utils/function";
import http from "@/plugins/http";
import config from "@/app.config";
@ -37,7 +36,7 @@ const tabsManu = ref<ItemTabs[]>([
]);
//
const queryParams = reactive<FormQuery>({
year: calculateFiscalYear(new Date()), //
year: new Date().getFullYear(), //..
keyword: "", //
commandTypeId: "",
});
@ -126,7 +125,7 @@ onMounted(async () => {
:model-value="
queryParams.year == null ? null : queryParams.year + 543
"
:label="`${'ปีงบประมาณ'}`"
:label="`${'พ.ศ.'}`"
>
<template v-slot:prepend>
<q-icon