Fixed Adress Loading when customer is preset
Added more Display Options Enabled Timeline in Devtools Changed Style of Document Display
This commit is contained in:
@@ -128,9 +128,9 @@ const updateDocumentAssignment = async () => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="documentListItem">
|
||||
<div class="documentListItem" @click="openDocument">
|
||||
<object
|
||||
:data="documentData.url"
|
||||
:data="`${documentData.url}#toolbar=0&navpanes=0&scrollbar=0`"
|
||||
class="previewEmbed"
|
||||
type="application/pdf"
|
||||
v-if="!documentData.tags.includes('Bild')"
|
||||
@@ -140,26 +140,28 @@ const updateDocumentAssignment = async () => {
|
||||
alt=""
|
||||
:src="documentData.url"
|
||||
/>
|
||||
<!-- TODO: Remove Scrollbar -->
|
||||
|
||||
|
||||
|
||||
<UButton
|
||||
<!-- <UButton
|
||||
@click="openDocument"
|
||||
class="mt-3"
|
||||
icon=""
|
||||
>
|
||||
<UIcon name="i-heroicons-eye-solid" />
|
||||
</UButton>
|
||||
<UToggle
|
||||
</UButton>-->
|
||||
<!-- <UToggle
|
||||
v-model="documentData.selected"
|
||||
class="ml-2"
|
||||
/>
|
||||
/>-->
|
||||
<br>
|
||||
<UBadge
|
||||
<!-- <UBadge
|
||||
v-if="documentData.vendorInvoice"
|
||||
>{{dataStore.incominginvoices.find(item => item.id === documentData.vendorInvoice) ? dataStore.incominginvoices.find(item => item.id === documentData.vendorInvoice).reference : ''}}</UBadge>
|
||||
<UBadge
|
||||
v-if="documentData.inDatev"
|
||||
>DATEV</UBadge>
|
||||
>DATEV</UBadge>-->
|
||||
</div>
|
||||
|
||||
|
||||
@@ -335,8 +337,9 @@ const updateDocumentAssignment = async () => {
|
||||
|
||||
.previewEmbed {
|
||||
width: 100%;
|
||||
height: 22vh;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
overflow: hidden !important;
|
||||
pointer-events: none !important;
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ let links = computed(() => {
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
... dataStore.ownTenant.features.inventory ? [{
|
||||
label: "Lager",
|
||||
icon: "i-heroicons-puzzle-piece",
|
||||
defaultOpen: false,
|
||||
@@ -279,13 +279,13 @@ let links = computed(() => {
|
||||
to: "/spaces",
|
||||
icon: "i-heroicons-square-3-stack-3d"
|
||||
},
|
||||
]
|
||||
},] : [],
|
||||
{
|
||||
label: "Inventar",
|
||||
to: "/inventoryitems",
|
||||
icon: "i-heroicons-puzzle-piece"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "Stammdaten",
|
||||
defaultOpen: false,
|
||||
@@ -307,6 +307,11 @@ let links = computed(() => {
|
||||
}] : [],
|
||||
]
|
||||
},
|
||||
... dataStore.ownTenant.features.accounting ? [{
|
||||
label: "Buchhaltung",
|
||||
defaultOpen: false,
|
||||
icon: "i-heroicons-user-group",
|
||||
children: [
|
||||
{
|
||||
label: "Belege",
|
||||
to: "/receipts",
|
||||
@@ -316,21 +321,25 @@ let links = computed(() => {
|
||||
label: "Bank",
|
||||
to: "/banking",
|
||||
icon: "i-heroicons-document-text"
|
||||
},{
|
||||
},
|
||||
]
|
||||
},] : [],
|
||||
... dataStore.ownTenant.features.projects ? [{
|
||||
label: "Projekte",
|
||||
to: "/projects",
|
||||
icon: "i-heroicons-clipboard-document-check"
|
||||
},
|
||||
},] : [],
|
||||
... dataStore.ownTenant.features.contracts ? [{
|
||||
label: "Verträge",
|
||||
to: "/contracts",
|
||||
icon: "i-heroicons-clipboard-document"
|
||||
}] : [],
|
||||
{
|
||||
... dataStore.ownTenant.features.objects ? [{
|
||||
label: "Objekte",
|
||||
to: "/plants",
|
||||
icon: "i-heroicons-clipboard-document"
|
||||
},
|
||||
},] : [],
|
||||
|
||||
{
|
||||
label: "Einstellungen",
|
||||
defaultOpen: false,
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
devtools: {enabled: true},
|
||||
devtools: {
|
||||
enabled: true,
|
||||
timeline: {
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
imports: {
|
||||
dirs: ['stores']
|
||||
},
|
||||
|
||||
@@ -80,7 +80,10 @@ const setupPage = () => {
|
||||
|
||||
if(route.query.project) itemInfo.value.project = Number(route.query.project)
|
||||
if(route.query.contact) itemInfo.value.contact = Number(route.query.contact)
|
||||
if(route.query.customer) itemInfo.value.customer = Number(route.query.customer)
|
||||
if(route.query.customer) {
|
||||
itemInfo.value.customer = Number(route.query.customer)
|
||||
setCustomerData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user