| | |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <!--<a-button type="primary" icon="download" @click="handleExportXls('故障报修')">导出</a-button>--> |
| | | <!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"--> |
| | | <!--@change="handleImportExcel">--> |
| | | <!--<a-button type="primary" icon="import">导入</a-button>--> |
| | | <!--@change="handleImportExcel">--> |
| | | <!--<a-button type="primary" icon="import">导入</a-button>--> |
| | | <!--</a-upload>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handleAssign(record)">指派</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handleDelete(record.id)"> |
| | | <a>作废</a> |
| | | </a-popconfirm> |
| | |
| | | @ok="modalFormOk"/> |
| | | <!-- 图片预览弹窗 --> |
| | | <images-preview-modal ref="imagesPreviewModalRef" :imageListUrl="currentImageListUrl"/> |
| | | <!--指派报修弹窗--> |
| | | <assign-repair-report-modal ref="assignRepairReportModalRef" @ok="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { ajaxGetDictItems, getDictItemsFromCache } from '@/api/api' |
| | | import ImagesPreviewModal from '@views/eam/repair/modules/ImagesPreviewModal.vue' |
| | | import { getAction } from '@/api/manage' |
| | | import AssignRepairReportModal from './modules/EamReportRepairList/AssignRepairReportModal' |
| | | |
| | | |
| | | export default { |
| | | name: 'EamReportRepairList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | AssignRepairReportModal, |
| | | ImagesPreviewModal, |
| | | LxSearchEquipmentSelect, |
| | | EamReportRepairModal |
| | |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | width: 150 |
| | | width: 200 |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | this.getFaultReasonListByApi() |
| | |
| | | this.$refs.imagesPreviewModalRef.visible = true |
| | | }, |
| | | |
| | | /** |
| | | * 指派报修单 |
| | | * @param record 表格行信息 |
| | | */ |
| | | handleAssign(record) { |
| | | this.$refs.assignRepairReportModalRef.visible = true |
| | | this.$refs.assignRepairReportModalRef.model = Object.assign({}, { id: record.id }) |
| | | }, |
| | | |
| | | getCheckboxProps(record) { |
| | | return { |
| | | props: { |