index.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. import { REQUEST_CONFIG } from '@/config';
  2. import { request, handle } from '@kasite/uni-app-base';
  3. /**
  4. * 获取咨询记录
  5. */
  6. export const queryConsultWaterList = async (queryData: any, options?: any) => {
  7. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/QueryConsultWaterList/callApiJSON.do`, queryData, options));
  8. return handle.catchPromiseNew(resp, () => resp, options);
  9. };
  10. /**
  11. * 查询房间列表信息
  12. */
  13. export const queryConsultRoomList = async (queryData: any, options?: any) => {
  14. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultRoom/QueryConsultRoomList/callApiJSON.do`, queryData, options));
  15. return handle.catchPromiseNew(resp, () => resp, options);
  16. };
  17. /**
  18. * 获取报告单列表
  19. */
  20. export const getReportList = async (queryData: any, options?: any) => {
  21. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetReportList/callApiJSON.do`, queryData, options));
  22. return handle.catchPromiseNew(resp, () => resp, options);
  23. };
  24. /**
  25. * 查询处方明细
  26. */
  27. export const queryNetOrderSettlement = async (queryData: any, options?: any) => {
  28. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/net/businessOrder/QueryNetOrderSettlement/callApiJSON.do`, queryData, options));
  29. return handle.catchPromiseNew(resp, () => resp, options);
  30. };
  31. /**
  32. * 咨询查询门诊排班列表
  33. */
  34. export const queryClinicDoctorSchedule = async (queryData: any, options?: any) => {
  35. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryClinicDoctorSchedule/callApiJSON.do`, queryData, options));
  36. return handle.catchPromiseNew(resp, () => resp, options);
  37. };
  38. /**
  39. * 获取预约时间段
  40. */
  41. export const queryNumbers = async (queryData: any, options?: any) => {
  42. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryNumbers/callApiJSON.do`, queryData, options));
  43. return handle.catchPromiseNew(resp, () => resp, options);
  44. };
  45. /**
  46. * 申请图文咨询
  47. */
  48. export const applyImgTxtConsult = async (queryData: any, options?: any) => {
  49. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/ApplyImgTxtConsult/callApiJSON.do`, queryData, options));
  50. return handle.catchPromiseNew(resp, () => resp, options);
  51. };
  52. /**
  53. * 锁号
  54. */
  55. export const lockOrder = async (queryData: any, options?: any) => {
  56. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/LockOrder/callApiJSON.do`, queryData, options));
  57. return handle.catchPromiseNew(resp, () => resp, options);
  58. };
  59. /**
  60. * 释号
  61. */
  62. export const unlock = async (queryData: any, options?: any) => {
  63. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/Unlock/callApiJSON.do`, queryData, options));
  64. return handle.catchPromiseNew(resp, () => resp, options);
  65. };
  66. /**
  67. * 视频咨询申请
  68. */
  69. export const applyVideoConsult = async (queryData: any, options?: any) => {
  70. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/ApplyVideoConsult/callApiJSON.do`, queryData, options));
  71. return handle.catchPromiseNew(resp, () => resp, options);
  72. };
  73. /**
  74. * 搜索医生
  75. */
  76. export const queryConsultDoctorList = async (queryData: any, options?: any) => {
  77. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryConsultDoctorList/callApiJSON.do`, queryData, options));
  78. return handle.catchPromiseNew(resp, () => resp, options);
  79. };
  80. /**
  81. * 获取科室列表
  82. */
  83. export const queryDeptList = async (queryData: any, options?: any) => {
  84. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptApi/QueryDeptList/callApiJSON.do`, queryData, options));
  85. return handle.catchPromiseNew(resp, () => resp, options);
  86. };
  87. /**
  88. * 查询推荐科室
  89. */
  90. export const queryConsultDeptList = async (queryData: any, options?: any) => {
  91. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryConsultDeptList/callApiJSON.do`, queryData, options));
  92. return handle.catchPromiseNew(resp, () => resp, options);
  93. };
  94. /**
  95. * 查询医生(互联网)
  96. */
  97. export const queryNetConsultDoctorList = async (queryData: any, options?: any) => {
  98. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryNetConsultDoctorList/callApiJSON.do`, queryData, options));
  99. return handle.catchPromiseNew(resp, () => resp, options);
  100. };
  101. /**
  102. * 判断医生是否被关注
  103. */
  104. export const getUserCollectByDoctorUid = async (queryData: any, options?: any) => {
  105. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/user/collect/GetUserCollectByDoctorUid/callApiJSON.do`, queryData, options));
  106. return handle.catchPromiseNew(resp, () => resp, options);
  107. };
  108. /**
  109. * 查询评价列表
  110. */
  111. export const queryAppraiseList = async (queryData: any, options?: any) => {
  112. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/orderAppr/appraise/Query/callApiJSON.do`, queryData, options));
  113. return handle.catchPromiseNew(resp, () => resp, options);
  114. };
  115. /**
  116. * 关注医生
  117. */
  118. export const userCollect = async (queryData: any, options?: any) => {
  119. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/user/collect/UserCollect/callApiJSON.do`, queryData, options));
  120. return handle.catchPromiseNew(resp, () => resp, options);
  121. };
  122. /**
  123. * 取消关注医生
  124. */
  125. export const unUserCollect = async (queryData: any, options?: any) => {
  126. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/user/collect/UnUserCollect/callApiJSON.do`, queryData, options));
  127. return handle.catchPromiseNew(resp, () => resp, options);
  128. };
  129. /**
  130. * 查询医生二维码
  131. */
  132. export const queryQrCode = async (queryData: any, options?: any) => {
  133. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/qr/QrCode/QueryQrCode/callApiJSON.do`, queryData, options));
  134. return handle.catchPromiseNew(resp, () => resp, options);
  135. };
  136. /**
  137. * 查询就诊人信息
  138. */
  139. export const queryBaseMemberList_V3 = async (queryData: any) => {
  140. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryBaseMemberList_V3/callApiJSON.do`, queryData));
  141. return handle.catchPromiseNew(resp, () => resp);
  142. };
  143. /**
  144. * 查询医生职称
  145. */
  146. export const queryTitleInfoNew = async (queryData: any, options?: any) => {
  147. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryTitleInfoNew/callApiJSON.do`, queryData, options));
  148. return handle.catchPromiseNew(resp, () => resp, options);
  149. };
  150. /**
  151. * 获取专家介绍列表(根据doctorUid查询对应医生)
  152. */
  153. export const queryBDoctorList = async (queryData: any, options?: any) => {
  154. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryBDoctorList/callApiJSON.do`, queryData, options));
  155. return handle.catchPromiseNew(resp, () => resp, options);
  156. };
  157. /**
  158. * 查询关注医生
  159. */
  160. export const queryUserCollect = async (queryData: any, options?: any) => {
  161. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/user/collect/QueryUserCollect/callApiJSON.do`, queryData, options));
  162. return handle.catchPromiseNew(resp, () => resp, options);
  163. };
  164. /**
  165. * 查询历史咨询医生
  166. */
  167. export const queryHistoryConsultDoctor = async (queryData: any, options?: any) => {
  168. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryHistoryConsultDoctor/callApiJSON.do`, queryData, options));
  169. return handle.catchPromiseNew(resp, () => resp, options);
  170. };
  171. /**
  172. * 取消咨询
  173. */
  174. export const cancelConsultWater = async (queryData: any, options?: any) => {
  175. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/CancelConsultWater/callApiJSON.do`, queryData, options));
  176. return handle.catchPromiseNew(resp, () => resp, options);
  177. };
  178. /**
  179. * 查询排队队列信息
  180. */
  181. export const queryNetQueueList = async (queryData: any, options?: any) => {
  182. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/net/QueueWs/QueryNetQueueList/callApiJSON.do`, queryData, options));
  183. return handle.catchPromiseNew(resp, () => resp, options);
  184. };
  185. /**
  186. * 查询库存
  187. */
  188. export const QueryPrescriptionInformationList = async (queryData: any, options?: any) => {
  189. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/net/businessOrder/QueryPrescriptionInformationList/callApiJSON.do`, queryData, options));
  190. return handle.catchPromiseNew(resp, () => resp, options);
  191. };
  192. /**
  193. * 在线续方
  194. */
  195. export const ApplyPrescriptionConsult = async (queryData: any, options?: any) => {
  196. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/ApplyPrescriptionConsult/callApiJSON.do`, queryData, options));
  197. return handle.catchPromiseNew(resp, () => resp, options);
  198. };
  199. /**
  200. * 查询当前医生信息
  201. */
  202. export const QueryBDoctorInfo = async (queryData: any, options?: any) => {
  203. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryBDoctorInfo/callApiJSON.do`, queryData, options));
  204. return handle.catchPromiseNew(resp, () => resp, options);
  205. };
  206. /**
  207. * 查询医生专家组列表
  208. */
  209. export const GroupList = async (queryData: any, options?: any) => {
  210. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/base/docGroupApi/GroupList/callApiJSON.do`, queryData, options));
  211. return handle.catchPromiseNew(resp, () => resp, options);
  212. };
  213. /**
  214. * 添加医生主页访问数据
  215. */
  216. export const addOrUpdateConsultDoctorReport = async (queryData: any, options?: any) => {
  217. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDocReport/AddOrUpdateConsultDoctorReport/callApiJSON.do`, queryData, options));
  218. return handle.catchPromiseNew(resp, () => resp, options);
  219. };
  220. /**
  221. * 查询门诊就诊记录
  222. */
  223. export const QueryOutpatientVisitList = async (queryData: any, options?: any) => {
  224. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryOutpatientVisitList/callApiJSON.do`, queryData, options));
  225. return handle.catchPromiseNew(resp, () => resp, options);
  226. };
  227. /**
  228. * 获取科室列表-个性化
  229. */
  230. export const queryConsultDept = async (queryData: any, options?: any) => {
  231. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDept/QueryConsultDept/callApiJSON.do`, queryData, options));
  232. return handle.catchPromiseNew(resp, () => resp, options);
  233. };
  234. /**
  235. * 查询咨询医生组
  236. */
  237. export const queryConsultDoctorGroup = async (queryData: any, options?: any) => {
  238. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoctorGroup/QueryConsultDoctorGroup/callApiJSON.do`, queryData, options));
  239. return handle.catchPromiseNew(resp, () => resp, options);
  240. };
  241. /**
  242. * 获取咨询配置
  243. */
  244. export const getConsultAgreement = async (queryData: any, options?: any) => {
  245. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/GetConsultAgreement/callApiJSON.do`, queryData, options));
  246. return handle.catchPromiseNew(resp, () => resp, options);
  247. };
  248. /**
  249. * 查询咨询医生组医生
  250. */
  251. export const queryConsultDoctorGroupDoctor = async (queryData: any, options?: any) => {
  252. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoctorGroup/QueryConsultDoctorGroupDoctor/callApiJSON.do`, queryData, options));
  253. return handle.catchPromiseNew(resp, () => resp, options);
  254. };
  255. /**
  256. * 查询医生组排班
  257. */
  258. export const queryGroupSchedule = async (queryData: any, options?: any) => {
  259. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/GroupSchedule/QueryGroupSchedule/callApiJSON.do`, queryData, options));
  260. return handle.catchPromiseNew(resp, () => resp, options);
  261. };
  262. /**
  263. * 统计咨询评价
  264. */
  265. export const countConsultAppraise = async (queryData: any, options?: any) => {
  266. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultAppraise/CountConsultAppraise/callApiJSON.do`, queryData, options));
  267. return handle.catchPromiseNew(resp, () => resp, options);
  268. };
  269. /**
  270. * 查询咨询评价列表
  271. */
  272. export const queryConsultAppraiseList = async (queryData: any, options?: any) => {
  273. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultAppraise/QueryConsultAppraiseList/callApiJSON.do`, queryData, options));
  274. return handle.catchPromiseNew(resp, () => resp, options);
  275. };
  276. /**
  277. * 申请图文咨询-团队
  278. */
  279. export const applyDoctorGroupConsult = async (queryData: any, options?: any) => {
  280. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoctorGroup/ApplyDoctorGroupConsult/callApiJSON.do`, queryData, options));
  281. return handle.catchPromiseNew(resp, () => resp, options);
  282. };
  283. /**
  284. * 医生信息
  285. */
  286. export const queryUserCollectBDoctorInfo = async (queryData: any, options?: any) => {
  287. let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryUserCollectBDoctorInfo/callApiJSON.do`, queryData, options));
  288. return handle.catchPromiseNew(resp, () => resp, options);
  289. };