| | |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <template v-if="record.maintenanceStatus == 'WAIT_MAINTENANCE'||record.maintenanceStatus=='FREEZE'"> |
| | | <a @click="handleOrderChange(record)">变更</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <a @click="handleDetail(record)">详情</a> |
| | | |
| | | <template v-if="record.maintenanceStatus === 'COMPLETE'"> |
| | |
| | | <eamThirdMaintenanceOrder-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <third-maintenance-approval-modal ref="thirdMaintenanceApprovalModal" |
| | | :selectShenpiData="selectThirdMaintenanceData"/> |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <!--工单变更弹窗--> |
| | | <eam-third-maintenance-change-modal ref="orderChangeModal" @ok="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { deleteAction, getAction } from '@api/manage' |
| | | import ThirdMaintenanceApprovalModal |
| | | from '@views/flowable/workflow/thirdMaintenance/ThirdMaintenanceApprovalModal.vue' |
| | | import EamThirdMaintenanceChangeModal from './modules/EamThirdMaintenanceChangeModal.vue' |
| | | |
| | | export default { |
| | | name: 'EamThirdMaintenanceOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | EamThirdMaintenanceChangeModal, |
| | | LxSearchEquipmentSelect, |
| | | EamThirdMaintenanceOrderModal, |
| | | ThirdMaintenanceApprovalModal |
| | |
| | | return { |
| | | description: '设备三级保养管理页面', |
| | | disableMixinCreated: true, |
| | | selectThirdMaintenanceData: {}, |
| | | selectedRowData: {}, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | 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: '创建方式', |
| | |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 200, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | |
| | | }, |
| | | |
| | | /** |
| | | * 点击变更时触发 |
| | | * @param record |
| | | */ |
| | | handleOrderChange(record) { |
| | | this.$refs.orderChangeModal.title = '变更' |
| | | this.$refs.orderChangeModal.add(record) |
| | | }, |
| | | |
| | | /** |
| | | * 点击领取时触发 |
| | | * @param id |
| | | */ |
| | |
| | | * @param record |
| | | */ |
| | | handleDetail(record) { |
| | | this.selectThirdMaintenanceData = Object.assign({}, record) |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = '详情' |
| | | this.$refs.thirdMaintenanceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceApprovalModal.recordDetail(record) |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | onMaintenanceDateChange(dateString) { |