import { REQUEST_CONFIG } from '@/config'; import { request, handle } from '@kasite/uni-app-base'; /** * 验证上传身份证是否正确 返回身份证信息 */ export const idCardVerification = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/medicalCopy/MedicalCopyApi/IdCardVerification/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 添加就诊人 */ export const addBaseMember_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMember_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 添加就诊人 (New) */ export const addBaseMember_V3New = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMember_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询院内就诊卡信息 */ export const queryMemberCardList_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberCardList_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询本地就诊卡信息 */ export const queryMemberCardListByDb_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberCardListByDb_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询就诊人信息New */ export const queryBaseMemberList_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryBaseMemberList_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 设置默认就诊人 */ export const setDefaultMemberV3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SetDefaultMember_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp, { showModal: false, }); }; /** * 设置默认就诊卡 */ export const setDefaultClinicCard_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SetDefaultClinicCard_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 通过就诊卡添加就诊人_V3 (验证码) */ export const sendVerificationCode_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SendVerificationCode_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 删除就诊人_v3 */ export const delMemberInfo_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/DelMemberInfo_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 通过就诊卡查询就诊人信息 */ export const queryMemberByCard_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberByCard_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 通过就诊卡添加就诊人_V3 */ export const addBaseMemberByEncryptionStore_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMemberByEncryptionStore_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 通过就诊卡添加就诊人_V3New */ export const addBaseMemberByEncryptionStore_V3New = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddBaseMemberByEncryptionStore_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 跨院关联健康卡_V2 */ export const correlationHealthCard_V2 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/CorrelationHealthCard_V2/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 校验手机号_V3 */ export const checkMobile_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/CheckMobile_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查看余额 */ export const queryCardBalance_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryCardBalance_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 校验短信验证码 */ export const checkVerificationCode_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/CheckVerificationCode_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 绑定就诊人 */ export const addUserMember_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AddUserMember_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 提升用户等级L1-短信校验 */ export const addUserLevelL1_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/AddUserLevelL1_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => true); }; /** * 提升用户等级L2-人脸核验 */ export const addUserLevelL2_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/AddUserLevelL2_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => true); }; /** * 提升用户等级L3-城市服务-本人 */ export const addUserLevelL3_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/AddUserLevelL3_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => true); }; /** * 完善账户个人信息 */ export const makeUpAccount = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/account/api/MakeUpAccount/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询就诊人信息_通过卡信息加密串 */ export const queryBaseMemberByCardEncryptionStore = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/member/api/QueryBaseMemberByCardEncryptionStore/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取医保授权地址 */ export const getYlzMemberOuthUrl = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/member/tencentThirdpartapi/GetYlzMemberOuthUrl/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取微信授权后手机号 */ export const getPhoneNumber = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/weixin/smallpro/GetPhoneNumber/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 医保code获取用户信息 */ export const getYbzfMemberUserInfo = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/member/tencentThirdpartapi/GetYbzfMemberUserInfo/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 健康卡code获取用户信息 */ export const queryHealthCardInfo = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryHealthCardInfo/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 根据类型查询字典列表 */ export const dataList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/sys/dict/DataList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询账户授权信息 */ export const queryAccountAuthList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/memberAccountAuth/api/QueryAccountAuthList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 更新账户授权详细信息 */ export const updateAccountAuthList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/memberAccountAuth/api/UpdateAccountAuthList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 解除绑定关系-(用户-账户) */ export const backstageDelUserMember_V3 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/BackstageDelUserMember_V3/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 用户信息 跟更新是否使用信用付 */ export const acceptCredit = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/AcceptCredit/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询爽约记录 */ export const queryBreakAppoinmentList = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryBreakAppoinmentList/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询医疗欠费情况 */ export const queryOverdueData = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/fj/MdlMgr/QueryOverdueData/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 设置就诊人his卡号对应的 */ export const setHisMobile = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/UpdateHisMobileByCard/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 更新就诊人手机号 */ export const updateMemberMobile = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/EditMemberInfo/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); }; /** * 上传文件地址 */ export const uploadZxFileUrl = `${REQUEST_CONFIG.BASE_URL}upload/uploadZxFile.do`; /** * 升级健康卡 */ export const updateToHealthCard_V2 = async (queryData: any) => { let resp = handle.promistHandleNew( await request.doPost( `${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/UpdateToHealthCard_V2/callApiJSON.do`, queryData ) ); return handle.catchPromiseNew(resp, () => resp); };