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