From 7ed51c26d2066c07449f555ad6f4962f9b1762db Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 18 Oct 2024 09:27:56 +0700 Subject: [PATCH] feat: store data for preview --- src/pages/05_quotation/QuotationForm.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index f7e0745f..4f99f50e 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -612,6 +612,13 @@ async function searchEmployee(text: string) { ); if (retEmp) workerList.value = retEmp.data.result; } + +function storeDataLocal() { + localStorage.setItem( + 'quotation-preview', + JSON.stringify(quotationFormData.value), + ); +}