prescribe.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. /**
  11. * 确认处方
  12. * @param payload
  13. * @returns {*}
  14. */
  15. export function confirmPrescribe(payload) {
  16. return request({
  17. url: '/his/prescribe/confirmPrescribe',
  18. method: 'post',
  19. params: payload
  20. })
  21. }
  22. // 查询处方列表-个微采集信息(后付款版本)
  23. export function waitPrescribeAfterPaymentList(query) {
  24. return request({
  25. url: '/his/prescribe/waitPrescribeAfterPaymentList',
  26. method: 'post',
  27. data: query
  28. })
  29. }
  30. /**
  31. * 确认处方
  32. * @param payload
  33. * @returns {*}
  34. */
  35. export function confirmPrescribeAfterPayment(payload) {
  36. return request({
  37. url: '/his/prescribe/confirmPrescribeAfterPayment',
  38. method: 'post',
  39. data: payload
  40. })
  41. }
  42. /**
  43. * 拒方
  44. * @param payload
  45. * @returns {*}
  46. */
  47. export function handleReject(payload) {
  48. return request({
  49. url: '/his/prescribe/handleReject',
  50. method: 'put',
  51. data: payload
  52. })
  53. }
  54. // 查询处方详细
  55. export function getPrescribe(prescribeId) {
  56. return request({
  57. url: '/his/prescribe/' + prescribeId,
  58. method: 'get'
  59. })
  60. }
  61. // 查询处方药品详情
  62. export function getPrescribeDrug(prescribeId) {
  63. return request({
  64. url: '/his/prescribe/Drug/' + prescribeId,
  65. method: 'get'
  66. })
  67. }
  68. // 查看身份证
  69. export function queryIdCard(orderId) {
  70. return request({
  71. url: '/his/prescribe/queryIdCard/' + orderId,
  72. method: 'get'
  73. })
  74. }
  75. // 新增处方
  76. export function addPrescribe(data) {
  77. return request({
  78. url: '/his/prescribe',
  79. method: 'post',
  80. data: data
  81. })
  82. }
  83. // 修改处方
  84. export function updatePrescribe(data) {
  85. return request({
  86. url: '/his/prescribe',
  87. method: 'put',
  88. data: data
  89. })
  90. }
  91. // 删除处方
  92. export function delPrescribe(prescribeId) {
  93. return request({
  94. url: '/his/prescribe/' + prescribeId,
  95. method: 'delete'
  96. })
  97. }
  98. // 导出处方
  99. export function exportPrescribe(query) {
  100. return request({
  101. url: '/his/prescribe/export',
  102. method: 'get',
  103. params: query
  104. })
  105. }
  106. // 导出医疗信息反馈单
  107. export function exportMessageFeedback(query) {
  108. return request({
  109. url: '/his/prescribe/messageFeedbackExport',
  110. method: 'get',
  111. params: query
  112. })
  113. }
  114. // 查询常用语列表
  115. export function getPrescribeCommonList(params) {
  116. return request({
  117. url: '/app/prescribe/common/getPrescribeCommonList',
  118. method: 'get',
  119. params: params
  120. })
  121. }
  122. // 查询处方审核记录
  123. export function recordList(prescribeId) {
  124. return request({
  125. url: '/his/prescribe/recordList/' + prescribeId,
  126. method: 'get'
  127. })
  128. }
  129. //拒方数量统计
  130. export function rejectCount(data) {
  131. return request({
  132. url: '/his/prescribe/rejectCount',
  133. method: 'post',
  134. data: data
  135. })
  136. }