| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- import { REQUEST_CONFIG } from '@/config';
- import { request, handle } from '@kasite/uni-app-base';
- /**
- * 首页 热点资讯
- * @param ChannelId String 渠道ID
- * @param eqTitle String 资讯标题
- */
- export const articleTypeListUrl = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/article/type/List/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 首页 置顶文章
- * @param ChannelId String 渠道ID
- * @param PSize String 分页大小
- * @param RootTypeId String 资讯类型ID
- */
- export const topArticleListUrl = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/article/mgr/TopArticleInfoList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 主动式服务-获取患者最新一条主动式服务消息
- * @param OrgId String 机构ID
- * @param MemberId String 就诊人ID
- * @param cardEncryptionStore String 就诊卡加密存储
- * @param memberEncryptionStore String 就诊人加密存储
- * @param ChannelId String 渠道ID
- */
- export const getMemberLastMsg = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/active/form/GetMemberLastMsg/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 咨询查询历史医生
- * @param HosId String 机构ID
- * @param HasSch String 是否查询his,0:本地,1:his
- * @param QueryLocal String
- * @param MemberIds String 就诊人ID
- */
- export const queryHistoryBaseDoctor = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryHistoryBaseDoctor/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 搜索医生/科室
- * @param HosId String 机构ID
- * @param SearchLike String 搜索关键词
- * @param QueryLocal String 1
- * @param UseBaseInfo String 是否使用基础信息
- * @param ExcludeOneLv String 是否过滤一级科室
- */
- export const searchClinicDeptAndDoctor = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/SearchClinicDeptAndDoctor/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 搜索科室
- */
- export const queryDeptList_V2 = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DeptApi/QueryDeptList_V2/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 咨询搜索科室 医生
- */
- export const queryDoctorList_V2 = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryDoctorList_V2/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 获取信用授权数据
- * @param MemberId String 就诊人ID
- * @param AccountSn String
- */
- export const queryMemberHeaderInfo = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberHeaderInfo/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 设置是否可退费
- * @param MemberId String 就诊人ID
- * @param AutoRefundMark String 自动退费标记 0:否 1:是
- */
- export const saveAutoRefundMark = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/SaveAutoRefundMark/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 授权亲友数 列表
- */
- export const queryAuthUserMemberList = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryAuthUserMemberList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- // ======================================= 互联网医院 ==========================================
- /**
- * 查询推荐科室
- * @param HosId String 机构ID
- * @param IsRcmd String 是否推荐 1:是
- */
- export const queryConsultDeptList = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryConsultDeptList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 查询推荐医生
- * @param HosId String 机构ID
- * @param IsRcmd String 是否推荐 1:是
- */
- export const queryRcmdConsultDoctorList = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoc/QueryRcmdConsultDoctorList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 查询关注医生
- * @param resourceType String 资源类型 1:医生
- */
- export const queryUserCollect = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/user/collect/QueryUserCollect/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 查询代办消息
- * @param OpenId String 用户OpenId
- * @param BusinessId String 业务ID
- * @param BacklogType String 代办类型 1咨询申请2咨询消息3随访消息4医患申请5日程计划
- * @param ReadState String 阅读状态 1未读 2已读
- * @param UserType String 用户类型 1.就诊人,2.医生
- * @param IsGroup String 是否分组 1:是
- */
- export const queryBackLogMsg = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/msg/BackLog/QueryBackLogMsg/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 获取专家介绍列表 (根据doctorUid查询对应医生)
- * @param DoctorUid String 医生UID,多个用逗号分隔
- */
- export const queryBDoctorList = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/basic/DoctorApi/QueryBDoctorList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 获取咨询记录
- * @param ConsultStartDate String 咨询开始日期
- * @param ConsultEndDate String 咨询结束日期
- * @param ConsultStatus String 咨询状态 16:已预约视频问诊
- */
- export const queryConsultWaterList = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/cons/Consult/QueryConsultWaterList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 获取文章列表
- * @param TypeClass Number 类型 0 新闻动态;1 通知公告;2 健康宣教;3 就诊指南;4 住院需知 62 首页banner
- * @param Status Number 状态 1已发布
- * @param Type Number 类型 1链接
- */
- export const queryArticleList = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/basic/BasicApi/QueryArticleList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 查询咨询医生组
- * @param IsMemberCollect Number 是否会员关注 1:是
- */
- export const queryConsultDoctorGroup = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultDoctorGroup/QueryConsultDoctorGroup/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /**
- * 数据埋点(互联网)
- * @param Type Number 类型 26:患者端 27:医生端 28:患者端添加就诊人
- */
- export const saveConsultVisit = async (queryData: any) => {
- let resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/cons/ConsultStatsNew/SaveConsultVisit/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- // ======================================= 互联网医院 ==========================================
|