From da649b8c712a4f6f60bc2ee2faafe1ff76c2a4e3 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期二, 29 七月 2025 10:47:48 +0800
Subject: [PATCH] 修改扫码问题
---
src/pages/production/components/ProductionCard.vue | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/pages/production/components/ProductionCard.vue b/src/pages/production/components/ProductionCard.vue
index b9e1236..d691c8c 100644
--- a/src/pages/production/components/ProductionCard.vue
+++ b/src/pages/production/components/ProductionCard.vue
@@ -4,7 +4,7 @@
<view class="flex justify-between w-full h-[20px]">
<view class="text-[#646874] pl-1">{{ item.label }}</view>
<view class="font-medium pr-1" :style="{ color: item.color ?? color }">
- {{ item.value }}
+ {{ value[item.prop] }} {{ value[item.unitProp] }} {{ item.unit }}
</view>
</view>
</wd-col>
@@ -19,9 +19,19 @@
return [];
},
},
+ value: {
+ type: Object,
+ default: () => {
+ return {};
+ },
+ },
color: {
type: String,
default: "#333333",
},
+ unit: {
+ type: String,
+ default: "",
+ },
});
</script>
--
Gitblit v1.9.3