Changes
This commit is contained in:
@@ -255,6 +255,27 @@ const getAvailableQueryStringData = () => {
|
|||||||
|
|
||||||
</UCard>
|
</UCard>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else-if="tab.label === 'Ansprechpartner'">
|
||||||
|
<UCard class="mt-5">
|
||||||
|
<Toolbar>
|
||||||
|
<UButton
|
||||||
|
@click="router.push(`/standardEntity/contacts/create?${type.substring(0,type.length-1)}=${props.item.id}`)"
|
||||||
|
>
|
||||||
|
+ Ansprechpartner
|
||||||
|
</UButton>
|
||||||
|
</Toolbar>
|
||||||
|
<UTable
|
||||||
|
:rows="props.item.contacts"
|
||||||
|
@select="(row) => router.push(`/standardEntity/contacts/show/${row.id}`)"
|
||||||
|
:columns="[{label: 'Name', key: 'fullName'},{label: 'Rolle', key: 'role'}]"
|
||||||
|
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine zugehörigen Ansprechpartner' }"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
</UTable>
|
||||||
|
|
||||||
|
</UCard>
|
||||||
|
</div>
|
||||||
<div v-else-if="tab.label === 'Objekte'">
|
<div v-else-if="tab.label === 'Objekte'">
|
||||||
<UCard class="mt-5">
|
<UCard class="mt-5">
|
||||||
<Toolbar>
|
<Toolbar>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ setupPage()
|
|||||||
|
|
||||||
const openEmail = () => {
|
const openEmail = () => {
|
||||||
if(["invoices","advanceInvoices"].includes(itemInfo.value.type)){
|
if(["invoices","advanceInvoices"].includes(itemInfo.value.type)){
|
||||||
router.push(`/email/new?loadDocuments=[${linkedDocument.value.id}]&bcc=${encodeURIComponent(currentTenant.value.standardEmailForInvoices)}`)
|
router.push(`/email/new?loadDocuments=["${linkedDocument.value.id}"]&bcc=${encodeURIComponent(currentTenant.value.standardEmailForInvoices)}`)
|
||||||
} else {
|
} else {
|
||||||
router.push(`/email/new?loadDocuments=[${linkedDocument.value.id}]`)
|
router.push(`/email/new?loadDocuments=[${linkedDocument.value.id}]`)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -412,6 +412,7 @@ const showFile = (fileId) => {
|
|||||||
<td>
|
<td>
|
||||||
<UIcon class="mr-1" :name="entry.type === 'folder' ? 'i-heroicons-folder' : 'i-heroicons-document'"/>
|
<UIcon class="mr-1" :name="entry.type === 'folder' ? 'i-heroicons-folder' : 'i-heroicons-document'"/>
|
||||||
<a
|
<a
|
||||||
|
style="cursor: pointer"
|
||||||
:class="[...index === selectedFileIndex ? ['text-primary', 'text-xl'] : ['dark:text-white','text-black','text-xl']]"
|
:class="[...index === selectedFileIndex ? ['text-primary', 'text-xl'] : ['dark:text-white','text-black','text-xl']]"
|
||||||
@click="entry.type === 'folder' ? changeFolder(currentFolders.find(i => i.id === entry.id)) : showFile(entry.id)"
|
@click="entry.type === 'folder' ? changeFolder(currentFolders.find(i => i.id === entry.id)) : showFile(entry.id)"
|
||||||
>{{entry.label}}</a>
|
>{{entry.label}}</a>
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
component: profiles
|
component: profiles
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
showTabs: [{label: 'Informationen'},{label: 'Dateien'},{label: 'Ausgangsbelege'},{label: 'Projekte'},{label: 'Objekte'},{label: 'Verträge'}]
|
showTabs: [{label: 'Informationen'},{label: 'Ansprechpartner'},{label: 'Dateien'},{label: 'Ausgangsbelege'},{label: 'Projekte'},{label: 'Objekte'},{label: 'Verträge'}]
|
||||||
},
|
},
|
||||||
contacts: {
|
contacts: {
|
||||||
label: "Kontakte",
|
label: "Kontakte",
|
||||||
@@ -1059,6 +1059,8 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
showTabs: [
|
showTabs: [
|
||||||
{
|
{
|
||||||
label: 'Informationen',
|
label: 'Informationen',
|
||||||
|
},{
|
||||||
|
label: 'Ansprechpartner',
|
||||||
}, {
|
}, {
|
||||||
label: 'Dateien',
|
label: 'Dateien',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user