import { request, handle } from '@kasite/uni-app-base'; import { REQUEST_CONFIG } from '@/config'; /** * 获取订单列表 */ export const orderListLocal = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/OrderListLocal/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询订单明细 */ export const orderDetailLocal = async (queryData: any, showLoading: boolean = true) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/OrderDetailLocal/callApiJSON.do`, queryData, { showLoading: showLoading })); return handle.catchPromiseNew(resp, () => resp); }; /** * 取消订单 退号 */ export const orderCancel = async (queryData: any, serviceId: any) => { let url = `${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/CancelOrder/callApiJSON.do`; if (serviceId == '0' || serviceId == '009') { // 判断为his预约 if (queryData.hisOrderId) { url = `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/HisYyCancel/callApiJSON.do`; } else { url = `${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/YYCancel/callApiJSON.do`; } } let resp = handle.promistHandleNew(await request.doPost(url, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询预约记录 */ export const hisYyWaterList_V2 = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/yygh/HisYyWaterList_V2/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询门诊就诊记录 */ export const queryOutpatientVisitList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryOutpatientVisitList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询住院记录 */ export const queryInpatientList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/basic/InHosApi/QueryInpatientList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询病历列表 */ export const getMedicalRecords = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetMedicalRecords/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询门诊医嘱处方信息 */ export const queryOutpatientDocAdviceList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryOutpatientDocAdviceList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询住院医嘱处方信息 */ export const queryInpatientDocAdviceList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/member/memberApi/QueryInpatientDocAdviceList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 查询候补记录 */ export const waitListApiList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/waitListApi/List/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 更新候补登记 */ export const waitListUpdate = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/yy/waitListApi/Update/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 精准预约-查询预约申请记录列表 */ export const preciseQueryAppoApplyList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/appoApply/QueryAppoApplyList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 精准预约-查询预约申请记录列表 */ export const precisePatientEditAppoApply = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/preciseYy/appoApply/PatientEditAppoApply/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 问卷详情 */ export const querySubjectInfoById_V3 = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySubjectInfoById/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 问卷-查询样本和答案 */ export const querySample_V3 = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/surveyV3/SurveyWs/QuerySample/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); };