| | |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange" |
| | | :scroll="{x:'max-content'}" |
| | | > |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleOpenApplySparePartsModal(record)">申请备件</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handleOpenRepairCompletedModal(record)">完成维修</a> |
| | | |
| | | <!--<a @click="handleEdit(record)">编辑</a>--> |
| | | |
| | | <!--<a-divider type="vertical"/>--> |
| | | <!--<a-dropdown>--> |
| | | <!--<a class="ant-dropdown-link">更多 <a-icon type="down"/></a>--> |
| | | <!--<a-menu slot="overlay">--> |
| | | <!--<a-menu-item>--> |
| | | <!--<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">--> |
| | | <!--<a>删除</a>--> |
| | | <!--</a-popconfirm>--> |
| | | <!--</a-menu-item>--> |
| | | <!--</a-menu>--> |
| | | <!--</a-dropdown>--> |
| | | </span> |
| | | |
| | | </a-table> |
| | | /> |
| | | </div> |
| | | <!-- table区域-end --> |
| | | |
| | |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '维修负责人', |
| | | align: 'center', |
| | | dataIndex: 'repairer', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '维修开始时间', |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime', |
| | |
| | | title: '维修结果描述', |
| | | align: 'center', |
| | | dataIndex: 'repairDescription', |
| | | width: 300 |
| | | // width: 300 |
| | | }, |
| | | { |
| | | title: '维修图片', |
| | |
| | | dataIndex: 'imageFiles', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '维修负责人', |
| | | align: 'center', |
| | | dataIndex: 'repairer' |
| | | }, |
| | | |
| | | // { |
| | | // title: '是否委外', |
| | | // align: 'center', |
| | |
| | | return |
| | | } |
| | | this.initDictData('report_repair_status') |
| | | const operationColumn = { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | // const operationColumn = { |
| | | // title: '操作', |
| | | // dataIndex: 'action', |
| | | // align: 'center', |
| | | // scopedSlots: { customRender: 'action' } |
| | | // } |
| | | // this.columns = [...this.columns, operationColumn] |
| | | this.loadData(1) |
| | | }, |
| | | methods: { |
| | |
| | | // 开启领取故障保修单弹窗 |
| | | handleOpenReceiveFaultModal() { |
| | | this.$refs.receiveFaultModalRef.visible = true |
| | | this.$refs.receiveFaultModalRef.loadData() |
| | | }, |
| | | |
| | | /** |
| | | * 开启申请备件弹窗 |
| | | * @param record 表格行信息 |
| | | */ |
| | | handleOpenApplySparePartsModal(record) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 开启完成维修弹窗 |
| | | * @param record 表格行信息 |
| | | */ |
| | | handleOpenRepairCompletedModal(record) { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |