| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490 |
- 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);
- };
|