陆运补问把货物品名放进选项清单,并按销售原文回显已填项。
空着的运输分类不再被菜单第一项认成已填。空运报价改为货物信息加价格方案,锁舱成功回执补起运地、目的地、航司和航班日期。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -382,17 +382,89 @@ class AirRouteOptionsTests(unittest.TestCase):
|
||||
text,
|
||||
"\n".join(
|
||||
[
|
||||
"TMS标准报价",
|
||||
"WO202609220013价格明细",
|
||||
"NKG-KUL",
|
||||
"工单号:WO202609220013",
|
||||
"运输方式:空运",
|
||||
"起运地:-",
|
||||
"目的地:-",
|
||||
"航司:-",
|
||||
"品名:-",
|
||||
"件数:-",
|
||||
"重量(KG):-",
|
||||
"体积(CBM):-",
|
||||
"包装类型:-",
|
||||
"计费重:-",
|
||||
"货型:-",
|
||||
"报价日期:-",
|
||||
"",
|
||||
"价格方案如下:",
|
||||
"增点费:CNY 100.0",
|
||||
"拆板费:USD 100.0",
|
||||
"备注:-",
|
||||
"费用合计:CNY 5001.0",
|
||||
"报价有效期:2026-09-30",
|
||||
]
|
||||
),
|
||||
)
|
||||
self.assertNotIn("时效", text)
|
||||
self.assertNotIn("TMS标准报价", text)
|
||||
self.assertNotIn("NKG-KUL", text)
|
||||
|
||||
def test_air_detail_text_uses_ticket_facts_and_tms_price_shape(self) -> None:
|
||||
"""货物信息用工单,价格方案按单价/按票/只有金额三种写法。"""
|
||||
text = copy.sea_quote_detail_text(
|
||||
work_order_no="WO202610090040",
|
||||
facts={
|
||||
"起运地": "NKG",
|
||||
"目的地": "KUL",
|
||||
"品名": "普货",
|
||||
"件数": "800箱",
|
||||
"毛重": "8300KG",
|
||||
"体积": "39CBM",
|
||||
"包装类型": "散货",
|
||||
"报价日期": "2026-10-09",
|
||||
},
|
||||
quote={
|
||||
"currency": "CNY",
|
||||
"total": "87150.0",
|
||||
"valid_until": "2026-10-31",
|
||||
"remark": "其他杂费如有实报实销,不含续页;续页50/票",
|
||||
"airlineCode": "TH",
|
||||
"chargeableWeightKg": "8300",
|
||||
"cargoType": "1:212",
|
||||
"fee_lines": [
|
||||
{
|
||||
"name": "空运费",
|
||||
"currency": "CNY",
|
||||
"unit": "KG",
|
||||
"unitPrice": 11,
|
||||
"amount": "91300",
|
||||
},
|
||||
{"name": "文件费", "currency": "CNY", "unit": "票", "amount": "300"},
|
||||
{"name": "报关费", "currency": "CNY", "unit": "/票", "unitPrice": "250"},
|
||||
{"name": "增点费", "currency": "CNY", "amount": "100.0"},
|
||||
],
|
||||
},
|
||||
business_line="AIR",
|
||||
)
|
||||
self.assertIn("工单号:WO202610090040", text)
|
||||
self.assertIn("起运地:NKG", text)
|
||||
self.assertIn("目的地:KUL", text)
|
||||
self.assertIn("航司:TH", text)
|
||||
self.assertIn("件数:800箱", text)
|
||||
self.assertIn("重量(KG):8300KG", text)
|
||||
self.assertIn("体积(CBM):39CBM", text)
|
||||
self.assertIn("计费重:8300KG", text)
|
||||
self.assertIn("货型:1:212", text)
|
||||
self.assertIn("报价日期:2026-10-09", text)
|
||||
self.assertIn("价格方案如下:", text)
|
||||
self.assertIn("空运费:单价CNY11/KG", text)
|
||||
self.assertIn("文件费:CNY300/票", text)
|
||||
self.assertIn("报关费:CNY250/票", text)
|
||||
self.assertIn("增点费:CNY 100.0", text)
|
||||
self.assertIn("备注:其他杂费如有实报实销,不含续页;续页50/票", text)
|
||||
self.assertIn("费用合计:CNY 87150.0", text)
|
||||
self.assertIn("报价有效期:2026-10-31", text)
|
||||
self.assertNotIn("询价字段", text)
|
||||
|
||||
def test_h5_page_lists_route_and_fees(self) -> None:
|
||||
from agent.channel.h5.air_route_page import render_air_route_page
|
||||
|
||||
Reference in New Issue
Block a user