re-prescription_cancel.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="author" content="yihu.com" />
  6. <meta name="format-detection" content="telephone=no" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  10. <title>续方取消</title>
  11. <link rel="stylesheet" href="../../../css/cross.css" type="text/css" />
  12. <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css" />
  13. <link rel="stylesheet" href="../../../iconfont/iconfont.css" type="text/css" />
  14. <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
  15. <link rel="stylesheet" type="text/css" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css"/>
  16. <link rel="stylesheet" type="text/css" href="../css/base.css"/>
  17. </head>
  18. <body class="bgc-f2f4f6">
  19. <div class="mt10 c-border-tb h40 lh40 c-position-r plr10 bgc-fff" id="reason">
  20. <span class="c-f16 c-333">取消原因</span>
  21. <span class="c-f14 c-909090 fr mr20" id="reasonText">请选择</span>
  22. <span class="arrow-r"></span>
  23. </div>
  24. <div class="mb20 plr20 footer-bar2">
  25. <a href="javascript:;" class="c-btn2 c-btn-green c-f16" id="submitBtn">提交</a>
  26. </div>
  27. </body>
  28. <script src="../../../js/jquery/2.1.3/jquery.js" type="text/javascript" charset="utf-8"></script>
  29. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  30. <script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
  31. <script src="../../../js/weixin_common.js" type="text/javascript" charset="utf-8"></script>
  32. <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
  33. <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.min.js" type="text/javascript" charset="utf-8"></script>
  34. <script type="text/javascript">
  35. $(function(){
  36. var d = dialog({
  37. contentType: 'load',
  38. skin: 'bk-popup'
  39. });
  40. var request = GetRequest();
  41. var reason = '';
  42. $('#reason').mobiscroll({
  43. theme: 'ios',
  44. lang: 'zh',
  45. customWheels: true,
  46. wheels: [
  47. [{
  48. keys: ['1', '2', '3', '4'],
  49. values: ['续方信息填写错误', '续方药品库存不足', '续方审核时间过长,已线下开处方', '其它']
  50. }]
  51. ],
  52. onSelect: function(valueText, inst) {
  53. var dd = eval("[" + valueText + "]");
  54. $('#reasonText').text(dd[0].values).css('color','#333');
  55. $('#reasonText').attr("data-value", dd[0].keys);
  56. reason = dd[0].values;
  57. }
  58. });
  59. $("#submitBtn").on('click', function(){
  60. if(!reason){
  61. dialog({
  62. contentType: 'tipsbox',
  63. skin: 'bk-popup',
  64. content: '请选择取消原因'
  65. }).show();
  66. return false;
  67. }
  68. d.show();
  69. var url = '/patient/prescriptionInfo/cancelPrescriotion',
  70. params = {
  71. code: request.code,
  72. reason: reason
  73. };
  74. sendPost(url, params, 'json', 'post', function(res){
  75. d.close();
  76. dialog({
  77. contentType: 'tipsbox',
  78. skin: 'bk-popup',
  79. content: '取消失败'
  80. }).show();
  81. }, function(res){
  82. d.close();
  83. window.localStorage.setItem("pageback", "1");
  84. history.go(-1);
  85. })
  86. })
  87. })
  88. </script>
  89. </html>