index.ts 4.6 KB

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