Many Changes
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user