no message
This commit is contained in:
parent
79b6257ca9
commit
7e1d180f6d
1 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ import type { FormRef09 } from "@/modules/05_leave/interface/request/AddAbsence"
|
|||
import { useQuasar } from "quasar";
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai, dialogConfirm } = mixin;
|
||||
const { date2Thai, dialogConfirm ,arabicNumberToText} = mixin;
|
||||
const edit = ref<boolean>(true);
|
||||
const props = defineProps({
|
||||
data: {
|
||||
|
|
@ -24,7 +24,7 @@ const formData = reactive<any>({
|
|||
dateLeaveEnd: null,
|
||||
birthday: new Date(),
|
||||
dateGovernment: new Date(),
|
||||
saraly: 10000,
|
||||
saraly: arabicNumberToText(10000),
|
||||
tel: "",
|
||||
addressLeave: "test",
|
||||
capital: "",
|
||||
|
|
@ -105,7 +105,7 @@ function calculateDuration(startDate: string | null, endDate: string | null) {
|
|||
const days = Math.floor(duration / (1000 * 60 * 60 * 24));
|
||||
const months = Math.floor(duration / (1000 * 60 * 60 * 24 * 30.44));
|
||||
const years = Math.floor(duration / (1000 * 60 * 60 * 24 * 30.44 * 12));
|
||||
|
||||
|
||||
// return `${days} วัน, ${months} เดือน, ${years} ปี`;
|
||||
return `${years} ปี, ${months} เดือน, ${days} วัน`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue