0
1
Fork 0

Fix ticket print

This commit is contained in:
William Buezas 2024-09-12 11:47:05 -03:00
parent 533c7560dc
commit 2176c6e259
1 changed files with 4 additions and 6 deletions

View File

@ -15,6 +15,7 @@ const route = useRoute();
const userStore = useUserStore();
const appStore = useAppStore();
const { isHeaderMounted } = storeToRefs(appStore);
const { user, token } = storeToRefs(userStore);
const ticket = ref({});
const rows = ref([]);
@ -39,8 +40,8 @@ onMounted(async () => {
const onPrintClick = () => {
const params = new URLSearchParams({
access_token: userStore.token,
recipientId: userStore.id,
access_token: token.value,
recipientId: user.value.id,
type: 'deliveryNote'
});
window.open(
@ -60,10 +61,7 @@ const onPrintClick = () => {
/>
</Teleport>
<QPage>
<TicketDetails
:rows="rows"
:ticket="ticket"
/>
<TicketDetails :rows="rows" :ticket="ticket" />
</QPage>
</template>