index.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { request, handle } from '@kasite/uni-app-base';
  2. import { REQUEST_CONFIG } from '@/config';
  3. /**
  4. * 获取电子病历明细
  5. */
  6. export const getEMRInfo = async (queryData: any) => {
  7. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetEMRInfo/callApiJSON.do`, queryData));
  8. return handle.catchPromiseNew(resp, () => resp);
  9. };
  10. /**
  11. * 医技预约回执单
  12. */
  13. export const getAppointReceiptInfo = async (hisKey: any) => {
  14. const queryData = {
  15. HisKey: hisKey
  16. };
  17. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/GetAppointReceiptInfo/callApiJSON.do`, queryData));
  18. return handle.catchPromiseNew(resp, () => resp);
  19. };
  20. /**
  21. * 医技预约查询检查预约信息
  22. */
  23. export const queryExamItemList = async (data: any = {}) => {
  24. const queryData = {
  25. MemberId: data.memberId || '',
  26. CardType: data.cardType || '',
  27. CardNo: data.cardNo || '',
  28. StartDate: data.beginDate || '',
  29. EndDate: data.endDate || ''
  30. };
  31. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryExamItemList/callApiJSON.do`, queryData));
  32. return handle.catchPromiseNew(resp, () => resp);
  33. };
  34. export const getMedicalReceipts = async (queryData: any) => {
  35. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/diy/queryApi/GetMedicalReceipts/callApiJSON.do`, queryData));
  36. return handle.catchPromiseNew(resp, () => resp);
  37. };
  38. /**
  39. * 取消医技预约
  40. */
  41. export const cancelAppoint = async (queryData: any) => {
  42. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/CancelAppoint/callApiJSON.do`, queryData));
  43. return handle.catchPromiseNew(resp, () => resp);
  44. };