| | |
| | | <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)], |
| | |
| | | width: 110, |
| | | 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', |