角色业务范围收紧工单与模板;报价日期不当费用;未选舱不迁已报价;另开一票可清违禁 hold
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -650,6 +650,42 @@ def ask_clarify(
|
||||
if key == "起运港":
|
||||
continue
|
||||
val = known(src, key)
|
||||
# #region agent log
|
||||
if key == "added_services":
|
||||
try:
|
||||
import json as _dbg_json
|
||||
import time as _dbg_time
|
||||
from pathlib import Path as _DbgPath
|
||||
|
||||
_payload = {
|
||||
"sessionId": "5ea5b3",
|
||||
"runId": "post-fix",
|
||||
"hypothesisId": "H3",
|
||||
"location": "inquiry_copy.py:ask_clarify",
|
||||
"message": "clarify display added_services",
|
||||
"data": {
|
||||
"raw_facts": str(src.get("added_services") or ""),
|
||||
"display_val": val,
|
||||
"label": label,
|
||||
},
|
||||
"timestamp": int(_dbg_time.time() * 1000),
|
||||
}
|
||||
for _p in (
|
||||
_DbgPath(__file__).resolve().parents[3] / "debug-5ea5b3.log",
|
||||
_DbgPath(r"d:/own/友通达询价智能体(新)/debug-5ea5b3.log"),
|
||||
_DbgPath(r"C:/Users/ytd_extdev_0903/incoming/debug-5ea5b3.log"),
|
||||
):
|
||||
try:
|
||||
_p.parent.mkdir(parents=True, exist_ok=True)
|
||||
with _p.open("a", encoding="utf-8") as _f:
|
||||
_f.write(
|
||||
_dbg_json.dumps(_payload, ensure_ascii=False) + "\n"
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
except Exception:
|
||||
pass
|
||||
# #endregion
|
||||
if val:
|
||||
lines.append(f"{label}:{val}")
|
||||
lines.append("")
|
||||
@@ -818,6 +854,30 @@ def inquiry_field_lines(
|
||||
]
|
||||
# 建单确认和空运群:有内容才多一行。没填不出现。核对卡的空行不在这里。
|
||||
added = (facts.get("added_services") or facts.get("增值服务") or "").strip()
|
||||
# #region agent log
|
||||
try:
|
||||
import json as _dbg_json
|
||||
import time as _dbg_time
|
||||
from pathlib import Path as _DbgPath
|
||||
|
||||
_payload = {
|
||||
"sessionId": "5ea5b3",
|
||||
"runId": "pre-fix",
|
||||
"hypothesisId": "H3",
|
||||
"location": "inquiry_copy.py:air_confirm_lines",
|
||||
"message": "display added_services value",
|
||||
"data": {
|
||||
"added": added,
|
||||
"facts_keys": sorted(str(k) for k in (facts or {}).keys()),
|
||||
},
|
||||
"timestamp": int(_dbg_time.time() * 1000),
|
||||
}
|
||||
_path = _DbgPath(__file__).resolve().parents[3] / "debug-5ea5b3.log"
|
||||
with _path.open("a", encoding="utf-8") as _f:
|
||||
_f.write(_dbg_json.dumps(_payload, ensure_ascii=False) + "\n")
|
||||
except Exception:
|
||||
pass
|
||||
# #endregion
|
||||
if added and added not in {"-", "—", "-"}:
|
||||
lines.insert(-1, f"增值服务:{added}")
|
||||
return lines
|
||||
@@ -3140,7 +3200,7 @@ def air_sales_only_deal() -> str:
|
||||
|
||||
|
||||
def air_fields_not_recognized() -> str:
|
||||
return "听到了。空运群里可补充是否含电、是否含磁。"
|
||||
return "听到了。空运群里可补充是否含电、是否含磁,或报价日期。"
|
||||
|
||||
|
||||
def air_quote_not_recognized() -> str:
|
||||
@@ -3148,7 +3208,7 @@ def air_quote_not_recognized() -> str:
|
||||
|
||||
|
||||
def air_fields_denied() -> str:
|
||||
return "只有这张单的销售或航线可以补含电/含磁。"
|
||||
return "只有这张单的销售或航线可以补含电/含磁或报价日期。"
|
||||
|
||||
|
||||
def air_no_tms_quote_to_lock(work_order_no: str) -> str:
|
||||
@@ -3346,9 +3406,10 @@ def air_text_quote_for_lock_example(work_order_no: str = "") -> str:
|
||||
需要锁舱时,请航线用纯文字报价的示例句。
|
||||
|
||||
附件报价不拆金额、常锁不成;产品口径改为引导航线改发文字价。
|
||||
示例必须带计费单位(空运常见 KG),避免航线漏写单位导致文字价无法落库。
|
||||
"""
|
||||
no = (work_order_no or "").strip() or "工单号"
|
||||
return f"{no},空运段,空运费 单价CNY99.00,数量100 ,金额CNY9900.00@询价小助手"
|
||||
return f"{no},空运段,KG,空运费 单价CNY99.00,数量100 ,金额CNY9900.00@询价小助手"
|
||||
|
||||
|
||||
def air_attachment_quote_lock_tip(*, work_order_no: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user