fix:add function calculateFiscalYear
This commit is contained in:
parent
70be19b5c4
commit
7877f26ac6
47 changed files with 131 additions and 68 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue