order-api.js 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. (function(){
  2. var orderApis = {
  3. getOrderList: function(data){
  4. return APIService.httpGet('doctor/prescriptionInfo/getDoctorPrescriptionExpressage', data);
  5. },
  6. getOrderListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  7. method: 'get',
  8. url: APIService.server + 'doctor/prescriptionInfo/getDoctorPrescriptionExpressage',
  9. contentType: "application/json",
  10. dataType: "json",
  11. ajaxOptions: {
  12. beforeSend: function(request) {
  13. var userAgent = APIService.userAgent;
  14. userAgent = JSON.stringify(userAgent);
  15. request.setRequestHeader("userAgent", userAgent);
  16. }
  17. }
  18. },
  19. getFilterInfo: function(){
  20. return APIService.httpGet('doctor/prescriptionInfo/getPrescriptionExpressageAsdoctorFilter');
  21. },
  22. getHospitalList: function (data){
  23. return APIService.httpGet('doctor/prescriptionInfo/getHospitalListTitle', data);
  24. },
  25. getOrderListCount: function(data){
  26. return APIService.httpGet('doctor/prescriptionInfo/getDoctorPrescriptionExpressageTotal', data);
  27. },
  28. getHealthDoctor: function(data){
  29. return APIService.httpGet('doctor/prescriptionInfo/getHDoctorInDoctorHosiptal', data);
  30. },
  31. getHealthDoctorTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  32. method: 'get',
  33. url: APIService.server + 'doctor/prescriptionInfo/getHDoctorInDoctorHosiptal',
  34. contentType: "application/json",
  35. dataType: "json",
  36. ajaxOptions: {
  37. beforeSend: function(request) {
  38. var userAgent = APIService.userAgent;
  39. userAgent = JSON.stringify(userAgent);
  40. request.setRequestHeader("userAgent", userAgent);
  41. }
  42. }
  43. },
  44. distributeHealthDoctor: function(data){
  45. return APIService.httpPost('doctor/prescriptionInfo/distributionHealthDoctor', data);
  46. },
  47. //健管师页面接口
  48. getHOrderList: function(data){
  49. return APIService.httpGet('doctor/prescriptionInfo/getHDoctorPrescriptionExpressage', data);
  50. },
  51. getHOrderListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  52. method: 'get',
  53. url: APIService.server + 'doctor/prescriptionInfo/getHDoctorPrescriptionExpressage',
  54. contentType: "application/json",
  55. dataType: "json",
  56. ajaxOptions: {
  57. beforeSend: function(request) {
  58. var userAgent = APIService.userAgent;
  59. userAgent = JSON.stringify(userAgent);
  60. request.setRequestHeader("userAgent", userAgent);
  61. }
  62. }
  63. },
  64. getHFilterInfo: function(){
  65. return APIService.httpGet('doctor/prescriptionInfo/getPrescriptionExpressageFilter');
  66. },
  67. getHOrderListCount: function(data){
  68. return APIService.httpGet('doctor/prescriptionInfo/getHDoctorPrescriptionExpressageTotal',data);
  69. }
  70. };
  71. window.orderAPI = orderApis;
  72. })(jQuery)