diff --git a/src/modules/04_registry/components/profileType.ts b/src/modules/04_registry/components/profileType.ts index e0cefd668..ab3b28b22 100644 --- a/src/modules/04_registry/components/profileType.ts +++ b/src/modules/04_registry/components/profileType.ts @@ -14,7 +14,7 @@ interface Information { prefixId: string | null; firstname: string | null; lastname: string | null; - birthDate: Date; + birthDate: Date | null; genderId: string | null; bloodId: string | null; nationality: string | null; @@ -135,7 +135,7 @@ const defaultInformation: Information = { prefixId: null, firstname: null, lastname: null, - birthDate: new Date(), + birthDate: null, genderId: null, bloodId: null, nationality: null, diff --git a/src/modules/08_registryEmployee/views/Information/Information.vue b/src/modules/08_registryEmployee/views/Information/Information.vue new file mode 100644 index 000000000..ec7a1440b --- /dev/null +++ b/src/modules/08_registryEmployee/views/Information/Information.vue @@ -0,0 +1,1132 @@ + + diff --git a/src/modules/08_registryEmployee/views/information.vue b/src/modules/08_registryEmployee/views/information.vue index ade1f0cfd..6be674a11 100644 --- a/src/modules/08_registryEmployee/views/information.vue +++ b/src/modules/08_registryEmployee/views/information.vue @@ -117,7 +117,11 @@ lazy-rules :readonly="!edit" :borderless="!edit" - :model-value="date2Thai(informaData.birthDate)" + :model-value=" + informaData.birthDate == null + ? null + : date2Thai(informaData.birthDate) + " :rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]" :label="`${'วัน/เดือน/ปี เกิด'}`" > @@ -692,7 +696,7 @@ const defaultAdd = () => { prefixId: null, firstname: null, lastname: null, - birthDate: new Date(), + birthDate: null, genderId: null, bloodId: null, nationality: null,