From 4b5b2530d2f201cd0167edbefbb7457b08527491 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Tue, 24 Oct 2023 15:11:34 +0700 Subject: [PATCH] =?UTF-8?q?Validate=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20id=20/for=20=E0=B9=80=E0=B8=97=E0=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/information/Information.vue | 14 +- .../3_InvestigateDisciplinary/AddPage.vue | 203 +++++++++++++----- .../6_BasicInformation/Channel/AddPage.vue | 132 +----------- .../6_BasicInformation/Channel/MainPage.vue | 14 +- .../interface/request/disciplinary.ts | 46 ++++ 5 files changed, 221 insertions(+), 188 deletions(-) create mode 100644 src/modules/11_discipline/interface/request/disciplinary.ts diff --git a/src/components/information/Information.vue b/src/components/information/Information.vue index 8446b07d1..b7fc1e159 100644 --- a/src/components/information/Information.vue +++ b/src/components/information/Information.vue @@ -73,7 +73,7 @@ :borderless="!edit" v-model="informaData.firstname" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]" - :label="`${'ชื่อ'}`" + :label="`${'ชื่อ(ภาษาไทย)'}`" />
@@ -87,7 +87,7 @@ :borderless="!edit" v-model="informaData.lastname" :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]" - :label="`${'นามสกุล'}`" + :label="`${'นามสกุล(ภาษาไทย)'}`" />
@@ -116,7 +116,11 @@ lazy-rules :readonly="!edit" :borderless="!edit" - :model-value="informaData.birthDate ? date2Thai(informaData.birthDate) : null" + :model-value=" + informaData.birthDate + ? date2Thai(informaData.birthDate) + : null + " :rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]" :label="`${'วัน/เดือน/ปี เกิด'}`" > @@ -1054,7 +1058,9 @@ const editData = async () => { nationality: informaData.value.nationality, race: informaData.value.ethnicity, religionId: informaData.value.religionId, - birthDate: informaData.value.birthDate ? dateToISO(informaData.value.birthDate) : dateToISO(new Date()), + birthDate: informaData.value.birthDate + ? dateToISO(informaData.value.birthDate) + : dateToISO(new Date()), bloodGroupId: informaData.value.bloodId, relationshipId: informaData.value.statusId, telephoneNumber: informaData.value.tel, diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue index 9a9b1d17c..a36900989 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue @@ -1,12 +1,15 @@