From 7fe32bc723a7cfd5f887aa069ca0a622b3b43d34 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 14 Mar 2024 17:53:11 +0700 Subject: [PATCH] validate --- .../components/detail/Other/01_OtherInformation.vue | 4 ++++ src/modules/04_registryNew/interface/index/other.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue b/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue index f89b3c9ee..a52667960 100644 --- a/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue +++ b/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue @@ -48,8 +48,10 @@ const modalHistory = ref(false); const date = ref(null); const detail = ref(); +const dateRef = ref(null); const detailRef = ref(null); const objectRef: MyObjectRef = { + date: dateRef, detail: detailRef, }; @@ -472,6 +474,8 @@ onMounted(() => { outlined dense :model-value="date2Thai(date)" + :rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]" + hide-bottom-space :label="`${'วันที่'}`" >