diff --git a/src/pages/05_quotation/form.ts b/src/pages/05_quotation/form.ts index 85db2d30..030bd39e 100644 --- a/src/pages/05_quotation/form.ts +++ b/src/pages/05_quotation/form.ts @@ -81,13 +81,13 @@ export const useQuotationForm = defineStore('form-quotation', () => { async function submitQuotation() { if (currentFormState.value.mode === 'create') { - // await quotationStore.createQuotation(); + await quotationStore.createQuotation(currentFormData.value); } if (currentFormState.value.mode === 'edit' && currentFormData.value.id) { - // await quotationStore.editQuotation({ - // id: currentFormData.value.id, - // ...currentFormData.value, - // }); + await quotationStore.editQuotation({ + id: currentFormData.value.id, + ...currentFormData.value, + }); } currentFormState.value.mode = 'info';