| | |
| | | <a-input v-model='queryParam.code' placeholder='请输入单据号'></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="封存状态"> |
| | | <j-dict-select-tag placeholder="请选择封存状态" dictCode="equipment_seal_up_status" v-model="queryParam.sealStatus" |
| | | allow-clear/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :lg='7' :md='8' :sm='24' :xl='6'> |
| | | <span class='table-page-search-submitButtons' style='float: left;overflow: hidden;'> |
| | | <a-button icon='search' type='primary' @click='searchQuery'>查询</a-button> |
| | |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="record.sealStatus === 'SEALED'"> |
| | | <a-popconfirm title='确定启封吗?' @confirm='() => handleUnseal(record.id)'> |
| | | <a>启封</a> |
| | | </a-popconfirm> |
| | | <a-divider type='vertical' /> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </template> |
| | | <template v-if="record.sealStatus === 'COMPLETE'|| record.sealStatus === 'WAIT_UNSEALING_AUDIT' "> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </template> |
| | | </span> |
| | |
| | | list: '/eam/eamEquipmentSealUp/list', |
| | | delete: '/eam/eamEquipmentSealUp/delete', |
| | | deleteBatch: '/eam/eamEquipmentSealUp/deleteBatch', |
| | | submit: '/eam/eamEquipmentSealUp/submit' |
| | | submit: '/eam/eamEquipmentSealUp/submit', |
| | | unseal: '/eam/eamEquipmentSealUp/unseal' |
| | | } |
| | | } |
| | | }, |
| | |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | handleUnseal(id) { |
| | | if (!this.url.unseal) { |
| | | this.$message.error('请设置url.submit属性!') |
| | | return |
| | | } |
| | | let that = this |
| | | getAction(that.url.unseal, { 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 |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |