陆运选项不全时改为复制填空清单,方便销售按编号回填。

停发填写样例图,同群只跟当前工单,重量体积统一为 KG/CBM。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-23 17:10:13 +08:00
co-authored by Cursor
parent 2334524bb8
commit 378bb892b3
33 changed files with 1204 additions and 265 deletions
@@ -13,6 +13,7 @@ from typing import Any, Optional
from agent.channel.wecom.models import InboundMessage
from agent.policy import inquiry_copy as copy
from agent.policy.air_group_ops import (
is_air_ticket,
activate_ticket,
apply_air_confirm_tms,
apply_air_deal,
@@ -167,7 +168,7 @@ def handle_air_group(
return phase
else:
ticket = current_ticket(engine, chat_id)
if ticket is None:
if ticket is None or not is_air_ticket(ticket):
send_group_text(group_client_of(engine), chat_id, copy.air_need_work_order())
return "need_work_order"
if is_handoff_ticket(ticket):
@@ -210,7 +211,7 @@ def _handle_file(engine, message: InboundMessage) -> str:
return phase
else:
ticket = current_ticket(engine, chat_id)
if ticket is None:
if ticket is None or not is_air_ticket(ticket):
send_group_text(group_client_of(engine), chat_id, copy.air_need_work_order())
return "need_work_order"
if is_handoff_ticket(ticket):