diff --git a/src/modules/05_command/components/ViewPdf.vue b/src/modules/05_command/components/ViewPdf.vue index e4870717..8c571a70 100644 --- a/src/modules/05_command/components/ViewPdf.vue +++ b/src/modules/05_command/components/ViewPdf.vue @@ -80,6 +80,7 @@ async function fetchDocumentTemplate(dataTemple: DataTemplateDetail) { position: "ผู้อำนวยการสำนัก/เขต", authorizedUserFullName: "............", authorizedPosition: "...................", + ...(dataTemple.persons ? { persons: dataTemple.persons } : {}), }, }; diff --git a/src/modules/05_command/interface/response/Main.ts b/src/modules/05_command/interface/response/Main.ts index 19972022..e021bcc6 100644 --- a/src/modules/05_command/interface/response/Main.ts +++ b/src/modules/05_command/interface/response/Main.ts @@ -19,6 +19,21 @@ interface DataTemplateDetail { fileAttachment?: string; isActive: boolean; commandSysId: string; + persons?: PersonsType[]; +} + +interface PersonsType { + no: string; + org?: string; + fullName: string; + citizenId: string; + position?: string; + posLevel?: string; + posNo?: string; + amount?: string; + dateRetire?: string; + dateExecute?: string; + remark?: string; } export type { DataCommandSys, DataTemplateDetail };