From 435d2ce4c8b9aaa8c172b8b6e9e27d6f5ce877a0 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:27:02 +0700 Subject: [PATCH] feat: add preview template text --- src/pages/05_quotation/QuotationForm.vue | 23 +++++++++++++++++++-- src/pages/05_quotation/preview/ViewForm.vue | 22 +++++++++++++++++++- src/stores/quotations/types.ts | 1 + 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 89d4e1b7..2c297893 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -86,6 +86,7 @@ import PaymentForm from './PaymentForm.vue'; import { api } from 'src/boot/axios'; import { RouterLink, useRoute } from 'vue-router'; import { initLang, initTheme } from 'src/utils/ui'; +import { convertTemplate } from 'src/utils/string-template'; type Node = { [key: string]: any; @@ -962,6 +963,7 @@ function storeDataLocal() { workName: quotationFormData.value.workName, dueDate: quotationFormData.value.dueDate, }, + selectedWorker: selectedWorker.value, createdBy: quotationFormState.value.createdBy('tha'), }, }), @@ -1525,8 +1527,25 @@ async function getWorkerFromCriteria(