From e303fd2da26a3dfc9a0adf7a54f1e8917be18533 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 8 Nov 2023 17:55:59 +0700 Subject: [PATCH] no message --- .../05_leave/componenst/Forms/09_StudyForm.vue | 17 +++++++++-------- .../05_leave/interface/request/AddAbsence.ts | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/modules/05_leave/componenst/Forms/09_StudyForm.vue b/src/modules/05_leave/componenst/Forms/09_StudyForm.vue index 57d8fbb..4a2123a 100644 --- a/src/modules/05_leave/componenst/Forms/09_StudyForm.vue +++ b/src/modules/05_leave/componenst/Forms/09_StudyForm.vue @@ -24,7 +24,8 @@ const formData = reactive({ dateLeaveEnd: null, birthday: new Date(), dateGovernment: new Date(), - saraly: arabicNumberToText(10000), + salary: 10000, + salaryText: arabicNumberToText(10000), tel: "", addressLeave: "test", capital: "", @@ -40,7 +41,7 @@ const dateLeaveStartRef = ref(null); const dateLeaveEndRef = ref(null); const birthdayRef = ref(null); const dateGovernmentRef = ref(null); -const saralyRef = ref(null); +const salaryRef = ref(null); const telRef = ref(null); const addressLeaveRef = ref(null); const capitalRef = ref(null); @@ -56,7 +57,7 @@ const formRef: FormRef09 = { dateLeaveEnd: dateLeaveEndRef, birthday: birthdayRef, dateGovernment: dateGovernmentRef, - saraly: saralyRef, + salary: salaryRef, tel: telRef, addressLeave: addressLeaveRef, capital: capitalRef, @@ -113,8 +114,8 @@ function calculateDuration(startDate: string | null, endDate: string | null) { return ""; } const formattedSalary = computed(() => { - return formData.saraly !== null - ? formData.saraly.toLocaleString("th-TH") + return formData.salary !== null + ? formData.salary.toLocaleString("th-TH") : ""; }); @@ -340,7 +341,7 @@ const formattedSalary = computed(() => {
{ :rules="[(val) => !!val || `${'กรุณากรอกเงินเดือนปัจจุบัน'}`]" />