Changes
This commit is contained in:
@@ -36,37 +36,34 @@
|
|||||||
</template>
|
</template>
|
||||||
</UDashboardToolbar>
|
</UDashboardToolbar>
|
||||||
|
|
||||||
|
<UTable
|
||||||
<div class="table">
|
:rows="filteredRows"
|
||||||
<UTable
|
:columns="columns"
|
||||||
:rows="filteredRows"
|
class="w-full"
|
||||||
:columns="columns"
|
:ui="{ divide: 'divide-gray-200 dark:divide-gray-800' }"
|
||||||
class="w-full"
|
@select="(i) => router.push(`/products/show/${i.id}`) "
|
||||||
:ui="{ divide: 'divide-gray-200 dark:divide-gray-800' }"
|
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Artikel anzuzeigen' }"
|
||||||
@select="(i) => router.push(`/products/show/${i.id}`) "
|
>
|
||||||
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Artikel anzuzeigen' }"
|
<template #stock-data="{row}">
|
||||||
>
|
{{`${dataStore.getStockByProductId(row.id)} ${(dataStore.units.find(unit => unit.id === row.unit) ? dataStore.units.find(unit => unit.id === row.unit).name : "")}`}}
|
||||||
<template #stock-data="{row}">
|
</template>
|
||||||
{{`${dataStore.getStockByProductId(row.id)} ${(dataStore.units.find(unit => unit.id === row.unit) ? dataStore.units.find(unit => unit.id === row.unit).name : "")}`}}
|
<template #purchasePrice-data="{row}">
|
||||||
</template>
|
{{row.purchasePrice ? Number(row.purchasePrice).toFixed(2) + " €" : ""}}
|
||||||
<template #purchasePrice-data="{row}">
|
</template>
|
||||||
{{row.purchasePrice ? Number(row.purchasePrice).toFixed(2) + " €" : ""}}
|
<template #tags-data="{row}">
|
||||||
</template>
|
<UBadge
|
||||||
<template #tags-data="{row}">
|
v-if="row.tags.length > 0"
|
||||||
<UBadge
|
v-for="tag in row.tags"
|
||||||
v-if="row.tags.length > 0"
|
class="mr-2"
|
||||||
v-for="tag in row.tags"
|
>
|
||||||
class="mr-2"
|
{{tag}}
|
||||||
>
|
</UBadge>
|
||||||
{{tag}}
|
<span v-else>-</span>
|
||||||
</UBadge>
|
</template>
|
||||||
<span v-else>-</span>
|
<template #unit-data="{row}">
|
||||||
</template>
|
{{dataStore.units.find(unit => unit.id === row.unit) ? dataStore.units.find(unit => unit.id === row.unit).name : row.unit}}
|
||||||
<template #unit-data="{row}">
|
</template>
|
||||||
{{dataStore.units.find(unit => unit.id === row.unit) ? dataStore.units.find(unit => unit.id === row.unit).name : row.unit}}
|
</UTable>/
|
||||||
</template>
|
|
||||||
</UTable>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -35,18 +35,14 @@
|
|||||||
</USelectMenu>
|
</USelectMenu>
|
||||||
</template>
|
</template>
|
||||||
</UDashboardToolbar>
|
</UDashboardToolbar>
|
||||||
|
<UTable
|
||||||
|
:rows="filteredRows"
|
||||||
<div class="table">
|
:columns="columns"
|
||||||
<UTable
|
class="w-full"
|
||||||
:rows="filteredRows"
|
:ui="{ divide: 'divide-gray-200 dark:divide-gray-800' }"
|
||||||
:columns="columns"
|
@select="(i) => router.push(`/spaces/show/${i.id}`) "
|
||||||
class="w-full"
|
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Lagerplätze anzuzeigen' }"
|
||||||
:ui="{ divide: 'divide-gray-200 dark:divide-gray-800' }"
|
/>
|
||||||
@select="(i) => router.push(`/spaces/show/${i.id}`) "
|
|
||||||
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Lagerplätze anzuzeigen' }"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user