ออกคำสั่ง
This commit is contained in:
parent
45f77014da
commit
7aab234030
6 changed files with 15 additions and 11 deletions
|
|
@ -21,6 +21,9 @@ const mixin = useCounterMixin();
|
|||
const { messageError, showLoader, hideLoader } = mixin;
|
||||
|
||||
const commandId = ref<string>(route.params.id.toString());
|
||||
const props = defineProps({
|
||||
formCommandList: { type: Object, required: true },
|
||||
});
|
||||
|
||||
const isAttachment = defineModel<boolean>("isAttachment", { required: true });
|
||||
|
||||
|
|
@ -90,14 +93,14 @@ async function downloadCover(type: string) {
|
|||
if (tab.value === "main") {
|
||||
genReport(
|
||||
dataCover.value,
|
||||
"คำสั่ง คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้",
|
||||
`คำสั่ง ${props.formCommandList.issue}`,
|
||||
type,
|
||||
"?folder=command"
|
||||
);
|
||||
} else {
|
||||
genReportXLSX(
|
||||
dataAttachment.value,
|
||||
"เอกสารแนบท้าย คำสั่งบรรจุและแต่งตั้ง: สำหรับผู้สอบแข่งขันได้",
|
||||
`เอกสารแนบท้าย ${props.formCommandList.issue}`,
|
||||
type,
|
||||
"?folder=command"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue