feat: readonly mode

This commit is contained in:
Methapon2001 2024-08-05 15:45:26 +07:00
parent 5d3aae0bb1
commit f0be0b2147
2 changed files with 6 additions and 0 deletions

View file

@ -31,6 +31,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
customerImageUrl: string;
imageDialog: boolean;
imageEdit: boolean;
editReadonly: boolean;
editCustomerId?: string;
editCustomerBranchId?: string;
}>({
@ -39,6 +40,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
dialogModal: false,
imageDialog: false,
branchIndex: 0,
editReadonly: true,
imageEdit: false,
saveMode: 'customer',
customerImageUrl: '',