diff --git a/ruoyi-ui/src/lang/en.js b/ruoyi-ui/src/lang/en.js index 4ebc50a..13cc482 100644 --- a/ruoyi-ui/src/lang/en.js +++ b/ruoyi-ui/src/lang/en.js @@ -66,6 +66,12 @@ export default { selectProduct: 'Select Product' }, menu: { - InboundManagement: 'InboundManagement' + //收货单据新增 + InboundManagement: 'InboundManagement', + ReceivingDocumentsAdd:"ReceivingDocumentsAdd", + ReceiptDocumentManagement:"ReceiptDocumentManagement", + ManagementOfInboundDocuments:"ManagementOfInboundDocuments", + InboundTaskManagement:"InboundTaskManagement", + }, } diff --git a/ruoyi-ui/src/lang/zh.js b/ruoyi-ui/src/lang/zh.js index d6e1d12..4ee9065 100644 --- a/ruoyi-ui/src/lang/zh.js +++ b/ruoyi-ui/src/lang/zh.js @@ -63,5 +63,13 @@ export default { totalAmount: '总金额', submit: '提交', selectProduct: '选择物料' + }, + menu:{ + InboundManagement:"入库管理", + //收货单据新增 + ReceivingDocumentsAdd: '收货单据新增', + ReceiptDocumentManagement:"收货单据管理", + ManagementOfInboundDocuments:"入库单据管理", + InboundTaskManagement:"入库作业管理", } } diff --git a/ruoyi-ui/src/store/modules/permission.js b/ruoyi-ui/src/store/modules/permission.js index b549ef0..ff029ef 100644 --- a/ruoyi-ui/src/store/modules/permission.js +++ b/ruoyi-ui/src/store/modules/permission.js @@ -4,6 +4,7 @@ import { getRouters } from '@/api/menu' import Layout from '@/layout/index' import ParentView from '@/components/ParentView' import InnerLink from '@/layout/components/InnerLink' +import i18n from "../../lang"; const permission = { state: { @@ -70,6 +71,10 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { route.component = loadView(route.component) } } + // 在 route.component 处理后添加 + if (route.meta && route.meta.title) { + route.meta.title = i18n.t(route.meta.title) + } if (route.children != null && route.children && route.children.length) { route.children = filterAsyncRouter(route.children, route, type) } else {