Added HistoryDisplay.vue to Projects and Plants

Visual Restructure in Plants
This commit is contained in:
2024-01-12 18:38:26 +01:00
parent 291b0350e8
commit 05130052af
5 changed files with 81 additions and 29 deletions

View File

@@ -265,14 +265,12 @@ export const useDataStore = defineStore('data', () => {
return tasks.value.filter(item => item.project === projectId)
})
const getHistoryItemsByCustomer = computed(() => (customerId:string) => {
return historyItems.value.filter(item => item.customer === customerId)
const getTasksByPlantId = computed(() => (plantId:string) => {
return tasks.value.filter(item => item.plant === plantId)
})
const getHistoryItemsByVendor = computed(() => (vendorId:string) => {
return historyItems.value.filter(item => item.vendor === vendorId)
const getProjectsByPlantId = computed(() => (plantId:string) => {
return projects.value.filter(item => item.plant === plantId)
})
const getIncomingInvoicesByVehicleId = computed(() => (vehicleId:string) => {
@@ -519,10 +517,10 @@ export const useDataStore = defineStore('data', () => {
getDocumentsByProjectId,
getTimesByProjectId,
getTasksByProjectId,
getTasksByPlantId,
getProjectsByPlantId,
getMovementsBySpaceId,
getStockByProductId,
getHistoryItemsByCustomer,
getHistoryItemsByVendor,
getIncomingInvoicesByVehicleId,
getEventTypes,
getTimeTypes,