scheduledMemoApi.ts 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { setParams } from '/@/utils/index';
  3. enum Api {
  4. bedScheduledMemoQueryPage = '/bed/scheduledMemo/query/page',
  5. bedScheduledMemoDetail = '/bed/scheduledMemo/detail',
  6. bedScheduledMemoAdd = '/bed/scheduledMemo/add',
  7. bedScheduledMemoEdit = '/bed/scheduledMemo/edit',
  8. bedScheduledMemoRemove = '/bed/scheduledMemo/removeByIds',
  9. }
  10. /**
  11. *
  12. * @author lf
  13. * @date 2023/07/17 16:06
  14. * @description: 根据条件查询排床备忘录列表,权限 - scheduled:scheduledMemo:query
  15. * @method: POST
  16. * @param:
  17. * @return:
  18. * {String} patientBasicId 基础病历id
  19. * {Date} appointmentDate 预约日期
  20. * {String} appointmentSailings 预约班次
  21. * {String} remark 备注
  22. * {String} creatorName creator_name
  23. * {String} updatorName updator_name
  24. */
  25. export const bedScheduledMemoQueryPage = (params?: object) => {
  26. return defHttp.post({ url: Api.bedScheduledMemoQueryPage, params: setParams(params) });
  27. };
  28. /**
  29. *
  30. * @author lf
  31. * @date 2023/07/17 16:06
  32. * @description: 根据id查询排床备忘录详细信息,权限 - scheduled:scheduledMemo:query
  33. * @method: GET
  34. * @param: id 排床备忘录主键id
  35. * @return:
  36. * {String} patientBasicId 基础病历id
  37. * {Date} appointmentDate 预约日期
  38. * {String} appointmentSailings 预约班次
  39. * {String} remark 备注
  40. * {String} creatorName creator_name
  41. * {String} updatorName updator_name
  42. */
  43. export const bedScheduledMemoDetail = (id: string) => {
  44. return defHttp.get({ url: Api.bedScheduledMemoDetail + '/' + id });
  45. };
  46. /**
  47. *
  48. * @author lf
  49. * @date 2023/07/17 16:06
  50. * @description: 添加排床备忘录,权限 - scheduled:scheduledMemo:add
  51. * @method: POST
  52. * @param:
  53. * {String} patientBasicId 基础病历id
  54. * {Date} appointmentDate 预约日期
  55. * {String} appointmentSailings 预约班次
  56. * {String} remark 备注
  57. * {String} creatorName creator_name
  58. * {String} updatorName updator_name
  59. * @return:
  60. * 0 添加失败
  61. * 1 添加成功
  62. */
  63. export const bedScheduledMemoAdd = (params?: object) => {
  64. return defHttp.post({ url: Api.bedScheduledMemoAdd, params: params });
  65. };
  66. /**
  67. *
  68. * @author lf
  69. * @date 2023/07/17 16:06
  70. * @description: 通过主键id编辑排床备忘录,权限 - scheduled:scheduledMemo:edit
  71. * @method: POST
  72. * @param:
  73. * {String} patientBasicId 基础病历id
  74. * {Date} appointmentDate 预约日期
  75. * {String} appointmentSailings 预约班次
  76. * {String} remark 备注
  77. * {String} creatorName creator_name
  78. * {String} updatorName updator_name
  79. * @return:
  80. * 0 编辑失败
  81. * 1 编辑成功
  82. */
  83. export const bedScheduledMemoEdit = (params?: object) => {
  84. return defHttp.post({ url: Api.bedScheduledMemoEdit, params: params });
  85. };
  86. /**
  87. * @description: 删除,权限 - scheduled:scheduledMemo:remove
  88. * @method: POST
  89. */
  90. export const bedScheduledMemoRemove = (params: Array<string | number>) => {
  91. return defHttp.post({ url: Api.bedScheduledMemoRemove, params: params });
  92. };