no message
This commit is contained in:
parent
a958faebe9
commit
e303fd2da2
2 changed files with 10 additions and 9 deletions
|
|
@ -24,7 +24,8 @@ const formData = reactive<any>({
|
|||
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<object | null>(null);
|
|||
const dateLeaveEndRef = ref<object | null>(null);
|
||||
const birthdayRef = ref<object | null>(null);
|
||||
const dateGovernmentRef = ref<object | null>(null);
|
||||
const saralyRef = ref<object | null>(null);
|
||||
const salaryRef = ref<object | null>(null);
|
||||
const telRef = ref<object | null>(null);
|
||||
const addressLeaveRef = ref<object | null>(null);
|
||||
const capitalRef = ref<object | null>(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")
|
||||
: "";
|
||||
});
|
||||
</script>
|
||||
|
|
@ -340,7 +341,7 @@ const formattedSalary = computed(() => {
|
|||
<div class="full-width">
|
||||
<div class="q-col-gutter-sm row">
|
||||
<q-input
|
||||
ref="saralyRef"
|
||||
ref="salaryRef"
|
||||
class="col-12 col-sm-6 col-md-4"
|
||||
dense
|
||||
bg-color="white"
|
||||
|
|
@ -351,13 +352,13 @@ const formattedSalary = computed(() => {
|
|||
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือนปัจจุบัน'}`]"
|
||||
/>
|
||||
<q-input
|
||||
ref="saralyRef"
|
||||
ref="salaryRef"
|
||||
class="col-12 col-sm-6 col-md-4"
|
||||
dense
|
||||
readonly
|
||||
outlined
|
||||
bg-color="white"
|
||||
v-model="formData.saraly"
|
||||
v-model="formData.salaryText"
|
||||
label="เงินเดือนปัจจุบัน(คำอ่าน)"
|
||||
hide-bottom-space
|
||||
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือนปัจจุบัน'}`]"
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ interface FormRef09 {
|
|||
dateLeaveEnd:object|null
|
||||
birthday:object|null
|
||||
dateGovernment:object|null
|
||||
saraly:object|null
|
||||
salary:object|null
|
||||
tel:object|null
|
||||
addressLeave:object|null
|
||||
capital:object|null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue