qx
2024-06-20 772d8df8a3ee02a6fe2dbd6ba7216e3e3ee0ec63
src/api/system/tijian.js
@@ -1,169 +1,172 @@
import request from '@/utils/request'
import request from "@/utils/request";
// 查询体检套餐列表
export function deptTreeSelect(cusSex) {
  return request({
    url: '/system/package/getList' ,
    method: 'get',
    url: "/system/package/getList",
    method: "get",
    params:{
      cusSex:cusSex
    }
  })
      cusSex: cusSex,
    },
  });
}
// 每个项目
export function getIsRequired() {
  return request({
    url: '/hosp/order/getIsRequired',
    method: 'get',
  })
    url: "/hosp/order/getIsRequired",
    method: "get",
  });
}
// 选择体检项目(所有服项目)选单项时调用的接口
export function projectGetList() {
  return request({
    url: '/hosp/project/getDxList',
    method: 'get',
  })
    url: "/hosp/project/getDxList",
    method: "get",
  });
}
// 选择体检项目(根据父项id选择子项)选单项时调用的接口
export function getProSonDxList(proId) {
  return request({
    url: '/hosp/project/getProSonDxList',
    method: 'get',
    url: "/hosp/project/getProSonDxList",
    method: "get",
    params:{
      proId:proId
    }
  })
      proId: proId,
    },
  });
}
export function getProParentIdDxList() {
  return request({
    url: '/hosp/project/getProParentIdDxList',
    method: 'get',
  })
    url: "/hosp/project/getProParentIdDxList",
    method: "get",
  });
}
// 每个项目
export function getOrder(data) {
  return request({
    url: '/hosp/order',
    method: 'post',
    url: "/hosp/order",
    method: "post",
    data:data,
    // responseType: 'blob',
    // headers:{
    //   "type": 'application/pdf'
    // }
  })
  });
}
// 根据身份证显示信息
export function getCusIdcard(cusIdcard) {
  return request({
    url: '/hosp/customer/cusIdcard',
    method: 'post',
    url: "/hosp/customer/cusIdcard",
    method: "post",
    params:{
      cusIdcard:cusIdcard
    }
  })
      cusIdcard: cusIdcard,
    },
  });
}
// 根据拼音码或套餐名称搜索套餐
export function getPackageListName(name) {
  return request({
    url: '/system/package/getPackageListByPyName',
    method: 'get',
    url: "/system/package/getPackageListByPyName",
    method: "get",
    params:{
      name:name
    }
  })
      name: name,
    },
  });
}
// 个人预约接口
export function getaddTj(data) {
  return request({
    url: '/reservation/reservation/addTjReservation',
    method: 'post',
    data:data
  })
    url: "/reservation/reservation/addTjReservation",
    method: "post",
    data: data,
  });
}
// 添加过渡表数据
export function getaddtTransition(data) {
  return request({
    url: '/hosp/order/addtTransition',
    method: 'post',
    data:data
  })
    url: "/hosp/order/addtTransition",
    method: "post",
    data: data,
  });
}
// 查询过渡表数据
export function getTransitionList(cusId) {
  return request({
    url: '/hosp/order/getTransitionList',
    method: 'get',
    url: "/hosp/order/getTransitionList",
    method: "get",
    params:{
      cusId:cusId
    }
  })
      cusId: cusId,
    },
  });
}
// 登记成功后生成导诊单
export function getGuide(tjNumber) {
  return request({
    url: '/hosp/order/printGuidance/'+ tjNumber,
    method: 'get',
    responseType: 'blob',
    url: "/hosp/order/printGuidance/" + tjNumber,
    method: "get",
    responseType: "blob",
    headers:{
      "type": 'application/pdf'
    }
  })
      type: "application/pdf",
    },
  });
}
// 通用文件上传base64
export function getLoadFile(formData) {
  return request({
    url: '/common/upload',
    method: 'post',
    url: "/common/upload",
    method: "post",
    data:formData,
  })
  });
}
// 根据单位id和团队编号获取预约详情
export function getByTeamNo(data) {
  return request({
    url:'/reservation/reservation/getSelectRecordByTeamNo',
    method:'get',
    params:data
  })
    url: "/reservation/reservation/getSelectRecordByTeamNo",
    method: "get",
    params: data,
  });
}
// 根据身份证号查看历史体检记录
export function getHistryTjOrderByCusIdCard(cusIdCard) {
  return request({
    url:'/hosp/order/getHistryTjOrderByCusIdCard',
    method:'get',
    params:{cusIdCard:cusIdCard}
  })
    url: "/hosp/order/getHistryTjOrderByCusIdCard",
    method: "get",
    params: { cusIdCard: cusIdCard },
  });
}
// 根据身份证号查看历史体检项目记录
export function getHistryTjOrderProByCusIdCard(cusIdCard) {
  return request({
    url:'/hosp/order/getHistryTjOrderProByCusIdCard',
    method:'get',
    params:{cusIdCard:cusIdCard}
  })
    url: "/hosp/order/getHistryTjOrderProByCusIdCard",
    method: "get",
    params: { cusIdCard: cusIdCard },
  });
}
export function getconfigKey(configKey) {
  return request({
    url: '/system/config/configKey/' + configKey,
    method: 'get'
  })
    url: "/system/config/configKey/" + configKey,
    method: "get",
  });
}
export function delTbBycusCardIdAndProId(data) {
  return request({
    url: "/hosp/order/delTbBycusCardIdAndProId",
    method: "get",
    params: data,
  });
}