feat(src/views/reagent/management): 试剂管理添加删除功能

duizhaopin_ui
duan 2 years ago
parent bf507ca201
commit 01e258e805

@ -62,3 +62,12 @@ export function user_ban_relieve(data) {
})
}
// /api/drug/del
export function del(data) {
return request({
url: '/api/drug/del',
method: 'post',
data
})
}

@ -335,6 +335,7 @@
<script>
import { getClients } from '@/views/reagent/mixin/getClients'
import {
del,
drug_list,
get_durg_record,
update,
@ -501,7 +502,17 @@ export default {
this.history_total = 0
},
handleDel() {
if (this.multipleSelection.length !== 1) {
this.$message.warning('请选择一个试剂!')
return
}
const data = {
medicament_id: this.multipleSelection[0].medicament_id
}
del(stringify(data)).then(res => {
this.$message.success(res.msg)
this.getList()
})
},
//
handleRefresh() {

Loading…
Cancel
Save