Fixed Scroll

This commit is contained in:
2025-07-22 17:45:37 +02:00
parent 0e3586dccf
commit a7336999ef
2 changed files with 9 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ setup()
:type="type" :type="type"
:columns="columns" :columns="columns"
:rows="props.item[type]" :rows="props.item[type]"
class="h-full" style
/> />
</UCard> </UCard>

View File

@@ -81,6 +81,9 @@ const templateColumns = [
},{ },{
key: 'paid', key: 'paid',
label: "Bezahlt" label: "Bezahlt"
},{
key: 'amount',
label: "Betrag"
}, },
{ {
key: "date", key: "date",
@@ -255,6 +258,7 @@ const selectItem = (item) => {
:ui="{ divide: 'divide-gray-200 dark:divide-gray-800' }" :ui="{ divide: 'divide-gray-200 dark:divide-gray-800' }"
@select="selectItem" @select="selectItem"
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Belege anzuzeigen' }" :empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Belege anzuzeigen' }"
style="height: 70vh"
> >
<template #type-data="{row}"> <template #type-data="{row}">
{{dataStore.documentTypesForCreation[row.type].labelSingle}} {{dataStore.documentTypesForCreation[row.type].labelSingle}}
@@ -281,7 +285,7 @@ const selectItem = (item) => {
</template> </template>
<template #paid-data="{row}"> <template #paid-data="{row}">
<div v-if="(row.type === 'invoices' ||row.type === 'advanceInvoices') && row.state === 'Gebucht'"> <div v-if="(row.type === 'invoices' ||row.type === 'advanceInvoices') && row.state === 'Gebucht'">
<span v-if="useSum().getIsPaid(row)" class="text-primary-500">Bezahlt</span> <span v-if="useSum().getIsPaid(row,createddocuments)" class="text-primary-500">Bezahlt</span>
<span v-else class="text-rose-600">Offen</span> <span v-else class="text-rose-600">Offen</span>
</div> </div>
</template> </template>
@@ -296,11 +300,12 @@ const selectItem = (item) => {
<template #dueDate-data="{row}"> <template #dueDate-data="{row}">
<span v-if="row.paymentDays && ['invoices','advanceInvoices'].includes(row.type)" >{{row.documentDate ? dayjs(row.documentDate).add(row.paymentDays,'day').format("DD.MM.YY") : ''}}</span> <span v-if="row.paymentDays && ['invoices','advanceInvoices'].includes(row.type)" >{{row.documentDate ? dayjs(row.documentDate).add(row.paymentDays,'day').format("DD.MM.YY") : ''}}</span>
</template> </template>
<!-- <template #amount-data="{row}"> <template #amount-data="{row}">
<span v-if="row.type !== 'deliveryNotes'">{{useCurrency(useSum().getCreatedDocumentSum(row, createddocuments))}}</span> <span v-if="row.type !== 'deliveryNotes'">{{useCurrency(useSum().getCreatedDocumentSum(row, createddocuments))}}</span>
</template>--> </template>
</UTable> </UTable>
</UCard> </UCard>
</template> </template>