2021-03-28 14:43:30 +00:00
|
|
|
<template>
|
2021-04-15 20:04:33 +00:00
|
|
|
<calculation-table v-if="!list" public>
|
|
|
|
<q-btn icon="mdi-view-list" round @click="list = !list">
|
|
|
|
<q-tooltip> Zur Listenansicht wechseln </q-tooltip>
|
|
|
|
</q-btn>
|
|
|
|
</calculation-table>
|
|
|
|
<pricelist v-if="list" public>
|
|
|
|
<q-btn icon="mdi-cards-variant" round @click="list = !list">
|
|
|
|
<q-tooltip> Zur Kartenansicht wechseln </q-tooltip>
|
|
|
|
</q-btn>
|
|
|
|
</pricelist>
|
2021-03-28 14:43:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-04-15 20:04:33 +00:00
|
|
|
import { defineComponent } from 'vue';
|
2021-04-13 14:20:32 +00:00
|
|
|
import CalculationTable from '../components/CalculationTable.vue';
|
2021-04-15 20:04:33 +00:00
|
|
|
import Pricelist from '../components/Pricelist.vue';
|
|
|
|
import { usePricelistStore } from '../store';
|
|
|
|
import { onBeforeMount, ref } from 'vue';
|
|
|
|
export default defineComponent({
|
2021-03-28 14:43:30 +00:00
|
|
|
name: 'OuterPricelist',
|
2021-04-15 20:04:33 +00:00
|
|
|
components: { Pricelist, CalculationTable },
|
|
|
|
setup() {
|
|
|
|
const store = usePricelistStore();
|
|
|
|
|
|
|
|
onBeforeMount(() => {
|
|
|
|
void store.getDrinks();
|
|
|
|
});
|
|
|
|
|
|
|
|
const list = ref(false);
|
|
|
|
return { list };
|
|
|
|
},
|
|
|
|
});
|
2021-03-28 14:43:30 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped></style>
|