From 6e763136fdf4469143ebbae0b717eb8e9b0ca954 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 03 十一月 2025 17:32:35 +0800
Subject: [PATCH] fix: 完成巡查

---
 src/pages/routingInspection/product_card/index.vue |   59 +++++++++++++----------------------------------------------
 1 files changed, 13 insertions(+), 46 deletions(-)

diff --git a/src/pages/routingInspection/product_card/index.vue b/src/pages/routingInspection/product_card/index.vue
index 9316cbc..dd95bd5 100644
--- a/src/pages/routingInspection/product_card/index.vue
+++ b/src/pages/routingInspection/product_card/index.vue
@@ -2,25 +2,12 @@
   <wd-card class="card_bg" @click="handleCardClick">
     <template #title>
       <view class="flex justify-between w-full">
-        <text class="font-medium text-[#252525]">鏈哄彴: {{ data[map.deviceModel] }}</text>
+        <text class="font-medium text-[#252525]">璁板綍浣嶇疆: {{ data[map.recordPosition] }}</text>
         <wd-tag color="#0D867F" bg-color="#E7F4EC">
           <text class="text-xs">{{ data[map.model] }}</text>
         </wd-tag>
       </view>
     </template>
-    <wd-row class="my-2">
-      <wd-col :span="24">
-        <view class="flex">
-          <view class="icon_box">
-            <wd-icon name="folder" color="#0D867F"></wd-icon>
-          </view>
-          <text class="text-[#646874] mx-2">
-            棣栨鍗曞彿:
-            <text class="text-[#252525]">{{ data[map.firstNo] }}</text>
-          </text>
-        </view>
-      </wd-col>
-    </wd-row>
     <wd-row class="my-2">
       <wd-col :span="24">
         <view class="flex">
@@ -42,44 +29,22 @@
           </view>
           <text class="text-[#646874] mx-2">
             鐝粍:
-            <text class="text-[#252525]">{{ data[map.teamName] }}</text>
+            <text class="text-[#252525]">
+              {{ data[map.teamName]?.slice(-2) || data[map.teamName] }}
+            </text>
           </text>
         </view>
       </wd-col>
     </wd-row>
-    <wd-row class="my-2">
+    <wd-row class="my-2" v-if="data[map.productType]">
       <wd-col :span="24">
         <view class="flex">
           <view class="icon_box">
             <wd-icon name="folder" color="#0D867F"></wd-icon>
           </view>
           <text class="text-[#646874] mx-2">
-            棰嗙敤鏉嗗彿:
-            <text class="text-[#252525]">{{ data[map.poleNumber] }}</text>
-          </text>
-        </view>
-      </wd-col>
-    </wd-row>
-    <wd-col :span="12">
-      <view class="flex">
-        <view class="icon_box">
-          <wd-icon name="folder" color="#0D867F"></wd-icon>
-        </view>
-        <text class="text-[#646874] mx-2">
-          鏉嗗瀷鍙�:
-          <text class="text-[#252525]">{{ data[map.poleModel] }}</text>
-        </text>
-      </view>
-    </wd-col>
-    <wd-row class="my-2">
-      <wd-col :span="12">
-        <view class="flex">
-          <view class="icon_box">
-            <wd-icon name="folder" color="#0D867F"></wd-icon>
-          </view>
-          <text class="text-[#646874] mx-2">
-            鐢熶骇杞存暟:
-            <text class="text-[#252525]">{{ data[map.outputNumber] }}</text>
+            浜у搧绫诲埆:
+            <text class="text-[#252525]">{{ data[map.productType] }}</text>
           </text>
         </view>
       </wd-col>
@@ -121,12 +86,12 @@
         </view>
       </wd-col>
       <wd-col :span="8">
-        <view class="flex">
+        <view class="flex" @click.stop>
           <wd-button
             v-if="data[map.status] == 1"
             size="small"
             type="primary"
-            @click.stop="showRejectPopup = true"
+            @click="showRejectPopup = true"
             style="margin-left: auto"
           >
             鏌ョ湅椹冲洖淇℃伅
@@ -216,7 +181,9 @@
 .page-class {
   :deep() {
     .custom-shadow {
-      box-shadow: 0 3px 1px -2px rgb(0 0 0 / 20%), 0 2px 2px 0 rgb(0 0 0 / 14%),
+      box-shadow:
+        0 3px 1px -2px rgb(0 0 0 / 20%),
+        0 2px 2px 0 rgb(0 0 0 / 14%),
         0 1px 5px 0 rgb(0 0 0 / 12%);
     }
   }
@@ -232,4 +199,4 @@
 .content {
   padding: 5px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3