jw-prescription-info.js 487 B

12345678910111213141516171819202122
  1. var request = getRequest(),
  2. code = request.code,
  3. patient = request.patient;
  4. $(function(){
  5. var params = {
  6. code: code,
  7. patient: patient
  8. }
  9. jwPrescriptionAPI.getJwPrescriptionInfo({data: params}).then(function(res){
  10. if(res.status == 200){
  11. var html = template('tmp', res.data);
  12. $("#main").empty().append(html);
  13. }else{
  14. }
  15. });
  16. $("#backBtn").on('click', function(){
  17. history.go(-1);
  18. });
  19. });