index.ts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. import { request, handle } from '@kasite/uni-app-base';
  2. import { REQUEST_CONFIG } from '@/config';
  3. /**
  4. * 获取订单列表
  5. */
  6. export const orderListLocal = async (queryData: any) => {
  7. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/OrderListLocal/callApiJSON.do`, queryData));
  8. return handle.catchPromiseNew(resp, () => resp);
  9. };
  10. /**
  11. * 查询订单明细
  12. */
  13. export const orderDetailLocal = async (queryData: any, showLoading: boolean = true) => {
  14. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/OrderDetailLocal/callApiJSON.do`, queryData, {
  15. showLoading: showLoading
  16. }));
  17. return handle.catchPromiseNew(resp, () => resp);
  18. };
  19. /**
  20. * 取消订单 退号
  21. */
  22. export const orderCancel = async (queryData: any, serviceId: any) => {
  23. let url = `${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/CancelOrder/callApiJSON.do`;
  24. if (serviceId == '0' || serviceId == '009') {
  25. // 判断为his预约
  26. if (queryData.hisOrderId) {
  27. url = `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/HisYyCancel/callApiJSON.do`;
  28. } else {
  29. url = `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/YYCancel/callApiJSON.do`;
  30. }
  31. }
  32. let resp = handle.promistHandleNew(await request.doPost(url, queryData));
  33. return handle.catchPromiseNew(resp, () => resp);
  34. };
  35. /**
  36. * 查询预约记录
  37. */
  38. export const hisYyWaterList_V2 = async (queryData: any) => {
  39. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/HisYyWaterList_V2/callApiJSON.do`, queryData));
  40. return handle.catchPromiseNew(resp, () => resp);
  41. };
  42. /**
  43. * 查询门诊就诊记录
  44. */
  45. export const queryOutpatientVisitList = async (queryData: any) => {
  46. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryOutpatientVisitList/callApiJSON.do`, queryData));
  47. return handle.catchPromiseNew(resp, () => resp);
  48. };
  49. /**
  50. * 查询住院记录
  51. */
  52. export const queryInpatientList = async (queryData: any) => {
  53. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/InHosApi/QueryInpatientList/callApiJSON.do`, queryData));
  54. return handle.catchPromiseNew(resp, () => resp);
  55. };
  56. /**
  57. * 查询病历列表
  58. */
  59. export const getMedicalRecords = async (queryData: any) => {
  60. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetMedicalRecords/callApiJSON.do`, queryData));
  61. return handle.catchPromiseNew(resp, () => resp);
  62. };
  63. /**
  64. * 查询门诊医嘱处方信息
  65. */
  66. export const queryOutpatientDocAdviceList = async (queryData: any) => {
  67. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryOutpatientDocAdviceList/callApiJSON.do`, queryData));
  68. return handle.catchPromiseNew(resp, () => resp);
  69. };
  70. /**
  71. * 查询住院医嘱处方信息
  72. */
  73. export const queryInpatientDocAdviceList = async (queryData: any) => {
  74. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryInpatientDocAdviceList/callApiJSON.do`, queryData));
  75. return handle.catchPromiseNew(resp, () => resp);
  76. };
  77. /**
  78. * 查询候补记录
  79. */
  80. export const waitListApiList = async (queryData: any) => {
  81. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/waitListApi/List/callApiJSON.do`, queryData));
  82. return handle.catchPromiseNew(resp, () => resp);
  83. };
  84. /**
  85. * 更新候补登记
  86. */
  87. export const waitListUpdate = async (queryData: any) => {
  88. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/waitListApi/Update/callApiJSON.do`, queryData));
  89. return handle.catchPromiseNew(resp, () => resp);
  90. };
  91. /**
  92. * 精准预约-查询预约申请记录列表
  93. */
  94. export const preciseQueryAppoApplyList = async (queryData: any) => {
  95. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/appoApply/QueryAppoApplyList/callApiJSON.do`, queryData));
  96. return handle.catchPromiseNew(resp, () => resp);
  97. };
  98. /**
  99. * 精准预约-查询预约申请记录列表
  100. */
  101. export const precisePatientEditAppoApply = async (queryData: any) => {
  102. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/appoApply/PatientEditAppoApply/callApiJSON.do`, queryData));
  103. return handle.catchPromiseNew(resp, () => resp);
  104. };
  105. /**
  106. * 问卷详情
  107. */
  108. export const querySubjectInfoById_V3 = async (queryData: any) => {
  109. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySubjectInfoById/callApiJSON.do`, queryData));
  110. return handle.catchPromiseNew(resp, () => resp);
  111. };
  112. /**
  113. * 问卷-查询样本和答案
  114. */
  115. export const querySample_V3 = async (queryData: any) => {
  116. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySample/callApiJSON.do`, queryData));
  117. return handle.catchPromiseNew(resp, () => resp);
  118. };