feat(shipping-notice): 完善订单模板解析与库存 RPA 调度流程

- 新增行字段补充合并与订单模板匹配能力
- 优化运行时解析策略、签名校验及资料验证
- 完善库存 RPA 归档、收尾与 Worker 启动流程
- 补充前后端测试、多语言文案及功能文档
This commit is contained in:
hugo committed 2026-09-09 14:32:43 +08:00
1 parent 8f2f568f92
commit dabf140e41
45 files changed
+2007 -151

No files matched your search

@@ -84,6 +84,18 @@ def test_reservation_region_maps_line_when_reservation_label_and_line_number_are
}]
def test_reservation_region_maps_hyve_l_hash_abbreviation_to_line():
"""关键断言:Hyve ``Reservation L#1: 1000153133`` 必须归明细行,不得写入单头。"""
assert extract_reservation_from_region_text("Reservation L#1: 1000153133") == [{
'value': '1000153133', 'line_no': 1, 'scope': 'line',
'raw_text': 'Reservation L#1: 1000153133', 'status': 'mapped',
}]
assert extract_reservation_from_region_text("Reservation LN#2: 1000153134") == [{
'value': '1000153134', 'line_no': 2, 'scope': 'line',
'raw_text': 'Reservation LN#2: 1000153134', 'status': 'mapped',
}]
def test_reservation_region_assigns_reservation_without_line_to_header():
"""无行号 Reservation 是整单事实,写 Header 后由既有回退规则应用给全部明细。"""
assert extract_reservation_from_region_text("MDW hub order.Reservation#33008") == [{