From 04765a656ac0418f706418bd9e3dcff51e745be8 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Fri, 11 Jul 2025 09:12:55 +0700 Subject: [PATCH] refactor: add visa report date --- .../FormEmployeeVisa.vue | 20 +++++++++++++------ src/pages/03_customer-management/MainPage.vue | 5 ++++- src/pages/03_customer-management/form.ts | 2 ++ .../QuotationFormWorkerSelect.vue | 16 ++++++++------- .../08_request-list/DocumentExpansion.vue | 1 + src/stores/employee/types.ts | 1 + 6 files changed, 31 insertions(+), 14 deletions(-) diff --git a/src/components/03_customer-management/FormEmployeeVisa.vue b/src/components/03_customer-management/FormEmployeeVisa.vue index 572d66a1..8b912492 100644 --- a/src/components/03_customer-management/FormEmployeeVisa.vue +++ b/src/components/03_customer-management/FormEmployeeVisa.vue @@ -37,11 +37,13 @@ const expireDate = defineModel('expireDate'); const remark = defineModel('remark'); const workerType = defineModel('workerType'); const number = defineModel('number'); +const reportDate = defineModel('reportDate'); -const calculatedVisaDate = computed(() => { - if (!issueDate.value) return undefined; - return calculate90DayNext(issueDate.value); -}); +// +// const calculatedVisaDate = computed(() => { +// if (!issueDate.value) return undefined; +// return calculate90DayNext(issueDate.value); +// }); defineProps<{ title?: string; @@ -138,6 +140,10 @@ watch( ); }, ); +// +// watch([() => issueDate.value], () => { +// reportDate.value = calculate90DayNext(issueDate.value); +// });