checkApi.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { setParams } from '/@/utils/index';
  3. enum Api {
  4. archivesPatrolWardQueryPage = '/archives/patrolWard/query/page',
  5. archivesPatrolWardDetail = '/archives/patrolWard/detail',
  6. archivesPatrolWardAdd = '/archives/patrolWard/add',
  7. archivesPatrolWardEdit = '/archives/patrolWard/edit',
  8. archivesPatrolWardRemove = '/archives/patrolWard/removeByIds',
  9. archivesPatrolWardQueryCheckRoomRecord = '/archives/patrolWard/queryCheckRoomRecord',
  10. archivesPatrolWardQueryPersonNumber = '/archives/patrolWard/queryPersonNumber',
  11. archivesPatrolWardFollowOrNo = '/archives/patrolWard/followOrNo',
  12. }
  13. /**
  14. *
  15. * @author fan
  16. * @date 2023/06/30 17:39
  17. * @description: 根据条件查询查房列表,权限 - biz:patrolward:query
  18. * @method: POST
  19. * @param:
  20. * {String} updatorName updator_name
  21. * @return:
  22. * {String} patientBasicId 基础病历id
  23. * {String} scheduledId 排床id
  24. * {Date} patrolTime 查房时间
  25. * {String} content 查房内容
  26. * {String} updatorName updator_name
  27. */
  28. export const archivesPatrolWardQueryCheckRoomRecord = (params?: object) => {
  29. return defHttp.post({
  30. url: Api.archivesPatrolWardQueryCheckRoomRecord,
  31. params: setParams(params),
  32. });
  33. };
  34. /**
  35. *
  36. * @author fan
  37. * @date 2023/06/30 17:39
  38. * @description: 根据条件查询查房列表,权限 - biz:patrolward:query
  39. * @method: POST
  40. * @param:
  41. * {String} updatorName updator_name
  42. * @return:
  43. * {String} patientBasicId 基础病历id
  44. * {String} scheduledId 排床id
  45. * {Date} patrolTime 查房时间
  46. * {String} content 查房内容
  47. * {String} updatorName updator_name
  48. */
  49. export const archivesPatrolWardQueryPage = (params?: object) => {
  50. return defHttp.post({ url: Api.archivesPatrolWardQueryPage, params: setParams(params) });
  51. };
  52. /**
  53. *
  54. * @author fan
  55. * @date 2023/06/30 17:39
  56. * @description: 根据id查询查房详细信息,权限 - biz:patrolward:query
  57. * @method: GET
  58. * @param: id 查房主键id
  59. * @return:
  60. * {String} patientBasicId 基础病历id
  61. * {String} scheduledId 排床id
  62. * {Date} patrolTime 查房时间
  63. * {String} content 查房内容
  64. * {String} updatorName updator_name
  65. */
  66. export const archivesPatrolWardDetail = (id: string) => {
  67. return defHttp.get({ url: Api.archivesPatrolWardDetail + '/' + id });
  68. };
  69. /**
  70. *
  71. * @author fan
  72. * @date 2023/06/30 17:39
  73. * @description: 添加查房,权限 - biz:patrolward:add
  74. * @method: POST
  75. * @param:
  76. * {String} patientBasicId 基础病历id
  77. * {String} scheduledId 排床id
  78. * {Date} patrolTime 查房时间
  79. * {String} content 查房内容
  80. * @return:
  81. * 0 添加失败
  82. * 1 添加成功
  83. */
  84. export const archivesPatrolWardAdd = (params?: object) => {
  85. return defHttp.post({ url: Api.archivesPatrolWardAdd, params: params });
  86. };
  87. /**
  88. *
  89. * @author fan
  90. * @date 2023/06/30 17:39
  91. * @description: 通过主键id编辑查房,权限 - biz:patrolward:edit
  92. * @method: POST
  93. * @param:
  94. * {String} patientBasicId 基础病历id
  95. * {String} scheduledId 排床id
  96. * {Date} patrolTime 查房时间
  97. * {String} content 查房内容
  98. * @return:
  99. * 0 编辑失败
  100. * 1 编辑成功
  101. */
  102. export const archivesPatrolWardEdit = (params?: object) => {
  103. return defHttp.post({ url: Api.archivesPatrolWardEdit, params: params });
  104. };
  105. /**
  106. * @description: 删除,权限 - biz:patrolward:remove
  107. * @method: POST
  108. */
  109. export const archivesPatrolWardRemove = (params: Array<string | number>) => {
  110. return defHttp.post({ url: Api.archivesPatrolWardRemove, params: params });
  111. };
  112. /**
  113. * @description: 查房页面各条件人员数量,权限 - biz:patrolward:querypersonnumber
  114. * @method: get
  115. */
  116. export const archivesPatrolWardQueryPersonNumber = () => {
  117. return defHttp.get({ url: Api.archivesPatrolWardQueryPersonNumber });
  118. };
  119. /**
  120. * @description: 关注或取消关注,权限 - biz:patrolward:followOrNo
  121. * @method: get
  122. */
  123. export const archivesPatrolWardFollowOrNo = () => {
  124. return defHttp.post({ url: Api.archivesPatrolWardFollowOrNo });
  125. };