|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-input v-model="name" placeholder="请输入试剂名称" />
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="getList">搜索</el-button>
|
|
|
|
|
<el-button type="primary" plain><svg-icon icon-class="cup" /> 设为空瓶</el-button>
|
|
|
|
|
<el-button type="primary" plain @click="handleSetEmpty"><svg-icon icon-class="cup" /> 设为空瓶</el-button>
|
|
|
|
|
<el-button icon="el-icon-edit" @click="handleEdit">编辑试剂</el-button>
|
|
|
|
|
<el-button @click="showHistory"><svg-icon icon-class="流转" /> 查看流转记录</el-button>
|
|
|
|
|
<el-button icon="el-icon-user" @click="handleDisable">分配禁用用户</el-button>
|
|
|
|
@ -341,7 +341,8 @@ import {
|
|
|
|
|
update,
|
|
|
|
|
user_ban_confirm,
|
|
|
|
|
user_ban_list,
|
|
|
|
|
user_ban_relieve
|
|
|
|
|
user_ban_relieve,
|
|
|
|
|
set_drug_empty_bottle
|
|
|
|
|
} from '@/api/reagent/management'
|
|
|
|
|
import stringify from '@/utils/stringify'
|
|
|
|
|
export default {
|
|
|
|
@ -514,6 +515,20 @@ export default {
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 设置空瓶
|
|
|
|
|
handleSetEmpty() {
|
|
|
|
|
if (this.multipleSelection.length !== 1) {
|
|
|
|
|
this.$message.warning('请选择一个试剂!')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
const data = {
|
|
|
|
|
medicament_id: this.multipleSelection[0].medicament_id
|
|
|
|
|
}
|
|
|
|
|
set_drug_empty_bottle(stringify(data)).then(res => {
|
|
|
|
|
this.$message.success(res.msg)
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 刷新按钮
|
|
|
|
|
handleRefresh() {
|
|
|
|
|
this.getList()
|
|
|
|
@ -529,7 +544,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 分配禁用用户 翻页
|
|
|
|
|
userPageChange(page) {
|
|
|
|
|
|
|
|
|
|
this.getUserList()
|
|
|
|
|
},
|
|
|
|
|
// 用户多选
|
|
|
|
|
handleUserSelectionChange(val) {
|
|
|
|
|