diff --git a/src/components/DialogAddEmployee.vue b/src/components/DialogAddEmployee.vue index ce09fb1ea..774376e20 100644 --- a/src/components/DialogAddEmployee.vue +++ b/src/components/DialogAddEmployee.vue @@ -33,13 +33,13 @@ const informaData = ref({ prefixId: null, firstname: null, lastname: null, - birthDate: null, + birthDate: "", genderId: null, bloodId: null, nationality: "ไทย", ethnicity: "ไทย", statusId: null, - religionId: 'ceaec498-71b4-4f82-b5a2-7d6ec988b753', + religionId: "ceaec498-71b4-4f82-b5a2-7d6ec988b753", tel: null, employeeType: null, employeeClass: null, @@ -173,23 +173,23 @@ const calRetire = async (birth: Date) => { birthDate: dateToISO(birth), }; if (dateToISO(dateBefore.value) != dateToISO(birth)) { - showLoader(); + // showLoader(); await http .post(config.API.profileCalRetire, body) .then((res: any) => { const data = res.data.result; informaData.value.age = data.age; - informaData.value.birthDate = birth; + // informaData.value.birthDate = birth; changeRetireText(data.retireDate); dateBefore.value = birth; }) - .catch((e: any) => { - messageError($q, e); - informaData.value.birthDate = null; - informaData.value.age = ""; - }) + // .catch((e: any) => { + // messageError($q, e); + // informaData.value.birthDate = null; + // informaData.value.age = ""; + // }) .finally(() => { - hideLoader(); + // hideLoader(); }); } }; @@ -321,6 +321,7 @@ const fetchPerson = async () => { }); }; +