Many Changes

This commit is contained in:
2024-01-04 12:27:46 +01:00
parent 57e856c71c
commit 991cac18f2
31 changed files with 1504 additions and 297 deletions

View File

@@ -81,14 +81,12 @@ const updateCustomer = async () => {
.from("customers")
.update(customerInfo.value)
.eq('id',customerInfo.value.id)
console.log(error)
mode.value = "show"
customerInfo.value = {
id: 0,
name: "",
infoData: {}
if(error) {
console.log(error)
}
toast.add({title: "Kunde erfolgreich gespeichert"})
router.push(`/customers/show/${currentCustomer.id}`)
dataStore.fetchCustomers()
}
@@ -121,7 +119,14 @@ setupPage()
/>
Informationen:<br>
{{currentCustomer.infoData}}<br>
<div v-if="currentCustomer.infoData">
<span v-if="currentCustomer.infoData.street">Straße + Hausnummer: {{currentCustomer.infoData.street}}<br></span>
<span v-if="currentCustomer.infoData.zip && currentCustomer.infoData.city">PLZ + Ort: {{currentCustomer.infoData.zip}} {{currentCustomer.infoData.city}}<br></span>
<span v-if="currentCustomer.infoData.tel">Telefon: {{currentCustomer.infoData.tel}}<br></span>
<span v-if="currentCustomer.infoData.email">E-Mail: {{currentCustomer.infoData.email}}<br></span>
<span v-if="currentCustomer.infoData.web">Web: {{currentCustomer.infoData.web}}<br></span>
<span v-if="currentCustomer.infoData.ustid">USt-Id: {{currentCustomer.infoData.ustid}}<br></span>
</div>
<UDivider
class="my-2"