prescribeDrug.js 749 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // @/api/his/prescribeDrug.js
  2. import request from '@/utils/request'
  3. // 查询处方药品列表
  4. export function listPrescribeDrug(query) {
  5. return request({
  6. url: '/his/prescribeDrug/list',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11. // 新增处方药品
  12. export function addPrescribeDrug(data) {
  13. return request({
  14. url: '/his/prescribeDrug/add',
  15. method: 'post',
  16. data: data
  17. })
  18. }
  19. // 修改处方药品
  20. export function updatePrescribeDrug(data) {
  21. return request({
  22. url: '/his/prescribeDrug/update',
  23. method: 'post',
  24. data: data
  25. })
  26. }
  27. // 删除处方药品
  28. export function deletePrescribeDrug(drugId) {
  29. return request({
  30. url: '/his/prescribeDrug/delete',
  31. method: 'post',
  32. params: { drugId: drugId }
  33. })
  34. }