ออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-10 15:03:24 +07:00
parent 45f77014da
commit 7aab234030
6 changed files with 15 additions and 11 deletions

View file

@ -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"
);