| | |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="record.leanStatus === 'WAIT_RETURN'"> |
| | | <a-popconfirm title='确定归还吗?' @confirm='() => equipmentReturn(record.id)'> |
| | | <a>归还</a> |
| | | </a-popconfirm> |
| | | <a-divider type='vertical' /> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </template> |
| | | <template v-if="record.leanStatus !== 'WAIT_RETURN' && record.leanStatus !== 'WAIT_SUBMIT'"> |
| | | <a |
| | | href="javascript:;" |
| | | @click="handleDetail(record)" |
| | |
| | | delete: '/eam/eamEquipmentLeanOut/delete', |
| | | deleteBatch: '/eam/eamEquipmentLeanOut/deleteBatch', |
| | | submit: '/eam/eamEquipmentLeanOut/submit', |
| | | equipmentReturn: '/eam/eamEquipmentLeanOut/equipmentReturn', |
| | | } |
| | | } |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | equipmentReturn(id) { |
| | | if (!this.url.equipmentReturn) { |
| | | this.$message.error('请设置url.submit属性!') |
| | | return |
| | | } |
| | | let that = this |
| | | getAction(that.url.equipmentReturn, { id: id }).then((res) => { |
| | | if (res.success) { |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(1) |
| | | // that.$message.success(res.message); |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | handleSubmit(id) { |
| | | if (!this.url.submit) { |
| | | this.$message.error('请设置url.submit属性!') |