From ef96d4ff183be8cd8708eac95cb9de2a2505d0bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com>
Date: Tue, 5 Nov 2024 09:49:38 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BD=E5=9D=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/cs/index3.vue | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/views/cs/index3.vue b/src/views/cs/index3.vue
index fd32a29..6077f38 100644
--- a/src/views/cs/index3.vue
+++ b/src/views/cs/index3.vue
@@ -14,16 +14,16 @@
车
KWh
台
- {{ CData.length }}
- {{ HData.length }}
+ {{ CData.map(e=>parseFloat(e.quantity)||0).reduce((a,b)=>a+b,0) }}
+ {{ HData.map(e=>parseFloat(e.quantity)||0).reduce((a,b)=>a+b,0) }}
{{ expend }}
{{ agvData.length }}
计划生产数量:
实际生产数量:
车
车
- {{ proData.totalRecordCount }}
- {{ proData.sumChe }}
+ {{ proData.sumChe }}
+ {{ proData.totalRecordCount }}
{{ percent }}
计划达成率
@@ -71,11 +71,11 @@
- {{ item.dollyNumber }}
+ {{ item.Intheoven }}
- {{ item.expend }}KWh
+ {{ (item.expend/item.yield).toFixed(2) }}KWh
@@ -145,7 +145,8 @@ export default {
this.expend = e.map(v => v.expend).reduce((a, b) => a + b, 0).toFixed(2)
})
agvdata().then(e => {
- this.agvData = e.Data
+ console.log(e)
+ this.agvData = e.Data.filter(v=>v.State===1)
})
PlanAchievementRate().then(e => {
this.proData = e.data
@@ -253,7 +254,6 @@ export default {
this.$refs.chart1.setData(option)
})
getHourProductionLists().then(e => {
- console.log(e)
let option1 = {
grid: {
top: '15%',
@@ -323,6 +323,12 @@ export default {
],
series: [
{
+ label: {
+ show: true,
+ position: 'top',
+ formatter: "{c}",
+ color: "#fff"
+ },
name: '产量',
type: 'line',
smooth: true, //平滑曲线显示