From 9bde4edeb7e807e00b126661d5b738a5986867c3 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期五, 28 十一月 2025 08:45:15 +0800
Subject: [PATCH] fix 绞线巡检 保存结构修正
---
src/components/product_card/index.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 48 insertions(+), 5 deletions(-)
diff --git a/src/components/product_card/index.vue b/src/components/product_card/index.vue
index 799875e..e6f64b6 100644
--- a/src/components/product_card/index.vue
+++ b/src/components/product_card/index.vue
@@ -2,12 +2,51 @@
<wd-card class="card_bg">
<template #title>
<view class="flex justify-between w-full">
- <text class="font-medium text-[#252525]">璁惧缂栧彿: {{ data.deviceModel }}</text>
+ <text class="font-medium text-[#252525]">璁惧缂栧彿: {{ data[map.deviceModel] }}</text>
<wd-tag color="#0D867F" bg-color="#E7F4EC">
- <text class="text-xs">{{ data.model }}</text>
+ <text class="text-xs">{{ data[map.model] }}</text>
</wd-tag>
</view>
</template>
+ <wd-row class="my-2" v-if="data[map.systemNo]">
+ <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.systemNo] }}</text>
+ </text>
+ </view>
+ </wd-col>
+ </wd-row>
+ <wd-row class="my-2" v-if="data.type === '鎷変笣' && data.poleModel">
+ <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.poleModel }}</text>
+ </text>
+ </view>
+ </wd-col>
+ </wd-row>
+ <wd-row class="my-2" v-if="data.type === '鎷変笣' && data.contractNo">
+ <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.contractNo }}</text>
+ </text>
+ </view>
+ </wd-col>
+ </wd-row>
<wd-row class="my-2">
<wd-col :span="12">
<view class="flex">
@@ -16,7 +55,7 @@
</view>
<text class="text-[#646874] mx-2">
鎬婚渶姹傛暟閲�:
- <text class="text-[#252525]">{{ data.totalAmount }}m</text>
+ <text class="text-[#252525]">{{ data[map.totalAmount] }}{{ data[map.unit] }}</text>
</text>
</view>
</wd-col>
@@ -29,7 +68,7 @@
</view>
<text class="text-[#646874] mx-2">
宸茬敓浜ф暟閲�:
- <text class="text-[#252525]">{{ data.amount }}m</text>
+ <text class="text-[#252525]">{{ data[map.amount] }}{{ data[map.unit] }}</text>
</text>
</view>
</wd-col>
@@ -40,7 +79,7 @@
</view>
<text class="text-[#646874] mx-2">
寰呮帓浜ф暟閲�:
- <text class="text-[#252525]">{{ data.unAmount }}m</text>
+ <text class="text-[#252525]">{{ data[map.unAmount] }}{{ data[map.unit] }}</text>
</text>
</view>
</wd-col>
@@ -54,6 +93,10 @@
type: Object,
default: () => {},
},
+ map: {
+ type: Object,
+ default: () => {},
+ },
});
</script>
--
Gitblit v1.9.3