refactor: set value default

This commit is contained in:
Thanaphon Frappet 2024-10-18 11:14:44 +07:00
parent 25dc9c1a92
commit 6b277687f4

View file

@ -33,6 +33,7 @@ const DEFAULT_DATA: QuotationPayload = {
registeredBranchId: '',
_count: { worker: 0 },
status: 'CREATED',
remark: undefined,
};
export const useQuotationForm = defineStore('form-quotation', () => {
@ -219,6 +220,7 @@ export const useQuotationForm = defineStore('form-quotation', () => {
}
return {
DEFAULT_DATA,
currentFormState,
currentFormData,
newWorkerList,