From 29baff0abf45daffa2a546df592fbcb52f7c0443 Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期三, 02 九月 2026 13:28:15 +0800
Subject: [PATCH] feat(wls): 库区与库位列表页面增加返回上级功能
---
src/views/wls/warehouse/location/index.vue | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/views/wls/warehouse/location/index.vue b/src/views/wls/warehouse/location/index.vue
index c3a2761..6542afb 100644
--- a/src/views/wls/warehouse/location/index.vue
+++ b/src/views/wls/warehouse/location/index.vue
@@ -7,6 +7,7 @@
import { Page, useVbenModal } from '@vben/common-ui';
import { BarcodeBizTypeEnum } from '@vben/constants';
+import { useTabs } from '@vben/hooks';
import { Alert, Button, message } from 'ant-design-vue';
@@ -57,6 +58,14 @@
}
}
loadWarehouseName();
+
+const tabs = useTabs();
+
+/** 杩斿洖涓婄骇 */
+function handleBack() {
+ tabs.closeCurrentTab();
+ router.push({ path: '/wls/warehouse' });
+}
/** 鍒锋柊琛ㄦ牸 */
function handleRefresh() {
@@ -158,7 +167,11 @@
:message="`褰撳墠浠撳簱锛�${currentWarehouse.name || `#${currentWarehouse.id}`}`"
show-icon
type="info"
- />
+ >
+ <template #action>
+ <Button size="small" type="primary" @click="handleBack"> 杩斿洖 </Button>
+ </template>
+ </Alert>
<Grid table-title="搴撳尯鍒楄〃">
<template #toolbar-tools>
--
Gitblit v1.9.3