jw-prescription-api.js 1.1 KB

123456789101112131415161718192021222324252627282930
  1. (function(){
  2. var apis = {
  3. getList: function(data){
  4. return APIService.httpGet('/doctor/prescriptionInfo/getRecipeMasterList', data);
  5. },
  6. getListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  7. method: 'get',
  8. url: APIService.server + '/doctor/prescriptionInfo/getRecipeMasterList',
  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. //获得原处方的详情
  20. getJwPrescriptionInfo: function(data){
  21. return APIService.httpGet('doctor/prescriptionInfo/getPrescription', data);
  22. },
  23. getCatalog: function(data){
  24. return APIService.httpGet('doctor/archives/event/catalog', data);
  25. }
  26. };
  27. window.jwPrescriptionAPI = apis;
  28. })(jQuery)