yi-zhu-lu-ru.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. import request from '@/utils/request'
  2. const url = '/yiZhuLuRu'
  3. // 下面是 api 请求
  4. export function getMyPatient() {
  5. return request({
  6. url: url + '/getMyPatient',
  7. method: 'get',
  8. })
  9. }
  10. export function getOrderNo() {
  11. return request({
  12. url: url + '/getOrderNo',
  13. method: 'get',
  14. })
  15. }
  16. export function enterOrders(data) {
  17. return request({
  18. url: url + '/enterOrders',
  19. method: 'post',
  20. data
  21. })
  22. }
  23. export function insertTemplateOrder(data) {
  24. return request({
  25. url: url + '/insertTemplateOrder',
  26. method: 'post',
  27. data
  28. })
  29. }
  30. export function stopOrder(data) {
  31. return request({
  32. url: url + '/stopOrder',
  33. method: 'post',
  34. data
  35. })
  36. }
  37. export function toDeleteAnOrder(orderNo) {
  38. return request({
  39. url: url + '/toDeleteAnOrder',
  40. method: 'get',
  41. params: {orderNo}
  42. })
  43. }
  44. export function deleteMultipleOrders(data) {
  45. return request({
  46. url: url + '/deleteMultipleOrders',
  47. method: 'post',
  48. data
  49. })
  50. }
  51. export function voidOrders(orderNo, reasonForCancellation) {
  52. return request({
  53. url: url + '/voidOrders',
  54. method: 'get',
  55. params: {orderNo, reasonForCancellation}
  56. })
  57. }
  58. export function confirmOrders(data) {
  59. return request({
  60. url: url + '/confirmOrders',
  61. method: 'post',
  62. data
  63. })
  64. }
  65. export function getParentOrders(patNo, times) {
  66. return request({
  67. url: url + '/getParentOrders',
  68. method: 'get',
  69. params: {patNo, times},
  70. })
  71. }
  72. export function huoQuHuanZheXinXi(inpatientNo) {
  73. return request({
  74. url: url + '/huoQuHuanZheXinXi',
  75. method: 'get',
  76. params: {inpatientNo},
  77. })
  78. }
  79. export function huoQuYiZhuShuJu(data) {
  80. return request({
  81. url: url + '/huoQuYiZhuShuJu',
  82. method: 'post',
  83. data,
  84. })
  85. }
  86. export function huoQuXiangMu(code, groupNo) {
  87. return request({
  88. url: url + '/huoQuXiangMu',
  89. method: 'get',
  90. params: {code, groupNo},
  91. })
  92. }
  93. export function huoQuFeiYongXinXi(queryCode) {
  94. return request({
  95. url: url + '/huoQuFeiYongXinXi',
  96. method: 'get',
  97. params: {queryCode},
  98. })
  99. }
  100. export function getFrequency() {
  101. return request({
  102. url: url + '/getFrequency',
  103. method: 'get',
  104. })
  105. }
  106. export function getSupplyType() {
  107. return request({
  108. url: url + '/getSupplyType',
  109. method: 'get',
  110. })
  111. }
  112. export function huoQuZhuYuanPinLv(code) {
  113. return request({
  114. url: url + '/huoQuZhuYuanPinLv',
  115. method: 'get',
  116. params: {code},
  117. })
  118. }
  119. export function huoQuZhiXinKeShi(code) {
  120. return request({
  121. url: url + '/huoQuZhiXinKeShi',
  122. method: 'get',
  123. params: {code},
  124. })
  125. }
  126. export function huoQuYiZhuMuBan(code, deptCode, muBanLeiXing, currentPage, total) {
  127. return request({
  128. url: url + '/huoQuYiZhuMuBan',
  129. method: 'get',
  130. params: {code, deptCode, muBanLeiXing, currentPage, total},
  131. })
  132. }
  133. export function getDoctorSOrderTemplateMaxSortNo() {
  134. return request({
  135. url: url + '/getDoctorSOrderTemplateMaxSortNo',
  136. method: 'get',
  137. })
  138. }
  139. export function huoQuMuBanShuJu(code) {
  140. return request({
  141. url: url + '/huoQuMuBanShuJu',
  142. method: 'get',
  143. params: {code},
  144. })
  145. }
  146. export function deleteADoctorSOrderTemplate(patternCode) {
  147. return request({
  148. url: url + '/deleteADoctorSOrderTemplate',
  149. method: 'delete',
  150. params: {patternCode}
  151. })
  152. }
  153. export function collectDoctorSOrderTemplate(patternCode) {
  154. return request({
  155. url: url + '/collectDoctorSOrderTemplate',
  156. method: 'get',
  157. params: {patternCode}
  158. })
  159. }
  160. export function muBanCaoZuo(patternCode, patternName, deptCode, sortNo, flag) {
  161. return request({
  162. url: url + '/muBanCaoZuo',
  163. method: 'get',
  164. params: {patternCode, patternName, deptCode, sortNo, flag},
  165. })
  166. }
  167. export function singleDataCheck(data) {
  168. return request({
  169. url: url + '/singleDataCheck',
  170. method: 'post',
  171. data: data
  172. })
  173. }
  174. export function saveTemplate(data) {
  175. return request({
  176. url: url + '/saveTemplate',
  177. method: 'post',
  178. data: data
  179. })
  180. }
  181. export function doesTheTemplateExist(name) {
  182. return request({
  183. url: url + '/doesTheTemplateExist',
  184. method: 'get',
  185. params: {name}
  186. })
  187. }
  188. export function saveTheThirdLevelDoctor(data) {
  189. return request({
  190. url: url + '/saveTheThirdLevelDoctor',
  191. method: 'post',
  192. data: data
  193. })
  194. }
  195. export function associateOrdersApi(data) {
  196. return request({
  197. url: url + '/associateOrders',
  198. method: 'post',
  199. data: data
  200. })
  201. }
  202. export function confirmTheDoctorSOrderWithMedicine(patNo, times) {
  203. return request({
  204. url: url + '/confirmTheDoctorSOrderWithMedicine',
  205. method: 'get',
  206. params: {patNo, times}
  207. })
  208. }
  209. export function copyOrder(data) {
  210. return request({
  211. url: url + '/copyOrder',
  212. method: 'post',
  213. data
  214. })
  215. }
  216. export function queryFeeByOrderNoApi(actOrderNo) {
  217. return request({
  218. url: url + '/queryFeeByOrderNo',
  219. method: 'get',
  220. params: {actOrderNo}
  221. })
  222. }
  223. export function oneClickStopOrder(data) {
  224. return request({
  225. url: url + '/oneClickStopOrder',
  226. method: 'post',
  227. data
  228. })
  229. }