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,
|
dateLeaveEnd: null,
|
||||||
birthday: new Date(),
|
birthday: new Date(),
|
||||||
dateGovernment: new Date(),
|
dateGovernment: new Date(),
|
||||||
saraly: arabicNumberToText(10000),
|
salary: 10000,
|
||||||
|
salaryText: arabicNumberToText(10000),
|
||||||
tel: "",
|
tel: "",
|
||||||
addressLeave: "test",
|
addressLeave: "test",
|
||||||
capital: "",
|
capital: "",
|
||||||
|
|
@ -40,7 +41,7 @@ const dateLeaveStartRef = ref<object | null>(null);
|
||||||
const dateLeaveEndRef = ref<object | null>(null);
|
const dateLeaveEndRef = ref<object | null>(null);
|
||||||
const birthdayRef = ref<object | null>(null);
|
const birthdayRef = ref<object | null>(null);
|
||||||
const dateGovernmentRef = 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 telRef = ref<object | null>(null);
|
||||||
const addressLeaveRef = ref<object | null>(null);
|
const addressLeaveRef = ref<object | null>(null);
|
||||||
const capitalRef = ref<object | null>(null);
|
const capitalRef = ref<object | null>(null);
|
||||||
|
|
@ -56,7 +57,7 @@ const formRef: FormRef09 = {
|
||||||
dateLeaveEnd: dateLeaveEndRef,
|
dateLeaveEnd: dateLeaveEndRef,
|
||||||
birthday: birthdayRef,
|
birthday: birthdayRef,
|
||||||
dateGovernment: dateGovernmentRef,
|
dateGovernment: dateGovernmentRef,
|
||||||
saraly: saralyRef,
|
salary: salaryRef,
|
||||||
tel: telRef,
|
tel: telRef,
|
||||||
addressLeave: addressLeaveRef,
|
addressLeave: addressLeaveRef,
|
||||||
capital: capitalRef,
|
capital: capitalRef,
|
||||||
|
|
@ -113,8 +114,8 @@ function calculateDuration(startDate: string | null, endDate: string | null) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
const formattedSalary = computed(() => {
|
const formattedSalary = computed(() => {
|
||||||
return formData.saraly !== null
|
return formData.salary !== null
|
||||||
? formData.saraly.toLocaleString("th-TH")
|
? formData.salary.toLocaleString("th-TH")
|
||||||
: "";
|
: "";
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -340,7 +341,7 @@ const formattedSalary = computed(() => {
|
||||||
<div class="full-width">
|
<div class="full-width">
|
||||||
<div class="q-col-gutter-sm row">
|
<div class="q-col-gutter-sm row">
|
||||||
<q-input
|
<q-input
|
||||||
ref="saralyRef"
|
ref="salaryRef"
|
||||||
class="col-12 col-sm-6 col-md-4"
|
class="col-12 col-sm-6 col-md-4"
|
||||||
dense
|
dense
|
||||||
bg-color="white"
|
bg-color="white"
|
||||||
|
|
@ -351,13 +352,13 @@ const formattedSalary = computed(() => {
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือนปัจจุบัน'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือนปัจจุบัน'}`]"
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
ref="saralyRef"
|
ref="salaryRef"
|
||||||
class="col-12 col-sm-6 col-md-4"
|
class="col-12 col-sm-6 col-md-4"
|
||||||
dense
|
dense
|
||||||
readonly
|
readonly
|
||||||
outlined
|
outlined
|
||||||
bg-color="white"
|
bg-color="white"
|
||||||
v-model="formData.saraly"
|
v-model="formData.salaryText"
|
||||||
label="เงินเดือนปัจจุบัน(คำอ่าน)"
|
label="เงินเดือนปัจจุบัน(คำอ่าน)"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือนปัจจุบัน'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกเงินเดือนปัจจุบัน'}`]"
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ interface FormRef09 {
|
||||||
dateLeaveEnd:object|null
|
dateLeaveEnd:object|null
|
||||||
birthday:object|null
|
birthday:object|null
|
||||||
dateGovernment:object|null
|
dateGovernment:object|null
|
||||||
saraly:object|null
|
salary:object|null
|
||||||
tel:object|null
|
tel:object|null
|
||||||
addressLeave:object|null
|
addressLeave:object|null
|
||||||
capital:object|null
|
capital:object|null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue