patient.js 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. import request from '@/utils/request'
  2. export function getBloodDialysisPatient(page, limit) {
  3. const params = {
  4. page: page,
  5. limit: limit
  6. }
  7. return request({
  8. url: 'm/api/patient/getbloodDialysisPatient',
  9. method: 'get',
  10. params: params
  11. })
  12. }
  13. export function GenerateDialysisNo(params) {
  14. return request({
  15. url: '/m/api/patients/generatedialysisnotwo',
  16. method: 'get',
  17. params: params
  18. })
  19. }
  20. export function GetIllnessList(params) {
  21. return request({
  22. url: 'm/api/patient/getillnesslist',
  23. method: 'get',
  24. params: params
  25. })
  26. }
  27. export function GetPatientInfo(phone) {
  28. const params = {
  29. phone: phone
  30. }
  31. return request({
  32. url: 'm/api/patient/getpatientinfo',
  33. method: 'get',
  34. params: params
  35. })
  36. }
  37. export function savePatient(data) {
  38. console.log('data', data)
  39. return request({
  40. url: '/m/api/patient/savepatient',
  41. method: 'post',
  42. data: data
  43. })
  44. }
  45. export function getPatientDetail(id, params) {
  46. return request({
  47. url: '/m/api/patient/getpatientdetail?id=' + id,
  48. method: 'get',
  49. params: params
  50. })
  51. }
  52. export function getDoctorAdvices(id, type, startime, endtime, limit, page) {
  53. const params = {
  54. id: id,
  55. type: type,
  56. startime: startime,
  57. endtime: endtime,
  58. limit: limit,
  59. page: page
  60. }
  61. return request({
  62. url: '/m/api/patient/getdoctoradvices',
  63. method: 'get',
  64. params: params
  65. })
  66. }
  67. export function getDryWeight(id, startime, endtime, limit, page) {
  68. const params = {
  69. id: id,
  70. startime: startime,
  71. endtime: endtime,
  72. limit: limit,
  73. page: page
  74. }
  75. return request({
  76. url: '/m/api/paitent/getdryweight',
  77. method: 'get',
  78. params: params
  79. })
  80. }
  81. export function getBloodDialysisPatientTwo(page, limit) {
  82. console.log('数据出发了没有')
  83. const params = {
  84. page: page,
  85. limit: limit
  86. }
  87. return request({
  88. url: 'm/api/patient/getbloodDialysisPatientwo',
  89. method: 'get',
  90. params: params
  91. })
  92. }
  93. export function ToSearch(name) {
  94. const params = {
  95. name: name
  96. }
  97. return request({
  98. url: 'm/api/patient/tosearch',
  99. method: 'get',
  100. params: params
  101. })
  102. }
  103. export function getBloodPatientInfo(phone) {
  104. const params = {
  105. phone: phone
  106. }
  107. return request({
  108. url: '/m/api/patient/getbloodpatientinfo',
  109. method: 'get',
  110. params: params
  111. })
  112. }
  113. export function getSlowPatientInfo(phone) {
  114. const params = {
  115. phone: phone
  116. }
  117. return request({
  118. url: '/m/api/patient/getslowpatientinfo',
  119. method: 'get',
  120. params: params
  121. })
  122. }
  123. export function getMemberPatientInfo(phone) {
  124. const params = {
  125. phone: phone
  126. }
  127. return request({
  128. url: '/m/api/patient/getmemberpatientinfo',
  129. method: 'get',
  130. params: params
  131. })
  132. }
  133. export function getCourseManagement(id, limit, page, startime, endtime) {
  134. console.log('id', id)
  135. console.log('limit', limit)
  136. console.log('page', page)
  137. console.log('startime', startime)
  138. console.log('endtime', endtime)
  139. const params = {
  140. id: id,
  141. limit: limit,
  142. page: page,
  143. startime: startime,
  144. endtime: endtime
  145. }
  146. return request({
  147. url: '/m/api/patient/getcoursemanagement',
  148. method: 'get',
  149. params: params
  150. })
  151. }