show details to damage
This commit is contained in:
parent
93a04abee1
commit
5ea5a0160a
10 changed files with 332 additions and 41 deletions
20
src/router/unit/damageReport.ts
Normal file
20
src/router/unit/damageReport.ts
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue