fix:add function calculateFiscalYear
This commit is contained in:
parent
70be19b5c4
commit
7877f26ac6
47 changed files with 131 additions and 68 deletions
|
|
@ -8,6 +8,7 @@ import config from "@/app.config";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useDisciplineResultStore } from "@/modules/11_discipline/store/ResultStore";
|
||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
|
||||
import { calculateFiscalYear } from "@/utils/function";
|
||||
|
||||
import type {
|
||||
FormData,
|
||||
|
|
@ -106,7 +107,7 @@ const formData = reactive<FormData>({
|
|||
oc: "",
|
||||
file: null,
|
||||
disciplineDisciplinary_DocResults: [],
|
||||
year: new Date().getFullYear(),
|
||||
year: calculateFiscalYear(new Date()),
|
||||
});
|
||||
|
||||
/** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */
|
||||
|
|
@ -826,10 +827,7 @@ watch(
|
|||
@update:modal="updatemodalPersonal"
|
||||
/>
|
||||
|
||||
<DialogHistory
|
||||
v-model:modal="modalHistory"
|
||||
v-model:person-id="personalId"
|
||||
/>
|
||||
<DialogHistory v-model:modal="modalHistory" v-model:person-id="personalId" />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import config from "@/app.config";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
|
||||
import { calculateFiscalYear } from "@/utils/function";
|
||||
|
||||
import type {
|
||||
MyObjectAppealRef,
|
||||
|
|
@ -75,7 +76,7 @@ const formData = reactive<any>({
|
|||
file: null,
|
||||
disciplineComplaint_Appeal_Docs: [],
|
||||
historyStatus: historyStatusOb,
|
||||
year: new Date().getFullYear().toString(),
|
||||
year: calculateFiscalYear(new Date()).toString(),
|
||||
});
|
||||
|
||||
/** ตัวแปร validate */
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import { useQuasar } from "quasar";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useAppealComplainStore } from "@/modules/11_discipline/store/AppealComplainStore";
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
import { calculateFiscalYear } from "@/utils/function";
|
||||
|
||||
import type { QTableProps } from "quasar";
|
||||
import type { RowList } from "@/modules/11_discipline/interface/response/appealComplain";
|
||||
|
|
@ -36,7 +37,7 @@ const dataRow = ref<RowList[]>([]);
|
|||
const formData = reactive<any>({
|
||||
type: "ALL",
|
||||
status: "NEW",
|
||||
year: new Date().getFullYear().toString(),
|
||||
year: calculateFiscalYear(new Date()).toString(),
|
||||
});
|
||||
|
||||
const total = ref<number>(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue