Slight changes on TicketListItem append section
This commit is contained in:
26
software/src/components/basics/cardViewOneLine.vue
Normal file
26
software/src/components/basics/cardViewOneLine.vue
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
defineProps({
|
||||||
|
/** Displayed smaller text on the left side */
|
||||||
|
descriptionText: {
|
||||||
|
type: String,
|
||||||
|
default: ""
|
||||||
|
},
|
||||||
|
|
||||||
|
/** Displayed bigger text on the right side */
|
||||||
|
valueText: [ String, Number ]
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<v-card variant="outlined" class="my-1 mx-2 px-2">
|
||||||
|
<v-row class="d-flex justify-center align-center">
|
||||||
|
<v-col class="text-caption text-left" v-if="descriptionText.length > 0">
|
||||||
|
{{ descriptionText }}
|
||||||
|
</v-col>
|
||||||
|
|
||||||
|
<v-col class="text-h5 font-weight-bold text-right">
|
||||||
|
{{ valueText }}
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-card>
|
||||||
|
</template>
|
||||||
@@ -5,6 +5,7 @@ import { dateStringToHumanReadableString } from '@/scripts/dateTimeScripts';
|
|||||||
import { BandModel } from '@/data/models/acts/bandModel';
|
import { BandModel } from '@/data/models/acts/bandModel';
|
||||||
import { LocationModel } from '@/data/models/locations/locationModel';
|
import { LocationModel } from '@/data/models/locations/locationModel';
|
||||||
import { CityModel } from '@/data/models/locations/cityModel';
|
import { CityModel } from '@/data/models/locations/cityModel';
|
||||||
|
import cardViewOneLine from '../basics/cardViewOneLine.vue';
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
concert: {
|
concert: {
|
||||||
@@ -34,9 +35,7 @@ defineProps({
|
|||||||
|
|
||||||
seatRow: Number,
|
seatRow: Number,
|
||||||
|
|
||||||
seatNr: Number,
|
seatNr: Number
|
||||||
|
|
||||||
standingArea: Boolean
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -76,41 +75,28 @@ defineProps({
|
|||||||
<template #append>
|
<template #append>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-card variant="outlined" class="my-1" >
|
<card-view-one-line
|
||||||
<div class="text-caption">
|
:description-text="$t('seatGroup')"
|
||||||
{{ $t('seatGroup') }}
|
:value-text="seatGroup"
|
||||||
</div>
|
/>
|
||||||
|
|
||||||
<div>
|
<div v-if="seatRow != 0">
|
||||||
{{ seatGroup }}
|
<card-view-one-line
|
||||||
</div>
|
:description-text="$t('seatRow')"
|
||||||
|
:value-text="seatRow"
|
||||||
|
/>
|
||||||
|
|
||||||
<div v-if="standingArea" class="text-caption">
|
<card-view-one-line
|
||||||
{{ $t('standingArea') }}
|
:description-text="$t('seat')"
|
||||||
</div>
|
:value-text="seatNr"
|
||||||
</v-card>
|
/>
|
||||||
|
|
||||||
<div v-if="!standingArea">
|
|
||||||
<v-card variant="outlined" class="my-1" >
|
|
||||||
<div class="text-caption">
|
|
||||||
{{ $t('seatRow') }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{{ seatRow }}
|
|
||||||
</div>
|
|
||||||
</v-card>
|
|
||||||
|
|
||||||
<v-card variant="outlined" class="my-1" >
|
|
||||||
<div class="text-caption">
|
|
||||||
{{ $t('seat') }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
{{ seatNr }}
|
|
||||||
</div>
|
|
||||||
</v-card>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<v-div v-else>
|
||||||
|
<card-view-one-line
|
||||||
|
:value-text="$t('standingArea')"
|
||||||
|
/>
|
||||||
|
</v-div>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -55,34 +55,8 @@ defineProps({
|
|||||||
:seat="ticket.seat.seatNr"
|
:seat="ticket.seat.seatNr"
|
||||||
:seat-group="ticket.seat.seatRow.seatGroup.name"
|
:seat-group="ticket.seat.seatRow.seatGroup.name"
|
||||||
:seat-row="ticket.seat.seatRow.row"
|
:seat-row="ticket.seat.seatRow.row"
|
||||||
:standing-area="ticket.seat.seatRow.seatGroup.standingArea"
|
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
<!-- <v-row>
|
|
||||||
<v-col>
|
|
||||||
<v-table class="bg-surface-light">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>{{ $t('quantity') }}</th>
|
|
||||||
<th>{{ $t('event') }}</th>
|
|
||||||
<th>{{ $t('seatGroup') }}</th>
|
|
||||||
<th>{{ $t('seatRow') }}</th>
|
|
||||||
<th>{{ $t('seat') }}</th>
|
|
||||||
<th>{{ $t('product.productPrice') }}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr v-for="orderItem in order.orderItems">
|
|
||||||
<td>{{ orderItem.quantity }}x</td>
|
|
||||||
<td>{{ orderItem }}</td>
|
|
||||||
<td>{{ orderItem }}</td>
|
|
||||||
<td>{{ orderItem }} €</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</v-table>
|
|
||||||
</v-col>
|
|
||||||
</v-row> -->
|
|
||||||
</card-view>
|
</card-view>
|
||||||
</template>
|
</template>
|
||||||
@@ -6,6 +6,7 @@ import { useBasketStore } from '@/stores/basket.store';
|
|||||||
import concertListItem from '@/components/pageParts/concertListItem.vue';
|
import concertListItem from '@/components/pageParts/concertListItem.vue';
|
||||||
import outlinedButton from '@/components/basics/outlinedButton.vue';
|
import outlinedButton from '@/components/basics/outlinedButton.vue';
|
||||||
import { useConcertStore } from '@/stores/concert.store';
|
import { useConcertStore } from '@/stores/concert.store';
|
||||||
|
import ticketListItem from '@/components/pageParts/ticketListItem.vue';
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const basketStore = useBasketStore()
|
const basketStore = useBasketStore()
|
||||||
@@ -84,7 +85,16 @@ concertStore.getConcert(Number(router.currentRoute.value.params.id))
|
|||||||
<v-col>
|
<v-col>
|
||||||
<v-list >
|
<v-list >
|
||||||
<v-list-item v-for="seat in basketStore.selectedSeats" >
|
<v-list-item v-for="seat in basketStore.selectedSeats" >
|
||||||
Group: {{ seat.seatGroupName }} - Row: {{ seat.seatRow }} - Seat: {{ seat.seat.seatNr }}
|
<ticket-list-item
|
||||||
|
:concert="concertStore.concert"
|
||||||
|
:band="concertStore.concert.band"
|
||||||
|
:location="concertStore.concert.location"
|
||||||
|
:city="concertStore.concert.location.city"
|
||||||
|
:image="concertStore.concert.image"
|
||||||
|
:seat-group="seat.seatGroupName"
|
||||||
|
:seat-nr="seat.seat.seatNr"
|
||||||
|
:seat-row="seat.seatRow"
|
||||||
|
/>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|||||||
Reference in New Issue
Block a user