Added Client case person address to segment tables and exports

This commit is contained in:
Simon Pocrnjič
2026-01-05 19:41:39 +01:00
parent 8031501d25
commit 2ad24216ae
4 changed files with 25 additions and 3 deletions
+8 -1
View File
@@ -22,6 +22,7 @@ const selectedClient = ref(initialClient);
const columns = [
{ key: "reference", label: "Pogodba", sortable: true },
{ key: "client_case", label: "Primer" },
{ key: "address", label: "Naslov" },
{ key: "client", label: "Stranka" },
{ key: "type", label: "Vrsta" },
{ key: "start_date", label: "Začetek", sortable: true },
@@ -43,7 +44,9 @@ const totalContracts = computed(
const currentPageCount = computed(() => props.contracts?.data?.length ?? 0);
const allColumnsSelected = computed(() => exportColumns.value.length === columns.length);
const exportDisabled = computed(() => exportColumns.value.length === 0 || isExporting.value);
const exportDisabled = computed(
() => exportColumns.value.length === 0 || isExporting.value
);
function toggleAllColumns(checked) {
exportColumns.value = checked ? columns.map((col) => col.key) : [];
@@ -281,6 +284,10 @@ function extractFilenameFromHeaders(headers) {
<span v-else>{{ row.client_case?.person?.full_name || "-" }}</span>
</template>
<!-- Client case address -->
<template #cell-address="{ row }">
{{ row.client_case?.person?.address?.address || "-" }}
</template>
<!-- Stranka (client) name -->
<template #cell-client="{ row }">
{{ row.client?.person?.full_name || "-" }}