清理废弃的shipping xfa ocr automark相关代码和job配置 新增收料报表管理的前端页面、路由和侧边栏入口 新增后端收料报表配置接口、数据库模型和RPA脚本 优化发货通知流程的重试策略,将shipping相关job默认不自动重试 移除废弃的库存源确认相关逻辑,更新流程门禁规则 重构订单模板的值适配器模块,新增坐标OCR值适配器 清理前端shipping菜单和action的废弃选项 更新相关文档和测试用例,调整.gitignore忽略规则
101 lines
3.7 KiB
TypeScript
101 lines
3.7 KiB
TypeScript
/**
|
||
* app/router/routes/workspace.routes.ts
|
||
* 工作台路由表:/workspace 布局壳 + 各业务子页面懒加载。
|
||
* 依赖:vue-router;meta.title 存 i18n key(workspace.*),由 guards 解析为 document.title。
|
||
* 逻辑:WorkspaceLayout 嵌套应用首页、知识库、排程、反馈等子页。
|
||
*/
|
||
import type { RouteRecordRaw } from 'vue-router';
|
||
|
||
export const workspaceRoutes: RouteRecordRaw[] = [
|
||
{
|
||
path: '/workspace',
|
||
component: () => import('@/features/workspace/views/WorkspaceLayout.vue'),
|
||
meta: { title: 'workspace.title' },
|
||
children: [
|
||
{ path: '', redirect: '/workspace/applications' },
|
||
{
|
||
path: 'profile',
|
||
name: 'workspace-profile',
|
||
component: () => import('@/features/user/views/UserProfilePage.vue'),
|
||
meta: { title: 'workspace.nav.profile' },
|
||
},
|
||
{
|
||
path: 'applications',
|
||
name: 'workspace-applications',
|
||
component: () => import('@/features/workspace/pages/HomePage.vue'),
|
||
meta: { workspaceFocus: 'applications' },
|
||
},
|
||
{
|
||
path: 'updates',
|
||
name: 'workspace-updates',
|
||
component: () => import('@/features/workspace/pages/HomePage.vue'),
|
||
meta: { workspaceFocus: 'updates' },
|
||
},
|
||
{
|
||
path: 'knowledge-base',
|
||
name: 'workspace-knowledge-base',
|
||
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
|
||
meta: { title: 'workspace.nav.knowledgeBase' },
|
||
},
|
||
{
|
||
path: 'knowledge-base/groups/:groupId',
|
||
name: 'workspace-knowledge-base-group',
|
||
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
|
||
meta: { title: 'workspace.nav.knowledgeBase' },
|
||
},
|
||
{
|
||
path: 'schedule-runs',
|
||
name: 'workspace-schedule-runs',
|
||
component: () => import('@/features/workspace/pages/ScheduleRunsPage.vue'),
|
||
meta: { title: 'workspace.nav.scheduleRuns' },
|
||
},
|
||
{
|
||
path: 'receipt-reports',
|
||
name: 'workspace-receipt-reports',
|
||
component: () => import('@/features/workspace/pages/ReceiptReportFilesPage.vue'),
|
||
meta: { title: 'workspace.nav.receiptReports' },
|
||
},
|
||
{
|
||
path: 'shipping-notice',
|
||
redirect: '/workspace/shipping-notice/my-tasks',
|
||
},
|
||
{
|
||
path: 'shipping-notice/customers',
|
||
name: 'workspace-shipping-customers',
|
||
component: () => import('@/features/shipping-notice/customers/ShippingCustomersPage.vue'),
|
||
meta: { title: '货代客户主数据', requiresAdmin: true },
|
||
},
|
||
{
|
||
path: 'shipping-notice/my-tasks',
|
||
name: 'workspace-shipping-my-tasks',
|
||
component: () => import('@/features/workspace/pages/ShippingMyTasksPage.vue'),
|
||
meta: { title: '我的待办' },
|
||
},
|
||
{
|
||
path: 'shipping-notice/tasks/:taskNo?',
|
||
name: 'workspace-shipping-tasks',
|
||
component: () => import('@/features/workspace/pages/ShippingNoticePage.vue'),
|
||
meta: { title: '货代发货任务' },
|
||
},
|
||
{
|
||
path: 'accounting-voucher-check',
|
||
name: 'workspace-accounting-voucher-check',
|
||
component: () => import('@/features/workspace/pages/AccountingVoucherCheckPage.vue'),
|
||
meta: { title: 'workspace.nav.accountingVoucherCheck', requiresAdmin: true },
|
||
},
|
||
{
|
||
path: 'feedback',
|
||
name: 'workspace-feedback',
|
||
component: () => import('@/features/workspace/pages/FeedbackPage.vue'),
|
||
meta: { title: 'workspace.nav.feedback' },
|
||
},
|
||
{
|
||
path: 'history',
|
||
name: 'workspace-history',
|
||
component: () => import('@/features/chat/history/HistoryPage.vue'),
|
||
meta: { title: 'workspace.routes.history' },
|
||
},
|
||
],
|
||
},
|
||
];
|