From 7b262d34d7802c3097d998f538a9d79f2731b0a6 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 17 Jul 2024 10:49:36 +0000 Subject: [PATCH] fix: all date picker input --- .../02_personnel-management/FormByType.vue | 35 +++++++++- .../02_personnel-management/FormPerson.vue | 20 +++--- .../03_customer-management/AboutComponent.vue | 31 ++++++--- .../03_customer-management/FormBusiness.vue | 21 ++++-- .../FormEmployeeHealthCheck.vue | 33 ++++++++-- .../FormEmployeePassport.vue | 39 +++++++++-- .../FormEmployeeVisa.vue | 64 +++++++++++++++++-- .../FormEmployeeWorkHistory.vue | 46 +++++++++++-- 8 files changed, 240 insertions(+), 49 deletions(-) diff --git a/src/components/02_personnel-management/FormByType.vue b/src/components/02_personnel-management/FormByType.vue index 2fdf1af0..d74accca 100644 --- a/src/components/02_personnel-management/FormByType.vue +++ b/src/components/02_personnel-management/FormByType.vue @@ -2,8 +2,10 @@ import useUserStore from 'src/stores/user'; import { UserAttachmentDelete } from 'src/stores/user/types'; import { dialog } from 'src/stores/utils'; -import { dateFormat } from 'src/utils/datetime'; +import { dateFormat, parseAndFormatDate } from 'src/utils/datetime'; +import { useI18n } from 'vue-i18n'; +const { locale } = useI18n(); const userStore = useUserStore(); const userId = defineModel('userId'); @@ -83,6 +85,7 @@ function deleteFile(name: string) { v-model="registrationNo" />