feat(freight-rpa): 增加出站报表配置与回调支持,重构相关服务
- 将 RPA 管理 API 扩展至出站报表配置,新增出站相关的回调接口。 - 重构 freight_rpa_report_config_service,支持入站与出站报表配置的管理。 - 更新 ORM 模型,增加出站报表相关的持久化模型。 - 统一命名规范,确保在手、入站与出站的概念一致性。
This commit is contained in:
1 parent
39fe3c05f2
commit
911afa0f73
152 files changed
+9861
-2984
No files matched your search
@@ -7,6 +7,7 @@
|
||||
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { adminRoutes } from '@/app/router/routes/admin.routes';
|
||||
import zhCnAdmin from '@/locales/zh-CN/admin.json';
|
||||
import { ADMIN_MODULE_METAS, SHIPPING_CONFIG_SUB_MODULE_METAS } from './constants/modules';
|
||||
import type { ShippingManagementGroupKey } from './stores/admin-nav.store';
|
||||
|
||||
@@ -22,6 +23,14 @@ const shippingRoutes = adminRoutes[0].children?.filter((route) =>
|
||||
) ?? [];
|
||||
|
||||
describe('shipping configuration navigation contract', () => {
|
||||
it('exposes renamed freight RPA entry labels in zh-CN admin locale', () => {
|
||||
// 关键断言:管理端入口文案与规格一致(报表规则 / 来源站点 / 入站报表配置)。
|
||||
expect(zhCnAdmin.freightRpa.parsingProfiles).toBe('报表规则');
|
||||
expect(zhCnAdmin.freightRpa.sources).toBe('来源站点');
|
||||
expect(zhCnAdmin.freightRpa.inboundReportConfig).toBe('入站报表配置');
|
||||
expect(zhCnAdmin.freightRpa.outboundReportConfig).toBe('出站报表配置');
|
||||
});
|
||||
|
||||
it('keeps shipping management between schedules and announcements', () => {
|
||||
// 关键断言:货代管理必须保持在排程管理之后、公告管理之前,匹配后台约定的信息架构。
|
||||
const moduleIds = ADMIN_MODULE_METAS.map((item) => item.id);
|
||||
|
||||
Reference in new issue
Block a user