import { request, handle } from '@kasite/uni-app-base'; import { REQUEST_CONFIG } from '@/config'; /** * 获取报告单列表 * reportType默认2 查询检查报告单 * cardType默认1 查询门诊报告单 */ export const getReportList = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetReportList/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取报告单明细 * reportType默认2 查询检查报告单 * cardType默认1 查询门诊报告单 */ export const getReportInfo = async (queryData: any) => { const url = queryData.ReportType == '3' ? `${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetTjReportInfo/callApiJSON.do` : `${REQUEST_CONFIG.BASE_URL}wsgw/report/ReportWs/GetReportInfo/callApiJSON.do`; let resp = handle.promistHandleNew(await request.doPost(url, queryData)); return handle.catchPromiseNew(resp, () => resp); }; /** * 获取健康卡号 */ export const getHealthCard = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/GetHealthCard/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); };