fix SalesOrderDetail.vue style

This commit is contained in:
Timi
2026-09-05 01:38:03 +08:00
parent 25bbdafcc8
commit ca8599450a
7 changed files with 382 additions and 117 deletions
+15 -1
View File
@@ -132,10 +132,24 @@ function getStatusTheme(statusValue?: FundRecordStatus): "success" | "warning" |
async function toDetail(item: FundRecord): Promise<void> {
if (item.id) {
await router.push(`/management/fund-records/${item.id}`);
await router.push({
path: `/management/fund-records/${item.id}`,
query: { transitionDepth: String(getCurrentRouteDepth() + 1) }
});
}
}
function getCurrentRouteDepth(): number {
const transitionDepth = Array.isArray(route.query.transitionDepth)
? route.query.transitionDepth[0]
: route.query.transitionDepth;
const depth = Number(transitionDepth);
if (transitionDepth && Number.isInteger(depth) && 0 <= depth && depth <= 20) {
return depth;
}
return Number(route.meta.depth ?? 0);
}
onMounted(async () => {
navBarStore.clearRight();
try {