index.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import { request, handle } from '@kasite/uni-app-base';
  2. import { REQUEST_CONFIG } from '@/config';
  3. /**
  4. * 咨询获取科室列表
  5. * 不传值 参数默认'' 查询一级科室
  6. * 传值查询二级科室
  7. */
  8. export const queryClinicBaseDept = async (queryData: any) => {
  9. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryClinicBaseDept/callApiJSON.do`, queryData));
  10. return handle.catchPromiseNew(resp, () => resp);
  11. };
  12. /**
  13. * 查询门诊排班时间
  14. */
  15. export const queryClinicScheduleDate = async (queryData: any) => {
  16. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryClinicScheduleDate/callApiJSON.do`, queryData));
  17. return handle.catchPromiseNew(resp, () => resp);
  18. };
  19. /**
  20. * 咨询 查询门诊排班时间
  21. */
  22. export const queryClinicDoctorSchedule = async (queryData: any) => {
  23. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryClinicDoctorSchedule/callApiJSON.do`, queryData));
  24. return handle.catchPromiseNew(resp, () => resp);
  25. };
  26. /**
  27. * 医生列表+详情信息
  28. */
  29. export const queryClinicBaseDoctor = async (queryData: any) => {
  30. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryClinicBaseDoctor/callApiJSON.do`, queryData));
  31. return handle.catchPromiseNew(resp, () => resp);
  32. };
  33. /**
  34. * 医生列表+详情信息
  35. */
  36. export const searchClinicDeptAndDoctor = async (queryData: any) => {
  37. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/SearchClinicDeptAndDoctor/callApiJSON.do`, queryData));
  38. return handle.catchPromiseNew(resp, () => resp);
  39. };
  40. /**
  41. * 搜索科室
  42. */
  43. export const queryDeptList_V2 = async (queryData: any) => {
  44. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptApi/QueryDeptList_V2/callApiJSON.do`, queryData));
  45. return handle.catchPromiseNew(resp, () => resp);
  46. };
  47. /**
  48. * 咨询搜索科室 医生
  49. */
  50. export const queryDoctorList_V2 = async (queryData: any) => {
  51. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryDoctorList_V2/callApiJSON.do`, queryData));
  52. return handle.catchPromiseNew(resp, () => resp);
  53. };
  54. /**
  55. * 咨询 查询历史医生
  56. */
  57. export const queryHistoryBaseDoctor = async (queryData: any) => {
  58. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryHistoryBaseDoctor/callApiJSON.do`, queryData));
  59. return handle.catchPromiseNew(resp, () => resp);
  60. };
  61. /**
  62. * 获取预约时间段
  63. */
  64. export const queryNumbers = async (queryData: any) => {
  65. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryNumbers/callApiJSON.do`, queryData));
  66. return handle.catchPromiseNew(resp, () => resp);
  67. };
  68. /**
  69. * 锁号
  70. */
  71. export const lockOrder = async (queryData: any) => {
  72. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/LockOrder/callApiJSON.do`, queryData));
  73. return handle.catchPromiseNew(resp, () => resp);
  74. };
  75. /**
  76. * 释号
  77. */
  78. export const unlock = async (queryData: any) => {
  79. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/Unlock/callApiJSON.do`, queryData));
  80. return handle.catchPromiseNew(resp, () => resp);
  81. };
  82. /**
  83. * 挂号(不支付)
  84. */
  85. export const bookService = async (queryData: any) => {
  86. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/BookService/callApiJSON.do`, queryData));
  87. return handle.catchPromiseNew(resp, () => resp);
  88. };
  89. /**
  90. * 签到
  91. */
  92. export const regSignForHis = async (queryData: any) => {
  93. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/queue/QueueWs/RegSignForHis/callApiJSON.do`, queryData));
  94. return handle.catchPromiseNew(resp, () => resp);
  95. };