index.ts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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. };
  146. // ======================================= 互联网医院 ==========================================
  147. /**
  148. * 查询推荐科室
  149. * @param HosId String 机构ID
  150. * @param IsRcmd String 是否推荐 1:是
  151. */
  152. export const queryConsultDeptList = async (queryData: any) => {
  153. let resp = handle.promistHandleNew(
  154. await request.doPost(
  155. `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryConsultDeptList/callApiJSON.do`,
  156. queryData
  157. )
  158. );
  159. return handle.catchPromiseNew(resp, () => resp);
  160. };
  161. /**
  162. * 查询推荐医生
  163. * @param HosId String 机构ID
  164. * @param IsRcmd String 是否推荐 1:是
  165. */
  166. export const queryRcmdConsultDoctorList = async (queryData: any) => {
  167. let resp = handle.promistHandleNew(
  168. await request.doPost(
  169. `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryRcmdConsultDoctorList/callApiJSON.do`,
  170. queryData
  171. )
  172. );
  173. return handle.catchPromiseNew(resp, () => resp);
  174. };
  175. /**
  176. * 查询关注医生
  177. * @param resourceType String 资源类型 1:医生
  178. */
  179. export const queryUserCollect = async (queryData: any) => {
  180. let resp = handle.promistHandleNew(
  181. await request.doPost(
  182. `${REQUEST_CONFIG.BASE_URL}wsgw/user/collect/QueryUserCollect/callApiJSON.do`,
  183. queryData
  184. )
  185. );
  186. return handle.catchPromiseNew(resp, () => resp);
  187. };
  188. /**
  189. * 查询代办消息
  190. * @param OpenId String 用户OpenId
  191. * @param BusinessId String 业务ID
  192. * @param BacklogType String 代办类型 1咨询申请2咨询消息3随访消息4医患申请5日程计划
  193. * @param ReadState String 阅读状态 1未读 2已读
  194. * @param UserType String 用户类型 1.就诊人,2.医生
  195. * @param IsGroup String 是否分组 1:是
  196. */
  197. export const queryBackLogMsg = async (queryData: any) => {
  198. let resp = handle.promistHandleNew(
  199. await request.doPost(
  200. `${REQUEST_CONFIG.BASE_URL}wsgw/msg/BackLog/QueryBackLogMsg/callApiJSON.do`,
  201. queryData
  202. )
  203. );
  204. return handle.catchPromiseNew(resp, () => resp);
  205. };
  206. /**
  207. * 获取专家介绍列表 (根据doctorUid查询对应医生)
  208. * @param DoctorUid String 医生UID,多个用逗号分隔
  209. */
  210. export const queryBDoctorList = async (queryData: any) => {
  211. let resp = handle.promistHandleNew(
  212. await request.doPost(
  213. `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryBDoctorList/callApiJSON.do`,
  214. queryData
  215. )
  216. );
  217. return handle.catchPromiseNew(resp, () => resp);
  218. };
  219. /**
  220. * 获取咨询记录
  221. * @param ConsultStartDate String 咨询开始日期
  222. * @param ConsultEndDate String 咨询结束日期
  223. * @param ConsultStatus String 咨询状态 16:已预约视频问诊
  224. */
  225. export const queryConsultWaterList = async (queryData: any) => {
  226. let resp = handle.promistHandleNew(
  227. await request.doPost(
  228. `${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/QueryConsultWaterList/callApiJSON.do`,
  229. queryData
  230. )
  231. );
  232. return handle.catchPromiseNew(resp, () => resp);
  233. };
  234. /**
  235. * 获取文章列表
  236. * @param TypeClass Number 类型 0 新闻动态;1 通知公告;2 健康宣教;3 就诊指南;4 住院需知 62 首页banner
  237. * @param Status Number 状态 1已发布
  238. * @param Type Number 类型 1链接
  239. */
  240. export const queryArticleList = async (queryData: any) => {
  241. let resp = handle.promistHandleNew(
  242. await request.doPost(
  243. `${REQUEST_CONFIG.BASE_URL}wsgw/basic/BasicApi/QueryArticleList/callApiJSON.do`,
  244. queryData
  245. )
  246. );
  247. return handle.catchPromiseNew(resp, () => resp);
  248. };
  249. /**
  250. * 查询咨询医生组
  251. * @param IsMemberCollect Number 是否会员关注 1:是
  252. */
  253. export const queryConsultDoctorGroup = async (queryData: any) => {
  254. let resp = handle.promistHandleNew(
  255. await request.doPost(
  256. `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoctorGroup/QueryConsultDoctorGroup/callApiJSON.do`,
  257. queryData
  258. )
  259. );
  260. return handle.catchPromiseNew(resp, () => resp);
  261. };
  262. /**
  263. * 数据埋点(互联网)
  264. * @param Type Number 类型 26:患者端 27:医生端 28:患者端添加就诊人
  265. */
  266. export const saveConsultVisit = async (queryData: any) => {
  267. let resp = handle.promistHandleNew(
  268. await request.doPost(
  269. `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultStatsNew/SaveConsultVisit/callApiJSON.do`,
  270. queryData
  271. )
  272. );
  273. return handle.catchPromiseNew(resp, () => resp);
  274. };
  275. // ======================================= 互联网医院 ==========================================