Deprecated following as non standardEntity checks, inventoryitems, spaces

This commit is contained in:
2024-12-25 16:21:22 +01:00
parent 1ba3d9c3e9
commit 4a0e092115
39 changed files with 502 additions and 9 deletions

View File

@@ -23,6 +23,10 @@ import project from "~/components/columnRenderings/project.vue";
import created_at from "~/components/columnRenderings/created_at.vue";
import profile from "~/components/columnRenderings/profile.vue";
import profiles from "~/components/columnRenderings/profiles.vue";
import vehicle from "~/components/columnRenderings/vehicle.vue"
import usePlanning from "~/components/columnRenderings/usePlanning.vue"
import quantity from "~/components/helpRenderings/quantity.vue"
// @ts-ignore
export const useDataStore = defineStore('data', () => {
@@ -787,9 +791,104 @@ export const useDataStore = defineStore('data', () => {
spaces: {
label: "Lagerplätze",
labelSingle: "Lagerplatz",
isStandardEntity: true,
supabaseSelectWithInformation: "*, documents(*)",
supabaseSortColumn: "spaceNumber",
redirect: true,
numberRangeHolder: "spaceNumber",
historyItemHolder: "space"
historyItemHolder: "space",
filters:[],
inputColumns: [
"Allgemeines",
"Ort"
],
templateColumns: [
{
key: "name",
label: "Name",
inputType: "text",
title: true,
inputColumn: "Allgemeines"
},
{
key: 'spaceNumber',
label: "Lagerplatznr.",
inputType: "text",
inputIsNumberRange: true,
inputColumn: "Allgemeines"
},
{
key: "type",
label: "Typ",
inputType: "select",
selectManualOptions: ["Standort","Regalplatz", "Kiste", "Palettenplatz", "Sonstiges"],
inputColumn: "Allgemeines"
},
{
key: "parentSpace",
label: "Übergeordneter Lagerplatz",
inputType: "select",
selectDataType: "spaces",
selectOptionAttribute: "spaceNumber",
selectValueAttribute: "id",
inputColumn: "Allgemeines"
},
{
key: "infoData.streetNumber",
label: "Straße + Hausnummer",
inputType: "text",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "infoData.special",
label: "Adresszusatz",
inputType: "text",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "infoData.zip",
label: "Postleitzahl",
inputType: "number",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "infoData.city",
label: "Stadt",
inputType: "text",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "infoData.country",
label: "Land",
inputType: "select",
selectDataType: "countrys",
selectOptionAttribute: "name",
selectValueAttribute: "name",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "address",
label: "Adresse",
component: address
},
{
key: "description",
label: "Beschreibung",
inputType: "textarea",
}
],
showTabs: [
{
label: 'Informationen',
}, {
label: 'Dokumente',
},{label: 'Inventarartikel'}
]
},
users: {
label: "Benutzer",
@@ -807,8 +906,127 @@ export const useDataStore = defineStore('data', () => {
inventoryitems: {
label: "Inventarartikel",
labelSingle: "Inventarartikel",
isStandardEntity: true,
supabaseSelectWithInformation: "*, documents(*), vendor(id,name), currentSpace(id,name)",
redirect: true,
numberRangeHolder: "articleNumber"
numberRangeHolder: "articleNumber",
inputColumns: [
"Allgemeines",
"Anschaffung"
],
filters:[],
templateColumns: [
{
key: "name",
label: "Name",
title: true,
inputType: "text",
inputColumn: "Allgemeines"
},
{
key: "usePlanning",
label: "In Plantafel anzeigen",
inputType: "bool",
inputColumn: "Allgemeines",
component: usePlanning
},
{
key: "description",
label: "Beschreibung",
inputType: "textarea",
},
{
key: "currentSpace",
label: "Aktueller Lagerplatz",
inputType: "select",
selectDataType: "spaces",
selectOptionAttribute: "name",
selectSearchAttributes: ['name'],
inputColumn: "Allgemeines"
},
{
key: "articleNumber",
label: "Artikelnummer",
inputType: "text",
inputIsNumberRange: true,
inputColumn: "Allgemeines"
},
{
key: "serialNumber",
label: "Seriennummer",
inputType: "text",
inputColumn: "Allgemeines"
},
{
key: "purchaseDate",
label: "Kaufdatum",
inputType: "date",
inputColumn: "Anschaffung"
},
{
key: "vendor",
label: "Lieferant",
inputType: "select",
selectDataType: "vendors",
selectOptionAttribute: "name",
selectSearchAttributes: ['name'],
inputColumn: "Anschaffung"
},
{
key: "quantity",
label: "Menge",
inputType: "number",
inputColumn: "Allgemeines",
disabledFunction: function (item) {
return item.serialNumber
},
helpComponent: quantity
},
{
key: "purchasePrice",
label: "Kaufpreis",
inputType: "number",
inputStepSize: "0.01",
inputColumn: "Anschaffung"
},
{
key: "maunfacturer",
label: "Hersteller",
inputType: "text",
inputColumn: "Anschaffung"
},
{
key: "manufacturerNumber",
label: "Herstellernummer",
inputType: "text",
inputColumn: "Anschaffung"
},
{
key: "profiles",
label: "Berechtigte Benutzer",
inputType: "select",
selectDataType: "profiles",
selectOptionAttribute: "fullName",
selectSearchAttributes: ['fullName'],
selectMultiple: true,
component: profiles
},
{
key: "currentValue",
label: "Aktueller Wert",
inputType: "number",
inputStepSize: "0.01",
inputColumn: "Anschaffung"
},
],
showTabs: [
{
label: 'Informationen',
}, {
label: 'Dokumente',
}
]
},
services: {
label: "Leistungen",
@@ -958,8 +1176,54 @@ export const useDataStore = defineStore('data', () => {
checks: {
label: "Überprüfungen",
labelSingle: "Überprüfung",
isStandardEntity: true,
supabaseSelectWithInformation: "*, vehicle(id,licensePlate), profile(id, fullName), inventoryitem(name), documents(*)",
redirect: true,
historyItemHolder: "check"
historyItemHolder: "check",
filters: [],
templateColumns: [
{
key: "name",
label: "Name",
title: true,
inputType: "text"
},
{
key: "vehicle",
label: "Fahrzeug",
component: vehicle,
inputType: "select",
selectDataType: "vehicles",
selectOptionAttribute: "licensePlate",
selectSearchAttributes: ['licensePlate'],
},
{
key: "profile",
label: "Person",
component: profile,
inputType: "select",
selectDataType: "profiles",
selectOptionAttribute: "fullName",
selectSearchAttributes: ['fullName'],
},
{
key: "inventoryitem",
label: "Inventarartikel",
inputType: "select",
selectDataType: "inventoryitems",
selectOptionAttribute: "name",
selectSearchAttributes: ['name'],
},
{
key: "notes",
label: "Notizen",
inputType: "textarea"
}
],
showTabs: [
{
label: 'Informationen',
}, {label: 'Dokumente'}, {label: 'Ausführungen'}]
},
roles: {
label: "Rollen",