| | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button @click="handleOpenReceiveFaultModal" type="primary" icon="plus">领取</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('维修工单')">导出</a-button> |
| | | <!--<a-button type="primary" icon="download" @click="handleExportXls('维修工单')">导出</a-button>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | |
| | | @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>--> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <!-- table区域-end --> |
| | | |
| | | <receive-fault-modal ref="receiveFaultModalRef" @ok="loadData"/> |
| | | |
| | | <repair-order-approval-modal ref="repairOrderApprovalModal" :selectShenpiData="selectRepairOrderData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import ReceiveFaultModal from './modules/EamRepairOrderList/ReceiveFaultModal' |
| | | import { ajaxGetDictItems, getDictItemsFromCache } from '@/api/api' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | import RepairOrderApprovalModal from '../../flowable/workflow/repairOrder/RepairOrderApprovalModal' |
| | | |
| | | export default { |
| | | name: 'EamRepairOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | RepairOrderApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | ReceiveFaultModal |
| | | }, |
| | | props:{ |
| | | isDisplayOperation:{ |
| | | type:Boolean, |
| | | default:true |
| | | props: { |
| | | isDisplayOperation: { |
| | | type: Boolean, |
| | | default: true |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '维修负责人', |
| | | align: 'center', |
| | | dataIndex: 'repairer', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '维修开始时间', |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime', |
| | |
| | | { |
| | | title: '故障原因', |
| | | align: 'center', |
| | | dataIndex: 'faultReason', |
| | | width: 150 |
| | | dataIndex: 'faultReason' |
| | | }, |
| | | { |
| | | title: '维修结果描述', |
| | | align: 'center', |
| | | dataIndex: 'repairDescription', |
| | | width: 300 |
| | | }, |
| | | { |
| | | title: '维修图片', |
| | | align: 'center', |
| | | dataIndex: 'imageFiles', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '维修负责人', |
| | | align: 'center', |
| | | dataIndex: 'repairer' |
| | | }, |
| | | dataIndex: 'repairDescription' |
| | | // width: 300 |
| | | } |
| | | // { |
| | | // title: '维修图片', |
| | | // align: 'center', |
| | | // dataIndex: 'imageFiles', |
| | | // width: 100 |
| | | // }, |
| | | // { |
| | | // title: '是否委外', |
| | | // align: 'center', |
| | |
| | | // }, |
| | | ], |
| | | report_repair_status_list: [], |
| | | selectRepairOrderData: {}, |
| | | url: { |
| | | list: '/eam/eamRepairOrder/list', |
| | | delete: '/eam/eamRepairOrder/delete', |
| | |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | width: 100, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | |
| | | // 开启领取故障保修单弹窗 |
| | | handleOpenReceiveFaultModal() { |
| | | this.$refs.receiveFaultModalRef.visible = true |
| | | this.$refs.receiveFaultModalRef.loadData() |
| | | }, |
| | | |
| | | /** |
| | | * 开启申请备件弹窗 |
| | | * 点击详情触发 |
| | | * @param record 表格行信息 |
| | | */ |
| | | handleOpenApplySparePartsModal(record) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 开启完成维修弹窗 |
| | | * @param record 表格行信息 |
| | | */ |
| | | handleOpenRepairCompletedModal(record) { |
| | | |
| | | handleDetail(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.title = '详情' |
| | | this.$refs.repairOrderApprovalModal.disableSubmit = true |
| | | this.$refs.repairOrderApprovalModal.getAllApproveData(record) |
| | | this.$refs.repairOrderApprovalModal.getBasicInformation({ ...record, dataId: record.id }) |
| | | } |
| | | } |
| | | } |