空运成交后可在本群继续锁舱;调价同步舱位费用桶;出单按空运段骨架落费并保留陆运车型尺寸;导出文件名乱码修复。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-10-14 15:34:24 +08:00
co-authored by Cursor
parent 92bdf56a4d
commit cc8529f569
29 changed files with 1941 additions and 276 deletions
@@ -144,11 +144,17 @@ def route_codes(
"""
价格明细/方案卡用的航线三字码:有中转写成 ZUH-CAN-CRK。
对不上就不写假中转。
selected_air_option 可能是字典、JSON 串,或只写了舱位编号;
不能直接 dict(字符串),否则成交卡拼航线会整单炸掉(WO001)。
"""
src = dict(option or {})
src = _parse_option_dict(option)
if not src:
q = dict(quote or {})
src = dict(q.get("selected_air_option") or {})
q = dict(quote or {}) if isinstance(quote, dict) else {}
# 先认 camelCase,和主账快照字段对齐。
src = _parse_option_dict(
q.get("selected_air_option") or q.get("selectedAirOption")
)
if not src:
opts = parse_air_options(q)
src = dict(opts[0]) if opts else {}