feat(shipping-notice): 完善订单模板解析与库存 RPA 调度流程
- 新增行字段补充合并与订单模板匹配能力 - 优化运行时解析策略、签名校验及资料验证 - 完善库存 RPA 归档、收尾与 Worker 启动流程 - 补充前后端测试、多语言文案及功能文档
This commit is contained in:
1 parent
8f2f568f92
commit
dabf140e41
45 files changed
+2007
-151
No files matched your search
+27
-1
@@ -18,7 +18,9 @@ const i18n = createI18n({
|
||||
title: '文档模板匹配', subtitle: '摘要', selected: '命中模板', noSelected: '未选定模板',
|
||||
expandCandidates: '查看候选模板({count})', collapseCandidates: '收起候选模板',
|
||||
routeType: '路由类型', executionMode: '执行模式',
|
||||
extractionBlocked: '模板已命中,但字段提取仍被安全门禁阻断', extractionBlockedReason: '阻断原因:{reasons}',
|
||||
extractionBlocked: '模板已命中,但字段提取仍被安全门禁阻断',
|
||||
extractionBlockedNoMatch: '模板未唯一命中,字段提取被阻断',
|
||||
extractionBlockedReason: '阻断原因:{reasons}',
|
||||
coordinateModel: {
|
||||
anchorFrame: '锚点坐标框架', status: '变换状态', translateX: '横向平移',
|
||||
translateY: '纵向平移', reasonCodes: '原因码',
|
||||
@@ -122,6 +124,30 @@ describe('ReviewProfileMatchPanel', () => {
|
||||
// 关键断言:唯一模板命中不等于字段已提取,必须明确暴露下游阻断原因。
|
||||
expect(wrapper.get('[data-testid="review-profile-match-extraction-blocked"]').text())
|
||||
.toContain('PARSE_STRATEGY_ROW_MODE_AMBIGUOUS');
|
||||
expect(wrapper.get('[data-testid="review-profile-match-extraction-blocked"]').text())
|
||||
.toContain('模板已命中');
|
||||
});
|
||||
|
||||
it('未选定模板时阻断文案不得再写模板已命中', () => {
|
||||
const wrapper = mount(ReviewProfileMatchPanel, {
|
||||
props: {
|
||||
profileMatch: {
|
||||
available: true,
|
||||
visibility: 'admin',
|
||||
status: 'evidence_insufficient',
|
||||
needs_review: true,
|
||||
selected_profile: null,
|
||||
candidates: [],
|
||||
fallback_reason_codes: ['coordinate_evidence_unavailable'],
|
||||
},
|
||||
},
|
||||
global: { plugins: [i18n] },
|
||||
});
|
||||
|
||||
const blocked = wrapper.get('[data-testid="review-profile-match-extraction-blocked"]').text();
|
||||
expect(blocked).toContain('模板未唯一命中');
|
||||
expect(blocked).not.toContain('模板已命中');
|
||||
expect(blocked).toContain('coordinate_evidence_unavailable');
|
||||
});
|
||||
|
||||
it('管理员技术详情展示锚点框架平移和稳定原因码,不展示原始正文或完整坐标', async () => {
|
||||
|
||||
Reference in new issue
Block a user