feat: add download report sale
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s

This commit is contained in:
Methapon2001 2025-03-06 15:31:30 +07:00
parent cd231513ee
commit 5278f4952e
2 changed files with 45 additions and 3 deletions

View file

@ -296,7 +296,19 @@ watch([() => pageState.currentTab], async () => {
<template v-if="pageState.currentTab === ViewMode.Sale">
<div class="q-gutter-y-md">
<Expansion default-opened>
<template #header>{{ $t('report.sale.byCustomer') }}</template>
<template #header>
<div class="flex full-width items-center">
{{ $t('report.sale.byCustomer') }}
<SaveButton
style="margin-left: auto"
:icon="'material-symbols:download'"
:label="$t('general.download')"
@click.stop="
reportStore.downloadReportSale('by-customer')
"
/>
</div>
</template>
<template #main>
<TableReport
:row="
@ -324,7 +336,17 @@ watch([() => pageState.currentTab], async () => {
</Expansion>
<Expansion default-opened>
<template #header>
{{ $t('report.sale.byProductGroup') }}
<div class="flex full-width items-center">
{{ $t('report.sale.byProductGroup') }}
<SaveButton
style="margin-left: auto"
:icon="'material-symbols:download'"
:label="$t('general.download')"
@click.stop="
reportStore.downloadReportSale('by-product-group')
"
/>
</div>
</template>
<template #main>
<TableReport
@ -346,7 +368,17 @@ watch([() => pageState.currentTab], async () => {
</template>
</Expansion>
<Expansion default-opened>
<template #header>{{ $t('report.sale.bySale') }}</template>
<template #header>
<div class="flex full-width items-center">
{{ $t('report.sale.bySale') }}
<SaveButton
style="margin-left: auto"
:icon="'material-symbols:download'"
:label="$t('general.download')"
@click.stop="reportStore.downloadReportSale('by-sale')"
/>
</div>
</template>
<template #main>
<TableReport
:row="