index.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. import { request, handle } from '@kasite/uni-app-base';
  2. import { REQUEST_CONFIG } from '@/config';
  3. /**
  4. * 获取报告单列表
  5. * reportType默认2 查询检查报告单
  6. * cardType默认1 查询门诊报告单
  7. */
  8. export const getReportList = async (queryData: any) => {
  9. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetReportList/callApiJSON.do`, queryData));
  10. return handle.catchPromiseNew(resp, () => resp);
  11. };
  12. /**
  13. * 获取报告单明细
  14. * reportType默认2 查询检查报告单
  15. * cardType默认1 查询门诊报告单
  16. */
  17. export const getReportInfo = async (queryData: any) => {
  18. const url = queryData.ReportType == '3' ? `${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetTjReportInfo/callApiJSON.do` : `${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetReportInfo/callApiJSON.do`;
  19. let resp = handle.promistHandleNew(await request.doPost(url, queryData));
  20. return handle.catchPromiseNew(resp, () => resp);
  21. };
  22. /**
  23. * 获取健康卡号
  24. */
  25. export const getHealthCard = async (queryData: any) => {
  26. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/GetHealthCard/callApiJSON.do`, queryData));
  27. return handle.catchPromiseNew(resp, () => resp);
  28. };