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

  1. import request from '@/utils/request'
  2. // 查询治疗方案列表
  3. export function listPlan(query) {
  4. return request({
  5. url: '/vet/plan/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询治疗方案详细
  11. export function getPlan(id) {
  12. return request({
  13. url: '/vet/plan/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增治疗方案
  18. export function addPlan(data) {
  19. return request({
  20. url: '/vet/plan',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改治疗方案
  26. export function updatePlan(data) {
  27. return request({
  28. url: '/vet/plan',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除治疗方案
  34. export function delPlan(id) {
  35. return request({
  36. url: '/vet/plan/' + id,
  37. method: 'delete'
  38. })
  39. }