From a9561a3189d50f0e33d693b5226ea56adda06a08 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 30 十月 2025 23:07:25 +0800
Subject: [PATCH] 巡检编辑和扫码

---
 src/pages/routingInspection/index.vue |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/pages/routingInspection/index.vue b/src/pages/routingInspection/index.vue
index 4e9a33a..7979244 100644
--- a/src/pages/routingInspection/index.vue
+++ b/src/pages/routingInspection/index.vue
@@ -10,17 +10,14 @@
         </view>
       </wd-col>
     </wd-row>
-    <wd-tabs v-model="tab" auto-line-width slidable="always" map-num>
-      <wd-tab 
-        v-for="(item, index) in patrolList" 
+    <wd-tabs v-model="tab" auto-line-width slidable="always" :map-num="patrolList.length">
+      <wd-tab
+        v-for="(item, index) in patrolList"
         :key="index"
         :title="`${item.deviceModel}锛堝緟妫�鏌�${item.pendingNum}鏉★級`"
         class="tab_bg"
       >
-        <ProductList
-          :api="RoutingInspectionApi.getInspectListByPatrol"
-          :ProList="item"
-        />
+        <ProductList :api="RoutingInspectionApi.getInspectListByPatrol" :ProList="item" />
       </wd-tab>
     </wd-tabs>
     <Scan ref="scanRef" emitName="scan" />
@@ -42,8 +39,7 @@
 const userInfo: any = computed(() => userStore.userInfo);
 const toast = useToast();
 const tab = ref<number>(0);
-const patrolList = ref<any[]>([]);// 宸℃璁惧鍒楄〃鏁版嵁
-
+const patrolList = ref<any[]>([]); // 宸℃璁惧鍒楄〃鏁版嵁
 
 const handlePatrolData = (index: number, count: number) => {
   // 鍙互鍦ㄨ繖閲屾洿鏂扮壒瀹氬贰妫�璁惧鐨勫緟妫�鏌ユ暟閲�
@@ -74,9 +70,9 @@
         type: "宸℃",
         data: {
           total: 0,
-          records: []
-        }
-      }
+          records: [],
+        },
+      },
     };
   };
 };

--
Gitblit v1.9.3