From cec90cabf08a88af47cbdf0c40e18f7fdb71e7cf Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 24 Aug 2022 14:18:38 +0800
Subject: [PATCH] 优化数据显示,超过10000保留两位
---
src/views/farmplant/process.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/farmplant/process.vue b/src/views/farmplant/process.vue
index 10a53ba..892c734 100644
--- a/src/views/farmplant/process.vue
+++ b/src/views/farmplant/process.vue
@@ -28,7 +28,7 @@
<div class="cai">{{ item.processName }}</div>
<div class="area">
库存量:
- <span>{{ item.productInventoryNum }}</span>公斤
+ <span>{{ item.productInventoryNum>10000?(item.productInventoryNum/10000).toFixed(2)+"万":item.productInventoryNum }}</span>公斤
</div>
<div class="area">
原材料:
@@ -985,7 +985,7 @@
.farm {
width: 168px;
- height: 240px;
+ height: 300px;
/*height: 315px;*/
background-color: #f7f9fb;
border-radius: 5px;
--
Gitblit v1.9.3