| | |
| | | <!--三保变更--> |
| | | <third-maintenance-order-change-approval-modal ref="thirdMaintenanceOrderChangeApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <!--真空热处理炉三保--> |
| | | <third-maintenance-furnace-approval-modal ref="thirdMaintenanceFurnaceApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <!--设备事故登记--> |
| | | <report-accidents-register-approval-modal ref="reportAccidentsRegisterApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import RepairOrderApprovalModal from './repairOrder/RepairOrderApprovalModal' |
| | | import MaintenanceStandardApprovalModal from './MaintenanceStandard/MaintenanceStandardApprovalModal' |
| | | import ThirdMaintenanceOrderChangeApprovalModal from './thirdMaintenance/ThirdMaintenanceOrderChangeApprovalModal' |
| | | import ThirdMaintenanceFurnaceApprovalModal from './thirdMaintenance/ThirdMaintenanceFurnaceApprovalModal' |
| | | import ReportAccidentsRegisterApprovalModal from './repairOrder/ReportAccidentsRegisterApprovalModal' |
| | | |
| | | export default { |
| | | name: 'FlowCompleted', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | ReportAccidentsRegisterApprovalModal, |
| | | ThirdMaintenanceFurnaceApprovalModal, |
| | | ThirdMaintenanceOrderChangeApprovalModal, |
| | | MaintenanceStandardApprovalModal, |
| | | RepairOrderApprovalModal, |
| | |
| | | case 'third_maintenance_change': |
| | | this.handleThirdMaintenanceOrderChange(record) |
| | | break |
| | | case 'third_maintenance_furnace_process': |
| | | this.handleThirdMaintenanceFurnace(record) |
| | | break |
| | | case 'eam_report_accidents_register': |
| | | this.handleAccidentsRegister(record) |
| | | break |
| | | default: |
| | | alert('没找到该流程') |
| | | } |
| | |
| | | handleThirdMaintenance(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceApprovalModal.title = record.name |
| | | this.$refs.thirdMaintenanceApprovalModal.title = record.taskName |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(record) |
| | | this.$refs.thirdMaintenanceApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | /** |
| | |
| | | handleTechnicalStatusDeactivate(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.technicalStatusDeactivateApprovalModal.visible = true |
| | | this.$refs.technicalStatusDeactivateApprovalModal.title = record.name |
| | | this.$refs.technicalStatusDeactivateApprovalModal.title = record.taskName |
| | | this.$refs.technicalStatusDeactivateApprovalModal.disableSubmit = true |
| | | this.$refs.technicalStatusDeactivateApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handleTechnicalStatusEvaluationApply(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.technicalStatusEvaluationApplicationApprovalModal.visible = true |
| | | this.$refs.technicalStatusEvaluationApplicationApprovalModal.title = record.name |
| | | this.$refs.technicalStatusEvaluationApplicationApprovalModal.title = record.taskName |
| | | this.$refs.technicalStatusEvaluationApplicationApprovalModal.disableSubmit = true |
| | | this.$refs.technicalStatusEvaluationApplicationApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handleTechnicalStatusChange(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.technicalStatusChangeApprovalModal.visible = true |
| | | this.$refs.technicalStatusChangeApprovalModal.title = record.name |
| | | this.$refs.technicalStatusChangeApprovalModal.title = record.taskName |
| | | this.$refs.technicalStatusChangeApprovalModal.disableSubmit = true |
| | | this.$refs.technicalStatusChangeApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handleEvaluationOrderChange(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.evaluationOrderChangeApprovalModal.visible = true |
| | | this.$refs.evaluationOrderChangeApprovalModal.title = record.name |
| | | this.$refs.evaluationOrderChangeApprovalModal.title = record.taskName |
| | | this.$refs.evaluationOrderChangeApprovalModal.disableSubmit = true |
| | | this.$refs.evaluationOrderChangeApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handleTechnicalStatusEvaluation(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.technicalStatusApprovalModal.visible = true |
| | | this.$refs.technicalStatusApprovalModal.title = record.name |
| | | this.$refs.technicalStatusApprovalModal.title = record.taskName |
| | | this.$refs.technicalStatusApprovalModal.disableSubmit = true |
| | | this.$refs.technicalStatusApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handleSecondMaintenance(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.secondMaintenanceApprovalModal.visible = true |
| | | this.$refs.secondMaintenanceApprovalModal.title = record.name |
| | | this.$refs.secondMaintenanceApprovalModal.title = record.taskName |
| | | this.$refs.secondMaintenanceApprovalModal.disableSubmit = true |
| | | this.$refs.secondMaintenanceApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handInspectionOrder(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.inspectionOrderHandle.visible = true |
| | | this.$refs.inspectionOrderHandle.title = record.name |
| | | this.$refs.inspectionOrderHandle.title = record.taskName |
| | | this.$refs.inspectionOrderHandle.disableSubmit = true |
| | | this.$refs.inspectionOrderHandle.handleApprove(record) |
| | | }, |
| | |
| | | handleRepairOrder(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.title = record.name |
| | | this.$refs.repairOrderApprovalModal.title = record.taskName |
| | | this.$refs.repairOrderApprovalModal.disableSubmit = true |
| | | this.$refs.repairOrderApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handleMaintenanceStandard(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.maintenanceStandardApprovalModal.visible = true |
| | | this.$refs.maintenanceStandardApprovalModal.title = record.name |
| | | this.$refs.maintenanceStandardApprovalModal.title = record.taskName |
| | | this.$refs.maintenanceStandardApprovalModal.disableSubmit = true |
| | | this.$refs.maintenanceStandardApprovalModal.handleApprove(record) |
| | | }, |
| | |
| | | handleThirdMaintenanceOrderChange(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceOrderChangeApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceOrderChangeApprovalModal.title = record.name |
| | | this.$refs.thirdMaintenanceOrderChangeApprovalModal.title = record.taskName |
| | | this.$refs.thirdMaintenanceOrderChangeApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceOrderChangeApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | /** |
| | | * 点击真空热处理炉三保工单流程执行审批时触发 |
| | | * @param record |
| | | */ |
| | | handleThirdMaintenanceFurnace(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.title = record.name |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | /** |
| | | * 点击设备事故登记流程执行审批时触发 |
| | | * @param record |
| | | */ |
| | | handleAccidentsRegister(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.reportAccidentsRegisterApprovalModal.visible = true |
| | | this.$refs.reportAccidentsRegisterApprovalModal.title = record.name |
| | | this.$refs.reportAccidentsRegisterApprovalModal.disableSubmit = true |
| | | this.$refs.reportAccidentsRegisterApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | splitProcessType(title) { |
| | | let parts = title.split(':') // 注意冒号是全角字符,使用对应的字进行分割 |
| | | let result = parts[0] |