New Backend changes
This commit is contained in:
186
stores/data.js
186
stores/data.js
@@ -92,14 +92,16 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "created_at",
|
||||
label: "Erstellt am",
|
||||
component: created_at,
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: "name",
|
||||
label: "Name",
|
||||
title: true,
|
||||
required: true,
|
||||
inputType: "text",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: "categorie",
|
||||
label: "Kategorie",
|
||||
@@ -111,7 +113,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
{label:"In Bearbeitung"},
|
||||
{label:"Abgeschlossen"}
|
||||
],
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: "profile",
|
||||
label: "Mitarbeiter",
|
||||
@@ -191,7 +194,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Kundennummer",
|
||||
inputIsNumberRange: true,
|
||||
inputType: "text",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
}, {
|
||||
key: "isCompany",
|
||||
label: "Firmenkunde",
|
||||
@@ -210,7 +214,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
showFunction: function (item) {
|
||||
return item.isCompany
|
||||
},
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
}, {
|
||||
key: "nameAddition",
|
||||
label: "Firmenname Zusatz",
|
||||
@@ -247,7 +252,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
showFunction: function (item) {
|
||||
return !item.isCompany
|
||||
},
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: "title",
|
||||
label: "Titel",
|
||||
@@ -333,17 +339,20 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Aktiv",
|
||||
component: active,
|
||||
inputType: "bool",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
}, {
|
||||
key: "customPaymentDays",
|
||||
label: "Zahlungsziel in Tagen",
|
||||
inputType: "number",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
}, {
|
||||
key: "customSurchargePercentage",
|
||||
label: "Individueller Aufschlag",
|
||||
inputType: "number",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
}, {
|
||||
key: "infoData.street",
|
||||
label: "Straße + Hausnummer",
|
||||
@@ -368,14 +377,16 @@ export const useDataStore = defineStore('data', () => {
|
||||
}
|
||||
},
|
||||
disabledInTable: true,
|
||||
inputColumn: "Kontaktdaten"
|
||||
inputColumn: "Kontaktdaten",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "infoData.city",
|
||||
label: "Stadt",
|
||||
inputType: "text",
|
||||
disabledInTable: true,
|
||||
inputColumn: "Kontaktdaten"
|
||||
inputColumn: "Kontaktdaten",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "infoData.country",
|
||||
@@ -385,7 +396,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
selectOptionAttribute: "name",
|
||||
selectValueAttribute: "name",
|
||||
disabledInTable: true,
|
||||
inputColumn: "Kontaktdaten"
|
||||
inputColumn: "Kontaktdaten",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "address",
|
||||
@@ -467,13 +479,15 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "fullName",
|
||||
label: "Name",
|
||||
title: true,
|
||||
sortable: true
|
||||
},{
|
||||
key: "salutation",
|
||||
label: "Anrede",
|
||||
inputType: "text",
|
||||
inputChangeFunction: function (row) {
|
||||
row.fullName = `${row.firstName} ${row.lastName}`
|
||||
}
|
||||
},
|
||||
sortable: true
|
||||
},{
|
||||
key: "title",
|
||||
label: "Titel",
|
||||
@@ -501,7 +515,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "active",
|
||||
label: "Aktiv",
|
||||
component: active,
|
||||
inputType: "bool"
|
||||
inputType: "bool",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "customer",
|
||||
@@ -549,6 +564,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "birthday",
|
||||
label: "Geburtstag",
|
||||
inputType: "date",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "notes",
|
||||
@@ -591,7 +607,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Vertragsnummer",
|
||||
inputIsNumberRange: true,
|
||||
inputType: "text",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "name",
|
||||
@@ -599,19 +616,22 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
title: true,
|
||||
inputType: "text",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: "active",
|
||||
label: "Aktiv",
|
||||
component: active,
|
||||
inputType: "bool",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: "recurring",
|
||||
label: "Wiederkehrend",
|
||||
component: recurring,
|
||||
inputType: "bool",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: 'customer',
|
||||
label: "Kunde",
|
||||
@@ -645,7 +665,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
{label:'36 Monate'},
|
||||
{label:'48 Monate'},
|
||||
],
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},{
|
||||
key: 'invoiceDispatch',
|
||||
label: "Rechnungsversand",
|
||||
@@ -655,7 +676,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
{label:'E-Mail'},
|
||||
{label:'Post'}
|
||||
],
|
||||
inputColumn: "Abrechnung"
|
||||
inputColumn: "Abrechnung",
|
||||
sortable: true
|
||||
},{
|
||||
key: 'paymentType',
|
||||
label: "Zahlungsart",
|
||||
@@ -671,19 +693,22 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Vertragsstart",
|
||||
inputType: "date",
|
||||
inputColumn: "Allgemeines",
|
||||
component: startDate
|
||||
component: startDate,
|
||||
sortable: true
|
||||
},{
|
||||
key: 'endDate',
|
||||
label: "Vertragsende",
|
||||
inputType: "date",
|
||||
inputColumn: "Allgemeines",
|
||||
component: endDate
|
||||
component: endDate,
|
||||
sortable: true
|
||||
},{
|
||||
key: 'signDate',
|
||||
label: "Unterschrieben am",
|
||||
inputType: "date",
|
||||
inputColumn: "Allgemeines",
|
||||
component: signDate
|
||||
component: signDate,
|
||||
sortable: true
|
||||
},{
|
||||
key: 'sepaDate',
|
||||
label: "SEPA Datum",
|
||||
@@ -798,13 +823,15 @@ export const useDataStore = defineStore('data', () => {
|
||||
required: true,
|
||||
label: "Start",
|
||||
inputType: "date",
|
||||
component: startDate
|
||||
component: startDate,
|
||||
sortable: true
|
||||
},{
|
||||
key: "endDate",
|
||||
required: true,
|
||||
label: "Ende",
|
||||
inputType: "date",
|
||||
component: endDate
|
||||
component: endDate,
|
||||
sortable: true
|
||||
},{
|
||||
key: "note",
|
||||
label: "Notizen",
|
||||
@@ -820,6 +847,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
isStandardEntity: true,
|
||||
redirect:true,
|
||||
historyItemHolder: "plant",
|
||||
supabaseSortColumn:"name",
|
||||
supabaseSelectWithInformation: "*, customer(id,name)",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
@@ -838,7 +866,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
required: true,
|
||||
inputType: "text",
|
||||
title: true
|
||||
title: true,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "customer",
|
||||
@@ -1027,7 +1056,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
templateColumns: [
|
||||
{
|
||||
key: "projectNumber",
|
||||
label: "Projektnummer"
|
||||
label: "Projektnummer",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "projecttype",
|
||||
@@ -1040,7 +1070,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
selectSearchAttributes: ['name'],
|
||||
inputChangeFunction: function (item,loadedOptions = {}) {
|
||||
item.phases = loadedOptions.projecttypes.find(i => i.id === item.projecttype).initialPhases
|
||||
}
|
||||
},
|
||||
sortable: true
|
||||
},{
|
||||
key: "phase",
|
||||
label: "Phase",
|
||||
@@ -1050,7 +1081,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "customer",
|
||||
@@ -1129,6 +1161,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
isStandardEntity: true,
|
||||
redirect:true,
|
||||
historyItemHolder: "vehicle",
|
||||
supabaseSortColumn:"licensePlate",
|
||||
supabaseSelectWithInformation: "*, checks(*), files(*)",
|
||||
filters:[{
|
||||
name: "Archivierte ausblenden",
|
||||
@@ -1146,13 +1179,15 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: 'active',
|
||||
label: "Aktiv",
|
||||
component: active,
|
||||
inputType: "bool"
|
||||
inputType: "bool",
|
||||
sortable: true
|
||||
},{
|
||||
key: 'licensePlate',
|
||||
label: "Kennzeichen",
|
||||
required: true,
|
||||
inputType: "text",
|
||||
title: true
|
||||
title: true,
|
||||
sortable: true
|
||||
},{
|
||||
key: 'vin',
|
||||
label: "Identifikationnummer",
|
||||
@@ -1186,7 +1221,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "towingCapacity",
|
||||
label: "Anhängelast",
|
||||
unit: "Kg",
|
||||
inputType: "number"
|
||||
inputType: "number",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "color",
|
||||
@@ -1197,7 +1233,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "powerInKW",
|
||||
label: "Leistung",
|
||||
unit: "kW",
|
||||
inputType: "number"
|
||||
inputType: "number",
|
||||
sortable: true
|
||||
},
|
||||
/*{
|
||||
key: "profiles",
|
||||
@@ -1252,14 +1289,16 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: 'vendorNumber',
|
||||
label: "Lieferantennummer",
|
||||
inputType: "text",
|
||||
inputIsNumberRange: true
|
||||
inputIsNumberRange: true,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "name",
|
||||
required: true,
|
||||
label: "Name",
|
||||
title: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "infoData.streetNumber",
|
||||
@@ -1404,14 +1443,16 @@ export const useDataStore = defineStore('data', () => {
|
||||
inputType: "text",
|
||||
required: true,
|
||||
title: true,
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: 'spaceNumber',
|
||||
label: "Lagerplatznr.",
|
||||
inputType: "text",
|
||||
inputIsNumberRange: true,
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "type",
|
||||
@@ -1426,7 +1467,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
{label:"Palettenplatz"},
|
||||
{label:"Sonstiges"}
|
||||
],
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "parentSpace",
|
||||
@@ -1509,6 +1551,18 @@ export const useDataStore = defineStore('data', () => {
|
||||
labelSingle: "Dokument",
|
||||
supabaseSelectWithInformation: "*, files(*), statementallocations(*)",
|
||||
},
|
||||
files: {
|
||||
isArchivable: true,
|
||||
label: "Dateien",
|
||||
labelSingle: "Datei",
|
||||
supabaseSelectWithInformation: "*",
|
||||
},
|
||||
folders: {
|
||||
isArchivable: true,
|
||||
label: "Ordner",
|
||||
labelSingle: "Ordner",
|
||||
supabaseSelectWithInformation: "*",
|
||||
},
|
||||
incominginvoices: {
|
||||
label: "Eingangsrechnungen",
|
||||
labelSingle: "Eingangsrechnung",
|
||||
@@ -1545,19 +1599,22 @@ export const useDataStore = defineStore('data', () => {
|
||||
title: true,
|
||||
required: true,
|
||||
inputType: "text",
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "usePlanning",
|
||||
label: "In Plantafel anzeigen",
|
||||
inputType: "bool",
|
||||
inputColumn: "Allgemeines",
|
||||
component: usePlanning
|
||||
component: usePlanning,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
label: "Beschreibung",
|
||||
inputType: "textarea",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "currentSpace",
|
||||
@@ -1574,7 +1631,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Artikelnummer",
|
||||
inputType: "text",
|
||||
inputIsNumberRange: true,
|
||||
inputColumn: "Allgemeines"
|
||||
inputColumn: "Allgemeines",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "serialNumber",
|
||||
@@ -1586,7 +1644,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "purchaseDate",
|
||||
label: "Kaufdatum",
|
||||
inputType: "date",
|
||||
inputColumn: "Anschaffung"
|
||||
inputColumn: "Anschaffung",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "vendor",
|
||||
@@ -1606,14 +1665,16 @@ export const useDataStore = defineStore('data', () => {
|
||||
disabledFunction: function (item) {
|
||||
return item.serialNumber
|
||||
},
|
||||
helpComponent: quantity
|
||||
helpComponent: quantity,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "purchasePrice",
|
||||
label: "Kaufpreis",
|
||||
inputType: "number",
|
||||
inputStepSize: "0.01",
|
||||
inputColumn: "Anschaffung"
|
||||
inputColumn: "Anschaffung",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "manufacturer",
|
||||
@@ -1643,7 +1704,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Aktueller Wert",
|
||||
inputType: "number",
|
||||
inputStepSize: "0.01",
|
||||
inputColumn: "Anschaffung"
|
||||
inputColumn: "Anschaffung",
|
||||
sortable: true
|
||||
},
|
||||
|
||||
],
|
||||
@@ -1681,6 +1743,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
title: true,
|
||||
required: true,
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
@@ -1810,7 +1873,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "unit",
|
||||
@@ -1943,19 +2007,22 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "purchasePrice",
|
||||
label: "Einkauspreis",
|
||||
inputType: "number",
|
||||
component: purchasePrice,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "sellingPrice",
|
||||
label: "Verkaufspreis",
|
||||
inputType: "number",
|
||||
component: sellingPrice,
|
||||
sortable: true
|
||||
},
|
||||
],
|
||||
showTabs: [
|
||||
@@ -1989,21 +2056,24 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "startDate",
|
||||
label: "Start",
|
||||
required: true,
|
||||
inputType: "datetime",
|
||||
component: startDateTime
|
||||
component: startDateTime,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "endDate",
|
||||
label: "Ende",
|
||||
required: true,
|
||||
inputType: "datetime",
|
||||
component: endDateTime
|
||||
component: endDateTime,
|
||||
sortable: true
|
||||
},/*{
|
||||
key: "eventtype",
|
||||
label: "Typ",
|
||||
@@ -2118,6 +2188,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
labelSingle: "Artikelkategorie",
|
||||
isStandardEntity: true,
|
||||
redirect: true,
|
||||
supabaseSortColumn: "name",
|
||||
supabaseSelectWithInformation: "*",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
@@ -2136,7 +2207,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
@@ -2156,6 +2228,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
labelSingle: "Leistungskategorie",
|
||||
isStandardEntity: true,
|
||||
redirect: true,
|
||||
supabaseSortColumn: "name",
|
||||
supabaseSelectWithInformation: "*",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
@@ -2174,7 +2247,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
@@ -2307,13 +2381,15 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: 'number',
|
||||
label: "Nummer",
|
||||
inputIsNumberRange: true,
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
}, {
|
||||
key: "name",
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
@@ -2384,13 +2460,15 @@ export const useDataStore = defineStore('data', () => {
|
||||
{
|
||||
key: 'number',
|
||||
label: "Nummer",
|
||||
inputType: "text"
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
}, {
|
||||
key: "name",
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
|
||||
Reference in New Issue
Block a user