From 9349bd216e629917c5a1c137b12237db484aac7a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 21 Feb 2025 14:23:45 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20Body=20Command=20=20C-PM-10=5Fcove?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_command/components/ViewPdf.vue | 6 ++++++ src/modules/05_command/interface/response/Main.ts | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/modules/05_command/components/ViewPdf.vue b/src/modules/05_command/components/ViewPdf.vue index 504ea20c..16cc27c8 100644 --- a/src/modules/05_command/components/ViewPdf.vue +++ b/src/modules/05_command/components/ViewPdf.vue @@ -59,6 +59,8 @@ const { fetchDataTemplate } = defineProps({ async function fetchDocumentTemplate(dataTemple: DataTemplateDetail) { showLoader(); isLoadPDF.value = false; + pdfSrc.value = undefined; + page.value = 1; const reportName = await `${dataTemplateDetail.value.code}_${type.value}`; const body = { template: reportName, @@ -76,6 +78,10 @@ async function fetchDocumentTemplate(dataTemple: DataTemplateDetail) { commandAffectDate: "..................", commandExcecuteDate: "..................", name: "....................................", + name1: dataTemple.name1, + name2: dataTemple.name2, + name3: dataTemple.name3, + name4: dataTemple.name4, position: "ผู้อำนวยการสำนัก/เขต", authorizedUserFullName: "............", authorizedPosition: "...................", diff --git a/src/modules/05_command/interface/response/Main.ts b/src/modules/05_command/interface/response/Main.ts index e021bcc6..9bc23d39 100644 --- a/src/modules/05_command/interface/response/Main.ts +++ b/src/modules/05_command/interface/response/Main.ts @@ -20,6 +20,10 @@ interface DataTemplateDetail { isActive: boolean; commandSysId: string; persons?: PersonsType[]; + name1?: string; + name2?: string; + name3?: string; + name4?: string; } interface PersonsType {