You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
728 B
44 lines
728 B
import request from '@/utils/request'
|
|
|
|
// 查询治疗方案列表
|
|
export function listPlan(query) {
|
|
return request({
|
|
url: '/vet/plan/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询治疗方案详细
|
|
export function getPlan(id) {
|
|
return request({
|
|
url: '/vet/plan/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增治疗方案
|
|
export function addPlan(data) {
|
|
return request({
|
|
url: '/vet/plan',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改治疗方案
|
|
export function updatePlan(data) {
|
|
return request({
|
|
url: '/vet/plan',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除治疗方案
|
|
export function delPlan(id) {
|
|
return request({
|
|
url: '/vet/plan/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|