Some Tidying
This commit is contained in:
@@ -54,9 +54,9 @@ const displayCurrency = (value, currency = "€") => {
|
|||||||
<td>Offene Ausgangsbelege:</td>
|
<td>Offene Ausgangsbelege:</td>
|
||||||
<td
|
<td
|
||||||
v-if="unpaidCreatedDocumentsSum > 0"
|
v-if="unpaidCreatedDocumentsSum > 0"
|
||||||
class="text-rose-600 font-bold"
|
class="text-rose-600 font-bold text-nowrap"
|
||||||
>{{displayCurrency(unpaidCreatedDocumentsSum)}}</td>
|
>{{displayCurrency(unpaidCreatedDocumentsSum)}}</td>
|
||||||
<td v-else class="text-primary-500 font-bold">0,00€</td>
|
<td v-else class="text-primary-500 font-bold text-no-wrap">0,00€</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Nicht zugewiesene Bankbuchungen:</td>
|
<td>Nicht zugewiesene Bankbuchungen:</td>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
ui: {
|
ui: {
|
||||||
icons: ['heroicons','mdi']
|
icons: ['heroicons','mdi','simple-icons']
|
||||||
},
|
},
|
||||||
colorMode: {
|
colorMode: {
|
||||||
preference: 'system'
|
preference: 'system'
|
||||||
|
|||||||
@@ -3,6 +3,17 @@
|
|||||||
const dataStore = useDataStore()
|
const dataStore = useDataStore()
|
||||||
const supabase = useSupabaseClient()
|
const supabase = useSupabaseClient()
|
||||||
|
|
||||||
|
const itemInfo = ref({
|
||||||
|
features: {},
|
||||||
|
businessInfo: {},
|
||||||
|
projectTypes: []
|
||||||
|
})
|
||||||
|
|
||||||
|
const setupPage = async () => {
|
||||||
|
itemInfo.value = (await supabase.from("tenants").select().eq("id",dataStore.currentTenant).single()).data
|
||||||
|
console.log(itemInfo.value)
|
||||||
|
}
|
||||||
|
|
||||||
const features = ref(dataStore.ownTenant.features)
|
const features = ref(dataStore.ownTenant.features)
|
||||||
const businessInfo = ref(dataStore.ownTenant.businessInfo)
|
const businessInfo = ref(dataStore.ownTenant.businessInfo)
|
||||||
|
|
||||||
@@ -15,6 +26,7 @@ const updateTenant = async (newData) => {
|
|||||||
if (error) console.log(error)
|
if (error) console.log(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setupPage()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -33,13 +45,13 @@ const updateTenant = async (newData) => {
|
|||||||
},{
|
},{
|
||||||
label: 'Bankkonten'
|
label: 'Bankkonten'
|
||||||
},{
|
},{
|
||||||
label: 'Tags'
|
label: 'Projekte'
|
||||||
}
|
}
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<template #item="{item}">
|
<template #item="{item}">
|
||||||
<UCard class="mt-5">
|
|
||||||
<div v-if="item.label === 'Rechnung & Kontakt'">
|
<div v-if="item.label === 'Rechnung & Kontakt'">
|
||||||
|
<UCard class="mt-5">
|
||||||
<UForm class="w-1/2">
|
<UForm class="w-1/2">
|
||||||
<UFormGroup
|
<UFormGroup
|
||||||
label="Firmenname:"
|
label="Firmenname:"
|
||||||
@@ -67,8 +79,11 @@ const updateTenant = async (newData) => {
|
|||||||
Speichern
|
Speichern
|
||||||
</UButton>
|
</UButton>
|
||||||
</UForm>
|
</UForm>
|
||||||
|
</UCard>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="item.label === 'Funktionen'">
|
<div v-else-if="item.label === 'Funktionen'">
|
||||||
|
<UCard class="mt-5">
|
||||||
<UAlert
|
<UAlert
|
||||||
title="Funktionen ausblenden"
|
title="Funktionen ausblenden"
|
||||||
description="Nur Funktionen mit gesetztem Haken sind im Unternehmen verfügbar. Diese Einstellungen gelten für alle Mitarbeiter und sind unabhängig von Berechtigungen."
|
description="Nur Funktionen mit gesetztem Haken sind im Unternehmen verfügbar. Diese Einstellungen gelten für alle Mitarbeiter und sind unabhängig von Berechtigungen."
|
||||||
@@ -133,6 +148,13 @@ const updateTenant = async (newData) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</UCard>
|
</UCard>
|
||||||
|
</UCard>
|
||||||
|
</div>
|
||||||
|
<div v-else-if="item.label === 'Projekte'">
|
||||||
|
<UCard class="mt-5">
|
||||||
|
<template #header>Projekttypen</template>
|
||||||
|
</UCard>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</UTabs>
|
</UTabs>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
redirect:true
|
redirect:true
|
||||||
},
|
},
|
||||||
plants: {
|
plants: {
|
||||||
label: "Objekte",
|
label: "Objekt",
|
||||||
labelSingle: "Objekte",
|
labelSingle: "Objekte",
|
||||||
redirect:true,
|
redirect:true,
|
||||||
historyItemHolder: "plant"
|
historyItemHolder: "plant"
|
||||||
|
|||||||
Reference in New Issue
Block a user