import request from "@/utils/request"; // import request1 from "@/utils/request1"; // 为体检页面的所有接口添加 useConfirmBox 标记 const headers = { useConfirmBox: true } // 查询体检套餐列表 export function deptTreeSelect(cusSex) { return request({ url: "/system/package/getList", method: "get", params: { cusSex: cusSex, }, }); } // 查询团体体检套餐列表 export function tuantiSelect(param) { return request({ url: "/hosp/dwgrouping/huoqutuantitaocanxiangmu", method: "get", params: { sex: param.sex, dwId: param.dwId, }, }); } // 每个项目 export function getIsRequired() { return request({ url: "/hosp/order/getIsRequired", method: "get", }); } export function gaibianzhekou(data) { return request({ url: "/hosp/order/updateTransitionnewPrice", method: "post", data: data, }); } // 选择体检项目(所有服项目)选单项时调用的接口 export function projectGetList() { return request({ url: "/hosp/project/getDxList", method: "get", }); } // 选择体检项目(根据父项id选择子项)选单项时调用的接口 export function getProSonDxList(proId) { return request({ url: "/hosp/project/getProSonDxList", method: "get", params: { proId: proId, }, }); } export function getProParentIdDxList() { return request({ url: "/hosp/project/getProParentIdDxList", method: "get", // params: { // pname: pname, // }, }); } // 每个项目 export function getOrder(data) { return request({ url: "/hosp/order", method: "post", data: data, // responseType: 'blob', // headers:{ // "type": 'application/pdf' // } }); } export function getOrderzhiye(data) { return request({ url: "/zhiye/order", method: "post", data: data, // responseType: 'blob', // headers:{ // "type": 'application/pdf' // } }); } // 根据身份证显示信息 export function getCusIdcard(cusIdcard) { return request({ url: "/hosp/customer/cusIdcard", method: "post", params: { cusIdcard: cusIdcard, }, headers }); } // 根据拼音码或套餐名称搜索套餐 export function getPackageListName(name) { return request({ url: "/system/package/getPackageListByPyName", method: "get", params: { name: name, }, }); } // 个人预约接口 export function getaddTj(data) { return request({ url: "/reservation/reservation/addTjReservation", method: "post", data: data, }); } // 时间轴 export function shijianzhou(data) { return request({ url: "/hosp/order/zongjanyemianshjianzhou", method: "post", data: data, }); } // 添加过渡表数据 export function getaddtTransition(data) { return request({ url: "/hosp/order/addtTransition", method: "post", data: data, }); } // 添加过渡表数据 export function tuantiqueren(data) { return request({ url: "/hosp/order/ttaddtTransition", method: "post", data: data, }); } // 查询过渡表数据 export function getTransitionList(cusId) { return request({ url: "/hosp/order/getTransitionList", method: "get", params: { cusId: cusId, }, }); } // 查询过渡表数据 export function getTransitionList1(cusId) { return request({ url: "/hosp/order/newgetTransitionList", method: "get", params: { cusId: cusId, }, headers }); } // 登记成功后生成导诊单 export function getGuide(tjNumber) { return request({ url: "/hosp/order/printGuidance/" + tjNumber, method: "get", responseType: "blob", headers: { type: "application/pdf", }, }); } // 通用文件上传base64 export function getLoadFile(formData) { return request({ url: "/common/upload", method: "post", data: formData, }); } // 根据单位id和团队编号获取预约详情 export function getByTeamNo(data) { return request({ url: "/reservation/reservation/getSelectRecordByTeamNo", method: "get", params: data, }); } // 根据身份证号查看历史体检记录 export function getHistryTjOrderByCusIdCard(cusIdCard) { return request({ url: "/hosp/order/getHistryTjOrderByCusIdCard", method: "get", params: { cusIdCard: cusIdCard }, }); } // 根据身份证号查看历史体检项目记录 export function getHistryTjOrderProByCusIdCard(cusIdCard) { return request({ url: "/hosp/order/getHistryTjOrderProByCusIdCard", method: "get", params: { cusIdCard: cusIdCard }, }); } export function getconfigKey(configKey) { return request({ url: "/system/config/configKey/" + configKey, method: "get", }); } export function delTbBycusCardIdAndProId(data) { return request({ url: "/hosp/order/delTbBycusCardIdAndProId", method: "get", params: data, }); } export function getZhList() { return request({ url: "/system/zhxm/getZhList", method: "get", }); } export function listByZhId(zhId) { return request({ url: "/system/zhxm/listByZhId", method: "get", params:{zhId:zhId} }); } // export function readCertCardInfos() { // return request1({ // url: "/readCertCardInfos", // method: "get", // }); // }