jianchajianyan-api.js 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. (function(){
  2. var apis = {
  3. getList: function(data){
  4. return APIService.httpGet('doctor/archives/event/report', data);
  5. },
  6. getEventDetail: function(data) { //就诊事件详情
  7. return APIService.httpGet('doctor/archives/event/detail', data);
  8. },
  9. getCatalog: function(data) { //通过事件号获取档案类型列表(基卫)
  10. return APIService.httpGet('doctor/archives/event/catalog', data);
  11. },
  12. getHealthData: function(data) { //获取健康档案详情(基卫)
  13. return APIService.httpGet('doctor/archives/event/healthData', data);
  14. },
  15. getListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  16. method: 'get',
  17. url: APIService.server + 'doctor/archives/event/report',
  18. contentType: "application/json",
  19. dataType: "json",
  20. ajaxOptions: {
  21. beforeSend: function(request) {
  22. var userAgent = APIService.userAgent;
  23. userAgent = JSON.stringify(userAgent);
  24. request.setRequestHeader("userAgent", userAgent);
  25. }
  26. }
  27. }
  28. };
  29. window.janchaAPI = apis;
  30. })(jQuery)