chore: clean more
This commit is contained in:
parent
1b489306bf
commit
ae4bf285a0
5 changed files with 157 additions and 127 deletions
|
|
@ -53,7 +53,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
|||
|
||||
const currentFormData = ref<CustomerCreate>(structuredClone(defaultFormData));
|
||||
const state = ref<{
|
||||
dialogType: 'info' | 'edit';
|
||||
dialogType: 'info' | 'create' | 'edit';
|
||||
dialogOpen: boolean;
|
||||
branchIndex: number;
|
||||
customerType: 'CORP' | "PERS"
|
||||
|
|
@ -123,6 +123,8 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
|||
currentFormData.value = structuredClone(resetCustomerData);
|
||||
}
|
||||
|
||||
// TODO: Submit function
|
||||
|
||||
return {
|
||||
state,
|
||||
currentFormData,
|
||||
|
|
@ -135,3 +137,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
|||
export const useEmployeeForm = defineStore('form-employee', () => {
|
||||
return {};
|
||||
});
|
||||
|
||||
export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue