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