Add vehicle repair functionality in Falukant module

- Implemented a new repairVehicle method in FalukantService to handle vehicle repairs, including cost calculation and precondition checks.
- Updated FalukantController to expose the repairVehicle endpoint, allowing users to initiate repairs via the API.
- Enhanced FalukantRouter to include a new route for vehicle repairs.
- Modified BranchView component to add UI elements for repairing vehicles, including a dialog for repair confirmation and displaying repair details.
- Updated German localization files to include translations related to vehicle repair actions, improving user experience for German-speaking users.
This commit is contained in:
Torsten Schulz (local)
2025-12-05 14:40:55 +01:00
parent 0544a3dfde
commit 74a3d59800
6 changed files with 347 additions and 12 deletions

View File

@@ -316,7 +316,21 @@
"noVehiclesSelected": "Keine Fahrzeuge ausgewählt.",
"sendSuccess": "Fahrzeuge erfolgreich versendet!",
"sendError": "Fehler beim Versenden der Fahrzeuge.",
"cancel": "Abbrechen"
"cancel": "Abbrechen",
"close": "Schließen",
"repair": "Reparieren",
"repairTooltip": "Fahrzeug reparieren",
"repairVehicleTitle": "Fahrzeug reparieren",
"repairVehicleType": "Fahrzeugtyp",
"repairCurrentCondition": "Aktueller Zustand",
"repairCost": "Reparaturkosten",
"repairBuildTime": "Reparaturdauer",
"repairBuildTimeInstant": "Sofort",
"repairBuildTimeHours": "Stunden",
"repairBuildTimeMinutes": "Minuten",
"repairConfirm": "Reparieren",
"repairSuccess": "Fahrzeug wird repariert!",
"repairError": "Fehler beim Reparieren des Fahrzeugs."
},
"stocktype": {
"wood": "Holzlager",