Fix Search and Option Display #38
This commit is contained in:
@@ -441,7 +441,7 @@ const findIncomingInvoiceErrors = computed(() => {
|
|||||||
value-attribute="id"
|
value-attribute="id"
|
||||||
searchable
|
searchable
|
||||||
:disabled="mode === 'show'"
|
:disabled="mode === 'show'"
|
||||||
:search-attributes="['label']"
|
:search-attributes="['label','name','description','number']"
|
||||||
searchable-placeholder="Suche..."
|
searchable-placeholder="Suche..."
|
||||||
v-model="item.costCentre"
|
v-model="item.costCentre"
|
||||||
class="flex-auto"
|
class="flex-auto"
|
||||||
@@ -450,10 +450,10 @@ const findIncomingInvoiceErrors = computed(() => {
|
|||||||
{{costcentres.find(i => i.id === item.costCentre) ? costcentres.find(i => i.id === item.costCentre).name : "Keine Kostenstelle ausgewählt" }}
|
{{costcentres.find(i => i.id === item.costCentre) ? costcentres.find(i => i.id === item.costCentre).name : "Keine Kostenstelle ausgewählt" }}
|
||||||
</template>
|
</template>
|
||||||
<template #option="{option}">
|
<template #option="{option}">
|
||||||
<span v-if="option.vehicle">Fahrzeug - {{option.name}}</span>
|
<span v-if="option.vehicle">{{option.number}} - Fahrzeug - {{option.name}}</span>
|
||||||
<span v-else-if="option.project">Projekt - {{option.name}}</span>
|
<span v-else-if="option.project">{{option.number}} - Projekt - {{option.name}}</span>
|
||||||
<span v-else-if="option.inventoryitem">Inventarartikel - {{option.name}}</span>
|
<span v-else-if="option.inventoryitem">{{option.number}} - Inventarartikel - {{option.name}}</span>
|
||||||
<span v-else>{{option.name}}</span>
|
<span v-else>{{option.number}} - {{option.name}}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</USelectMenu>
|
</USelectMenu>
|
||||||
|
|||||||
Reference in New Issue
Block a user