execute printing and display

This commit is contained in:
Julian Krauser 2025-03-19 15:18:58 +01:00
parent 4c25969b78
commit 1e0802acda
2 changed files with 103 additions and 13 deletions

View file

@ -0,0 +1,40 @@
import { defineStore } from "pinia";
import { http } from "@/serverCom";
export const useListPrintStore = defineStore("listprint", {
actions: {
async printList({
title,
queryStore,
headerId,
bodyId,
footerId,
headerHeight,
footerHeight,
}: {
title: string;
queryStore: string;
headerId?: string;
bodyId?: string;
footerId?: string;
headerHeight?: number;
footerHeight?: number;
}) {
return http.post(
`/admin/listprint`,
{
title,
queryStore,
headerId,
bodyId,
footerId,
headerHeight,
footerHeight,
},
{
responseType: "blob",
}
);
},
},
});