空运未填报价日期时不默认当天,查出舱位后由销售点选再写回日期。

包装类型里的托盘不再被抄进增值服务。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-13 18:35:52 +08:00
co-authored by Cursor
parent dda210c219
commit 7ef4a1b1cf
21 changed files with 1068 additions and 58 deletions
+8 -3
View File
@@ -140,11 +140,16 @@ class AirTextInquiryTests(unittest.TestCase):
),
)
def test_quote_date_defaults_today_not_in_missing(self) -> None:
def test_air_quote_date_stays_blank_and_not_in_missing(self) -> None:
"""空运没说报价日期不填当天,也不拿来补问。海运、陆运仍默认当天。"""
result = validate_required_fields(facts=COMPLETE_AIR, business_line="AIR")
self.assertTrue(result["ok"])
self.assertTrue(result["facts"]["报价日期"])
self.assertFalse(result["facts"].get("报价日期"))
self.assertNotIn("报价日期", result["missing"])
sea = validate_required_fields(facts={"起运港": "上海"}, business_line="SEA")
self.assertTrue(sea["facts"].get("报价日期"))
land = validate_required_fields(facts={"运输类型": "国内整车"}, business_line="LAND")
self.assertTrue(land["facts"].get("报价日期"))
def test_fly_is_air_and_followup_keeps_mode(self) -> None:
phase = self._on_text(
@@ -284,7 +289,7 @@ class AirTextInquiryTests(unittest.TestCase):
self.assertIn("目的地", last)
self.assertIn("件数", last)
self.assertIn("如:", last)
self.assertIn("报价日期:", last)
self.assertIn("报价日期(非必填):", last)
self.assertNotIn("报价日期:(如", last)
def test_clarify_paste_reply_fills_missing_required(self) -> None: