redone admin
added branches
This commit is contained in:
@@ -21,6 +21,7 @@ import recurring from "~/components/columnRenderings/recurring.vue"
|
||||
import description from "~/components/columnRenderings/description.vue"
|
||||
import purchasePrice from "~/components/columnRenderings/purchasePrice.vue";
|
||||
import project from "~/components/columnRenderings/project.vue";
|
||||
import branch from "~/components/columnRenderings/branch.vue";
|
||||
import created_at from "~/components/columnRenderings/created_at.vue";
|
||||
import profile from "~/components/columnRenderings/profile.vue";
|
||||
import profiles from "~/components/columnRenderings/profiles.vue";
|
||||
@@ -2970,6 +2971,51 @@ export const useDataStore = defineStore('data', () => {
|
||||
redirect: true,
|
||||
historyItemHolder: "profile"
|
||||
},
|
||||
branches: {
|
||||
isArchivable: true,
|
||||
label: "Niederlassungen",
|
||||
labelSingle: "Niederlassung",
|
||||
isStandardEntity: true,
|
||||
redirect: true,
|
||||
numberRangeHolder: "number",
|
||||
historyItemHolder: "branch",
|
||||
sortColumn: "name",
|
||||
selectWithInformation: "*",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
default: true,
|
||||
"filterFunction": function (row) {
|
||||
if(!row.archived) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}],
|
||||
templateColumns: [
|
||||
{
|
||||
key: "number",
|
||||
label: "Nummer",
|
||||
inputType: "text",
|
||||
inputIsNumberRange: true,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "name",
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
label: "Beschreibung",
|
||||
inputType: "textarea"
|
||||
}
|
||||
],
|
||||
showTabs: [{label: 'Informationen'},{label: 'Wiki'}]
|
||||
},
|
||||
workingtimes: {
|
||||
isArchivable: true,
|
||||
label: "Anwesenheiten",
|
||||
@@ -3178,7 +3224,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
numberRangeHolder: "number",
|
||||
historyItemHolder: "costcentre",
|
||||
sortColumn: "number",
|
||||
selectWithInformation: "*, project(*), vehicle(*), inventoryitem(*)",
|
||||
selectWithInformation: "*, project(*), vehicle(*), inventoryitem(*), branch(*)",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
default: true,
|
||||
@@ -3236,6 +3282,15 @@ export const useDataStore = defineStore('data', () => {
|
||||
selectOptionAttribute: "name",
|
||||
selectSearchAttributes: ['name'],
|
||||
},
|
||||
{
|
||||
key: "branch",
|
||||
label: "Niederlassung",
|
||||
component: branch,
|
||||
inputType: "select",
|
||||
selectDataType: "branches",
|
||||
selectOptionAttribute: "name",
|
||||
selectSearchAttributes: ['name', 'number'],
|
||||
},
|
||||
/*{
|
||||
key: "profiles",
|
||||
label: "Berechtigte Benutzer",
|
||||
|
||||
Reference in New Issue
Block a user