Deprecated Events as non Standard Entity

Repaired query
Reparied Document Show
This commit is contained in:
2024-12-27 11:05:59 +01:00
parent 43c7148637
commit 2bda15d264
6 changed files with 161 additions and 21 deletions

View File

@@ -73,7 +73,7 @@ export const useDataStore = defineStore('data', () => {
label: "Kategorie"
},{
key: "profile",
label: "Benutzer",
label: "Mitarbeiter",
component: profile,
inputType: "select",
selectDataType: "profiles",
@@ -151,7 +151,7 @@ export const useDataStore = defineStore('data', () => {
inputType: "bool"
},
{
key: "infoData.streetNumber",
key: "infoData.street",
label: "Straße + Hausnummer",
inputType: "text",
disabledInTable: true
@@ -1133,8 +1133,63 @@ export const useDataStore = defineStore('data', () => {
events: {
label: "Termine",
labelSingle: "Termin",
isStandardEntity: true,
historyItemHolder: "event",
redirect: true
supabaseSelectWithInformation: "*, project(id,name), vehicles(*), inventoryitems(*)",
redirect: true,
filters:[],
templateColumns: [
{
key: 'name',
label: "Name",
title: true,
inputType: "text"
},
{
key: "startDate",
label: "Start",
},
{
key: "endDate",
label: "Ende"
},/*{
key: "eventtype",
label: "Typ",
inputType: "select",
selectManualOptions: ["Umsetzung","Vor Ort Termin", "Büro", "Sonstiges"],
},*/{
key: "link",
label: "Link",
inputType: "text"
},{
key: "notes",
label: "Notizen",
inputType: "textarea"
},
{
key: "project",
label: "Projekt",
component: project,
inputType: "select",
selectDataType: "projects",
selectOptionAttribute: "name",
selectSearchAttributes: ['name'],
},
{
key: "profiles",
label: "Beteiligte Benutzer",
inputType: "select",
selectDataType: "profiles",
selectOptionAttribute: "fullName",
selectSearchAttributes: ['fullName'],
selectMultiple: true,
component: profiles
},
],
showTabs: [
{
label: 'Informationen',}
]
},
profiles: {
label: "Mitarbeiter",
@@ -2138,10 +2193,6 @@ export const useDataStore = defineStore('data', () => {
return (await supabase.from("contacts").select().eq("customer", itemId)).data
}
async function getProjectsByCustomerId (itemId) {
return (await supabase.from("projects").select().eq("customer",itemId)).data
}
const getPlantsByCustomerId = computed(() => (customerId) => {
return plants.value.filter(item => item.customer === customerId)
})
@@ -2637,7 +2688,6 @@ export const useDataStore = defineStore('data', () => {
getOpenTasksCount,
getMovementsBySpace,
getContactsByCustomerId,
getProjectsByCustomerId,
getPlantsByCustomerId,
getContractsByCustomerId,
getContactsByVendorId,