show details to damage

This commit is contained in:
Julian Krauser 2025-07-17 09:32:18 +02:00
parent 93a04abee1
commit 5ea5a0160a
10 changed files with 332 additions and 41 deletions

View file

@ -0,0 +1,20 @@
import { useDamageReportStore } from "@/stores/admin/unit/damageReport/damageReport";
export async function setDamageReportId(to: any, from: any, next: any) {
const damageReportStore = useDamageReportStore();
damageReportStore.activeDamageReport = to.params?.damageReportId ?? null;
//xystore().$reset();
next();
}
export async function resetDamageReportStores(to: any, from: any, next: any) {
const damageReportStore = useDamageReportStore();
damageReportStore.activeDamageReport = null;
damageReportStore.activeDamageReportObj = null;
//xystore().$reset();
next();
}