| | |
| | | |
| | | <maintenance-standard-approval-modal ref="maintenanceStandardApprovalModal" @modalFormOk="modalFormOk" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <inspection-order-handle ref="inspectionOrderHandle" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | |
| | | <technical-status-evaluation-approval-modal ref="technicalStatusApprovalModal" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@api/manage' |
| | | import MaintenanceStandardApprovalModal from './MaintenanceStandard/MaintenanceStandardApprovalModal' |
| | | import InspectionOrderHandle from './InspectionOrder/InspectionOrderHandle' |
| | | import TechnicalStatusEvaluationApprovalModal |
| | | from './TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal' |
| | | |
| | | export default { |
| | | name: 'NcDeviceCharactersList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { MaintenanceStandardApprovalModal }, |
| | | components: { TechnicalStatusEvaluationApprovalModal, InspectionOrderHandle, MaintenanceStandardApprovalModal }, |
| | | data() { |
| | | return { |
| | | description: '工作流-我的待办', |
| | |
| | | case 'sbdjApproval': |
| | | this.handInspectionOrder(item) |
| | | break |
| | | case 'WEEK_MAINTENANCE': |
| | | this.handleWeekMaintenance(item) |
| | | break |
| | | case 'eam_repair': |
| | | this.handleRepairOrder(item) |
| | | break |
| | |
| | | case 'third_maintenance': |
| | | this.handleThirdMaintenance(item) |
| | | break |
| | | case 'toolOutStorageApproval': |
| | | this.handleToolOutStorageApproval(item) |
| | | case 'TECHNICAL_STATUS_EVALUATION': |
| | | this.handleTechnicalStatusEvaluation(item) |
| | | break |
| | | case 'toolsStocktakingBound': |
| | | this.handleToolStocktakingApproval(item) |
| | |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * 点击保养规范分类流程执行审批时触发 |
| | | * @param record |
| | | */ |
| | | handleMaintenanceStandard(record) { |
| | | console.log('this.$refs.maintenanceStandardApprovalModal.', this.$refs.maintenanceStandardApprovalModal) |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.maintenanceStandardApprovalModal.visible = true |
| | | this.$refs.maintenanceStandardApprovalModal.title = '保养规范' |
| | | this.$refs.maintenanceStandardApprovalModal.getAllApproveData(record) |
| | | this.$refs.maintenanceStandardApprovalModal.getBasicInformation(record) |
| | | }, |
| | | |
| | | /** |
| | | * 点击技术状态鉴定流程执行审批时触发 |
| | | * @param record |
| | | */ |
| | | handleTechnicalStatusEvaluation(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.technicalStatusApprovalModal.visible = true |
| | | this.$refs.technicalStatusApprovalModal.title = record.name |
| | | this.$refs.technicalStatusApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | /** |
| | | * 点击点检工单流程执行审批时触发 |
| | | * @param record |
| | | */ |
| | | handInspectionOrder(record) { |
| | | console.log('record----->', record) |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.inspectionOrderHandle.visible = true |
| | | this.$refs.inspectionOrderHandle.title = record.name |
| | | this.$refs.inspectionOrderHandle.getAllApproveData(record) |
| | | this.$refs.inspectionOrderHandle.getBasicInformation(record) |
| | | }, |
| | | |
| | | /** |
| | | * 点击设备维修分类流程执行审批时触发 |
| | | * @param record |
| | | */ |
| | | handleRepairOrder(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.title = record.name |
| | | this.$refs.repairOrderApprovalModal.getAllApproveData(record) |
| | | this.$refs.repairOrderApprovalModal.getBasicInformation(record) |
| | | }, |
| | | handleSecondMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectSecondMaintenanceData = Object.assign({}, item) |
| | | this.$refs.secondMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.secondMaintenanceApprovalModal.title = item.name |
| | | this.$refs.secondMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | handleThirdMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectThirdMaintenanceData = Object.assign({}, item) |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = item.name |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | |
| | | batchHandle() { |
| | |
| | | let parts = title.split(':') // 注意冒号是全角字符,使用对应的字进行分割 |
| | | let result = parts[0] |
| | | return result |
| | | }, |
| | | |
| | | handInspectionOrder(record) { |
| | | console.log('record----->', record) |
| | | this.selectInspectionOrderData = Object.assign({}, record) |
| | | this.$refs.modalFormInspectionOrder.visible = true |
| | | this.$refs.modalFormInspectionOrder.title = record.name |
| | | this.$refs.modalFormInspectionOrder.getAllApproveData(record) |
| | | this.$refs.modalFormInspectionOrder.getBasicInformation(record) |
| | | }, |
| | | |
| | | handleWeekMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectWeekMaintenanceData = Object.assign({}, item) |
| | | this.$refs.weekMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.weekMaintenanceApprovalModal.title = item.name |
| | | this.$refs.weekMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * 点击设备维修分类流程详情时触发 |
| | | * @param record |
| | | */ |
| | | handleRepairOrder(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.title = record.name |
| | | this.$refs.repairOrderApprovalModal.getAllApproveData(record) |
| | | this.$refs.repairOrderApprovalModal.getBasicInformation(record) |
| | | }, |
| | | handleSecondMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectSecondMaintenanceData = Object.assign({}, item) |
| | | this.$refs.secondMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.secondMaintenanceApprovalModal.title = item.name |
| | | this.$refs.secondMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | handleThirdMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectThirdMaintenanceData = Object.assign({}, item) |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = item.name |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | } |
| | | } |
| | | } |