index.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. import { REQUEST_CONFIG } from '@/config';
  2. import { request, handle } from '@kasite/uni-app-base';
  3. /**
  4. * 验证上传身份证是否正确 返回身份证信息
  5. */
  6. export const idCardVerification = async (queryData: any) => {
  7. let resp = handle.promistHandleNew(
  8. await request.doPost(
  9. `${REQUEST_CONFIG.BASE_URL}wsgw/medicalCopy/MedicalCopyApi/IdCardVerification/callApiJSON.do`,
  10. queryData
  11. )
  12. );
  13. return handle.catchPromiseNew(resp, () => resp);
  14. };
  15. /**
  16. * 添加就诊人
  17. */
  18. export const addBaseMember_V3 = async (queryData: any) => {
  19. let resp = handle.promistHandleNew(
  20. await request.doPost(
  21. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMember_V3/callApiJSON.do`,
  22. queryData
  23. )
  24. );
  25. return handle.catchPromiseNew(resp, () => resp);
  26. };
  27. /**
  28. * 添加就诊人 (New)
  29. */
  30. export const addBaseMember_V3New = async (queryData: any) => {
  31. let resp = handle.promistHandleNew(
  32. await request.doPost(
  33. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMember_V3/callApiJSON.do`,
  34. queryData
  35. )
  36. );
  37. return handle.catchPromiseNew(resp, () => resp);
  38. };
  39. /**
  40. * 查询院内就诊卡信息
  41. */
  42. export const queryMemberCardList_V3 = async (queryData: any) => {
  43. let resp = handle.promistHandleNew(
  44. await request.doPost(
  45. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberCardList_V3/callApiJSON.do`,
  46. queryData
  47. )
  48. );
  49. return handle.catchPromiseNew(resp, () => resp);
  50. };
  51. /**
  52. * 查询本地就诊卡信息
  53. */
  54. export const queryMemberCardListByDb_V3 = async (queryData: any) => {
  55. let resp = handle.promistHandleNew(
  56. await request.doPost(
  57. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberCardListByDb_V3/callApiJSON.do`,
  58. queryData
  59. )
  60. );
  61. return handle.catchPromiseNew(resp, () => resp);
  62. };
  63. /**
  64. * 查询就诊人信息New
  65. */
  66. export const queryBaseMemberList_V3 = async (queryData: any) => {
  67. let resp = handle.promistHandleNew(
  68. await request.doPost(
  69. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryBaseMemberList_V3/callApiJSON.do`,
  70. queryData
  71. )
  72. );
  73. return handle.catchPromiseNew(resp, () => resp);
  74. };
  75. /**
  76. * 设置默认就诊人
  77. */
  78. export const setDefaultMemberV3 = async (queryData: any) => {
  79. let resp = handle.promistHandleNew(
  80. await request.doPost(
  81. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SetDefaultMember_V3/callApiJSON.do`,
  82. queryData
  83. )
  84. );
  85. return handle.catchPromiseNew(resp, () => resp, {
  86. showModal: false,
  87. });
  88. };
  89. /**
  90. * 设置默认就诊卡
  91. */
  92. export const setDefaultClinicCard_V3 = async (queryData: any) => {
  93. let resp = handle.promistHandleNew(
  94. await request.doPost(
  95. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SetDefaultClinicCard_V3/callApiJSON.do`,
  96. queryData
  97. )
  98. );
  99. return handle.catchPromiseNew(resp, () => resp);
  100. };
  101. /**
  102. * 通过就诊卡添加就诊人_V3 (验证码)
  103. */
  104. export const sendVerificationCode_V3 = async (queryData: any) => {
  105. let resp = handle.promistHandleNew(
  106. await request.doPost(
  107. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SendVerificationCode_V3/callApiJSON.do`,
  108. queryData
  109. )
  110. );
  111. return handle.catchPromiseNew(resp, () => resp);
  112. };
  113. /**
  114. * 删除就诊人_v3
  115. */
  116. export const delMemberInfo_V3 = async (queryData: any) => {
  117. let resp = handle.promistHandleNew(
  118. await request.doPost(
  119. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/DelMemberInfo_V3/callApiJSON.do`,
  120. queryData
  121. )
  122. );
  123. return handle.catchPromiseNew(resp, () => resp);
  124. };
  125. /**
  126. * 通过就诊卡查询就诊人信息
  127. */
  128. export const queryMemberByCard_V3 = async (queryData: any) => {
  129. let resp = handle.promistHandleNew(
  130. await request.doPost(
  131. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberByCard_V3/callApiJSON.do`,
  132. queryData
  133. )
  134. );
  135. return handle.catchPromiseNew(resp, () => resp);
  136. };
  137. /**
  138. * 通过就诊卡添加就诊人_V3
  139. */
  140. export const addBaseMemberByEncryptionStore_V3 = async (queryData: any) => {
  141. let resp = handle.promistHandleNew(
  142. await request.doPost(
  143. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMemberByEncryptionStore_V3/callApiJSON.do`,
  144. queryData
  145. )
  146. );
  147. return handle.catchPromiseNew(resp, () => resp);
  148. };
  149. /**
  150. * 通过就诊卡添加就诊人_V3New
  151. */
  152. export const addBaseMemberByEncryptionStore_V3New = async (queryData: any) => {
  153. let resp = handle.promistHandleNew(
  154. await request.doPost(
  155. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMemberByEncryptionStore_V3/callApiJSON.do`,
  156. queryData
  157. )
  158. );
  159. return handle.catchPromiseNew(resp, () => resp);
  160. };
  161. /**
  162. * 跨院关联健康卡_V2
  163. */
  164. export const correlationHealthCard_V2 = async (queryData: any) => {
  165. let resp = handle.promistHandleNew(
  166. await request.doPost(
  167. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/CorrelationHealthCard_V2/callApiJSON.do`,
  168. queryData
  169. )
  170. );
  171. return handle.catchPromiseNew(resp, () => resp);
  172. };
  173. /**
  174. * 校验手机号_V3
  175. */
  176. export const checkMobile_V3 = async (queryData: any) => {
  177. let resp = handle.promistHandleNew(
  178. await request.doPost(
  179. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/CheckMobile_V3/callApiJSON.do`,
  180. queryData
  181. )
  182. );
  183. return handle.catchPromiseNew(resp, () => resp);
  184. };
  185. /**
  186. * 查看余额
  187. */
  188. export const queryCardBalance_V3 = async (queryData: any) => {
  189. let resp = handle.promistHandleNew(
  190. await request.doPost(
  191. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryCardBalance_V3/callApiJSON.do`,
  192. queryData
  193. )
  194. );
  195. return handle.catchPromiseNew(resp, () => resp);
  196. };
  197. /**
  198. * 校验短信验证码
  199. */
  200. export const checkVerificationCode_V3 = async (queryData: any) => {
  201. let resp = handle.promistHandleNew(
  202. await request.doPost(
  203. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/CheckVerificationCode_V3/callApiJSON.do`,
  204. queryData
  205. )
  206. );
  207. return handle.catchPromiseNew(resp, () => resp);
  208. };
  209. /**
  210. * 绑定就诊人
  211. */
  212. export const addUserMember_V3 = async (queryData: any) => {
  213. let resp = handle.promistHandleNew(
  214. await request.doPost(
  215. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddUserMember_V3/callApiJSON.do`,
  216. queryData
  217. )
  218. );
  219. return handle.catchPromiseNew(resp, () => resp);
  220. };
  221. /**
  222. * 提升用户等级L1-短信校验
  223. */
  224. export const addUserLevelL1_V3 = async (queryData: any) => {
  225. let resp = handle.promistHandleNew(
  226. await request.doPost(
  227. `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/AddUserLevelL1_V3/callApiJSON.do`,
  228. queryData
  229. )
  230. );
  231. return handle.catchPromiseNew(resp, () => true);
  232. };
  233. /**
  234. * 提升用户等级L2-人脸核验
  235. */
  236. export const addUserLevelL2_V3 = async (queryData: any) => {
  237. let resp = handle.promistHandleNew(
  238. await request.doPost(
  239. `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/AddUserLevelL2_V3/callApiJSON.do`,
  240. queryData
  241. )
  242. );
  243. return handle.catchPromiseNew(resp, () => true);
  244. };
  245. /**
  246. * 提升用户等级L3-城市服务-本人
  247. */
  248. export const addUserLevelL3_V3 = async (queryData: any) => {
  249. let resp = handle.promistHandleNew(
  250. await request.doPost(
  251. `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/AddUserLevelL3_V3/callApiJSON.do`,
  252. queryData
  253. )
  254. );
  255. return handle.catchPromiseNew(resp, () => true);
  256. };
  257. /**
  258. * 完善账户个人信息
  259. */
  260. export const makeUpAccount = async (queryData: any) => {
  261. let resp = handle.promistHandleNew(
  262. await request.doPost(
  263. `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/MakeUpAccount/callApiJSON.do`,
  264. queryData
  265. )
  266. );
  267. return handle.catchPromiseNew(resp, () => resp);
  268. };
  269. /**
  270. * 查询就诊人信息_通过卡信息加密串
  271. */
  272. export const queryBaseMemberByCardEncryptionStore = async (queryData: any) => {
  273. let resp = handle.promistHandleNew(
  274. await request.doPost(
  275. `${REQUEST_CONFIG.BASE_URL}wsgw/member/api/QueryBaseMemberByCardEncryptionStore/callApiJSON.do`,
  276. queryData
  277. )
  278. );
  279. return handle.catchPromiseNew(resp, () => resp);
  280. };
  281. /**
  282. * 获取医保授权地址
  283. */
  284. export const getYlzMemberOuthUrl = async (queryData: any) => {
  285. let resp = handle.promistHandleNew(
  286. await request.doPost(
  287. `${REQUEST_CONFIG.BASE_URL}wsgw/member/tencentThirdpartapi/GetYlzMemberOuthUrl/callApiJSON.do`,
  288. queryData
  289. )
  290. );
  291. return handle.catchPromiseNew(resp, () => resp);
  292. };
  293. /**
  294. * 获取微信授权后手机号
  295. */
  296. export const getPhoneNumber = async (queryData: any) => {
  297. let resp = handle.promistHandleNew(
  298. await request.doPost(
  299. `${REQUEST_CONFIG.BASE_URL}wsgw/weixin/smallpro/GetPhoneNumber/callApiJSON.do`,
  300. queryData
  301. )
  302. );
  303. return handle.catchPromiseNew(resp, () => resp);
  304. };
  305. /**
  306. * 医保code获取用户信息
  307. */
  308. export const getYbzfMemberUserInfo = async (queryData: any) => {
  309. let resp = handle.promistHandleNew(
  310. await request.doPost(
  311. `${REQUEST_CONFIG.BASE_URL}wsgw/member/tencentThirdpartapi/GetYbzfMemberUserInfo/callApiJSON.do`,
  312. queryData
  313. )
  314. );
  315. return handle.catchPromiseNew(resp, () => resp);
  316. };
  317. /**
  318. * 健康卡code获取用户信息
  319. */
  320. export const queryHealthCardInfo = async (queryData: any) => {
  321. let resp = handle.promistHandleNew(
  322. await request.doPost(
  323. `${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryHealthCardInfo/callApiJSON.do`,
  324. queryData
  325. )
  326. );
  327. return handle.catchPromiseNew(resp, () => resp);
  328. };
  329. /**
  330. * 根据类型查询字典列表
  331. */
  332. export const dataList = async (queryData: any) => {
  333. let resp = handle.promistHandleNew(
  334. await request.doPost(
  335. `${REQUEST_CONFIG.BASE_URL}wsgw/sys/dict/DataList/callApiJSON.do`,
  336. queryData
  337. )
  338. );
  339. return handle.catchPromiseNew(resp, () => resp);
  340. };
  341. /**
  342. * 查询账户授权信息
  343. */
  344. export const queryAccountAuthList = async (queryData: any) => {
  345. let resp = handle.promistHandleNew(
  346. await request.doPost(
  347. `${REQUEST_CONFIG.BASE_URL}wsgw/memberAccountAuth/api/QueryAccountAuthList/callApiJSON.do`,
  348. queryData
  349. )
  350. );
  351. return handle.catchPromiseNew(resp, () => resp);
  352. };
  353. /**
  354. * 更新账户授权详细信息
  355. */
  356. export const updateAccountAuthList = async (queryData: any) => {
  357. let resp = handle.promistHandleNew(
  358. await request.doPost(
  359. `${REQUEST_CONFIG.BASE_URL}wsgw/memberAccountAuth/api/UpdateAccountAuthList/callApiJSON.do`,
  360. queryData
  361. )
  362. );
  363. return handle.catchPromiseNew(resp, () => resp);
  364. };
  365. /**
  366. * 解除绑定关系-(用户-账户)
  367. */
  368. export const backstageDelUserMember_V3 = async (queryData: any) => {
  369. let resp = handle.promistHandleNew(
  370. await request.doPost(
  371. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/BackstageDelUserMember_V3/callApiJSON.do`,
  372. queryData
  373. )
  374. );
  375. return handle.catchPromiseNew(resp, () => resp);
  376. };
  377. /**
  378. * 用户信息 跟更新是否使用信用付
  379. */
  380. export const acceptCredit = async (queryData: any) => {
  381. let resp = handle.promistHandleNew(
  382. await request.doPost(
  383. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AcceptCredit/callApiJSON.do`,
  384. queryData
  385. )
  386. );
  387. return handle.catchPromiseNew(resp, () => resp);
  388. };
  389. /**
  390. * 查询爽约记录
  391. */
  392. export const queryBreakAppoinmentList = async (queryData: any) => {
  393. let resp = handle.promistHandleNew(
  394. await request.doPost(
  395. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryBreakAppoinmentList/callApiJSON.do`,
  396. queryData
  397. )
  398. );
  399. return handle.catchPromiseNew(resp, () => resp);
  400. };
  401. /**
  402. * 查询医疗欠费情况
  403. */
  404. export const queryOverdueData = async (queryData: any) => {
  405. let resp = handle.promistHandleNew(
  406. await request.doPost(
  407. `${REQUEST_CONFIG.BASE_URL}wsgw/fj/MdlMgr/QueryOverdueData/callApiJSON.do`,
  408. queryData
  409. )
  410. );
  411. return handle.catchPromiseNew(resp, () => resp);
  412. };
  413. /**
  414. * 设置就诊人his卡号对应的
  415. */
  416. export const setHisMobile = async (queryData: any) => {
  417. let resp = handle.promistHandleNew(
  418. await request.doPost(
  419. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/UpdateHisMobileByCard/callApiJSON.do`,
  420. queryData
  421. )
  422. );
  423. return handle.catchPromiseNew(resp, () => resp);
  424. };
  425. /**
  426. * 更新就诊人手机号
  427. */
  428. export const updateMemberMobile = async (queryData: any) => {
  429. let resp = handle.promistHandleNew(
  430. await request.doPost(
  431. `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/EditMemberInfo/callApiJSON.do`,
  432. queryData
  433. )
  434. );
  435. return handle.catchPromiseNew(resp, () => resp);
  436. };
  437. /**
  438. * 上传文件地址
  439. */
  440. export const uploadZxFileUrl = `${REQUEST_CONFIG.BASE_URL}upload/uploadZxFile.do`;
  441. /**
  442. * 升级健康卡
  443. */
  444. export const updateToHealthCard_V2 = async (queryData: any) => {
  445. let resp = handle.promistHandleNew(
  446. await request.doPost(
  447. `${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/UpdateToHealthCard_V2/callApiJSON.do`,
  448. queryData
  449. )
  450. );
  451. return handle.catchPromiseNew(resp, () => resp);
  452. };