From 5e9f38f4b1807f862d11a4979efac672724fd5ef Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期三, 11 十一月 2026 20:08:01 +0800
Subject: [PATCH] feat(补贴审核): 新增补贴材料读取与OCR识别组件

---
 tools/enterprise_track_point_inspection.py |   97 +++++++++++++++++++++++++++---------------------
 1 files changed, 55 insertions(+), 42 deletions(-)

diff --git a/tools/enterprise_track_point_inspection.py b/tools/enterprise_track_point_inspection.py
index 7654e93..9237eba 100644
--- a/tools/enterprise_track_point_inspection.py
+++ b/tools/enterprise_track_point_inspection.py
@@ -53,12 +53,12 @@
 SELECTED_VEHICLES: Tuple[VehicleSpec, ...] = (
     VehicleSpec(
         "anxin",
-        "\u9102L1N523",
+        "\u9102L1N275",
         "\u54b8\u5b81/\u5b89\u6b23",
         (
             Endpoint("\u54b8\u5b81", ("\u54b8\u5b81",)),
+            Endpoint("\u8d64\u58c1", ("\u8d64\u58c1",)),
             Endpoint("\u5929\u6d25", ("\u5929\u6d25",)),
-            Endpoint("\u5d07\u9633", ("\u5d07\u9633",)),
         ),
     ),
     VehicleSpec(
@@ -72,12 +72,6 @@
         ),
     ),
     VehicleSpec(
-        "datong",
-        "\u9102J20052D",
-        "\u9ec4\u5188/\u5927\u901a",
-        (Endpoint("\u6d60\u6c34", ("\u6d60\u6c34",)),),
-    ),
-    VehicleSpec(
         "huinong",
         "\u9102LH832D",
         "\u54b8\u5b81/\u60e0\u4fac",
@@ -88,27 +82,34 @@
     ),
     VehicleSpec(
         "luchang",
-        "\u9102L53508",
+        "\u9102L53789",
         "\u54b8\u5b81/\u8def\u7545\u901a",
         (
             Endpoint("\u901a\u57ce", ("\u901a\u57ce",)),
-            Endpoint("\u9ec4\u9f99", ("\u9ec4\u9f99",), False),
+            Endpoint("\u5d07\u9633", ("\u5d07\u9633",)),
         ),
     ),
     VehicleSpec(
+        "datong",
+        "\u9102J20052D",
+        "\u9ec4\u5188/\u5927\u901a",
+        (Endpoint("\u6d60\u6c34", ("\u6d60\u6c34",)),),
+    ),
+    VehicleSpec(
+        "kaiying",
+        "\u9102J0E858",
+        "\u9ec4\u5188/\u51ef\u8d62",
+        (Endpoint("\u77f3\u9996", ("\u77f3\u9996",)),),
+        ("\u5b89\u9053\u9ea6", "\u6e56\u5317\u777f\u52e4", "\u6e56\u5317\u5229\u62d3"),
+    ),
+    VehicleSpec(
         "guangfa",
-        "\u9102J50898",
+        "\u9102J59918",
         "\u9ec4\u5188/\u5e7f\u53d1",
         (
             Endpoint("\u9ec4\u6885", ("\u9ec4\u6885",)),
             Endpoint("\u4e49\u4e4c", ("\u4e49\u4e4c",)),
         ),
-    ),
-    VehicleSpec(
-        "kaiying",
-        "\u9102J0C916",
-        "\u9ec4\u5188/\u51ef\u8d62",
-        unresolved_route_terms=("\u5b89\u9053\u9ea6", "\u946b\u745e\u666f"),
     ),
     VehicleSpec(
         "xindafei",
@@ -120,40 +121,47 @@
         ),
     ),
     VehicleSpec(
-        "shengda",
-        "\u9102E19507",
-        "\u5b9c\u660c/\u665f\u8fbe",
-        (
-            Endpoint("\u5408\u80a5", ("\u5408\u80a5",)),
-            Endpoint("\u6b66\u6c49", ("\u6b66\u6c49",)),
-            Endpoint("\u5b9c\u660c", ("\u5b9c\u660c",)),
-        ),
-        ("\u5174\u798f\u7535\u5b50", "\u8054\u4ed5(\u6e56\u5317)\u65b0\u6750\u6599"),
-    ),
-    VehicleSpec(
-        "heyun",
-        "\u9102E69878",
-        "\u5b9c\u660c/\u8a38\u8fd0",
-        (
-            Endpoint("\u679d\u6c5f", ("\u679d\u6c5f",)),
-            Endpoint("\u5949\u8282", ("\u5949\u8282",)),
-        ),
-    ),
-    VehicleSpec(
         "kaixiangda",
-        "\u9102E68056",
+        "\u9102E32721",
         "\u5b9c\u660c/\u51ef\u7965\u8fbe",
         (
+            Endpoint("\u679d\u6c5f", ("\u679d\u6c5f",)),
             Endpoint("\u7307\u4ead", ("\u7307\u4ead",)),
-            Endpoint("\u5317\u6d77", ("\u5317\u6d77",)),
-            Endpoint("\u6d59\u6c5f", ("\u6d59\u6c5f", "\u5609\u5174")),
+            Endpoint("\u5b9c\u90fd", ("\u5b9c\u90fd",)),
+            Endpoint("\u4e0a\u6d77", ("\u4e0a\u6d77",)),
+            Endpoint("\u957f\u9633", ("\u957f\u9633",)),
+            Endpoint("\u677e\u6ecb", ("\u677e\u6ecb",)),
+        ),
+    ),
+    VehicleSpec(
+        "shengda",
+        "\u9102E56628",
+        "\u5b9c\u660c/\u665f\u8fbe",
+        (
+            Endpoint("\u6b66\u6c49", ("\u6b66\u6c49",)),
+            Endpoint("\u5b9c\u660c", ("\u5b9c\u660c",)),
         ),
     ),
     VehicleSpec(
         "minkun",
-        "\u9102E36292",
+        "\u9102E59371",
         "\u5b9c\u660c/\u6c11\u5764",
-        unresolved_route_terms=("\u5408\u76ca\u8def", "\u5927\u6811\u6e7e"),
+        (Endpoint("\u5b9c\u660c", ("\u5b9c\u660c",)),),
+        ("\u845b\u6d32\u575d", "\u5357\u7ad9\u8def"),
+    ),
+    VehicleSpec(
+        "heyun",
+        "\u9102E99730",
+        "\u5b9c\u660c/\u8a38\u8fd0",
+        (
+            Endpoint("\u679d\u6c5f", ("\u679d\u6c5f",)),
+            Endpoint("\u7307\u4ead", ("\u7307\u4ead",)),
+            Endpoint("\u5b9c\u90fd", ("\u5b9c\u90fd",)),
+            Endpoint("\u5e38\u5fb7", ("\u5e38\u5fb7",)),
+            Endpoint("\u8944\u9633", ("\u8944\u9633",)),
+            Endpoint("\u5546\u6d1b", ("\u5546\u6d1b",)),
+            Endpoint("\u9547\u5b89", ("\u9547\u5b89",)),
+        ),
     ),
 )
 
@@ -649,6 +657,11 @@
             "abnormal_mileage": selected_track["abnormal_mileage"],
             "anomaly_rate": selected_track["anomaly_rate"],
             "days": len(selected_track["days"]),
+            "daily_record_days": len(selected_track["days"]),
+            "positive_mileage_days": len({
+                row.track_date for row in selected_track["daily_rows"]
+                if row.track_date and row.total_mileage > 0
+            }),
         },
         "points": {
             "file_count": len(files),

--
Gitblit v1.9.1