Introduced New Projecttypes and Phase Display
This commit is contained in:
@@ -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"))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user