-
+
diff --git a/src/views/admin/unit/damageReport/DamageReportStatusRouting.vue b/src/views/admin/unit/damageReport/DamageReportStatusRouting.vue
new file mode 100644
index 0000000..425f450
--- /dev/null
+++ b/src/views/admin/unit/damageReport/DamageReportStatusRouting.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+ {{ tab.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/unit/damageReport/Overview.vue b/src/views/admin/unit/damageReport/Overview.vue
new file mode 100644
index 0000000..85c05eb
--- /dev/null
+++ b/src/views/admin/unit/damageReport/Overview.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Keine Bilder hochgeladen
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/unit/equipment/DamageReport.vue b/src/views/admin/unit/equipment/DamageReport.vue
index aa2df0a..857c63d 100644
--- a/src/views/admin/unit/equipment/DamageReport.vue
+++ b/src/views/admin/unit/equipment/DamageReport.vue
@@ -3,22 +3,37 @@
{}"
- @search="(search) => {}"
+ :indicateLoading="loading == 'loading'"
+ @load-data="(offset, count, search) => fetchDamageReportForEquipment(offset, count, search)"
+ @search="(search) => fetchDamageReportForEquipment(0, 25, search, true)"
>
-
+
-
-
{{ row.reportedAt }} - {{ row.status }}
+
{{ new Date(row.reportedAt).toLocaleString("de") }} - {{ row.status }}
+
-
gemeldet von: {{ row.reportedBy }}
Beschreibung: {{ row.description }}
-
+
@@ -31,7 +46,7 @@ import { useAbilityStore } from "@/stores/ability";
import { useEquipmentDamageReportStore } from "@/stores/admin/unit/equipment/damageReport";
import Pagination from "@/components/Pagination.vue";
import type { DamageReportViewModel } from "@/viewmodels/admin/unit/damageReport.models";
-import { PhotoIcon, PencilSquareIcon } from "@heroicons/vue/24/outline";
+import { PhotoIcon, PencilSquareIcon, MapPinIcon, WrenchScrewdriverIcon, UserIcon } from "@heroicons/vue/24/outline";
diff --git a/src/views/admin/unit/vehicle/DamageReport.vue b/src/views/admin/unit/vehicle/DamageReport.vue
index ebac088..eb2ac38 100644
--- a/src/views/admin/unit/vehicle/DamageReport.vue
+++ b/src/views/admin/unit/vehicle/DamageReport.vue
@@ -4,21 +4,36 @@
:items="damageReports"
:totalCount="totalCount"
:indicateLoading="false"
- @load-data="(offset, count, search) => {}"
- @search="(search) => {}"
+ @load-data="(offset, count, search) => fetchDamageReportForVehicle(offset, count, search)"
+ @search="(search) => fetchDamageReportForVehicle(0, 25, search, true)"
>
-
+
-
-
{{ row.reportedAt }} - {{ row.status }}
+
{{ new Date(row.reportedAt).toLocaleString("de") }} - {{ row.status }}
+
-
gemeldet von: {{ row.reportedBy }}
Beschreibung: {{ row.description }}
-
+
@@ -31,7 +46,7 @@ import { useAbilityStore } from "@/stores/ability";
import { useVehicleDamageReportStore } from "@/stores/admin/unit/vehicle/damageReport";
import Pagination from "@/components/Pagination.vue";
import type { DamageReportViewModel } from "@/viewmodels/admin/unit/damageReport.models";
-import { PhotoIcon, PencilSquareIcon } from "@heroicons/vue/24/outline";
+import { PhotoIcon, PencilSquareIcon, MapPinIcon, WrenchScrewdriverIcon, UserIcon } from "@heroicons/vue/24/outline";
diff --git a/src/views/admin/unit/wearable/DamageReport.vue b/src/views/admin/unit/wearable/DamageReport.vue
index 8f2600d..847a286 100644
--- a/src/views/admin/unit/wearable/DamageReport.vue
+++ b/src/views/admin/unit/wearable/DamageReport.vue
@@ -4,21 +4,36 @@
:items="damageReports"
:totalCount="totalCount"
:indicateLoading="false"
- @load-data="(offset, count, search) => {}"
- @search="(search) => {}"
+ @load-data="(offset, count, search) => fetchDamageReportForWearable(offset, count, search)"
+ @search="(search) => fetchDamageReportForWearable(0, 25, search, true)"
>
-
+
-
-
{{ row.reportedAt }} - {{ row.status }}
+
{{ new Date(row.reportedAt).toLocaleString("de") }} - {{ row.status }}
+
-
gemeldet von: {{ row.reportedBy }}
Beschreibung: {{ row.description }}
-
+
@@ -31,7 +46,7 @@ import { useAbilityStore } from "@/stores/ability";
import { useWearableDamageReportStore } from "@/stores/admin/unit/wearable/damageReport";
import Pagination from "@/components/Pagination.vue";
import type { DamageReportViewModel } from "@/viewmodels/admin/unit/damageReport.models";
-import { PhotoIcon, PencilSquareIcon } from "@heroicons/vue/24/outline";
+import { PhotoIcon, PencilSquareIcon, MapPinIcon, WrenchScrewdriverIcon, UserIcon } from "@heroicons/vue/24/outline";
diff --git a/src/views/public/damageReport/Report.vue b/src/views/public/damageReport/Report.vue
new file mode 100644
index 0000000..c36a7be
--- /dev/null
+++ b/src/views/public/damageReport/Report.vue
@@ -0,0 +1,114 @@
+