index.ts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import { REQUEST_CONFIG } from '@/config';
  2. import { request, handle } from '@kasite/uni-app-base';
  3. /**
  4. * 首页 热点资讯
  5. * @param ChannelId String 渠道ID
  6. * @param eqTitle String 资讯标题
  7. */
  8. export const articleTypeListUrl = async (queryData: any) => {
  9. let resp = handle.promistHandleNew(
  10. await request.doPost(
  11. `${REQUEST_CONFIG.BASE_URL}wsgw/article/type/List/callApiJSON.do`,
  12. queryData
  13. )
  14. );
  15. return handle.catchPromiseNew(resp, () => resp);
  16. };
  17. /**
  18. * 首页 置顶文章
  19. * @param ChannelId String 渠道ID
  20. * @param PSize String 分页大小
  21. * @param RootTypeId String 资讯类型ID
  22. */
  23. export const topArticleListUrl = async (queryData: any) => {
  24. let resp = handle.promistHandleNew(
  25. await request.doPost(
  26. `${REQUEST_CONFIG.BASE_URL}wsgw/article/mgr/TopArticleInfoList/callApiJSON.do`,
  27. queryData
  28. )
  29. );
  30. return handle.catchPromiseNew(resp, () => resp);
  31. };
  32. /**
  33. * 主动式服务-获取患者最新一条主动式服务消息
  34. * @param OrgId String 机构ID
  35. * @param MemberId String 就诊人ID
  36. * @param cardEncryptionStore String 就诊卡加密存储
  37. * @param memberEncryptionStore String 就诊人加密存储
  38. * @param ChannelId String 渠道ID
  39. */
  40. export const getMemberLastMsg = async (queryData: any) => {
  41. let resp = handle.promistHandleNew(
  42. await request.doPost(
  43. `${REQUEST_CONFIG.BASE_URL}wsgw/active/form/GetMemberLastMsg/callApiJSON.do`,
  44. queryData
  45. )
  46. );
  47. return handle.catchPromiseNew(resp, () => resp);
  48. };
  49. /**
  50. * 咨询查询历史医生
  51. * @param HosId String 机构ID
  52. * @param HasSch String 是否查询his,0:本地,1:his
  53. * @param QueryLocal String
  54. * @param MemberIds String 就诊人ID
  55. */
  56. export const queryHistoryBaseDoctor = async (queryData: any) => {
  57. let resp = handle.promistHandleNew(
  58. await request.doPost(
  59. `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryHistoryBaseDoctor/callApiJSON.do`,
  60. queryData
  61. )
  62. );
  63. return handle.catchPromiseNew(resp, () => resp);
  64. };
  65. /**
  66. * 搜索医生/科室
  67. * @param HosId String 机构ID
  68. * @param SearchLike String 搜索关键词
  69. * @param QueryLocal String 1
  70. * @param UseBaseInfo String 是否使用基础信息
  71. * @param ExcludeOneLv String 是否过滤一级科室
  72. */
  73. export const searchClinicDeptAndDoctor = async (queryData: any) => {
  74. let resp = handle.promistHandleNew(
  75. await request.doPost(
  76. `${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/SearchClinicDeptAndDoctor/callApiJSON.do`,
  77. queryData
  78. )
  79. );
  80. return handle.catchPromiseNew(resp, () => resp);
  81. };
  82. /**
  83. * 搜索科室
  84. */
  85. export const queryDeptList_V2 = async (queryData: any) => {
  86. let resp = handle.promistHandleNew(
  87. await request.doPost(
  88. `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptApi/QueryDeptList_V2/callApiJSON.do`,
  89. queryData
  90. )
  91. );
  92. return handle.catchPromiseNew(resp, () => resp);
  93. };
  94. /**
  95. * 咨询搜索科室 医生
  96. */
  97. export const queryDoctorList_V2 = async (queryData: any) => {
  98. let resp = handle.promistHandleNew(
  99. await request.doPost(
  100. `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryDoctorList_V2/callApiJSON.do`,
  101. queryData
  102. )
  103. );
  104. return handle.catchPromiseNew(resp, () => resp);
  105. };
  106. /**
  107. * 获取信用授权数据
  108. * @param MemberId String 就诊人ID
  109. * @param AccountSn String
  110. */
  111. export const queryMemberHeaderInfo = async (queryData: any) => {
  112. let resp = handle.promistHandleNew(
  113. await request.doPost(
  114. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberHeaderInfo/callApiJSON.do`,
  115. queryData
  116. )
  117. );
  118. return handle.catchPromiseNew(resp, () => resp);
  119. };
  120. /**
  121. * 设置是否可退费
  122. * @param MemberId String 就诊人ID
  123. * @param AutoRefundMark String 自动退费标记 0:否 1:是
  124. */
  125. export const saveAutoRefundMark = async (queryData: any) => {
  126. let resp = handle.promistHandleNew(
  127. await request.doPost(
  128. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SaveAutoRefundMark/callApiJSON.do`,
  129. queryData
  130. )
  131. );
  132. return handle.catchPromiseNew(resp, () => resp);
  133. };
  134. /**
  135. * 授权亲友数 列表
  136. */
  137. export const queryAuthUserMemberList = async (queryData: any) => {
  138. let resp = handle.promistHandleNew(
  139. await request.doPost(
  140. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryAuthUserMemberList/callApiJSON.do`,
  141. queryData
  142. )
  143. );
  144. return handle.catchPromiseNew(resp, () => resp);
  145. };