落地多段联运私聊:齐了才建单拉群,附件只收格子值,核对改正不再整单重开。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-23 15:08:15 +08:00
co-authored by Cursor
parent 6e3e09a316
commit 2334524bb8
30 changed files with 4033 additions and 40 deletions
@@ -457,6 +457,9 @@ class MemoryLedger:
wait_phase = "wait_collab"
else:
wait_phase = "wait_adopt"
elif (ticket.business_line or "").upper() == "MULTI":
# 多段建单后仍是询价中;已建群就跟进报价,否则等销售点拉群。
wait_phase = "collab_group" if (ticket.collab_chat_id or "").strip() else "wait_collab"
else:
wait_phase = "tms_miss"
return {
@@ -466,6 +469,10 @@ class MemoryLedger:
"work_order_no": ticket.work_order_no,
"status": status,
"business_line": ticket.business_line,
"sales_wecom_id": ticket.sales_wecom_id,
"salesWecomId": ticket.sales_wecom_id,
"sales_name": str(self._staff_by_wecom.get(ticket.sales_wecom_id, {}).get("name") or ticket.sales_wecom_id or ""),
"salesName": str(self._staff_by_wecom.get(ticket.sales_wecom_id, {}).get("name") or ticket.sales_wecom_id or ""),
"facts": dict(ticket.facts),
"quote": quote,
"wait_phase": wait_phase,