feat(shipping-notice): 无表头文档抽取增强与复核深链身份修复
- 新增表头 OCR 救援:模板匹配落 layout_drift/no_match 时按表头带证据补洞重评候选身份,主抽取流程接入并落 identity_rescue 事实字段 - 预约号裸数字兜底:正文无表头且常规证据缺失时扫描 5/10 位纯数字候选,持久化预置、合并末段唯一/多候选裁决 - 修复复核深链仅带 run_no 时队列项显示未命名:Case 身份优先按当前工作面 displayCase 匹配队列项 - 同步抽取 Job/运行服务/候选持久化配套与 OCR 救援、预约号启发式、表头身份测试
This commit is contained in:
1 parent
af2658e244
commit
d7d4819a42
15 files changed
+1660
-6
No files matched your search
@@ -945,6 +945,23 @@ describe('ShippingOrderReviewView layout phase 1', () => {
|
||||
expect((wrapper.vm as any).$route.query.case_no).toBe('CASE-NEW');
|
||||
});
|
||||
|
||||
it('falls back to the requested Case identity for the header order summary on run_no-only deep links', async () => {
|
||||
// 用户场景:历史记录切换生成的深链只带 mode+run_no(无 case_no/task_no)。
|
||||
// 关键断言:标题订单摘要按 displayCase 身份(requestedCaseNo)匹配队列项,
|
||||
// 展示文件名与 Case 号;不得因 URL 缺 case 参数而退化为「未命名」。
|
||||
const previousRequestedCaseNo = requestedCaseNo.value;
|
||||
requestedCaseNo.value = 'CASE-1';
|
||||
try {
|
||||
const wrapper = await mountView();
|
||||
const summary = wrapper.find('[data-testid="review-selected-order-summary"]');
|
||||
expect(summary.exists()).toBe(true);
|
||||
expect(summary.text()).toContain('po.pdf');
|
||||
expect(summary.text()).toContain('CASE-1');
|
||||
} finally {
|
||||
requestedCaseNo.value = previousRequestedCaseNo;
|
||||
}
|
||||
});
|
||||
|
||||
it('opens the replacement Case at its backend current stage after reparse completes', async () => {
|
||||
const originalQueue = reviewQueue.value;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user