feat(shipping-notice): 新增发货批次和任务管理功能,支持批次创建与任务处理
This commit is contained in:
1 parent
457f0f4e5e
commit
634dee4b81
81 files changed
+9088
-3625
No files matched your search
@@ -1,3 +1,11 @@
|
||||
"""
|
||||
services/shipping_notice/i18n.py
|
||||
|
||||
用途:维护发货通知链路的多语言文案与语言解析工具。
|
||||
依赖:Flask request 上下文、模块内 `_MESSAGES` 文案字典。
|
||||
逻辑:由 parse_summary、field_alignment_summary、workflow 提示文案等上游模块调用本文件输出用户可读消息。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
@@ -55,8 +63,8 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"match.status.shortage": "❌ 不足",
|
||||
"match.status.unknown": "未知",
|
||||
"match.conclusion.fulfillable": "**结论**:库存充足,可生成发货 Excel 并上传货代系统。",
|
||||
"match.conclusion.partial": "**结论**:部分行库存不足,请复核缺口后决定是否部分发货。",
|
||||
"match.conclusion.unfulfillable": "**结论**:库存均不足,无法整单发货。",
|
||||
"match.conclusion.partial": "**结论**:存在库存缺口,无法发货。请补库存或返回修订后重新匹配,直至全部行满足。",
|
||||
"match.conclusion.unfulfillable": "**结论**:库存均不足,无法发货。请补库存或返回修订后重新匹配。",
|
||||
"match.conclusion.other": "**结论**:match_status={status}",
|
||||
"match.no_lines": "无订单明细,无法比对数量。",
|
||||
},
|
||||
@@ -108,8 +116,8 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"match.status.shortage": "❌ Short",
|
||||
"match.status.unknown": "Unknown",
|
||||
"match.conclusion.fulfillable": "**Result**: Inventory is sufficient. You may generate the shipment Excel and upload.",
|
||||
"match.conclusion.partial": "**Result**: Some lines are short. Review gaps before partial shipment.",
|
||||
"match.conclusion.unfulfillable": "**Result**: Insufficient inventory for all lines.",
|
||||
"match.conclusion.partial": "**Result**: Inventory gap detected. Shipment blocked until all lines are fulfilled. Re-upload inventory or revise mapping, then rematch.",
|
||||
"match.conclusion.unfulfillable": "**Result**: Insufficient inventory for all lines. Shipment blocked until inventory is replenished.",
|
||||
"match.conclusion.other": "**Result**: match_status={status}",
|
||||
"match.no_lines": "No order lines to compare.",
|
||||
},
|
||||
@@ -161,8 +169,8 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"match.status.shortage": "❌ ไม่พอ",
|
||||
"match.status.unknown": "ไม่ทราบ",
|
||||
"match.conclusion.fulfillable": "**สรุป**: สต็อกเพียงพอ สามารถสร้าง Excel และอัปโหลดได้",
|
||||
"match.conclusion.partial": "**สรุป**: บางรายการสต็อกไม่พอ กรุณาตรวจสอบส่วนต่าง",
|
||||
"match.conclusion.unfulfillable": "**สรุป**: สต็อกไม่เพียงพอทั้งหมด",
|
||||
"match.conclusion.partial": "**สรุป**: มีส่วนต่างสต็อก ไม่สามารถจัดส่งได้ กรุณาเติมสต็อกหรือแก้ไขแล้วจับคู่ใหม่จนกว่าทุกรายการจะครบ",
|
||||
"match.conclusion.unfulfillable": "**สรุป**: สต็อกไม่เพียงพอทั้งหมด ไม่สามารถจัดส่งได้ กรุณาเติมสต็อกหรือแก้ไขแล้วจับคู่ใหม่",
|
||||
"match.conclusion.other": "**สรุป**: match_status={status}",
|
||||
"match.no_lines": "ไม่มีรายการสั่งซื้อสำหรับเปรียบเทียบ",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user