From 74e5c6e78b10aeda8e00950963a34c930545abc5 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 3 Oct 2024 14:57:46 +0700 Subject: [PATCH] feat: uncomment submit --- src/pages/05_quotation/form.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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';