feat(shipping-notice): 实现滚动履约功能,优化发货通知流程与代码清理

清理废弃的ShippingCase相关代码与依赖,统一使用ShippingNotice直接关联客户数据。调整库存网关依赖规则,支持仅对库存满足或已人工放行的订单行生成发货Excel,实现滚动履约逻辑。
This commit is contained in:
hugo committed 2026-08-26 02:47:07 +08:00
1 parent 7cfd5d167e
commit 1e5aedb9ed
235 files changed
+11394 -9613

No files matched your search

@@ -65,6 +65,7 @@ def test_runtime_persists_compact_text_and_table_snapshot_without_raw_response(a
app.config.update(
SHIPPING_NOTICE_LAYOUT_MINERU_ENABLED=True,
SHIPPING_NOTICE_LAYOUT_MINERU_BASE_URL='http://mineru.internal:8100',
SHIPPING_NOTICE_LAYOUT_NATIVE_PAGE_REUSE_ENABLED=False,
)
with app.app_context(), patch(
'app.services.shipping_notice.document_layout.runtime.MinerUClient.parse_file_async',
@@ -107,6 +108,7 @@ def test_runtime_reuses_native_pdf_pages_across_fallback_layout_and_evidence(app
app.config.update(
SHIPPING_NOTICE_LAYOUT_MINERU_ENABLED=True,
SHIPPING_NOTICE_LAYOUT_MINERU_BASE_URL='http://mineru.internal:8100',
SHIPPING_NOTICE_LAYOUT_NATIVE_PAGE_REUSE_ENABLED=False,
)
native_pages = [object()]
timings: dict[str, int] = {}
@@ -157,6 +159,7 @@ def test_runtime_empty_mineru_tables_use_pdfium_provider_fallback(app):
app.config.update(
SHIPPING_NOTICE_LAYOUT_MINERU_ENABLED=True,
SHIPPING_NOTICE_LAYOUT_MINERU_BASE_URL='http://mineru.internal:8100',
SHIPPING_NOTICE_LAYOUT_NATIVE_PAGE_REUSE_ENABLED=False,
)
empty_candidate = _candidate().model_copy(update={'pages': [
_candidate().pages[0].model_copy(update={'tables': []}),