| | |
| | | |
| | | <a-divider v-if="record.maintenanceStatus === 'ABOLISH'" type="vertical"/> |
| | | |
| | | <a-popconfirm v-if="record.maintenanceStatus === 'ABOLISH'" title="确定还原吗?" @confirm="() => handlerRestore(record.id)"> |
| | | <a-popconfirm v-if="record.maintenanceStatus === 'ABOLISH'" title="确定还原吗?" |
| | | @confirm="() => handlerRestore(record.id)"> |
| | | <a>还原</a> |
| | | </a-popconfirm> |
| | | |
| | |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '保养状态', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceStatus_dictText', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '工单号', |
| | | align: 'center', |
| | | dataIndex: 'orderNum' |
| | |
| | | title: '维修工', |
| | | align: 'center', |
| | | dataIndex: 'repairman_dictText' |
| | | }, |
| | | { |
| | | title: '保养状态', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceStatus_dictText' |
| | | }, |
| | | { |
| | | title: '创建方式', |
| | |
| | | list: '/eam/secondMaintenanceOrder/list', |
| | | abolish: '/eam/secondMaintenanceOrder/abolish', |
| | | collect: '/eam/secondMaintenanceOrder/collect', |
| | | restore:'/eam/secondMaintenanceOrder/restore', |
| | | restore: '/eam/secondMaintenanceOrder/restore', |
| | | abolishBatch: '/eam/secondMaintenanceOrder/abolishBatch', |
| | | collectBatch: '/eam/secondMaintenanceOrder/collectBatch', |
| | | restoreBatch: '/eam/secondMaintenanceOrder/restoreBatch', |
| | | restoreBatch: '/eam/secondMaintenanceOrder/restoreBatch' |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.$refs.secondMaintenanceApprovalModal.title = '详情' |
| | | this.$refs.secondMaintenanceApprovalModal.visible = true |
| | | this.$refs.secondMaintenanceApprovalModal.disableSubmit = true |
| | | this.$refs.secondMaintenanceApprovalModal.recordDetail(record) |
| | | this.$refs.secondMaintenanceApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | /** |
| | |
| | | }) |
| | | }, |
| | | //还原 |
| | | handlerRestore(id){ |
| | | handlerRestore(id) { |
| | | let that = this |
| | | this.loading = true |
| | | getAction(that.url.restore, { id }) |
| | |
| | | }) |
| | | }, |
| | | //批量还原 |
| | | handlerBatchRestore(){ |
| | | handlerBatchRestore() { |
| | | if (!this.url.restoreBatch) { |
| | | this.$message.error('请设置url.restoreBatch属性!') |
| | | return |