| | |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-if="record.inspectionStatus === '1'" > |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handleDelete(record.id)"> |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handleOrReceive(record.id)"> |
| | | <a>作废</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | |
| | | ], |
| | | url: { |
| | | list: "/eam/eamInspectionOrder/list", |
| | | delete: "/eam/eamInspectionOrder/cancelInspectionOrder", |
| | | cancelInspectionOrder: "/eam/eamInspectionOrder/cancelInspectionOrder", |
| | | deleteBatch: "/eam/eamInspectionOrder/deleteBatch", |
| | | exportXlsUrl: "/eam/eamInspectionOrder/exportXls", |
| | | importExcelUrl: "eam/eamInspectionOrder/importExcel", |
| | |
| | | } |
| | | }); |
| | | }, |
| | | handleOrReceive(id){ |
| | | if (!this.url.cancelInspectionOrder) { |
| | | this.$message.error("请设置url.cancelInspectionOrder!") |
| | | return |
| | | } |
| | | var that = this; |
| | | getAction(that.url.cancelInspectionOrder, { id: id }).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }); |
| | | that.loadData(); |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | batchZf(type){ |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | this.$notification.warning({ |