diff --git a/src/api/plan/whiteOrder.js b/src/api/plan/whiteOrder.js
index 37135cc..1c4d0bb 100644
--- a/src/api/plan/whiteOrder.js
+++ b/src/api/plan/whiteOrder.js
@@ -62,3 +62,12 @@ export function syncSAPbp() {
data: data
});
}
+
+// 查询设备小时产量
+export function getHourProductionList(query) {
+ return request({
+ url: '/mes/reportWork/getHourProductionList',
+ method: 'get',
+ params: query
+ });
+}
diff --git a/src/assets/board/cs3/bg.jpg b/src/assets/board/cs3/bg.jpg
index 527d30c..56b4653 100644
Binary files a/src/assets/board/cs3/bg.jpg and b/src/assets/board/cs3/bg.jpg differ
diff --git a/src/assets/board/cs3/bg1.jpg b/src/assets/board/cs3/bg1.jpg
new file mode 100644
index 0000000..527d30c
Binary files /dev/null and b/src/assets/board/cs3/bg1.jpg differ
diff --git a/src/views/cs/index2.vue b/src/views/cs/index2.vue
index cd41368..14d0f05 100644
--- a/src/views/cs/index2.vue
+++ b/src/views/cs/index2.vue
@@ -83,10 +83,10 @@
生产中
-
{{ i.equName }}
-
设备产量: {{ i.quantity }}
+
{{ (i||{}).equName }}
+
设备产量: {{ (i||{}).quantity }}
设备状态: {{
- parseFloat(i.quantity) > 0 ? '运行' : '停机'
+ parseFloat((i||{}).quantity) > 0 ? '运行' : '停机'
}}
@@ -96,10 +96,10 @@
:style="`top: ${equipmentLocation[k].top}%;left: ${equipmentLocation[k].left}%;`">
-
{{ i.equName }}
-
设备产量: {{ i.quantity }}
+
{{ (i||{}).equName }}
+
设备产量: {{ (i||{}).quantity }}
设备状态: {{
- parseFloat(i.quantity) > 0 ? '运行' : '停机'
+ parseFloat((i||{}).quantity) > 0 ? '运行' : '停机'
}}
@@ -108,7 +108,7 @@
v-for="(i,k) in ringLocation">
-
@@ -350,6 +350,8 @@ export default {
},
getData() {
+
+
let time = parseTime(new Date(), '{h}-{i}').split('-')
let i = parseFloat(time[0]) || 0
let s = parseFloat(time [1]) || 0
@@ -382,6 +384,8 @@ export default {
}
this.hfData = hfArr
this.equipmentData = equipmentArr
+ console.log(this.hfData)
+ console.log(this.equipmentData)
})
}
},
diff --git a/src/views/cs/index3.vue b/src/views/cs/index3.vue
index 2d17b18..590ecad 100644
--- a/src/views/cs/index3.vue
+++ b/src/views/cs/index3.vue
@@ -4,20 +4,21 @@
烘房状态
设备运行数据
烘房白坯质量统计
- 近7天产量
+
+ 烘房耗电量
计划达成率
- 成型机产量:
- 烘房产量:
- 烘房耗电量:
- AGV开动数量:
- 车
- 车
- KWh
- 台
- {{ 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 }}
+
+
+
+
+
+
+
+
+
+
+
+
计划生产数量:
实际生产数量:
车
@@ -83,6 +84,7 @@
+