| | |
| | | @change="handleTableChange"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <template v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE'"> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="确定领取吗?" @confirm="() => handlerCollect(record.id)"> |
| | | <a>领取</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 <a-icon type="down"/></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handlerAbolish(record.id)"> |
| | | <a>作废</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | <a @click="handlerAbolish(record.id)">作废</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <template v-else> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | |
| | | <template v-if="record.maintenanceStatus === 'COMPLETE'"> |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handlePrint(record)">打印</a> |
| | | </template> |
| | | |
| | | <a-divider v-if="record.maintenanceStatus === 'COMPLETE'" type="vertical"/> |
| | | |
| | | <a v-if="record.maintenanceStatus === 'COMPLETE'" @click="handlePrint(record)">打印</a> |
| | | </span> |
| | | </a-table> |
| | | <!-- table区域-end --> |
| | |
| | | title: '计划保养日期', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceDate' |
| | | }, |
| | | { |
| | | title: '锁定工单日期', |
| | | align: 'center', |
| | | dataIndex: 'freezeOrderDate' |
| | | }, |
| | | { |
| | | title: '工单过期日期', |
| | | align: 'center', |
| | | dataIndex: 'orderExpirationDate' |
| | | }, |
| | | { |
| | | title: '实际开始时间', |
| | |
| | | align: 'center', |
| | | dataIndex: 'inspectorSignatureTime' |
| | | }, |
| | | { |
| | | title: '移交单HF编码', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeA' |
| | | }, |
| | | { |
| | | title: '验收单HF编码', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeB' |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/eam/thirdMaintenanceOrder/list', |
| | | abolish: '/eam/thirdMaintenanceOrder/abolish', |
| | | abolishBatch: '/eam/thirdMaintenanceOrder/abolishBatch', |
| | | collect: '/eam/thirdMaintenanceOrder/collect', |
| | | collectBatch: '/eam/thirdMaintenanceOrder/collectBatch' |
| | | collect: '/eam/thirdMaintenanceOrder/collect' |
| | | } |
| | | } |
| | | }, |
| | |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 200, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | |
| | | */ |
| | | handleDetail(record) { |
| | | this.selectThirdMaintenanceData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceApprovalModal.recordDetail(record) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = '详情' |
| | | this.$refs.thirdMaintenanceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceApprovalModal.recordDetail(record) |
| | | }, |
| | | |
| | | onMaintenanceDateChange(dateString) { |