feat: 合同付款预警迁移到agent页面

This commit is contained in:
sophie committed 2026-09-16 09:36:18 +08:00
1 parent ef6bc42c20
commit 4ce2defef0
49 files changed
+1052 -423

No files matched your search

@@ -1,11 +1,13 @@
/**
* app/router/routes/workspace.routes.ts
* 工作台路由表:/workspace 布局壳 + 各业务子页面懒加载。
* 依赖:vue-router、contract-payment 权限常量;meta.title 存 i18n key(workspace.*),由 guards 解析为 document.title。
* 逻辑:WorkspaceLayout 嵌套应用首页、知识库、排程、反馈等子页;合同付款子路由用 requiresFeaturePermission 而非 requiresAdmin;立账凭证明细为 accounting-voucher-check/runs/:runId。
* 依赖:vue-router;meta.title 存 i18n key(workspace.*),由 guards 解析为 document.title。
* 逻辑:WorkspaceLayout 嵌套应用首页、知识库、排程、反馈等子页;合同付款旧地址重定向到 Chat Agent。
* 立账凭证明细为 accounting-voucher-check/runs/:runId。
*/
import type { RouteRecordRaw } from 'vue-router';
import { CONTRACT_PAYMENT_ACCESS_PERMISSION } from '@/features/contract-payment/constants';
const contractPaymentChatRedirect = () => import('@/features/contract-payment/views/ContractPaymentChatRedirect.vue');
export const workspaceRoutes: RouteRecordRaw[] = [
{
@@ -93,26 +95,26 @@ export const workspaceRoutes: RouteRecordRaw[] = [
{
path: 'contract-payment',
name: 'workspace-contract-payment',
component: () => import('@/features/contract-payment/views/ContractPaymentPage.vue'),
meta: { title: 'workspace.nav.contractPayment', requiresFeaturePermission: CONTRACT_PAYMENT_ACCESS_PERMISSION },
component: contractPaymentChatRedirect,
meta: { title: 'workspace.nav.contractPayment' },
},
{
path: 'contract-payment/review',
name: 'workspace-contract-payment-review',
component: () => import('@/features/contract-payment/views/ContractPaymentReviewPage.vue'),
meta: { title: 'workspace.nav.contractPaymentReview', requiresFeaturePermission: CONTRACT_PAYMENT_ACCESS_PERMISSION },
component: contractPaymentChatRedirect,
meta: { title: 'workspace.nav.contractPaymentReview' },
},
{
path: 'contract-payment/weekly-batches',
name: 'workspace-contract-payment-weekly-batches',
component: () => import('@/features/contract-payment/views/ContractPaymentWeeklyBatchesPage.vue'),
meta: { title: 'workspace.nav.contractPaymentWeeklyBatches', requiresFeaturePermission: CONTRACT_PAYMENT_ACCESS_PERMISSION },
component: contractPaymentChatRedirect,
meta: { title: 'workspace.nav.contractPaymentWeeklyBatches' },
},
{
path: 'contract-payment/contracts/:contractId',
name: 'workspace-contract-payment-detail',
component: () => import('@/features/contract-payment/views/ContractPaymentDetailPage.vue'),
meta: { title: 'workspace.nav.contractPayment', requiresFeaturePermission: CONTRACT_PAYMENT_ACCESS_PERMISSION },
component: contractPaymentChatRedirect,
meta: { title: 'workspace.nav.contractPayment' },
},
{
path: 'feedback',