diff --git a/spaces/components/DocumentDisplay.vue b/spaces/components/DocumentDisplay.vue
index a6e690f..9bed3b7 100644
--- a/spaces/components/DocumentDisplay.vue
+++ b/spaces/components/DocumentDisplay.vue
@@ -85,11 +85,44 @@ const createVendorInvoice = async () => {
const archiveDocument = () => {
- documentData.tags = ["Archiviert"]
+ documentData.tags.push("Archiviert")
updateDocument()
}
+const resourceOptions = ref([
+ {label: 'Projekt', value: 'project', optionAttr: "name"},
+ {label: 'Kunde', value: 'customer', optionAttr: "name"},
+ {label: 'Lieferant', value: 'vendor', optionAttr: "name"},
+ {label: 'Fahrzeug', value: 'vehicle', optionAttr: "licensePlate"},
+ {label: 'Objekt', value: 'plant', optionAttr: "name"},
+ {label: 'Produkt', value: 'product', optionAttr: "name"}
+])
+const resourceToAssign = ref("project")
+const itemOptions = ref([])
+const idToAssign = ref(null)
+const getItemsBySelectedResource = () => {
+ if(resourceToAssign.value === "project") {
+ itemOptions.value = dataStore.projects
+ } else if(resourceToAssign.value === "customer") {
+ itemOptions.value = dataStore.customers
+ } else if(resourceToAssign.value === "vendor") {
+ itemOptions.value = dataStore.vendors
+ } else if(resourceToAssign.value === "vehicle") {
+ itemOptions.value = dataStore.vehicles
+ } else if(resourceToAssign.value === "product") {
+ itemOptions.value = dataStore.products
+ } else if(resourceToAssign.value === "plant") {
+ itemOptions.value = dataStore.plants
+ } else {
+ itemOptions.value = []
+ }
+}
+getItemsBySelectedResource()
+const updateDocumentAssignment = async () => {
+ documentData[resourceToAssign.value] = idToAssign.value
+ await updateDocument()
+}
@@ -196,7 +229,36 @@ const archiveDocument = () => {
+
@@ -476,13 +487,13 @@ const links = [[{
#contentContainer {
width: 77vw;
height: 95vh;
-}
-/* -ms-overflow-style: none; !* IE and Edge *!
- scrollbar-width: none; !* Firefox *!
+ overflow-y: scroll;
+ -ms-overflow-style: none; /* IE and Edge */
+ scrollbar-width: none; /* Firefox */
}
#contentContainer::-webkit-scrollbar {
display: none;
-}*/
+}
\ No newline at end of file
diff --git a/spaces/package.json b/spaces/package.json
index f59c861..5b7c45e 100644
--- a/spaces/package.json
+++ b/spaces/package.json
@@ -48,6 +48,7 @@
"buffer": "^6.0.3",
"client-oauth2": "^4.3.3",
"dayjs": "^1.11.10",
+ "handlebars": "^4.7.8",
"jsprintmanager": "^6.0.3",
"nuxt-editorjs": "^1.0.4",
"nuxt-viewport": "^2.0.6",
diff --git a/spaces/pages/banking/index.vue b/spaces/pages/banking/index.vue
index 4178ef9..ea370fc 100644
--- a/spaces/pages/banking/index.vue
+++ b/spaces/pages/banking/index.vue
@@ -10,7 +10,13 @@
placeholder="Suche..."
/>
-->
-
+
+
+ + Konto
+
+
+import Axios from "axios"
+
+
+const newAccounts = ref([])
+
+const setupPage = async () => {
+
+}
+
+
+
+
+
+ New
+
+ Setup
+
+
+
+
\ No newline at end of file
diff --git a/spaces/pages/contracts/[mode]/[[id]].vue b/spaces/pages/contracts/[mode]/[[id]].vue
index 08ca69a..30b239f 100644
--- a/spaces/pages/contracts/[mode]/[[id]].vue
+++ b/spaces/pages/contracts/[mode]/[[id]].vue
@@ -62,11 +62,11 @@ setupPage()
{{currentItem.name}}
+ >Vertrag: {{currentItem.name}}
@@ -74,7 +74,7 @@ setupPage()
Bearbeiten
diff --git a/spaces/pages/createDocument/edit/[[id]].vue b/spaces/pages/createDocument/edit/[[id]].vue
index 4761b1f..948f510 100644
--- a/spaces/pages/createDocument/edit/[[id]].vue
+++ b/spaces/pages/createDocument/edit/[[id]].vue
@@ -1,23 +1,17 @@
@@ -365,11 +433,19 @@ setupPage()
searchable
searchable-placeholder="Suche..."
v-model="itemInfo.customer"
-
+ @change="setCustomerData"
>
-
+
{{dataStore.getCustomerById(itemInfo.customer) ? dataStore.getCustomerById(itemInfo.customer).name : "Kein Kunde ausgewählt"}}
-
+
+
+
+
+
+ {{dataStore.getContactById(itemInfo.contact) ? dataStore.getContactById(itemInfo.contact).fullName : "Kein Kontakt ausgewählt"}}
+
+
+
{{dataStore.getContactById(itemInfo.contact) ? dataStore.getContactById(itemInfo.contact).fullName : "Kein Kontakt ausgewählt"}}
@@ -422,52 +506,78 @@ setupPage()
+
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
-
-
-
+
+
+
+ {{option.name}} - {{option.text}}
+
+
+ {{dataStore.texttemplates.find(i => i.text === itemInfo.startText) ? dataStore.texttemplates.find(i => i.text === itemInfo.startText).name : "Keine Vorlage ausgewählt oder Vorlage verändert"}}
+
+
+
+
+
+
@@ -673,7 +804,7 @@ setupPage()
- {{getRowAmount(row)}} €
+ {{getRowAmount(row)}} €
|
+
+
+
+ {{option.name}} - {{option.text}}
+
+
+ {{dataStore.texttemplates.find(i => i.text === itemInfo.endText) ? dataStore.texttemplates.find(i => i.text === itemInfo.endText).name : "Keine Vorlage ausgewählt oder Vorlage verändert"}}
+
+
+
+
diff --git a/spaces/pages/tasks/[mode]/[[id]].vue b/spaces/pages/tasks/[mode]/[[id]].vue
index e92fe01..096c99b 100644
--- a/spaces/pages/tasks/[mode]/[[id]].vue
+++ b/spaces/pages/tasks/[mode]/[[id]].vue
@@ -75,156 +75,152 @@ setupPage()
-
-
-
-
- {{currentItem.categorie}}
-
+ Aufgabe: {{currentItem.name}}
+
+
+
+
+
+
+ Bearbeiten
+
+
+ Zum Projekt
+
+
- {{currentItem.name}}
-
+
+ Kategorie: {{currentItem.categorie}}
+ Projekt: {{dataStore.getProjectById(currentItem.project).name}}
+ Beschreibung: {{currentItem.description}}
+
-
-
- Zum Projekt
-
-
+
+
+
+
+
+
+
+ {{itemInfo.name}}
+
+
+
+
- Beschreibung:
- {{currentItem.description}}
- Projekt: {{currentItem.project ? dataStore.getProjectById(currentItem.project).name : "Kein Projekt zugeordnet"}}
+
+
+
-
-
-
-
-
- Bearbeiten
-
-
-
-
-
-
-
-
- {{itemInfo.name}}
-
-
-
+
-
-
-
-
+ {{dataStore.getProfileById(itemInfo.user) ? dataStore.getProfileById(itemInfo.user).fullName : "Kein Benutzer ausgewählt"}}
+
+
+
+
+
-
-
-
-
+ {{dataStore.getProjectById(itemInfo.project) ? dataStore.getProjectById(itemInfo.project).name : "Kein Projekt ausgewählt"}}
+
+
+
+
+
-
-
- {{dataStore.getProfileById(itemInfo.user) ? dataStore.getProfileById(itemInfo.user).fullName : "Kein Benutzer ausgewählt"}}
-
-
-
-
+ {{dataStore.getPlantById(itemInfo.plant) ? dataStore.getPlantById(itemInfo.plant).name : "Kein Objekt ausgewählt"}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- {{dataStore.getProjectById(itemInfo.project) ? dataStore.getProjectById(itemInfo.project).name : "Kein Projekt ausgewählt"}}
-
-
-
-
+
-
-
- {{dataStore.getPlantById(itemInfo.plant) ? dataStore.getPlantById(itemInfo.plant).name : "Kein Objekt ausgewählt"}}
-
-
-
-
-
-
-
-
+
-
-
+ Abbrechen
+
+
-
-
-
- Speichern
-
-
- Erstellen
-
-
- Abbrechen
-
-
-
-
-
+
|