This commit is contained in:
2026-10-13 13:50:34 +07:00
parent d77638308e
commit 0fa88bca22
7 changed files with 303 additions and 15 deletions
+8
View File
@@ -6,12 +6,14 @@ import UiBlock from '@/components/UiBlock.vue'
defineProps<{
teams: Team[]
canPrintReceipts: boolean
participationOptions: { label: string; value: string }[]
}>()
const emit = defineEmits<{
add: []
'open-qr': [team: Team]
print: [team: Team]
preview: [id: string, password: string]
delete: [team: Team]
'give-application': [team: Team, application: Application]
@@ -47,6 +49,12 @@ const emit = defineEmits<{
</div>
</div>
<n-flex justify="end">
<n-button
v-if="canPrintReceipts && team.participationStatus !== 'cancelled'"
@click="emit('print', team)"
>
Печать чека
</n-button>
<n-button v-if="team.participationStatus !== 'cancelled'" @click="emit('open-qr', team)"
>QR</n-button
>