| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="padding: 0 55px;margin-top: 10px"> |
| | | <div style="padding: 0 55px;margin-top : 10px"> |
| | | <dv-scroll-board :config="maintenanceConfig" style="width:100%;height:220px"/> |
| | | </div> |
| | | </dv-border-box-9> |
| | |
| | | planTime: '本月三保计划', |
| | | planValueLabel: 'thisMonthMaintenancePlanNum', |
| | | backgroundColor: '#719D8E', |
| | | apiUrl: '/eam/calibrationOrder/showThisMonthMaintenanceList' |
| | | code: 'bysbzs' |
| | | }, |
| | | { |
| | | planTime: '本月完成', |
| | | planValueLabel: 'thisMonthMaintenanceRealNum', |
| | | backgroundColor: '#409EFF', |
| | | apiUrl: '/eam/calibrationOrder/showThisMonthMaintenanceFinishList' |
| | | code: 'bwc' |
| | | }, |
| | | { |
| | | planTime: '下月三保计划', |
| | | planValueLabel: 'nextMonthMaintenancePlanNum', |
| | | backgroundColor: '#A8985D', |
| | | apiUrl: '/eam/calibrationOrder/showNextMonthMaintenanceList' |
| | | code: 'xysb' |
| | | }, |
| | | { |
| | | planTime: '下下月三保计划', |
| | | planValueLabel: 'nextNextMonthMaintenancePlanNum', |
| | | backgroundColor: '#58D9F9', |
| | | apiUrl: '/eam/calibrationOrder/showNextNextMonthMaintenanceList' |
| | | code: 'xxysb' |
| | | } |
| | | ], |
| | | thisMonthMaintenancePlanNum: 0, |
| | |
| | | getChartDataByApi() { |
| | | this.getRunningStateDataByApi() |
| | | this.getEfficiencyDataByApi() |
| | | // this.getTechConditionDataByApi() |
| | | // this.getWarrantyMalfunctionDataByApi() |
| | | this.getTechConditionAndWarrantyMalfunctionDataByApi() |
| | | this.getThirdMaintenanceConditionByApi() |
| | | this.getTwoMaintenanceChartDataByApi() |
| | |
| | | text: '数据加载中 ...', |
| | | color: '#0696e1', // 加载动画颜色 |
| | | textColor: 'rgba(0, 0, 0, .45)', |
| | | maskColor: 'rgba(0,0,0,.05)' // 遮罩层 |
| | | maskColor: 'transparent' // 遮罩层 |
| | | }) |
| | | signageApi.getEquipmentStatusStatisticsApi() |
| | | .then(res => { |
| | |
| | | text: '数据加载中 ...', |
| | | color: '#0696e1', // 加载动画颜色 |
| | | textColor: 'rgba(0, 0, 0, .45)', |
| | | maskColor: 'rgba(0,0,0,.05)' // 遮罩层 |
| | | maskColor: 'transparent' // 遮罩层 |
| | | }) |
| | | signageApi.getEquipmentUtilizationStatisticsApi() |
| | | .then(res => { |
| | |
| | | text: '数据加载中 ...', |
| | | color: '#0696e1', // 加载动画颜色 |
| | | textColor: 'rgba(0, 0, 0, .45)', |
| | | maskColor: 'rgba(0,0,0,.05)' // 遮罩层 |
| | | maskColor: 'transparent' // 遮罩层 |
| | | }) |
| | | this.warrantyMalfunctionChart.showLoading({ |
| | | text: '数据加载中 ...', |
| | | color: '#0696e1', // 加载动画颜色 |
| | | textColor: 'rgba(0, 0, 0, .45)', |
| | | maskColor: 'rgba(0,0,0,.05)' // 遮罩层 |
| | | maskColor: 'transparent' // 遮罩层 |
| | | }) |
| | | signageApi.getEquipmentTechnologyStatusAndReportRepairEquipmentListApi() |
| | | .then(res => { |
| | |
| | | } |
| | | ] |
| | | this.warrantyMalfunctionData = [ |
| | | { value: res.result.bxqk.find(item => item.code === 'bx').value, name: '报修', isStop: '' }, |
| | | { value: res.result.bxqk.find(item => item.code === 'stop').value, name: '停机', isStop: '2' }, |
| | | { value: res.result.bxqk.find(item => item.code === 'run').value, name: '运行', isStop: '1' } |
| | | { value: res.result.bxqk.find(item => item.code === 'bx').value, name: '报修', code: 'bx' }, |
| | | { value: res.result.bxqk.find(item => item.code === 'stop').value, name: '停机', code: 'stop' }, |
| | | { value: res.result.bxqk.find(item => item.code === 'run').value, name: '运行', code: 'run' } |
| | | ] |
| | | this.techConditionChartRequireFinished = true |
| | | this.warrantyMalfunctionChartRequireFinished = true |
| | |
| | | text: '数据加载中 ...', |
| | | color: '#0696e1', // 加载动画颜色 |
| | | textColor: 'rgba(0, 0, 0, .45)', |
| | | maskColor: 'rgba(0,0,0,.05)' // 遮罩层 |
| | | maskColor: 'transparent' // 遮罩层 |
| | | }) |
| | | signageApi.getEquipmentOEEStatistics() |
| | | .then(res => { |
| | |
| | | text: '数据加载中 ...', |
| | | color: '#0696e1', // 加载动画颜色 |
| | | textColor: 'rgba(0, 0, 0, .45)', |
| | | maskColor: 'rgba(0,0,0,.05)' // 遮罩层 |
| | | maskColor: 'transparent' // 遮罩层 |
| | | }) |
| | | signageApi.getEquipmentMonthStatisticsApi() |
| | | .then(res => { |
| | |
| | | this.techConditionChart.setOption(option, true) |
| | | this.techConditionChart.hideLoading() |
| | | |
| | | // this.techConditionChart.on('click', params => { |
| | | // this.modalTitle = `技术状态(${params.name})` |
| | | // this.modalDataApiParams = { |
| | | // technologyStatus: this.techConditionData.find(item => item.name === params.name).technologyStatus |
| | | // } |
| | | // this.modalDataApiUrl = '/eam/calibrationOrder/showEquipmentByTechnologyStatus' |
| | | // this.modalVisible = true |
| | | // }) |
| | | this.techConditionChart.on('click', params => { |
| | | this.modalTitle = `技术状态(${params.name})` |
| | | this.modalDataApiParams = { technologyStatus: this.techConditionData.find(item => item.name === params.name).technologyStatus } |
| | | this.modalDataApiUrl = '/eam/equipment/list' |
| | | this.modalVisible = true |
| | | }) |
| | | }, |
| | | |
| | | /* 绘制设备报修故障饼图 */ |
| | |
| | | this.warrantyMalfunctionChart.setOption(option, true) |
| | | this.warrantyMalfunctionChart.hideLoading() |
| | | |
| | | // this.warrantyMalfunctionChart.on('click', params => { |
| | | // this.modalTitle = `报修故障(${params.name})` |
| | | // this.modalDataApiParams = { |
| | | // isStop: this.warrantyMalfunctionData.find(item => item.name === params.name).isStop |
| | | // } |
| | | // this.modalDataApiUrl = '/eam/calibrationOrder/showEquipmentByReportRepair' |
| | | // this.modalVisible = true |
| | | // }) |
| | | this.warrantyMalfunctionChart.on('click', params => { |
| | | this.modalTitle = `报修故障(${params.name})` |
| | | this.modalDataApiParams = { code: this.warrantyMalfunctionData.find(item => item.name === params.name).code } |
| | | this.modalDataApiUrl = '/eam/home/repairList' |
| | | this.modalVisible = true |
| | | }) |
| | | }, |
| | | |
| | | /* 绘制车间保养滚动表 */ |
| | |
| | | * @param record 点击当前三保信息 |
| | | */ |
| | | openMaintenanceModal(record) { |
| | | // this.modalTitle = record.planTime |
| | | // this.modalDataApiUrl = record.apiUrl |
| | | // this.modalVisible = true |
| | | this.modalTitle = record.planTime |
| | | this.modalDataApiParams = { code: record.code } |
| | | this.modalDataApiUrl = '/eam/home/maintenanceList' |
| | | this.modalVisible = true |
| | | }, |
| | | |
| | | re_drawPieChart() { |