Changed Plants to Objects

Changes in outgoinginvoices
This commit is contained in:
2024-01-27 11:54:14 +01:00
parent 6f6e835b0a
commit 3167b6a20a
21 changed files with 1821 additions and 23 deletions

View File

@@ -44,7 +44,8 @@ const itemInfo = ref({
end: "",
notes: null,
projectId: null,
type: null
type: null,
state: "Entwurf"
})
@@ -300,9 +301,10 @@ const setState = async (newState) => {
:dark="useColorMode().value !== 'light'"
:format="format"
:preview-format="format"
:disabled="itemInfo.state !== 'Entwurf'"
:disabled="configTimeMode === 'create' ? false : itemInfo.state !== 'Entwurf'"
/>
</UFormGroup>
{{itemInfo.state === 'Entwurf'}}{{itemInfo.state}}
<UFormGroup
label="Ende:"
>
@@ -316,7 +318,7 @@ const setState = async (newState) => {
:dark="useColorMode().value !== 'light'"
:format="format"
:preview-format="format"
:disabled="itemInfo.state !== 'Entwurf'"
:disabled="configTimeMode === 'create' ? false : itemInfo.state !== 'Entwurf'"
/>
</UFormGroup>
<!-- <UFormGroup
@@ -334,7 +336,7 @@ const setState = async (newState) => {
v-model="itemInfo.user"
option-attribute="fullName"
value-attribute="id"
:disabled="itemInfo.state !== 'Entwurf'"
:disabled="configTimeMode === 'create' ? false : itemInfo.state !== 'Entwurf'"
>
<template #label>
{{dataStore.profiles.find(profile => profile.id === itemInfo.user) ? dataStore.profiles.find(profile => profile.id === itemInfo.user).firstName : "Benutzer auswählen"}}
@@ -352,7 +354,7 @@ const setState = async (newState) => {
searchable
searchable-placeholder="Suche..."
:search-attributes="['name']"
:disabled="itemInfo.state !== 'Entwurf'"
:disabled="configTimeMode === 'create' ? false : itemInfo.state !== 'Entwurf'"
>
<template #label>
{{dataStore.projects.find(project => project.id === itemInfo.projectId) ? dataStore.projects.find(project => project.id === itemInfo.projectId).name : "Projekt auswählen"}}
@@ -367,7 +369,7 @@ const setState = async (newState) => {
:options="timeTypes"
option-attribute="label"
value-attribute="label"
:disabled="itemInfo.state !== 'Entwurf'"
:disabled="configTimeMode === 'create' ? false : itemInfo.state !== 'Entwurf'"
>
<template #label>
{{itemInfo.type ? itemInfo.type : "Kategorie auswählen"}}
@@ -379,7 +381,7 @@ const setState = async (newState) => {
>
<UTextarea
v-model="itemInfo.notes"
:disabled="itemInfo.state !== 'Entwurf'"
:disabled="configTimeMode === 'create' ? false : itemInfo.state !== 'Entwurf'"
/>
</UFormGroup>