| | |
| | | <a-table :columns="columns" rowKey="id" :dataSource="dataSource.records?dataSource.records:[]" |
| | | :loading="tableLoading" |
| | | :pagination="false" :scroll="{x:'max-content',y:scrollY}" bordered> |
| | | <template slot="equipmentModel" slot-scope="text, record"> |
| | | <editable-cell :text="text" @change="onCellChange(record.id, 'equipmentModel', $event)"/> |
| | | </template> |
| | | <!--<template slot="equipmentModel" slot-scope="text, record">--> |
| | | <!--<editable-cell :text="text" @change="onCellChange(record.id, 'equipmentModel', $event)"/>--> |
| | | <!--</template>--> |
| | | </a-table> |
| | | </div> |
| | | <!--<div class="pagination">--> |
| | |
| | | import { ajaxGetDictItems, getDictItemsFromCache, duplicateCheck } from '@/api/api' |
| | | import api from '@api/mdc' |
| | | |
| | | import EditableCell from './EditableCell.vue' |
| | | // import EditableCell from './EditableCell.vue' |
| | | |
| | | export default { |
| | | name: 'OEEAnalysisList', |
| | | components: { EditableCell }, |
| | | components: { }, |
| | | data() { |
| | | return { |
| | | dates: [moment().subtract('month', 1), moment().subtract('month', 1)], |
| | |
| | | title: '序号', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 70, |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | |
| | | title: '车间', |
| | | align: 'center', |
| | | dataIndex: 'productionName', |
| | | width: 200 |
| | | width: 110 |
| | | }, |
| | | { |
| | | title: '设备统一编号', |
| | | title: '设备编号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId', |
| | | width: 120 |
| | |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | width: 200, |
| | | width: 120, |
| | | dataIndex: 'equipmentName' |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | align: 'center', |
| | | width: 200, |
| | | width: 120, |
| | | dataIndex: 'equipmentModel', |
| | | scopedSlots: { customRender: 'equipmentModel' } |
| | | }, |
| | |
| | | { |
| | | title: '班次', |
| | | align: 'center', |
| | | width: 300, |
| | | width: 100, |
| | | dataIndex: 'shift' |
| | | }, |
| | | { |
| | | title: '每班小时', |
| | | dataIndex: 'shiftTimeCount', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '加班时间(分钟)', |
| | | dataIndex: 'overtime', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '实际班产天数', |
| | | dataIndex: 'actualWorkDayCount', |
| | | align: 'center', |
| | | width: 120 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '月度实际班产总时间(分钟)', |
| | | dataIndex: 'monthActualWorkDayTimeCount', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '非计划停机损失(分钟)(一个月)', |
| | |
| | | title: '计划等任务', |
| | | dataIndex: 'plannedTaskDuration', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '检验', |
| | |
| | | title: '会议/培训', |
| | | dataIndex: 'conferenceTrainingDuration', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '其他休息等', |
| | | dataIndex: 'otherRestDuration', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }] |
| | | }, |
| | | { |
| | | title: '负荷时间(小时)', |
| | | dataIndex: 'loadTime', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '时间开动率', |
| | | dataIndex: 'timeActuationRate', |
| | | align: 'center', |
| | | width: 110, |
| | | width: 100, |
| | | customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 |
| | | }, |
| | | { |
| | | title: '加工零件数(件)', |
| | | dataIndex: 'processQuantity', |
| | | align: 'center', |
| | | width: 120 |
| | | }, |
| | | { |
| | | title: '标准加工时间(分钟)', |
| | | dataIndex: 'standardProcessDuration', |
| | | align: 'center', |
| | | width: 120 |
| | | }, |
| | | // { |
| | | // title: '加工零件数(件)', |
| | | // dataIndex: 'processQuantity', |
| | | // align: 'center', |
| | | // width: 120 |
| | | // }, |
| | | // { |
| | | // title: '标准加工时间(分钟)', |
| | | // dataIndex: 'standardProcessDuration', |
| | | // align: 'center', |
| | | // width: 120 |
| | | // }, |
| | | { |
| | | title: '性能开动率', |
| | | dataIndex: 'performanceRate', |
| | | align: 'center', |
| | | width: 110, |
| | | width: 100, |
| | | customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 |
| | | }, |
| | | { |
| | |
| | | title: '设备综合效率', |
| | | dataIndex: 'overallEquipmentEfficiency', |
| | | align: 'center', |
| | | width: 120, |
| | | width: 100, |
| | | customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 |
| | | } |
| | | ], |