prescribeDrug.js 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '@/utils/request'
  2. // 查询处方药品列表
  3. export function listPrescribeDrug(query) {
  4. return request({
  5. url: '/store/prescribeDrug/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询处方药品详细
  11. export function getPrescribeDrug(drugId) {
  12. return request({
  13. url: '/store/prescribeDrug/' + drugId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增处方药品
  18. export function addPrescribeDrug(data) {
  19. return request({
  20. url: '/store/prescribeDrug',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改处方药品
  26. export function updatePrescribeDrug(data) {
  27. return request({
  28. url: '/store/prescribeDrug',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除处方药品
  34. export function delPrescribeDrug(drugId) {
  35. return request({
  36. url: '/store/prescribeDrug/' + drugId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出处方药品
  41. export function exportPrescribeDrug(query) {
  42. return request({
  43. url: '/store/prescribeDrug/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }