import { request, handle } from '@kasite/uni-app-base'; import { REQUEST_CONFIG } from '@/config'; /** * 通过疾病搜索医生 */ export const searchDoctorByDisease = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/base/doctordisease/SearchDoctorByDisease/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取科室列表 */ export const queryPreciseYyDeptTree = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/QueryPreciseYyDeptTree/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp, false); }; /** * 搜索科室、医生信息 */ 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 queryPreciseYyDept = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/QueryPreciseYyDept/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询历史医生 */ 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); }; /** * 查询人群疾病列表 */ export const queryCrowdDiseaseList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/crowd/QueryCrowdDiseaseList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询医生及排班列表 */ export const queryClinicDoctorSchedulePA = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/precise/QueryClinicDoctorSchedule/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询可约排班日期 */ export const queryClinicScheduleDate = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/QueryClinicScheduleDate/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 detail = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/specialtyClinic/Detail/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 诊疗组 */ export const queryDiagnoseGroupList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/diagnoseGroup/QueryDiagnoseGroupList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 我的历史疾病诊断 */ export const queryHistoryDiseaseList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/precise/yy/QueryHistoryDiseaseList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询团队列表信息 */ export const queryTeamList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/mdt/mdtService/QueryTeamList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); };