fix:add function calculateFiscalYear

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-02 13:13:53 +07:00
parent 4cc8fb0c1c
commit c966e1d961
3 changed files with 14 additions and 2 deletions

View file

@ -3,6 +3,7 @@ import { ref, watch } from 'vue'
import { useCounterMixin } from '@/stores/mixin'
import { useChekIn } from '@/stores/chekin'
import { calculateFiscalYear } from '@/utils/function'
import type { DataDateMonthObject } from '@/interface/index/Main'
@ -27,7 +28,7 @@ const props = defineProps({
const emit = defineEmits(['update:year'])
const filterYear = ref<number>(
stores.year ? stores.year : new Date().getFullYear()
stores.year ? stores.year : calculateFiscalYear(new Date())
) //
const titleName = ref<string>('เพิ่มรายการลงเวลากรณีพิเศษ') // popup
const dateMonth = ref<DataDateMonthObject>({