prescription-list-api.js 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. (function(){
  2. var apis = {
  3. getFilter: function(data){
  4. return APIService.httpGet('doctor/prescriptionInfo/getPrescriptionFilter', data);
  5. },
  6. getPrescriptionList: function(data){
  7. return APIService.httpGet('doctor/prescriptionInfo/getDoctorPrescription', data);
  8. },
  9. getPrescriptionListCount: function(data){
  10. return APIService.httpGet('/doctor/prescriptionInfo/getDoctorPrescriptionTotal', data);
  11. },
  12. getPrescriptionListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  13. method: 'get',
  14. url: APIService.server + 'doctor/prescriptionInfo/getDoctorPrescription',
  15. contentType: "application/json",
  16. dataType: "json",
  17. ajaxOptions: {
  18. beforeSend: function(request) {
  19. var userAgent = APIService.userAgent;
  20. userAgent = JSON.stringify(userAgent);
  21. request.setRequestHeader("userAgent", userAgent);
  22. }
  23. }
  24. },
  25. getPatientInfo: function(data){
  26. return APIService.httpGet('doctor/patient_label_info/patient', data);
  27. }
  28. };
  29. window.prescriptionListAPI = apis;
  30. })(jQuery)