diff --git a/pages/projects/[mode]/[[id]].vue b/pages/projects/[mode]/[[id]].vue
index d9b9473..380fe19 100644
--- a/pages/projects/[mode]/[[id]].vue
+++ b/pages/projects/[mode]/[[id]].vue
@@ -1,8 +1,6 @@
@@ -231,7 +240,7 @@ const loadPhases = async () => {
Erstellen
@@ -294,37 +303,15 @@ const loadPhases = async () => {
-
-
-
-
-
-
- Vorlage laden
-
-
-
-
-
@@ -344,15 +331,35 @@ const loadPhases = async () => {
-
-
-
- Phase aktivieren
-
-
+
+
+
+ {{item.label}}
+
+
+
+ Phase aktivieren
+
+
+ {{button.label}}
+
+
+
+
+
Aktiviert am: {{dayjs(item.activated_at).format("DD.MM.YY HH:mm")}} Uhr
+
Aktiviert durch: {{dataStore.getProfileById(item.activated_by).fullName}}
+
Beschreibung: {{item.description}}
+
+
+
+
@@ -490,23 +497,7 @@ const loadPhases = async () => {
-
- Auf das Projekt gebuchte Artikel:
-
-
@@ -532,6 +523,43 @@ const loadPhases = async () => {
/>
+
+ i.id === itemInfo.plant).customer,
+ disableCustomerSelection = true"
+ >
+
+ {{plants.find(i => i.id === itemInfo.plant) ? plants.find(i => i.id === itemInfo.plant).name : "Objekt auswählen"}}
+
+
+
+
+ i.id === itemInfo.contract).customer,
+ disableCustomerSelection = true"
+ >
+
+ {{contracts.find(i => i.id === itemInfo.contract) ? contracts.find(i => i.id === itemInfo.contract).name : "Vertrag auswählen"}}
+
+
+
+
@@ -542,6 +570,7 @@ const loadPhases = async () => {
value-attribute="id"
searchable
:search-attributes="['name']"
+ :disabled="disableCustomerSelection"
>
{{dataStore.getCustomerById(itemInfo.customer) ? dataStore.getCustomerById(itemInfo.customer).name : "Kunde auswählen"}}
@@ -549,6 +578,21 @@ const loadPhases = async () => {
+
+
+
+
+
@@ -564,38 +608,7 @@ const loadPhases = async () => {
-
-
-
- {{plants.find(i => i.id === itemInfo.plant) ? plants.find(i => i.id === itemInfo.plant).name : "Objekt auswählen"}}
-
-
-
-
-
-
- {{contracts.find(i => i.id === itemInfo.contract) ? contracts.find(i => i.id === itemInfo.contract).name : "Vertrag auswählen"}}
-
-
-
+
@@ -615,13 +628,14 @@ const loadPhases = async () => {
+
\ No newline at end of file
diff --git a/pages/projecttypes/index.vue b/pages/projecttypes/index.vue
new file mode 100644
index 0000000..8e38668
--- /dev/null
+++ b/pages/projecttypes/index.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+ + Projekttyp
+
+
+
+ router.push(`/projecttypes/show/${i.id}`) "
+ :empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Projekttypen anzuzeigen' }"
+ >
+
+ {{row.name}}
+ {{row.name}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/stores/data.js b/stores/data.js
index cb6a365..9827f7b 100644
--- a/stores/data.js
+++ b/stores/data.js
@@ -155,6 +155,12 @@ export const useDataStore = defineStore('data', () => {
labelSingle: "Fahrt",
redirect: true,
historyItemHolder: "trackingtrip",
+ },
+ projecttypes: {
+ label: "Projekttypen",
+ labelSingle: "Projekttyp",
+ redirect: true,
+ historyItemHolder: "projecttype"
}
}
@@ -687,6 +693,12 @@ export const useDataStore = defineStore('data', () => {
name = "Wöchentliche Arbeitszeit"
} else if(key === "licensePlate") {
name = "Kennzeichen"
+ }else if(key === "towingCapacity") {
+ name = "Anhängelast"
+ }else if(key === "color") {
+ name = "Farbe"
+ }else if(key === "powerInKW") {
+ name = "Leistung"
} else if(key === "driver") {
name = "Fahrer"
if(prop.data.o) oldVal = profiles.value.find(i => i.id === prop.data.o).fullName
@@ -1193,6 +1205,10 @@ export const useDataStore = defineStore('data', () => {
return documents.value.filter(item => item.project === projectId && !item.tags.includes("Archiviert"))
})
+ const getDocumentsByProfileId = computed(() => (profileId) => {
+ return documents.value.filter(item => item.profile === profileId && !item.tags.includes("Archiviert"))
+ })
+
const getDocumentsByPlantId = computed(() => (itemId) => {
return documents.value.filter(item => item.plant === itemId && !item.tags.includes("Archiviert"))
})