diff --git a/src/api/report/reportAPI.js b/src/api/report/reportAPI.js
index 2032385..a11cdb1 100644
--- a/src/api/report/reportAPI.js
+++ b/src/api/report/reportAPI.js
@@ -226,10 +226,10 @@ export function repairHoursStatList(query) {
})
}
-// 设备 OEE 分析报表
+// 设备 OEE 分析报表 (注塑车间计算版本)
export function deviceOeeAnalysisList(query) {
return request({
- url: '/report/dmsReport/deviceOeeAnalysis',
+ url: '/report/injectionOee/deviceOeeAnalysis',
method: 'get',
params: query
})
diff --git a/src/views/report/deviceOeeAnalysis/index.vue b/src/views/report/deviceOeeAnalysis/index.vue
index e1d32ef..38cc8a3 100644
--- a/src/views/report/deviceOeeAnalysis/index.vue
+++ b/src/views/report/deviceOeeAnalysis/index.vue
@@ -1,6 +1,6 @@
-
+
+
+
+
+
+
+
+
- 设备 OEE 对比
-
+ 设备 OEE 对比 (注塑车间班次计算版)
+
-
-
-
-
+
+
+
+
+
+
{{ formatPercent(scope.row.AVAILABILITY) }}
-
+
- {{ formatPercent(scope.row.PERFORMANCE) }}
+ {{ formatPercent(scope.row.PERFORMANCE) }}
-
+
{{ formatPercent(scope.row.QUALITY) }}
-
+
- {{ formatPercent(scope.row.OEE) }}
+ {{ formatPercent(scope.row.OEE) }}
-
-
+
+
+ {{ (scope.row.ACTUAL_RUN_SECONDS / 60).toFixed(1) }} 分钟
+
+
+
+
+ {{ scope.row.PLANNED_TIME_MINUTES }} 分钟
+
+
+
+
+
+
+
+ {{ scope.row.STANDARD_CYCLE.toFixed(2) }} 秒
+
+
+
@@ -78,7 +104,8 @@ export default {
queryParams: {
deviceCode: null,
beginTime: null,
- endTime: null
+ endTime: null,
+ shiftType: 'ALL'
},
barChart: null
}
@@ -119,6 +146,7 @@ export default {
/** 重置按钮 */
resetQuery() {
this.queryParams.deviceCode = null
+ this.queryParams.shiftType = 'ALL'
const today = parseTime(new Date(), '{y}-{m}-{d}')
this.daterangeBeginTime = [today, today]
this.handleQuery()
@@ -126,7 +154,11 @@ export default {
/** 初始化柱状图 */
initBarChart() {
if (!this.barChart) return
- const xData = (this.reportList || []).map(item => item.DEVICE_NAME || item.DEVICE_CODE)
+ // X轴标签包含设备名与班次
+ const xData = (this.reportList || []).map(item => {
+ const devName = item.DEVICE_NAME || item.DEVICE_CODE
+ return `${devName}\n(${item.SHIFT_NAME})`
+ })
const yData = (this.reportList || []).map(item => item.OEE || 0)
const option = {
tooltip: {
@@ -134,13 +166,19 @@ export default {
formatter: params => {
if (!params || !params.length) return ''
const p = params[0]
- return `${p.name}
OEE:${this.formatPercent(p.data)}`
+ const item = this.reportList[p.dataIndex]
+ if (!item) return `${p.name}
OEE:${this.formatPercent(p.data)}`
+ return `${item.DEVICE_NAME || item.DEVICE_CODE} (${item.SHIFT_DATE} ${item.SHIFT_NAME})
` +
+ `OEE:${this.formatPercent(item.OEE)}
` +
+ `└ 利用率(A):${this.formatPercent(item.AVAILABILITY)}
` +
+ `└ 性能(P):${this.formatPercent(item.PERFORMANCE)} (诊断值: ${this.formatPercent(item.DIAGNOSTIC_PERFORMANCE)})
` +
+ `└ 良品率(Q):${this.formatPercent(item.QUALITY)}`
}
},
grid: {
left: '3%',
right: '4%',
- bottom: '3%',
+ bottom: '10%',
containLabel: true
},
xAxis: {
@@ -148,7 +186,7 @@ export default {
data: xData,
axisLabel: {
interval: 0,
- rotate: 30
+ rotate: 20
}
},
yAxis: {