Merge branch 'develop'
* develop: เพิ่ม Body Command C-PM-10_cove
This commit is contained in:
commit
f5ff68b8ef
2 changed files with 10 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ const { fetchDataTemplate } = defineProps({
|
||||||
async function fetchDocumentTemplate(dataTemple: DataTemplateDetail) {
|
async function fetchDocumentTemplate(dataTemple: DataTemplateDetail) {
|
||||||
showLoader();
|
showLoader();
|
||||||
isLoadPDF.value = false;
|
isLoadPDF.value = false;
|
||||||
|
pdfSrc.value = undefined;
|
||||||
|
page.value = 1;
|
||||||
const reportName = await `${dataTemplateDetail.value.code}_${type.value}`;
|
const reportName = await `${dataTemplateDetail.value.code}_${type.value}`;
|
||||||
const body = {
|
const body = {
|
||||||
template: reportName,
|
template: reportName,
|
||||||
|
|
@ -76,6 +78,10 @@ async function fetchDocumentTemplate(dataTemple: DataTemplateDetail) {
|
||||||
commandAffectDate: "..................",
|
commandAffectDate: "..................",
|
||||||
commandExcecuteDate: "..................",
|
commandExcecuteDate: "..................",
|
||||||
name: "....................................",
|
name: "....................................",
|
||||||
|
name1: dataTemple.name1,
|
||||||
|
name2: dataTemple.name2,
|
||||||
|
name3: dataTemple.name3,
|
||||||
|
name4: dataTemple.name4,
|
||||||
position: "ผู้อำนวยการสำนัก/เขต",
|
position: "ผู้อำนวยการสำนัก/เขต",
|
||||||
authorizedUserFullName: "............",
|
authorizedUserFullName: "............",
|
||||||
authorizedPosition: "...................",
|
authorizedPosition: "...................",
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ interface DataTemplateDetail {
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
commandSysId: string;
|
commandSysId: string;
|
||||||
persons?: PersonsType[];
|
persons?: PersonsType[];
|
||||||
|
name1?: string;
|
||||||
|
name2?: string;
|
||||||
|
name3?: string;
|
||||||
|
name4?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PersonsType {
|
interface PersonsType {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue