空运已有 TMS 选定舱位时直接锁舱,不再追问三项;纯文字报价提示只留给附件报价。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-10-13 22:51:58 +08:00
co-authored by Cursor
parent 7ef4a1b1cf
commit 92bdf56a4d
3 changed files with 117 additions and 39 deletions
+3 -16
View File
@@ -3347,24 +3347,11 @@ def air_lock_incomplete(*, work_order_no: str, operator: str, reason: str = "")
"""
锁舱参数不齐(纯手工价、运价库无舱位等):业务补问,不算系统异常,不惊动 IT。
附件/无舱位场景改引导纯文字报价;有 TMS 舱位时仍可补 AIR-OPT 三项。
有 TMS / 非附件报价:仍补舱位三项。附件报价的「请发纯文字」只由
air_group_ops 在 source_label=航线附件报价 时走 air_lock_need_text_quote,
禁止按「无匹配报价」关键字在这里拐过去(会误伤 TMS 锁舱)。
"""
why = (reason or "").strip()
blob = why
if any(
x in blob
for x in (
"手工报价",
"附件",
"无匹配舱位",
"无匹配报价",
"运价库无匹配",
"标准运价库无匹配",
)
):
return air_lock_need_text_quote(
work_order_no=work_order_no, operator=operator, reason=why
)
lines = [
f"工单{work_order_no} 还不能锁舱。",
f"操作人:{operator}",