index.ts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. import { REQUEST_CONFIG } from '@/config';
  2. import { request, handle } from '@kasite/uni-app-base';
  3. /**
  4. * 处方合并结算
  5. */
  6. export const mergeSettledPayReceipt = async (queryData: any, options?: any) => {
  7. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/MergeSettledPayReceipt/callApiJSON.do`, queryData, options));
  8. return handle.catchPromiseNew(resp, () => resp, options);
  9. };
  10. /**
  11. * 处方单笔结算
  12. */
  13. export const addOrderPrescription = async (queryData: any, options?: any) => {
  14. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/AddOrderPrescription/callApiJSON.do`, queryData, options));
  15. return handle.catchPromiseNew(resp, () => resp, options);
  16. };
  17. /**
  18. * 查询未结算处方列表/查询发药的列表
  19. */
  20. export const queryOrderSettlementList = async (queryData: any, options?: any) => {
  21. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/QueryOrderSettlementList/callApiJSON.do`, queryData, options));
  22. return handle.catchPromiseNew(resp, () => resp, options);
  23. };
  24. /**
  25. * 查询未结算处方列表
  26. */
  27. export const queryCardBalance_V3 = async (queryData: any, options?: any) => {
  28. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryCardBalance_V3/callApiJSON.do`, queryData, options));
  29. return handle.catchPromiseNew(resp, () => resp, options);
  30. };
  31. /**
  32. * 预交金模式处方结算
  33. */
  34. export const settleOrderSettlement = async (queryData: any, options?: any) => {
  35. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/SettleOrderSettlement/callApiJSON.do`, queryData, options));
  36. return handle.catchPromiseNew(resp, () => resp, options);
  37. };
  38. /**
  39. * 查询收件人地址列表
  40. */
  41. export const queryUserAddressList = async (queryData: any, options?: any) => {
  42. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/user/addressApi/QueryUserAddressList/callApi.do`, queryData, options));
  43. return handle.catchPromiseNew(resp, () => resp, false);
  44. };
  45. /**
  46. * 查询发药的列表
  47. */
  48. export const querySendMedical = async (queryData: any, options?: any) => {
  49. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/businessOrder/QueryOrderSettlementList/callApiJSON.do`, queryData, options));
  50. return handle.catchPromiseNew(resp, () => resp, false);
  51. };
  52. /**
  53. * 物流下单
  54. */
  55. export const netLogistic = async (queryData: any, options?: any) => {
  56. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/net/businessOrder/NetLogistic/callApi.do`, queryData, options));
  57. return handle.catchPromiseNew(resp, () => resp, false);
  58. };
  59. /**
  60. * 查询物流流水
  61. */
  62. export const queryNetLogisticWater = async (queryData: any, options?: any) => {
  63. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/net/businessOrder/QueryNetLogisticWater/callApi.do`, queryData, options));
  64. return handle.catchPromiseNew(resp, () => resp, false);
  65. };
  66. /**
  67. * 获取医保授权信息
  68. */
  69. export const getMedicalInsUserInfo = async (queryData: any, options?: any) => {
  70. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/medicalIns/medicalInsApi/GetMedicalInsUserInfo/callApiJSON.do`, queryData, options));
  71. return handle.catchPromiseNew(resp, () => resp, options);
  72. };
  73. /**
  74. * 获取用户医保授权地址
  75. */
  76. export const getMedicalInsAuthUrl = async (queryData: any, options?: any) => {
  77. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/medicalIns/medicalInsApi/GetMedicalInsAuthUrl/callApiJSON.do`, queryData, options));
  78. return handle.catchPromiseNew(resp, () => resp, options);
  79. };
  80. /**
  81. * 医保下单
  82. */
  83. export const addMedicalInsSettleOrder = async (queryData: any, options?: any) => {
  84. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/medicalIns/medicalInsApi/AddMedicalInsSettleOrder/callApiJSON.do`, queryData, {
  85. showLoading: false,
  86. ...options
  87. }));
  88. return handle.catchPromiseNew(resp, () => resp, options);
  89. };
  90. /**
  91. * 医保预结算
  92. */
  93. export const medicalInsOrderPreSettle = async (queryData: any, options?: any) => {
  94. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/medicalIns/medicalInsApi/MedicalInsOrderPreSettle/callApiJSON.do`, queryData, {
  95. showLoading: false,
  96. ...options
  97. }));
  98. return handle.catchPromiseNew(resp, () => resp, options);
  99. };
  100. /**
  101. * 获取结算地址
  102. */
  103. export const medicalInsOrderSettle = async (queryData: any, options?: any) => {
  104. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/medicalIns/medicalInsApi/MedicalInsOrderSettle/callApiJSON.do`, queryData, {
  105. showLoading: false,
  106. ...options
  107. }));
  108. return handle.catchPromiseNew(resp, () => resp, options);
  109. };
  110. /**
  111. * 结算成功后通知HIS医保结算
  112. */
  113. export const notifyMedicalInsSettle = async (queryData: any, options?: any) => {
  114. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/medicalIns/medicalInsApi/NotifyMedicalInsSettle/callApiJSON.do`, queryData, options));
  115. return handle.catchPromiseNew(resp, () => resp, options);
  116. };
  117. /**
  118. * 生成订单
  119. */
  120. export const addOrderLocal = async (queryData: any, options?: any) => {
  121. let resp = handle.promistHandle(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/AddOrderLocal/callApiJSON.do`, queryData, options));
  122. return handle.catchPromise(resp, () => resp);
  123. };
  124. /**
  125. * 获取入院登记记录
  126. */
  127. export const queryInHospitalList = async (queryData: any, options?: any) => {
  128. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/presc/net/QueryInHospitalList/callApiJSON.do`, queryData, options));
  129. return handle.catchPromiseNew(resp, () => resp, options);
  130. };
  131. /**
  132. * 取消入院登记记录
  133. */
  134. export const cancelInHospital = async (queryData: any, options?: any) => {
  135. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/presc/net/CancelInHospital/callApiJSON.do`, queryData, options));
  136. return handle.catchPromiseNew(resp, () => resp, options);
  137. };
  138. /**
  139. * 物流轨迹接口
  140. */
  141. export const getFengQiaoLogistics = async (queryData: any, options?: any) => {
  142. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/net/businessOrder/GetFengQiaoLogistics/callApiJSON.do`, queryData, options));
  143. return handle.catchPromiseNew(resp, () => resp, false);
  144. };