123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="author" content="yihu.com" />
- <meta name="format-detection" content="telephone=no" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
- <title>续方取消</title>
- <link rel="stylesheet" href="../../../css/cross.css" type="text/css" />
- <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css" />
- <link rel="stylesheet" href="../../../iconfont/iconfont.css" type="text/css" />
- <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
- <link rel="stylesheet" type="text/css" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css"/>
- <link rel="stylesheet" type="text/css" href="../css/base.css"/>
- </head>
- <body class="bgc-f2f4f6">
- <div class="mt10 c-border-tb h40 lh40 c-position-r plr10 bgc-fff" id="reason">
- <span class="c-f16 c-333">取消原因</span>
- <span class="c-f14 c-909090 fr mr20" id="reasonText">请选择</span>
- <span class="arrow-r"></span>
- </div>
- <div class="mb20 plr20 footer-bar2">
- <a href="javascript:;" class="c-btn2 c-btn-green c-f16" id="submitBtn">提交</a>
- </div>
- </body>
- <script src="../../../js/jquery/2.1.3/jquery.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/weixin_common.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
- <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.min.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- $(function(){
- var d = dialog({
- contentType: 'load',
- skin: 'bk-popup'
- });
- var request = GetRequest();
- var reason = '';
- $('#reason').mobiscroll({
- theme: 'ios',
- lang: 'zh',
- customWheels: true,
- wheels: [
- [{
- keys: ['1', '2', '3', '4'],
- values: ['续方信息填写错误', '续方药品库存不足', '续方审核时间过长,已线下开处方', '其它']
- }]
- ],
- onSelect: function(valueText, inst) {
- var dd = eval("[" + valueText + "]");
- $('#reasonText').text(dd[0].values).css('color','#333');
- $('#reasonText').attr("data-value", dd[0].keys);
- reason = dd[0].values;
- }
- });
-
- $("#submitBtn").on('click', function(){
- if(!reason){
- dialog({
- contentType: 'tipsbox',
- skin: 'bk-popup',
- content: '请选择取消原因'
- }).show();
- return false;
- }
- d.show();
- var url = '/patient/prescriptionInfo/cancelPrescriotion',
- params = {
- code: request.code,
- reason: reason
- };
- sendPost(url, params, 'json', 'post', function(res){
- d.close();
- dialog({
- contentType: 'tipsbox',
- skin: 'bk-popup',
- content: '取消失败'
- }).show();
- }, function(res){
- d.close();
- window.localStorage.setItem("pageback", "1");
- history.go(-1);
- })
- })
- })
- </script>
- </html>
|