index.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import { request, handle } from '@kasite/uni-app-base';
  2. import { REQUEST_CONFIG } from '@/config';
  3. /**
  4. * 通过疾病搜索医生
  5. */
  6. export const searchDoctorByDisease = async (queryData: any) => {
  7. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/base/doctordisease/SearchDoctorByDisease/callApiJSON.do`, queryData));
  8. return handle.catchPromiseNew(resp, () => resp);
  9. };
  10. /**
  11. * 获取科室列表
  12. */
  13. export const queryPreciseYyDeptTree = async (queryData: any) => {
  14. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/QueryPreciseYyDeptTree/callApiJSON.do`, queryData));
  15. return handle.catchPromiseNew(resp, () => resp, false);
  16. };
  17. /**
  18. * 搜索科室、医生信息
  19. */
  20. export const searchClinicDeptAndDoctor = async (queryData: any) => {
  21. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/SearchClinicDeptAndDoctor/callApiJSON.do`, queryData));
  22. return handle.catchPromiseNew(resp, () => resp);
  23. };
  24. /**
  25. * 查询下一级的科室数据
  26. */
  27. export const queryPreciseYyDept = async (queryData: any) => {
  28. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/QueryPreciseYyDept/callApiJSON.do`, queryData));
  29. return handle.catchPromiseNew(resp, () => resp);
  30. };
  31. /**
  32. * 查询历史医生
  33. */
  34. export const queryHistoryBaseDoctor = async (queryData: any) => {
  35. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryHistoryBaseDoctor/callApiJSON.do`, queryData));
  36. return handle.catchPromiseNew(resp, () => resp);
  37. };
  38. /**
  39. * 查询人群疾病列表
  40. */
  41. export const queryCrowdDiseaseList = async (queryData: any) => {
  42. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/crowd/QueryCrowdDiseaseList/callApiJSON.do`, queryData));
  43. return handle.catchPromiseNew(resp, () => resp);
  44. };
  45. /**
  46. * 查询医生及排班列表
  47. */
  48. export const queryClinicDoctorSchedulePA = async (queryData: any) => {
  49. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/QueryClinicDoctorSchedule/callApiJSON.do`, queryData));
  50. return handle.catchPromiseNew(resp, () => resp);
  51. };
  52. /**
  53. * 查询可约排班日期
  54. */
  55. export const queryClinicScheduleDate = async (queryData: any) => {
  56. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryClinicScheduleDate/callApiJSON.do`, queryData));
  57. return handle.catchPromiseNew(resp, () => resp);
  58. };
  59. /**
  60. * 获取医生职称
  61. */
  62. export const dataList = async (queryData: any) => {
  63. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/sys/dict/DataList/callApiJSON.do`, queryData));
  64. return handle.catchPromiseNew(resp, () => resp);
  65. };
  66. /**
  67. * 专病门诊详情
  68. */
  69. export const detail = async (queryData: any) => {
  70. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/specialtyClinic/Detail/callApiJSON.do`, queryData));
  71. return handle.catchPromiseNew(resp, () => resp);
  72. };
  73. /**
  74. * 诊疗组
  75. */
  76. export const queryDiagnoseGroupList = async (queryData: any) => {
  77. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/diagnoseGroup/QueryDiagnoseGroupList/callApiJSON.do`, queryData));
  78. return handle.catchPromiseNew(resp, () => resp);
  79. };
  80. /**
  81. * 我的历史疾病诊断
  82. */
  83. export const queryHistoryDiseaseList = async (queryData: any) => {
  84. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/precise/yy/QueryHistoryDiseaseList/callApiJSON.do`, queryData));
  85. return handle.catchPromiseNew(resp, () => resp);
  86. };
  87. /**
  88. * 查询团队列表信息
  89. */
  90. export const queryTeamList = async (queryData: any) => {
  91. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/mdt/mdtService/QueryTeamList/callApiJSON.do`, queryData));
  92. return handle.catchPromiseNew(resp, () => resp);
  93. };