Lagerplatz: {{dataStore.getSpaceById(currentItem.currentSpace).spaceNumber}} - {{dataStore.getSpaceById(currentItem.currentSpace).description}}
@@ -87,11 +95,10 @@ setupPage()
-
-
- {{itemInfo.name}}
-
-
+
@@ -123,31 +130,7 @@ setupPage()
v-model="itemInfo.description"
/>
-
-
-
-
- Speichern
-
-
- Erstellen
-
-
- Abbrechen
-
-
-
-
+
\ No newline at end of file
diff --git a/spaces/pages/plants/[mode]/[[id]].vue b/spaces/pages/plants/[mode]/[[id]].vue
index e1cb694..8fc40e3 100644
--- a/spaces/pages/plants/[mode]/[[id]].vue
+++ b/spaces/pages/plants/[mode]/[[id]].vue
@@ -9,7 +9,6 @@ definePageMeta({
})
const dataStore = useDataStore()
-const supabase = useSupabaseClient()
const route = useRoute()
const router = useRouter()
const toast = useToast()
@@ -53,17 +52,7 @@ const setupPage = () => {
if(mode.value === "create") {
let query = route.query
if(query.customer) itemInfo.value.customer = Number(query.customer)
-
}
-
-
-}
-
-
-
-const editItem = async () => {
- await router.push(`/plants/edit/${currentItem.value.id}`)
- setupPage()
}
const cancelEditorCreate = () => {
@@ -79,171 +68,122 @@ setupPage()
- Objekt: {{currentItem.name}}
-
-
-
-
-
-
-
- Bearbeiten
-
-
-
-
-
Kunde: {{dataStore.getCustomerById(currentItem.customer).name}}
-
+
+
+
+ Speichern
+
+
+ Erstellen
+
+
+ Abbrechen
+
+
+ Bearbeiten
+
+
+
+
+
+
+
+
+
Kunde: {{dataStore.getCustomerById(currentItem.customer).name}}
-
-
+
+
+
+
+
+
+ + Projekt
+
+
+
+ router.push(`/projects/show/${row.id}`)"
+ :empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine zugehörigen Projekte' }"
+ >
+
+
+
+
+
+
+
+ + Aufgabe
+
+
+ router.push(`/tasks/show/${row.id}`)"
+ >
+
+
+
+
+
+
-
-
-
-
- + Projekt
-
-
+
- router.push(`/projects/show/${row.id}`)"
- :empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine zugehörigen Projekte' }"
- >
+
-
+
+
-
-
-
-
- + Aufgabe
-
-
- router.push(`/tasks/show/${row.id}`)"
- >
+
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{itemInfo.name}}
-
-
+
@@ -268,34 +208,7 @@ setupPage()
-
-
-
-
-
- Speichern
-
-
- Erstellen
-
-
- Abbrechen
-
-
-
-
-
-
+
\ No newline at end of file
+
\ No newline at end of file
diff --git a/spaces/pages/services/[mode]/[[id]].vue b/spaces/pages/services/[mode]/[[id]].vue
index 57531b6..7f01424 100644
--- a/spaces/pages/services/[mode]/[[id]].vue
+++ b/spaces/pages/services/[mode]/[[id]].vue
@@ -1,14 +1,9 @@
- Leistung: {{currentItem.name}}
+
+
+
+ Speichern
+
+
+ Erstellen
+
+
+ Abbrechen
+
+
+ Bearbeiten
+
+
+
@@ -86,7 +98,7 @@ setupPage()
-->
- Verkaufspreis: {{Number(currentItem.sellingPrice).toFixed(2)}} €
+ Verkaufspreis: {{String(Number(currentItem.sellingPrice).toFixed(2)).replace(".",",")}} €
-
-
- {{itemInfo.name}}
-
-
+
@@ -179,31 +190,7 @@ setupPage()
-
-
-
-
- Speichern
-
-
- Erstellen
-
-
- Abbrechen
-
-
-
-
+
\ No newline at end of file
diff --git a/spaces/pages/vehicles/[mode]/[[id]].vue b/spaces/pages/vehicles/[mode]/[[id]].vue
index ebffa94..6eb663b 100644
--- a/spaces/pages/vehicles/[mode]/[[id]].vue
+++ b/spaces/pages/vehicles/[mode]/[[id]].vue
@@ -6,7 +6,6 @@ definePageMeta({
})
const dataStore = useDataStore()
-const supabase = useSupabaseClient()
const route = useRoute()
const router = useRouter()
const toast = useToast()
@@ -14,8 +13,6 @@ const id = ref(route.params.id ? route.params.id : null )
let currentItem = ref(null)
-
-
//Working
const mode = ref(route.params.mode || "show")
const itemInfo = ref({
@@ -65,15 +62,6 @@ const setupPage = () => {
}
if(mode.value === "edit") itemInfo.value = currentItem.value
-
-
-
-}
-
-
-const editCustomer = async () => {
- router.push(`/vehicles/edit/${currentItem.value.id}`)
- setupPage()
}
const cancelEditorCreate = () => {
@@ -85,20 +73,7 @@ const cancelEditorCreate = () => {
}
-const updateItem = async () => {
- const {error} = await supabase
- .from("vehicles")
- .update(itemInfo.value)
- .eq('id',itemInfo.value.id)
- if(error) {
- console.log(error)
- } else {
- router.push(`/vehicles/show/${currentItem.value.id}`)
- toast.add({title: "Fahrzeug erfolgreich gespeichert"})
- dataStore.fetchVehicles()
- }
-}
const getRowAmount = (row) => {
let amount = 0
@@ -115,148 +90,123 @@ setupPage()
-
-
-
-
- Fahrzeug aktiv
-
-
+
+
+ Speichern
+
+
+ Erstellen
+
+
+ Abbrechen
+
+
+ Bearbeiten
+
+
+
+
+
+
+ Typ: {{currentItem.type}}
+ Fahrer: {{dataStore.profiles.find(profile => profile.id === currentItem.driver) ? dataStore.profiles.find(profile => profile.id === currentItem.driver).fullName : 'Kein Fahrer gewählt'}}
+
+
+
router.push('/receipts/show/' + row.id)"
>
- Fahrzeug gesperrt
-
- {{currentItem.licensePlate}}
-
-
-
-
-
-
-
- Bearbeiten
-
-
- Typ: {{currentItem.type}}
- Fahrer: {{dataStore.profiles.find(profile => profile.id === currentItem.driver) ? dataStore.profiles.find(profile => profile.id === currentItem.driver).fullName : 'Kein Fahrer gewählt'}}
-
-
- router.push('/receipts/show/' + row.id)"
- >
-
- {{dataStore.getVendorById(row.vendor) ? dataStore.getVendorById(row.vendor).name : ""}}
-
-
- {{dayjs(row.date).format("DD.MM.YYYY")}}
-
-
- {{getRowAmount(row) ? String(getRowAmount(row).toFixed(2)).replace('.',',') + " €" : ""}}
-
-
-
-
-
-
-
-
-
-
-
+
+ {{dataStore.getVendorById(row.vendor) ? dataStore.getVendorById(row.vendor).name : ""}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{itemInfo.licensePlate}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{dataStore.profiles.find(profile => profile.id === itemInfo.driver) ? dataStore.profiles.find(profile => profile.id === itemInfo.driver).fullName : 'Kein Fahrer ausgewählt'}}
+
+ {{dayjs(row.date).format("DD.MM.YYYY")}}
-
-
+
+ {{getRowAmount(row) ? String(getRowAmount(row).toFixed(2)).replace('.',',') + " €" : ""}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- Speichern
-
-
- Erstellen
-
-
- Abbrechen
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{dataStore.profiles.find(profile => profile.id === itemInfo.driver) ? dataStore.profiles.find(profile => profile.id === itemInfo.driver).fullName : 'Kein Fahrer ausgewählt'}}
+
+
+
+