Many Changes

This commit is contained in:
2024-02-01 22:17:56 +01:00
parent 34d1eb9c71
commit bd09d07698
12 changed files with 91 additions and 29 deletions

View File

@@ -160,7 +160,7 @@ setupPage()
v-model="itemInfo.customer"
option-attribute="name"
value-attribute="id"
:options="customers"
:options="dataStore.customers"
searchable
:search-attributes="['name']"
>
@@ -176,7 +176,7 @@ setupPage()
v-model="itemInfo.vendor"
option-attribute="name"
value-attribute="id"
:options="vendors"
:options="dataStore.vendors"
searchable
:search-attributes="['name']"
>
@@ -227,13 +227,13 @@ setupPage()
<template #footer>
<UButton
v-if="mode == 'edit'"
@click="dataStore.updateItem('contacts',itemInfo)"
@click="dataStore.updateItem('contacts',{...itemInfo, fullName: `${itemInfo.firstName} ${itemInfo.lastName}`})"
>
Speichern
</UButton>
<UButton
v-else-if="mode == 'create'"
@click="dataStore.createNewItem('contacts',itemInfo)"
@click="dataStore.createNewItem('contacts',{...itemInfo, fullName: `${itemInfo.firstName} ${itemInfo.lastName}`})"
>
Erstellen
</UButton>