| | |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="报修编号"> |
| | | <a-input placeholder="请输入报修编号" v-model="queryParam.reportId"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="设备编号"> |
| | | <lx-search-equipment-select placeholder="请输入设备编号或名称搜索" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | |
| | | <div class="table-operator"> |
| | | <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> |
| | | </a-upload> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '工单编号', |
| | | align: 'center', |
| | | dataIndex: 'repairCode', |
| | | width: 200, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '报修编号', |
| | | align: 'center', |
| | | dataIndex: 'reportId', |
| | | width: 200, |
| | | fixed: 'left' |
| | | }, |
| | | // { |
| | | // title: '报修编号', |
| | | // align: 'center', |
| | | // dataIndex: 'reportId', |
| | | // width: 200, |
| | | // fixed: 'left' |
| | | // }, |
| | | { |
| | | title: '设备编号', |
| | | align: 'center', |
| | |
| | | { |
| | | title: '状态', |
| | | align: 'center', |
| | | dataIndex: 'repairStatus_dicText', |
| | | dataIndex: 'repairStatus_dictText', |
| | | fixed: 'left', |
| | | width: 100 |
| | | }, |
| | |
| | | dataIndex: 'repairer', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '是否委外', |
| | | align: 'center', |
| | | dataIndex: 'outsourcedFlag', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '委外维修描述', |
| | | align: 'center', |
| | | dataIndex: 'outsourcedRepairDecription', |
| | | width: 300 |
| | | }, |
| | | { |
| | | title: '委外维修开始时间', |
| | | align: 'center', |
| | | dataIndex: 'outsourcedStartTime', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '委外维修结束时间', |
| | | align: 'center', |
| | | dataIndex: 'outsourcedEndTime', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '委外负责人', |
| | | align: 'center', |
| | | dataIndex: 'outsourcedPerson', |
| | | width: 100 |
| | | }, |
| | | // { |
| | | // title: '是否委外', |
| | | // align: 'center', |
| | | // dataIndex: 'outsourcedFlag', |
| | | // width: 100 |
| | | // }, |
| | | // { |
| | | // title: '委外维修描述', |
| | | // align: 'center', |
| | | // dataIndex: 'outsourcedRepairDecription', |
| | | // width: 300 |
| | | // }, |
| | | // { |
| | | // title: '委外维修开始时间', |
| | | // align: 'center', |
| | | // dataIndex: 'outsourcedStartTime', |
| | | // width: 200 |
| | | // }, |
| | | // { |
| | | // title: '委外维修结束时间', |
| | | // align: 'center', |
| | | // dataIndex: 'outsourcedEndTime', |
| | | // width: 200 |
| | | // }, |
| | | // { |
| | | // title: '委外负责人', |
| | | // align: 'center', |
| | | // dataIndex: 'outsourcedPerson', |
| | | // width: 100 |
| | | // }, |
| | | { |
| | | title: '维修图片', |
| | | align: 'center', |
| | |
| | | delete: '/eam/eamRepairOrder/delete', |
| | | deleteBatch: '/eam/eamRepairOrder/deleteBatch', |
| | | exportXlsUrl: 'eam/eamRepairOrder/exportXls', |
| | | importExcelUrl: 'eam/eamRepairOrder/importExcel' |
| | | } |
| | | } |
| | | }, |
| | |
| | | <lx-search-equipment-select placeholder="请输入设备编号或名称搜索" v-model="model.equipmentId"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <!-- <a-col :span="12">--> |
| | | <!-- <a-form-model-item prop="repairStatus" label="维修状态">--> |
| | | <!-- <a-input placeholder="请输入维修状态" v-model="model.repairStatus"/>--> |
| | | <!-- </a-form-model-item>--> |
| | | <!-- </a-col>--> |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="faultReason" label="故障原因"> |
| | | <a-input placeholder="请输入故障原因" v-model="model.faultReason"/> |