index.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import { request, handle } from '@kasite/uni-app-base';
  2. // @ts-ignore
  3. import api from '@/pagesPatient/service/api';
  4. import { REQUEST_CONFIG } from '@/config';
  5. /**
  6. * 获取校验码
  7. */
  8. export const sendVerificationCode_V3 = async (queryData: any) => {
  9. let resp = handle.promistHandleNew(await request.doPost(api.SendVerificationCode_V3, queryData));
  10. return handle.catchPromiseNew(resp, () => resp);
  11. };
  12. /**
  13. * 校验验证码
  14. */
  15. export const checkVerificationCode_V3 = async (queryData: any) => {
  16. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/CheckVerificationCode_V3/callApiJSON.do`, queryData));
  17. return handle.catchPromiseNew(resp, () => resp);
  18. };
  19. /**
  20. * OCR身份验证
  21. */
  22. export const idCardVerification = async (queryData: any) => {
  23. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/medicalCopy/MedicalCopyApi/IdCardVerification/callApiJSON.do`, queryData));
  24. return handle.catchPromiseNew(resp, () => resp);
  25. };
  26. /**
  27. * 退款人员信息登记
  28. */
  29. export const refundRegister = async (queryData: any) => {
  30. let resp = handle.promistHandleNew(await request.doPost(api.RefundRegister, queryData));
  31. return handle.catchPromiseNew(resp, () => resp, { showModal: false });
  32. };
  33. /**
  34. * 退款申请记录
  35. */
  36. export const refundSelect = async (queryData: any) => {
  37. let resp = handle.promistHandleNew(await request.doPost(api.RefundSelect, queryData));
  38. return handle.catchPromiseNew(resp, () => resp);
  39. };
  40. /**
  41. * 退款申请记录
  42. */
  43. export const refundSelectNew = async (queryData: any) => {
  44. let resp = handle.promistHandleNew(await request.doPost(api.RefundSelect, queryData));
  45. return handle.catchPromiseNew(resp, () => resp);
  46. };
  47. /**
  48. * 银行卡号查询银行
  49. */
  50. export const getBankName = async (queryData: any) => {
  51. let resp = handle.promistHandleNew(await request.doPost(api.GetBankName, queryData));
  52. return handle.catchPromiseNew(resp, () => resp);
  53. };
  54. /**
  55. * 获取患者信息
  56. */
  57. export const getPatInfo = async (queryData: any) => {
  58. let resp = handle.promistHandleNew(await request.doPost(api.GetPatInfo, queryData));
  59. return handle.catchPromiseNew(resp, () => resp);
  60. };
  61. /**
  62. * 查可退余额(详情)
  63. */
  64. export const queryCanOriginalReturnedMoney = async (queryData: any) => {
  65. let resp = handle.promistHandleNew(
  66. await request.doPost(
  67. `${REQUEST_CONFIG.BASE_URL}wsgw/refund/refundRegister/QueryCanOriginalReturnedMoney/callApiJSON.do`,
  68. queryData
  69. )
  70. );
  71. return handle.catchPromiseNew(resp, () => resp);
  72. };