patient.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/utils/request'
  2. // 查询病人列表
  3. export function listPatient(query) {
  4. return request({
  5. url: '/his/patient/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function listPatientList(query) {
  11. return request({
  12. url: '/his/patient/userList',
  13. method: 'get',
  14. params: query
  15. })
  16. }
  17. // 查询病人详细
  18. export function getPatient(patientId) {
  19. return request({
  20. url: '/his/patient/' + patientId,
  21. method: 'get'
  22. })
  23. }
  24. // 查询病人详细
  25. export function getPatientByUserId(userId) {
  26. return request({
  27. url: '/his/patient/getPatient/' + userId,
  28. method: 'get'
  29. })
  30. }
  31. // 新增病人
  32. export function addPatient(data) {
  33. return request({
  34. url: '/his/patient',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. // 修改病人
  40. export function updatePatient(data) {
  41. return request({
  42. url: '/his/patient',
  43. method: 'put',
  44. data: data
  45. })
  46. }
  47. // 删除病人
  48. export function delPatient(patientId) {
  49. return request({
  50. url: '/his/patient/' + patientId,
  51. method: 'delete'
  52. })
  53. }
  54. // 导出病人
  55. export function exportPatient(query) {
  56. return request({
  57. url: '/his/patient/export',
  58. method: 'get',
  59. params: query
  60. })
  61. }