เพิ่มปุ่ม ดาวโหลด รายงานบรรจุ แต่งตั้ง ย้าย โอน

This commit is contained in:
setthawutttty 2024-12-26 10:46:56 +07:00
parent 6a0dc8dc19
commit 90d6421a9e
2 changed files with 5 additions and 2 deletions

View file

@ -14,6 +14,7 @@ import type { DataStructureTree } from "@/interface/main";
import type { DataTypeReport } from "@/modules/05_placement/interface/index/Main";
import LoadView from "@/components/LoadView.vue";
import genReportXLSX from "@/plugins/genreportxlsx";
/** use*/
const $q = useQuasar();
@ -29,6 +30,7 @@ const {
} = useCounterMixin();
/** Filter*/
const detailReport = ref<any>();
const reportType = ref<DataTypeReport>();
const optionReport = ref<DataTypeReport[]>([
{
@ -113,6 +115,7 @@ function fetchDataReport() {
})
.then(async (res) => {
const data = await res.data.result;
detailReport.value = data;
await fetchDocumentTemplate(data);
})
.catch((err) => {
@ -192,7 +195,6 @@ onMounted(() => {
>
</q-select>
<q-space />
<q-btn
:loading="isLoadPDF"
@ -201,6 +203,7 @@ onMounted(() => {
color="primary"
icon="download"
:disable="!reportType || !nodeId"
@click="genReportXLSX(detailReport, `${year}_${reportType?.name}`)"
>
</q-btn>
</div>

View file

@ -270,7 +270,7 @@ onMounted(async () => {
<q-btn
flat
round
:disable="!nodeId || !employeeClass || !posType || !posLevel"
:disable="!nodeId || !employeeClass"
color="primary"
icon="download"
v-if="checkPermission($route)?.attrIsGet"