fix report

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-21 13:11:22 +07:00
parent b194cb2a25
commit b925026c2f
4 changed files with 61 additions and 57 deletions

View file

@ -45,6 +45,8 @@ const detailReport = ref<any>();
* @param endDate นสนส
*/
async function getReportRecruit() {
pdfSrc.value = undefined;
page.value = 1;
showLoader();
await http
.get(
@ -70,8 +72,6 @@ async function getReportRecruit() {
* @param data อมลบญชนลา
*/
async function genReport(data: any) {
pdfSrc.value = undefined;
page.value = 1;
await axios
.post(`${config.API.reportTemplate}/xlsx`, data, {
headers: {
@ -202,14 +202,15 @@ function filterFnOptions(val: any, update: Function) {
</div>
<q-space />
<div class="q-py-xs">
<q-btn
flat
round
color="primary"
icon="download"
:disable="
!checkPermission($route)?.attrIsGet &&
isReport &&
!checkPermission($route)?.attrIsGet ||
isReport ||
reportSelect.id == ''
"
>