调价后的新价格写入报价单;多段段前的货物带到各段,协同群不再把体积里的星号吃掉。海运字段齐了先核对再查价。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-03 22:39:54 +08:00
co-authored by Cursor
parent 0a14b4cc15
commit 7c77e45e03
32 changed files with 1384 additions and 75 deletions
@@ -387,6 +387,13 @@ def harvest_oral_measures(text: str, facts: dict[str, str] | None = None) -> dic
hit = _RE_VOLUME_FANG.search(raw) or _RE_VOLUME_WORD.search(raw)
if hit:
merged["体积"] = hit.group(1)
else:
# 尺寸式不换算成立方,原文留给报价单;TMS 出站再乘。
from agent.schema.tms_air_query import dimension_volume_text
dim = dimension_volume_text(raw)
if dim:
merged["体积"] = dim
pack = _harvest_packaging(raw)
if pack:
merged["包装方式"] = pack