From f01e3d4ca9f71942796b06a2af852ce61fcaf475 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 16 Oct 2024 13:10:58 +0700 Subject: [PATCH] feat: show real actor --- src/pages/05_quotation/QuotationForm.vue | 12 +++++++++--- src/pages/05_quotation/form.ts | 8 ++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index c7addd81..ca6599ed 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -57,6 +57,7 @@ import { } from 'src/pages/03_customer-management/constant'; import { precisionRound } from 'src/utils/arithmetic'; import { useConfigStore } from 'src/stores/config'; +import { getName } from 'src/services/keycloak'; // defineProps<{ // readonly?: boolean; @@ -291,7 +292,6 @@ async function convertDataToFormSubmit() { contactTel: quotationFormData.value.contactTel, contactName: quotationFormData.value.contactName, workName: quotationFormData.value.workName, - actorName: quotationFormData.value.actorName, _count: quotationFormData.value._count, status: quotationFormData.value.status, }; @@ -595,10 +595,14 @@ async function searchEmployee(text: string) { ); if (retEmp) workerList.value = retEmp.data.result; } + +function printPDF() { + window.print(); +}