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

@@ -63,12 +63,13 @@ def handle_shipping_post_ot_wave_progress(ctx: JobContext, payload: dict) -> Non
try:
from app.services.shipping_notice.fulfillment_workflow import generate_excel
# [STEP] 为本 OT 生成/刷新发货 Excel;wave_no 写入上下文供审计与后续过滤。
# [STEP] 为本次独立 Notice 生成 Excel,禁止捎带同 PO 的其他项次。
gen = generate_excel({
'task_id': task.task_no,
'wave_no': wave_no,
'line_keys': list(frozen.get('line_keys') or []),
'post_ot_wave': True,
'_orchestrator_internal_dispatch': True,
})
status = str((gen or {}).get('status') or '').strip().lower()
if status in {'failed', 'error'}: