index.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { request, handle } from '@kasite/uni-app-base';
  2. import { REQUEST_CONFIG } from '@/config';
  3. /**
  4. * 获取医院信息
  5. */
  6. export const queryBHospitalList = async (queryData: any) => {
  7. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/HosApi/QueryBHospitalList/callApiJSON.do`, queryData));
  8. return handle.catchPromiseNew(resp, () => resp);
  9. };
  10. export const queryBDeptList = async (queryData: any) => {
  11. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptApi/QueryBDeptList/callApiJSON.do`, queryData));
  12. return handle.catchPromiseNew(resp, () => resp);
  13. };
  14. export const queryBDoctorList = async (queryData: any) => {
  15. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryBDoctorList/callApiJSON.do`, queryData));
  16. return handle.catchPromiseNew(resp, () => resp);
  17. };
  18. export const queryBDoctorInfo = async (queryData: any) => {
  19. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryBDoctorInfo/callApiJSON.do`, queryData));
  20. return handle.catchPromiseNew(resp, () => resp);
  21. };
  22. /**
  23. * 获取科室介绍列表
  24. */
  25. export const queryBaseDeptTreeV2 = async (queryData: any) => {
  26. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptApi/QueryBaseDeptTreeV2/callApiJSON.do`, queryData));
  27. return handle.catchPromiseNew(resp, () => resp);
  28. };
  29. /**
  30. * 获取专家介绍列表
  31. */
  32. export const deptAndDocApiList = async (queryData: any) => {
  33. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptAndDocApi/List/callApiJSON.do`, queryData));
  34. return handle.catchPromiseNew(resp, () => resp);
  35. };