From f2301c3580ff8454c1bd616c6993cd24e88e541b Mon Sep 17 00:00:00 2001 From: Net Date: Tue, 20 Aug 2024 17:58:11 +0700 Subject: [PATCH] refactor: edit defaultFormData --- src/pages/03_customer-management/form.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/03_customer-management/form.ts b/src/pages/03_customer-management/form.ts index 6918c7b8..0f905c38 100644 --- a/src/pages/03_customer-management/form.ts +++ b/src/pages/03_customer-management/form.ts @@ -17,11 +17,14 @@ export const useCustomerForm = defineStore('form-customer', () => { const defaultFormData: CustomerCreate = { code: '', status: 'CREATED', - personName: '', customerType: 'CORP', - customerName: '', - customerNameEN: '', - taxNo: '', + namePrefix: '', + firstName: '', + lastName: '', + firstNameEN: '', + lastNameEN: '', + gender: '', + birthDate: new Date(), registeredBranchId: branchStore.currentMyBranch?.id || '', customerBranch: [], image: null,