refactor: edit defaultFormData

This commit is contained in:
Net 2024-08-20 17:58:11 +07:00
parent 1d2e3fd4f8
commit f2301c3580

View file

@ -17,11 +17,14 @@ export const useCustomerForm = defineStore('form-customer', () => {
const defaultFormData: CustomerCreate = { const defaultFormData: CustomerCreate = {
code: '', code: '',
status: 'CREATED', status: 'CREATED',
personName: '',
customerType: 'CORP', customerType: 'CORP',
customerName: '', namePrefix: '',
customerNameEN: '', firstName: '',
taxNo: '', lastName: '',
firstNameEN: '',
lastNameEN: '',
gender: '',
birthDate: new Date(),
registeredBranchId: branchStore.currentMyBranch?.id || '', registeredBranchId: branchStore.currentMyBranch?.id || '',
customerBranch: [], customerBranch: [],
image: null, image: null,