调价后的新价格写入报价单;多段段前的货物带到各段,协同群不再把体积里的星号吃掉。海运字段齐了先核对再查价。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user