ออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-09 14:33:20 +07:00
parent 73c41d9b01
commit 671c7103ab
7 changed files with 86 additions and 61 deletions

View file

@ -55,10 +55,7 @@ async function fetchDataCommand(type: string) {
});
}
/**
* งชนกำหนดคาของ PDF
*
*/
/** ฟังชั่นกำหนดค่าของ PDF*/
async function fetchPDF(data: any, type: string = "docx?folder=command") {
isLoadView.value = false;
await axios
@ -94,13 +91,15 @@ async function downloadCover(type: string) {
genReport(
dataCover.value,
"คำสั่ง คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้",
type
type,
"?folder=command"
);
} else {
genReportXLSX(
dataAttachment.value,
"เอกสารแนบท้าย คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้",
type
type,
"?folder=command"
);
}
}