api.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. import {
  2. request
  3. } from "./index.js";
  4. // 数据字典查询
  5. export const reqDictionary = (postData) =>
  6. request({
  7. url: "/common/common/getDictionary",
  8. data: postData,
  9. method: 'POST'
  10. });
  11. // 用户登录接口
  12. export const reqLogin = (postData) =>
  13. request({
  14. url: "/auth/login",
  15. data: postData,
  16. method: 'POST'
  17. });
  18. // 首页查看急标和普标数量
  19. export const reqSpecimenWorkOrderMsg = (postData) =>
  20. request({
  21. url: "/nurse/getSpecimenWorkOrderMsg",
  22. data: postData,
  23. method: 'POST'
  24. });
  25. // 首页快捷工单(其他临床服务任务类型)
  26. export const reqDeptTaskType = (postData) =>
  27. request({
  28. url: "/nurse/getDeptTaskType",
  29. data: postData,
  30. method: 'POST'
  31. });
  32. // 获取动态二维码
  33. export const reqDeptCodes = (postData) =>
  34. request({
  35. url: "/dept/deptCodes/0",
  36. data: postData,
  37. method: 'POST'
  38. });
  39. // fetchDataList查询(通用)
  40. export const reqFetchDataList = (type, target, postData) =>
  41. request({
  42. url: `/${type}/fetchDataList/${target}`,
  43. data: postData,
  44. method: 'POST'
  45. });
  46. // 获取一键建单所需的信息
  47. export const reqBuildTrip = (postData) =>
  48. request({
  49. url: '/nurse/workOrder/buildTrip',
  50. data: postData,
  51. method: 'POST'
  52. });
  53. // 获取一键建单所需的历史输入信息
  54. export const reqRecentRemarks = (postData) =>
  55. request({
  56. url: '/nurse/workOrder/recentRemarks',
  57. data: postData,
  58. method: 'POST'
  59. });
  60. // 建单
  61. export const reqBuildOrder = (postData) =>
  62. request({
  63. url: '/api/startOrder',
  64. data: postData,
  65. method: 'POST'
  66. });
  67. // 切换院区
  68. export const reqChangeHospital = (postData) =>
  69. request({
  70. url: '/auth/changeHospital',
  71. data: postData,
  72. method: 'POST'
  73. });
  74. // 更新操作
  75. export const reqUpdData = (type, target, postData) =>
  76. request({
  77. url: `/${type}/updData/${target}`,
  78. data: postData,
  79. method: 'POST'
  80. });
  81. // 获取当前用户登录信息
  82. export const reqGetCurrentUser = () =>
  83. request({
  84. url: '/user/data/getCurrentUser',
  85. });
  86. // 撤回
  87. export const reqDelWorkOrder = (orderId) =>
  88. request({
  89. url: `/workerOrder/delWorkOrder/${orderId}`,
  90. });
  91. // 加急
  92. export const reqUrge = (postData) =>
  93. request({
  94. url: `/workerOrder/urge`,
  95. data: postData,
  96. method: 'POST'
  97. });
  98. // 立即执行
  99. export const reqDirectStartOrder = (id) =>
  100. request({
  101. url: `/api/directStartOrder/${id}`,
  102. });
  103. // 评价
  104. export const reqEvaluate = (id, postData) =>
  105. request({
  106. url: `/nurse/workOrder/evaluate/${id}`,
  107. data: postData,
  108. method: 'POST'
  109. });
  110. // fetchData查询(通用)
  111. export const reqFetchData = (type, target, id) =>
  112. request({
  113. url: `/${type}/fetchData/${target}/${id}`,
  114. });
  115. // 获取流程信息
  116. export const reqFetchWorkOrderLog = (id) =>
  117. request({
  118. url: `/ser/fetchWorkOrderLog/${id}`,
  119. });
  120. // 患者详情,患者标本,患者检查
  121. export const reqGetPatientInspectInfo = (postData) =>
  122. request({
  123. url: `/nurse/workOrder/getPatientInspectInfoByTime`,
  124. data: postData,
  125. method: 'POST'
  126. });
  127. // 患者一键建单请求任务类型
  128. export const reqDeptTSPTaskType = (postData) =>
  129. request({
  130. url: `/configuration/deptTSPTaskType`,
  131. data: postData,
  132. method: 'POST'
  133. });
  134. // 患者建单接口
  135. export const reqBuild = (type, postData) =>
  136. request({
  137. url: `/api/${type}`,
  138. data: postData,
  139. method: 'POST'
  140. });
  141. // 首页查询急标或普标列表
  142. export const reqGetSpecimenWorkOrderDetails = (postData) =>
  143. request({
  144. url: `/nurse/getSpecimenWorkOrderDetails`,
  145. data: postData,
  146. method: 'POST'
  147. });