prescribe.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import request from '@/utils/request'
  2. // 查询处方列表
  3. export function listPrescribe(query) {
  4. return request({
  5. url: '/his/prescribe/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function getImg() {
  11. return request({
  12. url: '/his/prescribe/getImg',
  13. method: 'get',
  14. })
  15. }
  16. // 查询处方详细
  17. export function getPrescribe(prescribeId) {
  18. return request({
  19. url: '/his/prescribe/' + prescribeId,
  20. method: 'get'
  21. })
  22. }
  23. export function queryIdCard(prescribeId) {
  24. return request({
  25. url: '/his/prescribe/queryIdCard/' + prescribeId,
  26. method: 'get'
  27. })
  28. }
  29. export function getDrugInfo(prescribeId) {
  30. return request({
  31. url: '/his/prescribe/Drug/' + prescribeId,
  32. method: 'get'
  33. })
  34. }
  35. // 新增处方
  36. export function addPrescribe(data) {
  37. return request({
  38. url: '/his/prescribe',
  39. method: 'post',
  40. data: data
  41. })
  42. }
  43. // 修改处方
  44. export function updatePrescribe(data) {
  45. return request({
  46. url: '/his/prescribe',
  47. method: 'put',
  48. data: data
  49. })
  50. }
  51. // 删除处方
  52. export function delPrescribe(prescribeId) {
  53. return request({
  54. url: '/his/prescribe/' + prescribeId,
  55. method: 'delete'
  56. })
  57. }
  58. // 导出处方
  59. export function exportPrescribe(query) {
  60. return request({
  61. url: '/his/prescribe/export',
  62. method: 'get',
  63. params: query
  64. })
  65. }
  66. // 导出医疗信息反馈单
  67. export function exportMessageFeedback(query) {
  68. return request({
  69. url: '/his/prescribe/messageFeedbackExport',
  70. method: 'get',
  71. params: query
  72. })
  73. }