From 7e1d180f6dab5277702068d481cb2885016027ac Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 8 Nov 2023 17:50:28 +0700 Subject: [PATCH] no message --- src/modules/05_leave/componenst/Forms/09_StudyForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/05_leave/componenst/Forms/09_StudyForm.vue b/src/modules/05_leave/componenst/Forms/09_StudyForm.vue index 165f949..57d8fbb 100644 --- a/src/modules/05_leave/componenst/Forms/09_StudyForm.vue +++ b/src/modules/05_leave/componenst/Forms/09_StudyForm.vue @@ -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(true); const props = defineProps({ data: { @@ -24,7 +24,7 @@ const formData = reactive({ 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} วัน`; }