From 5a27893af8f7bbd588aa2dced00fb76affcee337 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 9 Feb 2024 15:09:00 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=81=E0=B8=A3?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B9=83=E0=B8=99=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DialogAddEmployee.vue | 48 ++++++++++----- .../components/Information/Information.vue | 61 +++++++++++++------ .../04_registry/components/profileType.ts | 2 +- 3 files changed, 76 insertions(+), 35 deletions(-) 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 () => { }); }; +