order-api.js 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. getPrescriptionFollow: function(data){
  72. return APIService.httpGet('doctor/prescriptionInfo/prescriptionFollow', data);
  73. },
  74. getOrderFollow: function(data){
  75. return APIService.httpGet('doctor/prescriptionlog/orderFollow', data);
  76. },
  77. getSfRouteService: function(data){
  78. return APIService.httpPost('doctor/sfexpress/sfrouteservice', data);
  79. },
  80. getOrderExpressInfo: function(data){
  81. return APIService.httpGet('doctor/sfexpress/sfgetorderinfoservice', data);
  82. }
  83. };
  84. window.orderAPI = orderApis;
  85. })(jQuery)