From 078ff1840e7b0b27f726266702208d3c22459a12 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 20 Dec 2024 16:03:53 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=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 --- .../PersonalInformation/05_Education.vue | 2 +- .../PersonalInformation/06_SpecialSkill.vue | 2 -- .../04_registryPerson/views/detailView.vue | 18 ++++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue index 33b700994..20169c715 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue @@ -301,7 +301,7 @@ const historyColumns = ref([ sortable: true, field: "endDate", format(val, row) { - row.isDate + return row.isDate ? date2Thai(row.endDate) : new Date(row.endDate).getFullYear() + 543; }, diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue index dc07a2f88..b80d7bc2a 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue @@ -677,7 +677,6 @@ onMounted(() => { {{ col.label }} - diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index fcfa508ff..adaeea629 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -497,6 +497,11 @@ function appointPost() { */ function clickPassaway() { dialogPassaway.value = true; + filePassaway.value = null; + deathCertificateNo.value = ""; + dateDeath.value = new Date(); + placeDeathCertificate.value = ""; + reasonDeath.value = ""; } /** @@ -1003,7 +1008,7 @@ onMounted(async () => { { { /> { {