index.ts 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * @Author: wanglj wanglijie@dashoo.cn
  3. * @Date: 2025-02-27 10:35:40
  4. * @LastEditors: wanglj wanglijie@dashoo.cn
  5. * @LastEditTime: 2025-03-20 16:52:11
  6. * @Description: file content
  7. * @FilePath: \labsop_backup2\frontend\components\labsop-api\src\api\platform\appoint\index.ts
  8. */
  9. import request from '/@/utils/micro_request.js';
  10. const basePath = import.meta.env.VITE_PLATFORM_API;
  11. export function usePlatformAppointApi() {
  12. return {
  13. // 创建
  14. create(params?: Object) {
  15. return request.postRequest(basePath, 'PlatPlatformAppoint', 'Create', params)
  16. },
  17. // 列表
  18. getList(params?: Object) {
  19. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetList', params)
  20. },
  21. // 详情
  22. getDetail(params?: Object) {
  23. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetEntityById', params)
  24. },
  25. // 修改
  26. updateById(params?: Object) {
  27. return request.postRequest(basePath, 'PlatPlatformAppoint', 'UpdateById', params)
  28. },
  29. // 删除
  30. deleteById(params?: Object) {
  31. return request.postRequest(basePath, 'PlatPlatformAppoint', 'DeleteById', params)
  32. },
  33. // 审批
  34. approve(params?: Object) {
  35. return request.postRequest(basePath, 'PlatPlatformAppoint', 'Approve', params)
  36. },
  37. // 撤销
  38. quashApprove(params?: Object) {
  39. return request.postRequest(basePath, 'PlatPlatformAppoint', 'QuashApprove', params)
  40. },
  41. // 首页获取平台预约列表
  42. getHomePlatAppointList(params?: Object) {
  43. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetListByPlatformId', params)
  44. },
  45. // 待确认列表
  46. getConfirmedQueue(params?: Object) {
  47. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetConfirmedQueue', params)
  48. },
  49. // 获取次月待出室人员
  50. nextMonthPerson(params?: Object) {
  51. return request.postRequest(basePath, 'PlatPlatformAppoint', 'NextMonthPerson', params)
  52. },
  53. // 入室确认
  54. markNextMonthEntry(params?: Object) {
  55. return request.postRequest(basePath, 'PlatPlatformAppoint', 'MarkNextMonthEntry', params)
  56. },
  57. // 上传
  58. createFile(params?: Object) {
  59. return request.postRequest(basePath, 'PlatPlatformAppoint', 'CreateFile', params)
  60. },
  61. // 重新上传
  62. updateByIdAfterRefuse(params?: Object) {
  63. return request.postRequest(basePath, 'PlatPlatformAppoint', 'UpdateByIdAfterRefuse', params)
  64. },
  65. // 获取当前登录人的入室申请
  66. getUserInfoList(params?: Object) {
  67. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetUserInfoList', params)
  68. },
  69. // 获取入室管理列表
  70. getPlatformAppointList(params?: Object) {
  71. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetPlatformAppointList', params)
  72. },
  73. getCellEntityById(params?: Object) {
  74. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetCellEntityById', params)
  75. },
  76. getMolecularEntityById(params?: Object) {
  77. return request.postRequest(basePath, 'PlatPlatformAppoint', 'GetMolecularEntityById', params)
  78. },
  79. // 申请出室
  80. createCommonAppoint(params?: Object) {
  81. return request.postRequest(basePath, 'PlatPlatformAppoint', 'CreateCommonAppoint', params)
  82. }
  83. }
  84. }