From 72bce36373611abba6da0afae162a5dae0243416 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 6 Aug 2024 03:14:56 +0000 Subject: [PATCH] fix(03): form employee health check --- .../FormEmployeeHealthCheck.vue | 630 +++++++++--------- src/components/DialogForm.vue | 8 +- 2 files changed, 330 insertions(+), 308 deletions(-) diff --git a/src/components/03_customer-management/FormEmployeeHealthCheck.vue b/src/components/03_customer-management/FormEmployeeHealthCheck.vue index 7dbe1a5b..e631ba1d 100644 --- a/src/components/03_customer-management/FormEmployeeHealthCheck.vue +++ b/src/components/03_customer-management/FormEmployeeHealthCheck.vue @@ -55,6 +55,11 @@ withDefaults( showBtnSave: false, }, ); + +defineEmits<{ + (e: 'save', id: string): void; +}>(); + async function fetchProvince() { const result = await adrressStore.fetchProvince(); @@ -67,7 +72,7 @@ async function fetchProvince() { ); } -function addData() { +function addCheckup() { const canAdd = checkTabBeforeAdd(employeeCheckup.value || []); if (canAdd) { employeeCheckup.value?.push({ @@ -131,7 +136,7 @@ const insuranceCompanyFilter = selectFilterOptionRefMod(