Noch mehr much
This commit is contained in:
parent
a47542f739
commit
0df3feda76
@ -1,51 +0,0 @@
|
|||||||
<template>
|
|
||||||
<q-item
|
|
||||||
clickable
|
|
||||||
tag="a"
|
|
||||||
target="_blank"
|
|
||||||
:href="link"
|
|
||||||
>
|
|
||||||
<q-item-section
|
|
||||||
v-if="icon"
|
|
||||||
avatar
|
|
||||||
>
|
|
||||||
<q-icon :name="icon" />
|
|
||||||
</q-item-section>
|
|
||||||
|
|
||||||
<q-item-section>
|
|
||||||
<q-item-label>{{ title }}</q-item-label>
|
|
||||||
<q-item-label caption>
|
|
||||||
{{ caption }}
|
|
||||||
</q-item-label>
|
|
||||||
</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { defineComponent } from 'vue';
|
|
||||||
|
|
||||||
export default defineComponent({
|
|
||||||
name: 'EssentialLink',
|
|
||||||
props: {
|
|
||||||
title: {
|
|
||||||
type: String,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
|
|
||||||
caption: {
|
|
||||||
type: String,
|
|
||||||
default: '',
|
|
||||||
},
|
|
||||||
|
|
||||||
link: {
|
|
||||||
type: String,
|
|
||||||
default: '#',
|
|
||||||
},
|
|
||||||
|
|
||||||
icon: {
|
|
||||||
type: String,
|
|
||||||
default: '',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
|
@ -12,8 +12,10 @@
|
|||||||
<q-card-section>
|
<q-card-section>
|
||||||
<q-input
|
<q-input
|
||||||
v-model="personenNamensEingabeFeld"
|
v-model="personenNamensEingabeFeld"
|
||||||
outlined
|
|
||||||
label="Name"
|
label="Name"
|
||||||
|
maxlength="32"
|
||||||
|
counter
|
||||||
|
outlined
|
||||||
/>
|
/>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
@ -83,23 +85,27 @@
|
|||||||
<q-select
|
<q-select
|
||||||
v-model="personenAuswähler"
|
v-model="personenAuswähler"
|
||||||
class="q-my-md"
|
class="q-my-md"
|
||||||
|
label="Person"
|
||||||
outlined
|
outlined
|
||||||
:options="personenAuswahlMöglichkeiten"
|
:options="personenAuswahlMöglichkeiten"
|
||||||
label="Person"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
v-model.number="grundEingabeFeld"
|
v-model.number="grundEingabeFeld"
|
||||||
class="q-my-md"
|
class="q-my-md"
|
||||||
outlined
|
|
||||||
label="Grund / Ausgabe"
|
label="Grund / Ausgabe"
|
||||||
|
maxlength="32"
|
||||||
|
counter
|
||||||
|
outlined
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
v-model.number="geldEingabeFeld"
|
v-model.number="geldEingabeFeld"
|
||||||
class="q-my-md"
|
class="q-my-md"
|
||||||
outlined
|
|
||||||
label="Geld"
|
label="Geld"
|
||||||
|
maxlength="8"
|
||||||
|
counter
|
||||||
|
outlined
|
||||||
/>
|
/>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
@ -143,21 +149,12 @@
|
|||||||
>
|
>
|
||||||
<!-- ZÜRLEDIGEN: Gespräch / Platzen-Hoch mit den einzelnen Blechwerten -->
|
<!-- ZÜRLEDIGEN: Gespräch / Platzen-Hoch mit den einzelnen Blechwerten -->
|
||||||
<template #body-cell-geblecht="props">
|
<template #body-cell-geblecht="props">
|
||||||
<q-td :props="props">
|
<q-td
|
||||||
|
:props="props"
|
||||||
|
class="cursor-pointer"
|
||||||
|
@click="blechGesprächÖffnen(props.key)"
|
||||||
|
>
|
||||||
{{ props.value }}
|
{{ props.value }}
|
||||||
<q-tooltip
|
|
||||||
anchor="top middle"
|
|
||||||
class="bg-indigo"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
v-for="blech in blechGründe(props.key)"
|
|
||||||
:key="blech.grund"
|
|
||||||
class="text-subtitle2"
|
|
||||||
>
|
|
||||||
{{ blech.grund }}: {{ gleitzahlenAnalysierer(blech.geld) }} €
|
|
||||||
<br>
|
|
||||||
</span>
|
|
||||||
</q-tooltip>
|
|
||||||
</q-td>
|
</q-td>
|
||||||
</template>
|
</template>
|
||||||
</q-table>
|
</q-table>
|
||||||
@ -165,6 +162,34 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-page>
|
</q-page>
|
||||||
|
|
||||||
|
<q-dialog
|
||||||
|
v-model="blechGespräch"
|
||||||
|
full-width
|
||||||
|
>
|
||||||
|
<q-card>
|
||||||
|
<q-card-section class="row items-center q-pb-none">
|
||||||
|
<q-space />
|
||||||
|
<q-btn
|
||||||
|
v-close-popup
|
||||||
|
icon="close"
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
/>
|
||||||
|
</q-card-section>
|
||||||
|
|
||||||
|
<q-table
|
||||||
|
style="height: 350px"
|
||||||
|
:rows="blechGesprächZeilen"
|
||||||
|
:columns="blechGesprächSpalten"
|
||||||
|
separator="cell"
|
||||||
|
row-key="grund"
|
||||||
|
:rows-per-page-options="[0]"
|
||||||
|
virtual-scroll
|
||||||
|
/>
|
||||||
|
</q-card>
|
||||||
|
</q-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -178,6 +203,22 @@ const personenAuswähler = ref(null);
|
|||||||
const geldEingabeFeld = ref(0.0);
|
const geldEingabeFeld = ref(0.0);
|
||||||
const grundEingabeFeld = ref('');
|
const grundEingabeFeld = ref('');
|
||||||
|
|
||||||
|
const blechGespräch = ref(false);
|
||||||
|
const blechGesprächPerson = ref(null);
|
||||||
|
|
||||||
|
function blechGesprächÖffnen (nameDerPerson) {
|
||||||
|
blechGespräch.value = true;
|
||||||
|
blechGesprächPerson.value = nameDerPerson;
|
||||||
|
}
|
||||||
|
|
||||||
|
const blechGesprächZeilen = computed(() => {
|
||||||
|
if (!blechGesprächPerson.value) return [];
|
||||||
|
|
||||||
|
const person = personen.value[blechGesprächPerson.value];
|
||||||
|
|
||||||
|
return person.geblecht;
|
||||||
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
try {
|
try {
|
||||||
if (localStorage.personen)
|
if (localStorage.personen)
|
||||||
@ -241,6 +282,24 @@ function blechSumme (gesamtBlech) {
|
|||||||
return gesamtBlechGeld;
|
return gesamtBlechGeld;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const blechGesprächSpalten = [
|
||||||
|
{
|
||||||
|
name: 'grund',
|
||||||
|
required: true,
|
||||||
|
label: 'Grund / Ausgabe',
|
||||||
|
align: 'left',
|
||||||
|
field: 'grund',
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'geld',
|
||||||
|
label: 'Geld / Kosten',
|
||||||
|
field: 'geld',
|
||||||
|
sortable: true,
|
||||||
|
format: (reihenWert) => reihenWert ? `${gleitzahlenAnalysierer(reihenWert) || '0.00'} €` : '',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const tabellenSpalten = computed(() => {
|
const tabellenSpalten = computed(() => {
|
||||||
const cols = [
|
const cols = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user