tag.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. import request from '@/utils/request'
  2. /**
  3. * 查询标签
  4. * @param {*} data
  5. * @returns
  6. */
  7. export function queryLabelInfoList(data) {
  8. return request({
  9. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/labelInfo/list`,
  10. method: 'post',
  11. data
  12. })
  13. }
  14. /**
  15. * 查询标签分页
  16. * @param {*} data
  17. * @returns
  18. */
  19. export function queryLabelInfoQuery(data) {
  20. return request({
  21. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/labelInfo/query`,
  22. method: 'post',
  23. data
  24. })
  25. }
  26. /**
  27. * 标签新增
  28. * @param {*} data
  29. * @returns
  30. */
  31. export function tagAdd(data) {
  32. return request({
  33. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/labelInfo/save`,
  34. method: 'post',
  35. data
  36. })
  37. }
  38. /**
  39. * 标签修改
  40. * @param {*} data
  41. * @returns
  42. */
  43. export function tagUpdate(data) {
  44. return request({
  45. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/labelInfo/update`,
  46. method: 'post',
  47. data
  48. })
  49. }
  50. /**
  51. * 标签详情
  52. * @param {*} data
  53. * @returns
  54. */
  55. export function tagInfo(data) {
  56. return request({
  57. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/labelInfo/info`,
  58. method: 'post',
  59. data
  60. })
  61. }
  62. /**
  63. * 标签删除
  64. * @param {*} data
  65. * @returns
  66. */
  67. export function tagDel(data) {
  68. return request({
  69. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/labelInfo/del`,
  70. method: 'post',
  71. data
  72. })
  73. }
  74. /**
  75. * 标签分类
  76. * @param {*} data
  77. * @returns
  78. */
  79. export function categoryLabeTree(data) {
  80. return request({
  81. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/categoryLabel/tree`,
  82. method: 'post',
  83. data
  84. })
  85. }
  86. /**
  87. * 分页查询疾病
  88. * @param {*} parameter
  89. * @returns
  90. */
  91. export function queryDiseaseByPage(parameter) {
  92. return request({
  93. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/standard/disease/query`,
  94. method: 'post',
  95. data: parameter
  96. })
  97. }
  98. /**
  99. * 获取根据患者编号获取标签
  100. * @param {*} data
  101. * @returns
  102. */
  103. export function queryPatientLabel(data) {
  104. return request({
  105. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/patient/label/patientLabel`,
  106. method: 'post',
  107. data
  108. })
  109. }
  110. /**
  111. * 查询数据标签
  112. * @param {*} data
  113. * @returns
  114. */
  115. export function queryLabelDataList(data) {
  116. return request({
  117. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/patient/label/dataList`,
  118. method: 'post',
  119. data
  120. })
  121. }
  122. /**
  123. * 通过用户标签获取用户
  124. * @param {*} data
  125. * @returns
  126. */
  127. export function queryUserByLabelId(data) {
  128. return request({
  129. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/patient/label/labelPatient`,
  130. method: 'post',
  131. data
  132. })
  133. }
  134. export function start2stopByTagID(data) {
  135. return request({
  136. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/labelRule/data/run/start2stop`,
  137. method: 'post',
  138. data
  139. })
  140. }
  141. export function getTagsLogById(data) {
  142. return request({
  143. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/rule/label/log/getById`,
  144. method: 'post',
  145. data
  146. })
  147. }
  148. /**
  149. * 添加备注
  150. * @param {*} data
  151. * @returns
  152. */
  153. export function addCrmRemark(data) {
  154. return request({
  155. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/doctor/crm/remark/add`,
  156. method: 'post',
  157. data
  158. })
  159. }
  160. /**
  161. * 早筛活动
  162. * @param {*} data
  163. * @returns
  164. */
  165. export function queryActivity(data) {
  166. return request({
  167. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/patient/label/dataList/activity`,
  168. method: 'post',
  169. data
  170. })
  171. }
  172. /**
  173. * 早筛活动标签列表
  174. * @param {*} data
  175. * @returns
  176. */
  177. export function labelHistoryPatient(data) {
  178. return request({
  179. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/patient/label/labelHistoryPatient`,
  180. method: 'post',
  181. data
  182. })
  183. }
  184. /**
  185. * 查询
  186. * @param {*} data
  187. * @returns
  188. */
  189. export function searchLabelHistoryPatient(data) {
  190. return request({
  191. url: `${window.GLOBAL_CONFIG.API_DOCTOR}/sys/healthy/patient/label/dataList/search`,
  192. method: 'post',
  193. data
  194. })
  195. }