Added Contract to Document Assign

This commit is contained in:
2024-05-23 10:31:07 +02:00
parent eca1cd380b
commit 26d0148525

View File

@@ -100,6 +100,7 @@ const resourceOptions = ref([
{label: 'Lieferant', value: 'vendor', optionAttr: "name"}, {label: 'Lieferant', value: 'vendor', optionAttr: "name"},
{label: 'Fahrzeug', value: 'vehicle', optionAttr: "licensePlate"}, {label: 'Fahrzeug', value: 'vehicle', optionAttr: "licensePlate"},
{label: 'Objekt', value: 'plant', optionAttr: "name"}, {label: 'Objekt', value: 'plant', optionAttr: "name"},
{label: 'Vertrag', value: 'contract', optionAttr: "name"},
{label: 'Produkt', value: 'product', optionAttr: "name"} {label: 'Produkt', value: 'product', optionAttr: "name"}
]) ])
const resourceToAssign = ref("project") const resourceToAssign = ref("project")
@@ -118,6 +119,8 @@ const getItemsBySelectedResource = () => {
itemOptions.value = dataStore.products itemOptions.value = dataStore.products
} else if(resourceToAssign.value === "plant") { } else if(resourceToAssign.value === "plant") {
itemOptions.value = dataStore.plants itemOptions.value = dataStore.plants
} else if(resourceToAssign.value === "contract") {
itemOptions.value = dataStore.contracts
} else { } else {
itemOptions.value = [] itemOptions.value = []
} }