ncs_his.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import request from '@/utils/request'
  2. const serverUrl = domain.serverUrl
  3. const url = serverUrl.substring(0, serverUrl.length - 4) + '8009'
  4. // 查询科室列表
  5. export function getList(params) {
  6. return request({
  7. url: url + '/hisquery/depart/page',
  8. method: 'POST',
  9. loading: true,
  10. data: params,
  11. headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  12. })
  13. }
  14. // 根据主键查询科室
  15. export function getPartByKeyval(keyval) {
  16. return request({
  17. url: url + `/hisquery/depart/${keyval}`,
  18. method: 'GET',
  19. loading: false
  20. })
  21. }
  22. // 查询用户列表
  23. export function getPatientList(params) {
  24. return request({
  25. url: url + '/hisquery/patient/page',
  26. method: 'POST',
  27. loading: true,
  28. data: params,
  29. headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  30. })
  31. }
  32. // 查询工作人员列表
  33. export function getClerkList(params) {
  34. return request({
  35. url: url + '/hisquery/employee/page',
  36. method: 'POST',
  37. loading: true,
  38. data: params,
  39. headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  40. })
  41. }
  42. // 根据主键查询工作人员
  43. export function getClerkByKeyval(keyval) {
  44. return request({
  45. url: url + `/hisquery/employee/${keyval}`,
  46. method: 'GET',
  47. loading: false
  48. })
  49. }
  50. // 查询工作人员列表
  51. export function getNurseConfigList(params) {
  52. return request({
  53. url: url + '/hisquery/nursecategory/page',
  54. method: 'POST',
  55. loading: true,
  56. data: params,
  57. headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  58. })
  59. }
  60. // 查询工作人员列表
  61. export function getNurseOptionsList(params) {
  62. return request({
  63. url: url + '/hisquery/nurseoptions/page',
  64. method: 'POST',
  65. loading: true,
  66. data: params,
  67. headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  68. })
  69. }
  70. export function getNurseOptionsByPartKeyval(part_keyval) {
  71. return request({
  72. url: url + `/hisquery/nurse_options_list/${part_keyval}`,
  73. method: 'get'
  74. })
  75. }
  76. export function getPatientNurseMappingByPatientKeyval(patient_keyval) {
  77. return request({
  78. url: url + `/hisquery/patient_nurse_mapping_list/${patient_keyval}`,
  79. method: 'get'
  80. })
  81. }