Added Vehicles

Added Bankimport, BankAccounts, BankStatements
Some Visual Changes
Added Contacts
Changes in VendorInvoices
Added layouts with default an one for Login PAge
Added Input Group Component
This commit is contained in:
2023-12-22 17:50:22 +01:00
parent 8a1e2384d1
commit 9e092823e4
22 changed files with 1475 additions and 243 deletions

View File

@@ -12,7 +12,7 @@ const supabase = useSupabaseClient()
const user = useSupabaseUser()
const toast = useToast()
const {times, projects, profiles} = storeToRefs(useDataStore())
const {times, projects, profiles, jobs} = storeToRefs(useDataStore())
const {fetchTimes, getTimeTypes} = useDataStore()
const timeTypes = getTimeTypes
const timeInfo = ref({
@@ -71,6 +71,10 @@ const columns = [
key: "projectId",
label: "Projekt"
},
{
key: "job",
label: "Job"
},
{
key: "notes",
label: "Notizen"
@@ -218,6 +222,21 @@ const selectStartedTime = () => {
</USelectMenu>
</UFormGroup>
<UFormGroup
label="Job:"
>
<USelectMenu
:options="jobs"
option-attribute="title"
value-attribute="id"
v-model="runningTimeInfo.job"
>
<template #label>
{{ jobs.find(job => job.id === runningTimeInfo.job) ? jobs.find(job => job.id === runningTimeInfo.job).title : "Job auswählen" }}
</template>
</USelectMenu>
</UFormGroup>
<UFormGroup
label="Kategorie:"
>
@@ -307,6 +326,20 @@ const selectStartedTime = () => {
</template>
</USelectMenu>
</UFormGroup>
<UFormGroup
label="Job:"
>
<USelectMenu
:options="jobs"
option-attribute="title"
value-attribute="id"
v-model="createTimeInfo.job"
>
<template #label>
{{ jobs.find(job => job.id === runningTimeInfo.job) ? jobs.find(job => job.id === runningTimeInfo.job).title : "Job auswählen" }}
</template>
</USelectMenu>
</UFormGroup>
<UFormGroup
label="Typ:"
>
@@ -361,6 +394,9 @@ const selectStartedTime = () => {
<template #projectId-data="{row}">
{{projects.find(project => project.id === row.projectId) ? projects.find(project => project.id === row.projectId).name : ""}}
</template>
<template #job-data="{row}">
{{jobs.find(job => job.id === row.job) ? jobs.find(job => job.id === row.job).title : ""}}
</template>
</UTable>
</template>