Browse Source

就诊页面代码合并

ZZhuangFW 1 month ago
parent
commit
09d6d7d7cb

+ 627 - 0
src/main/resources/static/js/hlyy/mlrkon.js

@@ -0,0 +1,627 @@
+//该文件将可能用于多种浏览器,或是多种前段开发框架的BS系统。编写代码时,请注意以下事项:
+//定义函数参数时,不要给默认值,需在函数体能判断参数是否存在,不存在需赋初始值。
+var MLRKON_CLIENT = window.MLRKON_CLIENT || (function(){
+        var mlrkon_embed = {
+            // 如果从MINDS动态加载本文件,则"无需"修改此变量(MINDS_HOST)值!
+            // 如果是静态加载,则将此变量修改为MINDS服务主机和端口。如:http://192.168.1.100:8080
+            // proxy : 'MINDS_HOST',
+            proxy : 'http://130.150.161.153:8080',
+            html : '',
+            api : false,
+            dMap : {},
+            command:'',
+            input: '',
+            options: '',
+            callback: null,
+            floatNum : null
+        };
+        var zIndex = 30000
+        var locked = false
+
+		/*function loadScript(url, callback) {
+		 var script = document.createElement("script");
+		 script.type = "text/javascript";
+
+		 script.src = url;
+		 if (typeof(callback) != "undefined") {
+		 script.onload = script.onreadystatechange = function() {
+		 if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
+		 callback();
+		 script.onload = script.onreadystatechange = null;
+		 }
+		 };
+		 };
+		 document.body.appendChild(script);
+		 }*/
+        function loadScript(url, callback) {
+            var script = document.createElement("script");
+            script.type = "text/javascript";
+            if (typeof(callback) != "undefined") {
+                if (script.readyState) {
+                    script.onreadystatechange = function() {
+                        if (script.readyState == "loaded" || script.readyState == "complete") {
+                            script.onreadystatechange = null;
+                            callback();
+                        }
+                    };
+                } else {
+                    script.onload = function() {
+                        callback();
+                    };
+                }
+            };
+            script.src = url;
+            document.body.appendChild(script);
+        }
+
+        function createDialogDiv(ctrl){
+            var hostIp = window.location.host;
+            var protocol = window.location.protocol;
+            var src = mlrkon_embed.proxy + '/api/web_embed.html?X-MA-Timeout=-1&X-MA-KeepSession=true&userIp=' + hostIp
+
+            var div = document.createElement('div');
+            div.id ='_MLRKON_DIV_' + ctrl.num;
+            //div.style.display = 'none';
+            div.style.overflow = 'hidden';
+            div.style.padding = '0px';
+
+            var iframe = document.createElement('iframe');
+            iframe.id = "_MLRKON_IFRAME_" + ctrl.num;
+            //iframe.style = "width:100%; height:100%; margin:0px; padding:0px; border:none; ";
+
+            iframe.style.width = '100%';
+            iframe.style.height = '100%';
+            iframe.style.margin = '0px';
+            iframe.style.padding = '0px';
+            iframe.style.border = 'none';
+
+            iframe.scrolling = 'no';
+
+            if (ctrl.url){
+                iframe.src = ctrl.url;
+            } else {
+                iframe.src = src;
+                iframe.src += '&protocol=' + protocol + '&num=' + ctrl.num ;
+                if (ctrl.pnum) iframe.src += '&pnum=' + ctrl.pnum
+            }
+
+            document.body.appendChild(div);
+            document.getElementById('_MLRKON_DIV_' + ctrl.num).appendChild(iframe);
+            mlrkon_embed.dMap[ctrl.num].div = div;
+            mlrkon_embed.dMap[ctrl.num].iframe = iframe;
+        }
+
+        function createPostMessageFrame(){
+            var hostIp = window.location.host;
+            var protocol = window.location.protocol;
+
+            if (document.getElementById('_MLRKON_IFRAME') == undefined){
+
+                var iframe = document.createElement('iframe');
+                iframe.id = "_MLRKON_IFRAME";
+                iframe.style.display = 'none';
+                iframe.src = mlrkon_embed.proxy + '/api/web_embed.html?X-MA-Timeout=-1&X-MA-KeepSession=true&userIp='+hostIp+'&protocol='+protocol;
+                document.body.appendChild(iframe);
+
+                mlrkon_embed.sIframe = iframe;
+            }
+        }
+
+        function createInitDiv(ctrl){
+
+            if (document.getElementById('_MLRKON_LOGO_DIV') == undefined){
+                ctrl.image = (ctrl.image != 'NaN' && ctrl.image != '') ? ctrl.image : '/images/nest/sda.png';
+
+                var css = "position:absolute; width: 64px; height: 64px; right: 10px; top: 10px;z-index: 1000;";
+                css += " background : transparent; background-image: url(" + mlrkon_embed.proxy;
+                css += ctrl.image + '); background-repeat: no-repeat;';
+                css += ' background-size: cover; padding: 0px; ';
+                css += " filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + mlrkon_embed.proxy;
+                css += ctrl.image + ",sizingMethod='scale'); ";
+
+                var gdiv = document.createElement('div');
+                gdiv.id ='_MLRKON_LOGO_DIV';
+                gdiv.style = css;
+				/*
+				 gdiv.style.position = 'absolute';
+				 gdiv.style.right = '10px';
+				 gdiv.style.top = '10px';
+				 gdiv.style.width  = '60px';//ctrl.width < 1 ? ctrl.width * $(window).width() : (ctrl.width ? ctrl.width : 64);
+				 gdiv.style.height = '60px';//ctrl.height < 1 ? ctrl.height * $(window).height() : (ctrl.height ? ctrl.height : 64);
+
+				 try{
+				 gdiv.style.background = 'transparent url(' + mlrkon_embed.proxy + ctrl.image + ') no-repeat cover ';
+				 }catch (e) {
+				 console.log("IE8兼容问题请忽略",e)
+				 }
+				 gdiv.style.padding = '0px';
+				 try{
+				 gdiv.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + mlrkon_embed.proxy + ctrl.image + ",sizingMethod='scale')";
+
+				 }catch (e) {
+				 console.log("IE8以上兼容问题请忽略",e)
+				 }
+				 */
+                document.body.appendChild(gdiv);
+
+                mlrkon_embed.ctrl = ctrl;
+                mlrkon_embed.gDiv = gdiv;
+
+                jMLRK("#_MLRKON_LOGO_DIV").draggable().on('click',function(){
+                    var dialog = mlrkon_embed.dMap[mlrkon_embed.floatNum];
+
+                    if (dialog.dialog != undefined){
+                        dialog.dialog.dialog("open");
+                    }
+                });
+
+                showFlatDialog(ctrl);
+            }
+        };
+
+        function dealResult(data){
+            // york start
+            if (mlrkon_embed.timer == 2) { return }
+            // york end
+            var ctrl = JSON.parse(data);
+            if (ctrl._tag != 'MLRKON') return;
+            //york start
+            mlrkon_embed.timer = 1
+            //york end
+            var dialog = mlrkon_embed.dMap[ctrl.num];
+            if (ctrl.status != 'ok'){
+                if (dialog != undefined)
+                    _callBack(dialog.callback, {bSave: true, orderIds: []});
+                else
+                // york start
+                    _callBack(mlrkon_embed.callback,{bSave: true, orderIds: []} )
+                //york end
+                return;
+            }
+
+            switch(ctrl.cmd){
+                case 'load_over':
+                    mlrkon_embed._init_ = true
+                    if (dialog && dialog.html != '' && dialog.html != undefined){
+                        var arg = {
+                            cmd : 'show_html',
+                            input : dialog.html,
+                            opts : null,
+                            callback: dialog.callback,
+                            num : ctrl.num
+                        }
+                        postMessage(arg, dialog.iframe);
+                        //dialog.html = '';
+                    }
+                    break;
+                case 'close_dialog':
+                    if (dialog === undefined || dialog == null || !dialog) return;
+                    if (ctrl.orderIds) dialog.orderIds = ctrl.orderIds;
+                    if (ctrl.bSave || ctrl.bSave === false){
+                        dialog.bSave = ctrl.bSave;
+                    }else{
+                        dialog.bSave = true
+                    } //by GP
+                    if (ctrl.insurOrders) dialog.insurOrders=ctrl.insurOrders;  //传参2
+
+                    if(dialog.dialog == undefined || dialog.dialog == null){
+                        if (ctrl.insurOrders){
+                            _callBack(dialog.callback, {bSave: dialog.bSave, orderIds: dialog.orderIds,insurOrders:ctrl.insurOrders});
+                        }else{
+                            _callBack(dialog.callback, {bSave: dialog.bSave, orderIds: dialog.orderIds});
+                        }
+                        jMLRK("#"+dialog.div.id).parent().remove()
+                    }else{
+                        dialog.dialog.dialog("close");
+                    }
+                    if (ctrl.pnum){
+                        dialog = mlrkon_embed.dMap[ctrl.pnum];
+                        postMessage(ctrl, dialog.iframe);
+                    }
+                    break;
+                case 'close_dialog_srv_screen':
+                    if (dialog === undefined || dialog == null || !dialog) return;
+
+                    if(dialog.dialog == undefined || dialog.dialog == null){
+                        if (ctrl.insurOrders){
+                            _callBack(dialog.callback, {bSave: dialog.bSave, orderIds: dialog.orderIds,insurOrders:ctrl.insurOrders});
+                        }else{
+                            _callBack(dialog.callback, {bSave: dialog.bSave, orderIds: dialog.orderIds});
+                        }
+                        jMLRK("#"+dialog.div.id).parent().remove()
+                    } else {
+                        dialog.dialog.dialog("close");
+
+                        var url = mlrkon_embed.proxy + '/api/srv_screen.html?X-MA-KeepSession=true&format=json';
+                        url += '&caseId=' + ctrl.caseId;
+                        url += '&doFinal=' + ctrl.doFinal;
+                        url += '&aimValue=' + ctrl.aimValue;
+                        _doCall('srv_screen', mlrkon_embed.input, mlrkon_embed.options, mlrkon_embed.callback, url);
+                    }
+                    break
+                case 'sys_init' :
+                    var a = dialog
+                    if (mlrkon_embed.api) {
+                        _callBack(dialog.callback, ctrl);
+                    } else {
+                        mlrkon_embed.caseId = ctrl.caseId;
+                        createInitDiv(ctrl);
+                    }
+                    break;
+                case 'show_message_dialog':
+                    ctrl.callback = function(p){
+                        var dialog = mlrkon_embed.dMap[mlrkon_embed.floatNum];
+                        var params = {
+                            cmd: 'close_message_dialog',
+                            mids: p.mids,
+                            urls: p.urls
+                        }
+                        postMessage(params, dialog.iframe);
+                    };
+                    mlrkon_embed.showDialog(ctrl);
+                    break;
+                case 'show_dialog':
+                    if (mlrkon_embed.api)
+                        _callBack(dialog.callback, ctrl);
+                    else
+                        mlrkon_embed.showDialog(ctrl);
+                    break;
+                case 'open_link':
+                    var url = mlrkon_embed.proxy + ctrl.url;
+                    if (ctrl.isExter == '1'){
+                        window.open(ctrl.url,'_blank');
+                    } else {
+                        ctrl.url = url;
+                        mlrkon_embed.showDialog(ctrl);
+                    }
+                    break;
+            }
+        };
+
+        function _callBack(fun, args) {
+            if (fun === undefined || fun == null || fun == '') return;
+            if (jMLRK.isFunction(fun)) {
+                fun(args);
+            } else {
+                try {
+                    eval(fun + "('" + stat + "')");
+                } catch (ex) {
+                    alert('回调函数"' + fun + '"没有定义。')
+                }
+            }
+        };
+
+        function showFlatDialog(ctrl){
+
+            createDialogDiv(ctrl);
+
+            mlrkon_embed.floatNum = ctrl.num;
+
+            var dialog = mlrkon_embed.dMap[ctrl.num];
+            dialog.html = ctrl.html;
+
+            var pos = ctrl.flat_position ? ctrl.flat_position.toLowerCase()  + " top" : "right top";
+            var w = ctrl.flat_width < 1 ? ctrl.flat_width * jMLRK(window).width() : (ctrl.flat_width ? ctrl.flat_width : 300);
+            var h = ctrl.flat_height < 1 ? ctrl.flat_height * jMLRK(window).height() : (ctrl.flat_height ? ctrl.flat_height : 210);
+
+            dialog.dialog = jMLRK(dialog.div).dialog({
+                title: ctrl.flat_title ? ctrl.flat_title : '我的平台',
+                autoOpen: false,
+                height: h < 210 ? 210 : h,
+                width: w < 400 ? 400 : w,
+                position: {my: pos, at: pos, of: document},
+                modal: false
+            });
+            //jMLRK("#"+dialog.div.id).parent().css('z-index',zIndex--);//在初始化先打开工作台 后监控弹框的时候 遮罩层层级会高于监控弹框无法关闭
+            //20240426
+            jMLRK("#"+dialog.div.id).parent().css('z-index',2999);//初始化调用层级需要小于遮罩层层级 遮罩层默认2999 会始终小于监控3000++的层级
+        };
+
+        mlrkon_embed.showDialog = function(ctrl){
+            if (ctrl.html == '' && !ctrl.url) return;
+
+            if (!ctrl.num) {
+                ctrl.num = Math.ceil(Math.random()*100);
+            }
+
+            if (!mlrkon_embed.dMap[ctrl.num])
+                mlrkon_embed.dMap[ctrl.num] = {num : ctrl.num};
+
+            mlrkon_embed.dMap[ctrl.num].bcmd = ctrl.bcmd;
+
+            createDialogDiv(ctrl);
+
+            var dialog = mlrkon_embed.dMap[ctrl.num];
+            if (dialog.dialog != undefined)
+                dialog.dialog.dialog("close");
+
+            if (ctrl.hasTimer){
+                clearInterval(dialog.timer_ctrl);
+
+                dialog.timerCount = ctrl.timerCount;
+                dialog.timeCount = ctrl.timerCount;
+                dialog.hasTimer = ctrl.hasTimer;
+            }
+
+            var pos = ctrl.position ? ctrl.position.toLowerCase()  + " top" : "center top";
+            var w   = ctrl.width < 1 ? ctrl.width * jMLRK(window).width() : (ctrl.width ? ctrl.width : 900);
+            var h   = ctrl.height < 1 ? ctrl.height * jMLRK(window).height() : (ctrl.height ? ctrl.height : 500);
+
+            dialog.html = ctrl.html;
+            dialog.title = ctrl.title ;
+
+            var config = {
+                title: dialog.title,
+                autoOpen: true,
+                height: h < 300 ? 300 : h,
+                width: w < 600 ? 600 : w,
+                position: {my: pos, at: pos, of: document},
+                modal: ctrl.modal ? ctrl.modal : false,
+                closeOnEscape: false,
+                open: function(event, ui) {
+                    if (ctrl.modal){
+                        jMLRK('[aria-describedby="_MLRKON_DIV_'+ctrl.num+'"] .ui-dialog-titlebar-close').hide();
+                    }
+                },
+                close: function () {
+                    if (dialog.hasTimer){
+                        dialog.dialog.unbind();
+                        clearInterval(dialog.timer_ctrl);
+                        dialog.hasTimer = false;
+                    }
+                    jMLRK(this).dialog("destroy");
+
+                    if (dialog.callback)
+                        _callBack(dialog.callback, {bSave: dialog.bSave, orderIds: dialog.orderIds,insurOrders:dialog.insurOrders});//传参3
+
+                    if (ctrl.callback)
+                        _callBack(ctrl.callback, {mids: ctrl.mids, urls: ctrl.urls});
+
+                    document.body.removeChild(dialog.div);
+                    delete mlrkon_embed.dMap[dialog.num];
+                }
+            };
+
+            try{
+                dialog.dialog = jMLRK(dialog.div).dialog(config);
+            }catch(e){
+                console.log(e)
+            }
+            //york start
+            jMLRK("#"+dialog.div.id).parent().css('z-index',zIndex++)
+            console.log("窗体编号num",ctrl.num)
+            //$(dialog.dialog).parent().css('z-index',zIndex++)
+            //york end
+            if (dialog.hasTimer) {
+                dialog.timer_ctrl = setInterval(function(){_changeOnlineTitle(dialog);}, 1000);
+                mlrkon_embed.dMap[ctrl.num] = dialog;
+
+                dialog.dialog.bind('mouseover', function() {
+                    clearInterval(dialog.timer_ctrl);
+                    var titleBar = dialog.dialog.dialog("instance").uiDialogTitlebar;
+                    titleBar.find("span.ui-dialog-title").text(dialog.title);
+                    dialog.timeCount = dialog.timerCount;
+                }).bind('mouseleave', function () {
+                    dialog.timeCount = dialog.timerCount;
+                    dialog.timer_ctrl = setInterval(function(){_changeOnlineTitle(dialog);}, 1000);
+                });
+            }
+        };
+
+        function _changeOnlineTitle(dialog) {
+            if (dialog) {
+                var d = dialog.dialog.dialog("instance");
+                if (d != undefined){
+                    var titleBar = d.uiDialogTitlebar;
+                    var span = titleBar.find("span.ui-dialog-title");
+                    var title = dialog.dialog.dialog( "option", "title" );
+                    span.text(title + '(离窗口关闭还有 ' + dialog.timeCount + ' 秒)');
+                    if (dialog.timeCount == 0)  {
+                        clearInterval(dialog.timer_ctrl);
+                        dialog.dialog.dialog("close");
+                    }
+                    if (dialog.timeCount > 0) dialog.timeCount--;
+                }
+            }
+        };
+
+        function postMessage(args, frame){
+            if (frame == null || frame == undefined)
+                frame = mlrkon_embed.sIframe;
+            args._tag = 'MLRKON';
+            var params = JSON.stringify(args);
+            if(mlrkon_embed._init_ == true){
+                frame.contentWindow.postMessage(params, mlrkon_embed.proxy);
+            }else{
+                try{
+                    recursiveTimeout(10, function() {
+                        frame.contentWindow.postMessage(params, mlrkon_embed.proxy);
+                    });
+                }catch(ex){
+                    _callBack(mlrkon_embed.callback,{bSave: true, orderIds: []} )
+                    console.log(ex)
+                    console.log("recursiveTimeout")
+                }
+            }
+        };
+        function recursiveTimeout(n, callbackFrame) {
+            if(n>0){
+                setTimeout(function()  {
+                    if(mlrkon_embed._init_ == true){
+                        callbackFrame()
+                    }else{
+                        recursiveTimeout(n - 1, callbackFrame);
+                    }
+                }, 100);
+            }else{
+                _callBack(mlrkon_embed.callback,{bSave: true, orderIds: []} )
+            }
+        }
+
+        function noRegeistry() {
+            if (mlrkon_embed.startMills == undefined || mlrkon_embed.startMills == null || mlrkon_embed.startMills == ''){
+                return
+            }else{
+                var endMills = Date.now()
+                if (endMills - mlrkon_embed.startMills > mlrkon_embed.options.timeout){ // 超时
+                    _callBack(mlrkon_embed.callback,{bSave: true, orderIds: []} )
+                    return
+                }
+            }
+        }
+        mlrkon_embed.doCall = function(command, input, options, callback){
+            if(locked){
+                setTimeout(function(){
+                    locked = false
+                    innerCall(command, input, options, callback)
+                }, 100);
+
+            }else{
+                locked = true
+                innerCall(command, input, options, callback)
+            }
+
+        }
+        function innerCall(command, input, options, callback){
+
+            var url = mlrkon_embed.proxy + '/api/test_service.js'
+            var script = document.createElement("script");
+            script.src = url;
+            script.onerror = function () {
+                document.head.removeChild(script);
+                _callBack(callback, {bSave: true, orderIds: []});
+                return
+            }
+            script.onload = function () {
+                document.head.removeChild(script);
+                _doCall(command, input, options, callback);
+
+                mlrkon_embed.command  = (command == 'srv_screen') ? command : ''
+                mlrkon_embed.input    = (command == 'srv_screen') ? input : ''
+                mlrkon_embed.optins   = (command == 'srv_screen') ? options : ''
+                mlrkon_embed.callback = (command == 'srv_screen') ? callback : null
+            }
+
+            document.head.appendChild(script);
+            // document.head.removeChild(script);
+        }
+
+        function _doCall(command, input, options, callback, url) {
+            locked = false
+            if (url==undefined || url==null) url='';
+
+            var input = (typeof input === 'string') ? JSON.parse(input) : input;
+            try{
+                if (command == 'srv_screen' || command == 'srv_online') {
+                    var orders = input.orders
+                    if(orders.length>0){
+                        for(var i = 0;i < orders.length;i++){
+                            if(orders[i].code == null || orders[i].code == undefined || orders[i].code == ''){
+                                _callBack(callback, {bSave: true, orderIds: []});
+                                return
+                            }
+                        }
+                    } else {
+                        _callBack(callback, {bSave: true, orderIds: []});//传入医嘱为空也返回bSave为true by zhangyi
+                    }
+                }
+            }catch(e){
+                _callBack(callback, {bSave: true, orderIds: []});
+                console.log(e)
+                return
+            }
+            if (options == undefined || options == null || options == ''){
+                options = {api:false,timeout: 5500}
+            }
+
+
+            try {
+                if (command.replace(/(^\s*)|(\s*$)/g, "") == '') {
+                    alert("请输入命令名称!");
+                    return;
+                }
+
+                var opts = (typeof options === 'string') ? JSON.parse(options) : options;
+                var num = Math.ceil(Math.random()*100);
+
+                if (callback == null || callback == undefined || callback == ''){
+                    callback = function(){}
+                }
+                mlrkon_embed.dMap[num] = {callback : callback, num: num};
+
+                mlrkon_embed.api = opts ? (opts.api ? opts.api : false) : false;
+
+                postMessage({cmd : command, input : input, opts : options, num: num, url:url});
+                // york start
+                mlrkon_embed.callback = callback
+                //york end
+            } catch (e){
+                _callBack(callback, {bSave: true, orderIds: []});
+            }
+        }
+
+
+        var jMLRK
+        if (!jMLRK){
+            loadScript(mlrkon_embed.proxy + '/js/jquery-1.11.1.js', function(){
+                jMLRK = window.jMLRK  = $.noConflict(true);
+                loadJqueryUIJs('jquery-ui-mlrk.js')
+            });
+        } else {
+            /**客户的jQuery版本在1.6以下,用jquery-ui-1.8.16.custom.min.js**/
+            //loadJqueryUIJs('jquery-ui-1.8.16.custom.min.js');
+            loadJqueryUIJs('jquery-ui-mlrk.js')
+        }
+
+        function loadJqueryUIJs(fileName){
+            jMLRK.noConflict()
+            if ((typeof (jMLRK.ui) == 'undefined' || typeof (jMLRK.ui.dialog) == 'undefined' ) /*&&
+			 typeof(LOAD_JQUERY_UI) != 'undefined' && LOAD_JQUERY_UI==true*/){
+                jMLRK.getScript(mlrkon_embed.proxy + '/js/' + fileName );
+
+                var d = jMLRK.Deferred();
+                var link = jMLRK('<link/>').attr({
+                    rel: 'stylesheet',
+                    type: 'text/css',
+                    href: mlrkon_embed.proxy + '/css/jquery-ui.css'
+                }).appendTo('head');
+
+                d.resolve(link);
+            }
+
+            if (typeof(JSON) == 'undefined'){
+                jMLRK.getScript(mlrkon_embed.proxy + '/js/jquery.json-2.4.js' );
+                jMLRK.getScript(mlrkon_embed.proxy + '/js/json2/json2.js' );
+                jMLRK.getScript(mlrkon_embed.proxy + '/js/json2/cycle.js');
+            }
+            createPostMessageFrame();
+        }
+
+        if (window.addEventListener) {                    //所有主流浏览器,除了 IE 8 及更早 IE版本
+            window.addEventListener("message", function( event ) {
+                // console.log('----event.data='+event.data);
+                dealResult(event.data);
+
+            }, false );
+        } else if (window.attachEvent) {                  // IE 8 及更早 IE 版本
+            window.attachEvent("message", function( event ) {
+                // console.log('----event.data='+event.data);
+                dealResult(event.data);
+            }, false );
+        }
+
+        return mlrkon_embed;
+    }(document));
+
+window.MLRKON_CLIENT = MLRKON_CLIENT;
+
+function trim(str) {
+    if (!String.prototype.trim) {
+        return str.toString().replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g, "").replace(/\s+/g, " ");
+    } else {
+        return str.toString().trim();
+    }
+};
+
+
+

+ 273 - 37
src/main/resources/static/js/mz/clinic.js

@@ -30,6 +30,13 @@ var ksjzType = null;
 var hospitalName='沭阳铭和医院'
 var wpyHide = 0;
 
+var currentPatientId = '';
+//就诊病人信息
+var currentPatientInfo = {} ;
+//就诊病人列表
+var patientList = [];
+//就诊病人过敏源
+var allergens = [];
 
 $(function () {
     getAjaxRequst("/thmz/queryWpyOrderHide",{},true,function (res) {
@@ -918,7 +925,8 @@ $(function () {
      * 医保电子凭证读卡
      */
     $("#siReadCard").on("click", function (t) {
-        siReadCard("qrcode_01101");
+        // siReadCard("qrcode_01101");
+        siReadCard("jiangsu_qrcode_01101");
     });
 
 
@@ -926,7 +934,8 @@ $(function () {
      * 医保刷脸
      */
     $("#siReadCardFace").on("click", function (t) {
-        siReadCard("face_01101");
+        // siReadCard("face_01101");
+        siReadCard("jiangsu_face_01101");
     });
 
     /**
@@ -941,6 +950,7 @@ $(function () {
      */
     // $("#mztczfSiReadCard").on("click", function (t) {
     //     mztczfSiReadCard(true, "qrcode_01101");
+    //     mztczfSiReadCard(true, "jiangsu_qrcode_01101");
     // });
 
     /**
@@ -948,6 +958,7 @@ $(function () {
      */
     // $("#mztczfSiReadCardFace").on("click", function (t) {
     //     mztczfSiReadCard(true, "face_01101");
+    //     mztczfSiReadCard(true, "jiangsu_face_01101");
     // });
 
     /**
@@ -1803,6 +1814,7 @@ function loadCommonClinicTableList(id, queryParams) {
             };
         },
         onLoadSuccess: function (data) {
+            patientList = data.rows
             $(".pagination-detail").css("display", "none");
             if (id == "tb_table_clinic") {
                 $("#ClinicNum").html(data.total);
@@ -2131,6 +2143,7 @@ function setMzPatientInfo(mzPatientMi) {
             }
         }
     });
+    currentPatientInfo = mzPatientMi
     $("#patientName").html(mzPatientMi.name);
     //var age = getAge(mzPatientMi);
     $("#patientAge").html(mzPatientMi.ageString);
@@ -2538,7 +2551,8 @@ var visitMtCardResult = null;
 function readVisitPatientCard() {
     $.ajax({
         type: "GET",
-        url: 'http://localhost:8321/readcard/entry?param=qrcode_01101',
+        // url: 'http://localhost:8321/readcard/entry?param=qrcode_01101',
+        url: 'http://localhost:8321/api/entry?param=jiangsu_qrcode_01101',
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
@@ -2691,7 +2705,7 @@ function mztczfSiReadCard(asyncFlag, params) {
     mztczfSiReadCardStatus = true;
     $.ajax({
         type: "GET",
-        url: 'http://localhost:8321/readcard/entry?param=' + params,
+        url: params && params.startsWith('jiangsu_qrcode') ? 'http://localhost:8321/api/entry?param=' + params : 'http://localhost:8321/readcard/entry?param=' + params,
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
         async: asyncFlag,
@@ -3917,7 +3931,13 @@ function editPrescription(jsonData, type) {
         $('#conditionCode').selectpicker('refresh');
         $("#routeOfAdmission").selectpicker('val', mzZyReq.routeOfAdmission);
         $('#routeOfAdmission').selectpicker('refresh');
+        $("#contacterName").val(mzZyReq.contacterName);
+        $("#contacterRelationship").selectpicker('val', mzZyReq.contacterRelationship);
+        $('#contacterRelationship').selectpicker('refresh');
+        $("#contacterPhone").val(mzZyReq.contacterPhone);
+        $("#contacterAddress").val(mzZyReq.contacterAddress);
         $("#deposit").val(mzZyReq.deposit);
+
         setTimeout(function () {
             $("#smallWardBeHospitalized").selectpicker('val', mzZyReq.smallDept);
             $('#smallWardBeHospitalized').selectpicker('refresh');
@@ -4462,6 +4482,32 @@ function initListDeptSelect() {
     });
 }
 
+/**
+ * 关系列表初始化
+ */
+function initRelationSelect() {
+    //医生列表
+    $.ajax({
+        type: "GET",
+        url: '/thmz/getRelation',
+        dataType: "json",
+        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+        success: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            var html = '';
+            $.each(res.data, function (commentIndex, comment) {
+                html += '<option value="' + comment.code + '">' + comment.name + '</option>';
+            });
+            $('#contacterRelationship').empty();
+            $('#contacterRelationship').html(html);
+            $('#contacterRelationship').selectpicker('destroy').selectpicker('refresh');
+        }
+    });
+}
+
 
 /**
  * 小科室列表
@@ -5160,9 +5206,11 @@ function saveWesternMedicine(calculateTotalAmountFlag) {
     html += '<input type="hidden" class="temporary_items_amount" value="' + totalRetprice + '"/>';
     html += '<input type="hidden" class="temporary_items_groupId" value="' + groupId + '"/>';
     html += '<input type="hidden" class="temporary_items_westernMedicineNamme" value="' + westernMedicineNamme + '"/>';
+    html += '<input type="hidden" class="temporary_items_supplyTypeText" value="' + supplyTypeText + '"/>';
     html += '<input type="hidden" class="temporary_items_drugWinDb" value="' + drugWinDb + '"/>';
     html += '<input type="hidden" class="temporary_items_drugWin" value="' + drugWin + '"/>';
     html += '<input type="hidden" class="temporary_items_drugWinUnit" value="' + $("#drugWinUnit").val() + '"/>';
+    html += '<input type="hidden" class="temporary_items_drugWinUnitText" value="' + drugWinUnit+ '"/>';
     html += '<input type="hidden" class="temporary_items_gross" value="' + gross + '"/>';
     html += '<input type="hidden" class="temporary_items_packUnit" value="' + packUnit + '"/>';
     html += '<input type="hidden" class="temporary_items_supplyType" value="' + supplyType + '"/>';
@@ -6174,6 +6222,14 @@ function saveZyReq(messageFlag) {
     var conditionCode = $("#conditionCode").val();
     //入院途径代码
     var routeOfAdmission = $("#routeOfAdmission").val();
+    //联系人姓名
+    var contacterName = $("#contacterName").val();
+    //联系人关系
+    var contacterRelationship = $("#contacterRelationship").val();
+    //联系人电话
+    var contacterPhone = $("#contacterPhone").val();
+    //联系人地址
+    var contacterAddress = $("#contacterAddress").val();
     //押金
     var deposit = $("#deposit").val();
 
@@ -6243,6 +6299,10 @@ function saveZyReq(messageFlag) {
     html += '<input type="hidden" class="temporary_items_admiss_status" value="' + admissStatus + '"/>';
     html += '<input type="hidden" class="temporary_items_condition_code" value="' + conditionCode + '"/>';
     html += '<input type="hidden" class="temporary_items_route_of_admission" value="' + routeOfAdmission + '"/>';
+    html += '<input type="hidden" class="temporary_items_contacter_name" value="' + contacterName + '"/>';
+    html += '<input type="hidden" class="temporary_items_contacter_relationship" value="' + contacterRelationship + '"/>';
+    html += '<input type="hidden" class="temporary_items_contacter_phone" value="' + contacterPhone + '"/>';
+    html += '<input type="hidden" class="temporary_items_contacter_address" value="' + contacterAddress + '"/>';
     html += '<input type="hidden" class="temporary_items_deposit" value="' + deposit + '"/>';
     html += '</div>';
     $(tableId).find("div:eq(0)").html(html);
@@ -6864,6 +6924,11 @@ function clearZyReq() {
     $("#totalBedNum").val(null);
     $("#freeBedNum").val(null);
     $("#occupationBedNum").val(null);
+    $("#contacterName").val(null);
+    $("#contacterRelationship").selectpicker('val', null);
+    $('#contacterRelationship').selectpicker('refresh');
+    $("#contacterPhone").val(null);
+    $("#contacterAddress").val(null);
     $("#deposit").val(null);
     initSmallDeptByDept();
 }
@@ -8221,6 +8286,8 @@ function loadYpList(index, event) {
             postAjaxJsonHttpRequst("/thmz/checkKssByUserCode",{code:row.code,ypName:row.name,serial:row.serial,patientId:$("#patientId").text(),ypType:row.ypType},true,function (cres) {
                 if(cres.code == 0){
                     $('#' + MedicineName).webuiPopover('hide');
+                    console.log("row",row)
+                    console.log("index",index)
                     if (index == 0) {
                         clearWesternMedicine(false);
                         checkYpInfo(row.code, row.serial, row.ypType, true, null, 3);
@@ -10659,7 +10726,11 @@ function getParamsForpPrescription(type) {
         jsonData.mzZyReq.admissStatus = $(zyReqTabContents[0]).find("input.temporary_items_admiss_status").val();
         jsonData.mzZyReq.conditionCode = $(zyReqTabContents[0]).find("input.temporary_items_condition_code").val();
         jsonData.mzZyReq.routeOfAdmission = $(zyReqTabContents[0]).find("input.temporary_items_route_of_admission").val();
-        jsonData.mzZyReq.deposit = $(zyReqTabContents[0]).find("input.temporary_deposit").val();
+        jsonData.mzZyReq.contacterName = $(zyReqTabContents[0]).find("input.temporary_items_contacter_name").val();
+        jsonData.mzZyReq.contacterRelationship = $(zyReqTabContents[0]).find("input.temporary_items_contacter_relationship").val();
+        jsonData.mzZyReq.contacterPhone = $(zyReqTabContents[0]).find("input.temporary_items_contacter_phone").val();
+        jsonData.mzZyReq.contacterAddress = $(zyReqTabContents[0]).find("input.temporary_items_contacter_address").val();
+        jsonData.mzZyReq.deposit = $(zyReqTabContents[0]).find("input.temporary_items_deposit").val();
     }
     //门诊手术
     var opRecordTabContents = $("#opRecordTabContent").find("div.form-group");
@@ -10711,40 +10782,205 @@ function getParamsForpPrescription(type) {
     return jsonData;
 }
 
+function getParamsHlyy() {
+    let loginUserCode = localStorage.getItem("userID")
+    let loginUserName = localStorage.getItem("userName")
+    let loginUserDept = localStorage.getItem("currentDeptNo")
+    // let currentPatient = patientList.find(item=> item.patientId == currentPatientId)
+    console.log("currentPatientId",currentPatientId)
+    console.log("currentPatientInfo",currentPatientInfo)
+    // //设置过敏源
+    let patientAllergenInfoList = []
+    let zdAllergen = $("#zdAllergen").find(":selected");
+    const zdAllergenValue = [];
+    const zdAllergenName = [];
+    zdAllergen.each(function() {
+        zdAllergenValue.push($(this).val());   // 选中的值
+        zdAllergenName.push($(this).text());   // 显示的文本
+    });
+    console.log("zdAllergenValue",zdAllergenValue)
+    console.log("zdAllergenName",zdAllergenName)
+    let ypDitList = $("#ypDitList").find(":selected");
+    const ypDitListValue = [];
+    const ypDitListName = [];
+    ypDitList.each(function() {
+        ypDitListValue.push($(this).val());   // 选中的值
+        ypDitListName.push($(this).text());   // 显示的文本
+    });
+    console.log("ypDitListValue",ypDitListValue)
+    console.log("ypDitListName",ypDitListName)
+    if (zdAllergen != null && zdAllergen.length > 0) {
+        for (let i = 0; i < zdAllergen.length; i++) {
+            let tempJson = JSON.parse('{}');
+            tempJson.code = zdAllergenValue[i];
+            tempJson.name = zdAllergenName[i];
+            patientAllergenInfoList[patientAllergenInfoList.length] = tempJson;
+        }
+    }
+    if (ypDitList != null && ypDitList.length > 0) {
+        for (let i = 0; i < ypDitList.length; i++) {
+            let tempJson = JSON.parse('{}');
+            tempJson.code = ypDitListValue[i];
+            tempJson.name = ypDitListName[i];
+            patientAllergenInfoList[patientAllergenInfoList.length] = tempJson;
+        }
+    }
+    var diagnoseChildren = $("#diagnoseTags").children();
+    var patientDiag = [];
+
+    for (var i = 0; i < diagnoseChildren.length; i++) {
+        var child = diagnoseChildren[i]; // 直接获取 DOM 元素
+        patientDiag.push({
+            code: child.id,
+            name: child.getAttribute("title") // 或 child.title
+        });
+    }
+
+    //设置处方详情
+    var orderList = [];
+    var emrFzjc = null;
+    var xyTabContents = $("#xyTabContent").find("div.tab-pane");
+    //西药设置
+    if (xyTabContents != null && xyTabContents.length > 0) {
+        for (var i = 0; i < xyTabContents.length; i++) {
+            //当前药品类型
+            var currentGroupNo = $(xyTabContents[i]).find("input.current_groupNo").val();
+            var formGroups = $(xyTabContents[i]).find("div.form-group");
+            if (formGroups != null && formGroups.length > 0) {
+                for (var j = 0; j < formGroups.length; j++) {
+                    var tempJson = JSON.parse('{"id": "","code": "","route": "","name": "","dose": "","doseUnit": "","freq": "","amount": "","unit": "","repeat":"0",' +
+                        '"startDateTime":"","dayCount":"","group":""}');
+                    tempJson.id = $(formGroups[j]).find("input.temporary_items_code").val();
+                    tempJson.code = $(formGroups[j]).find("input.temporary_items_code").val();
+                    tempJson.route = $(formGroups[j]).find("input.temporary_items_supplyTypeText").val();
+                    tempJson.name = $(formGroups[j]).find("input.temporary_items_westernMedicineNamme").val();
+                    tempJson.dose = $(formGroups[j]).find("input.temporary_items_drugWin").val();
+                    tempJson.doseUnit = $(formGroups[j]).find("input.temporary_items_drugWinUnitText").val();
+                    tempJson.freq = $(formGroups[j]).find("input.temporary_items_orderFrequency").val();
+                    tempJson.amount = $(formGroups[j]).find("input.temporary_items_gross").val();
+                    tempJson.unit = $(formGroups[j]).find("input.temporary_items_packUnit").val();
+                    const timer = new Date();
+                    tempJson.startDateTime = timer.toLocaleString();
+                    tempJson.dayCount = $(formGroups[j]).find("input.temporary_items_dayNum").val();
+                    tempJson.group = $(formGroups[j]).find("input.temporary_items_groupId").val();
+                    orderList.push(tempJson)
+                }
+            }
+        }
+    }
+
+    //外配药设置
+    var wpMedicineTabContents = $("#wpMedicineTabContent").find("div.form-group");
+    if (wpMedicineTabContents != null && wpMedicineTabContents.length > 0) {
+        console.log("wpMedicineTabContent",wpMedicineTabContent)
+        for (var i = 0; i < xyTabContents.length; i++) {
+            //当前药品类型
+            var currentGroupNo = $(xyTabContents[i]).find("input.current_groupNo").val();
+            var formGroups = $(xyTabContents[i]).find("div.form-group");
+            if (formGroups != null && formGroups.length > 0) {
+                for (var j = 0; j < formGroups.length; j++) {
+                    var tempJson = JSON.parse('{"id": "","code": "","route": "","name": "","dose": "","doseUnit": "","freq": "","amount": "","unit": "","repeat":"0",' +
+                        '"startDateTime":"","dayCount":"","group":""}');
+                    tempJson.id = $(formGroups[j]).find("input.temporary_items_code").val();
+                    tempJson.code = $(formGroups[j]).find("input.temporary_items_code").val();
+                    tempJson.route = $(formGroups[j]).find("input.temporary_items_medcWayCodg").val();
+                    tempJson.name = $(formGroups[j]).find("input.temporary_items_wpMedicineName").val();
+                    tempJson.dose = $(formGroups[j]).find("input.temporary_items_sinDoscnt").val();
+                    tempJson.doseUnit = $(formGroups[j]).find("input.temporary_items_sinDosunt").val();
+                    tempJson.freq = $(formGroups[j]).find("input.temporary_items_usedFrquCodg").val();
+                    tempJson.amount = $(formGroups[j]).find("input.temporary_items_drugCnt").val();
+                    tempJson.unit = $(formGroups[j]).find("input.temporary_items_drugDosunt").val();
+                    const timer = new Date();
+                    tempJson.startDateTime = timer.toLocaleString();
+                    tempJson.dayCount = $(formGroups[j]).find("input.temporary_items_medcDays").val();
+                    tempJson.group = $(formGroups[j]).find("input.temporary_items_groupId").val();
+                    orderList.push(tempJson)
+                }
+            }
+        }
+    }
+
+    let params = {
+        station : {
+            type : "2"
+        },
+        doctor : {
+            code : loginUserCode ,
+            name : loginUserName ,
+            deptCode : loginUserDept
+        },
+        patient : {
+            id: currentPatientInfo.patientId ,
+            code: currentPatientInfo.patientId ,
+            visitId:"" ,
+            name : currentPatientInfo.name,
+            chargeType : currentPatientInfo.responseTypeName,
+            sex : currentPatientInfo.gender,
+            deptCode : loginUserDept,
+            birthday : currentPatientInfo.birthDayStr,
+            height :"",
+            weight :"",
+            medconds :{
+                diag : patientDiag,
+                allergens : patientAllergenInfoList
+            }
+        },
+        orders : orderList,
+
+    }
+    return params
+    console.log("params",params)
+}
+
+
+
 /**
  * 保存处方
  */
 function savePrescription() {
-    var jsonData = getParamsForpPrescription(1);
-    let wpMedicineFlag = jsonData.rxDruginfoList ==null || jsonData.rxDruginfoList.length ==0 ? false : true;
-    $.ajax({
-        type: "POST",
-        url: '/thmz/rationalUseOfMedicine',
-        contentType: "application/json;charset=UTF-8",
-        dataType: "json",
-        data: JSON.stringify(jsonData),
-        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
-        success: function (res) {
-            if (res == '401' || res == 401) {
-                window.location.href = '/thmz/login/view'
-                return;
-            }
-            $("#messageButton").attr("disabled", false);
-            if (res.code == 0) {
-                var rationalUseMap = res.data;
-                var result_lv = rationalUseMap.result_lv;
-                if (result_lv == 0 || result_lv == "0") {
-                    savePrescriptionForReadCard(wpMedicineFlag);
-                } else {
-                    var showUrl = rationalUseMap.ShowUrl;
-                    getResultUrl = rationalUseMap.getResultUrl;
-                    showHlyyModel('hlyyDiv', 'loading', 'hlyyModal', showUrl);
-                }
-            } else {
-                savePrescriptionForReadCard(wpMedicineFlag);
-            }
-        }
-    });
+    function getHlyyResult(res) {
+        console.log("res",res)
+        $("#messageButton").attr("disabled", false);
+        if(res.beSave) {
+            var jsonData = getParamsForpPrescription(1);
+            let wpMedicineFlag = jsonData.rxDruginfoList ==null || jsonData.rxDruginfoList.length ==0 ? false : true;
+            savePrescriptionForReadCard(wpMedicineFlag);
+        }
+    }
+
+    var hlyyParams = getParamsHlyy()
+    MLRKON_CLIENT.doCall("srv_screen", JSON.stringify(hlyyParams), { "api": false, "timeout": 10000}, getHlyyResult)
+    // var jsonData = getParamsForpPrescription(1);
+    // console.log("savePrescription",jsonData)
+    // let wpMedicineFlag = jsonData.rxDruginfoList ==null || jsonData.rxDruginfoList.length ==0 ? false : true;
+    // $.ajax({
+    //     type: "POST",
+    //     url: '/thmz/rationalUseOfMedicine',
+    //     contentType: "application/json;charset=UTF-8",
+    //     dataType: "json",
+    //     data: JSON.stringify(jsonData),
+    //     headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+    //     success: function (res) {
+    //         if (res == '401' || res == 401) {
+    //             window.location.href = '/thmz/login/view'
+    //             return;
+    //         }
+    //         $("#messageButton").attr("disabled", false);
+    //         if (res.code == 0) {
+    //             var rationalUseMap = res.data;
+    //             var result_lv = rationalUseMap.result_lv;
+    //             if (result_lv == 0 || result_lv == "0") {
+    //                 savePrescriptionForReadCard(wpMedicineFlag);
+    //             } else {
+    //                 var showUrl = rationalUseMap.ShowUrl;
+    //                 getResultUrl = rationalUseMap.getResultUrl;
+    //                 showHlyyModel('hlyyDiv', 'loading', 'hlyyModal', showUrl);
+    //             }
+    //         } else {
+    //             savePrescriptionForReadCard(wpMedicineFlag);
+    //         }
+    //     }
+    // });
 }
 
 /**
@@ -11093,6 +11329,8 @@ function clearApidAcceptsModal() {
  * @param clnicId 就诊记录id
  */
 function getMzPrescriptionVoUnPaid(patientId, times, clnicId) {
+    currentPatientId = patientId;
+    console.log("currentPatientId1",currentPatientId)
     if (!confirm("请确认要修改处方吗?如只修改病历,请取消,点击【详情】再【修改病历】")) {
         return;
     }
@@ -15394,6 +15632,4 @@ function initCopy() {
         }
 
     })
-
-
 }

+ 171 - 140
src/main/resources/templates/mz/clinic.html

@@ -24,6 +24,8 @@
 <script src="/thmz/js/common/date-util.js"></script>
 <script src="/thmz/js/mz/crb_main_card.js"></script>
 <script src="/thmz/js/mz/clinic.js"></script>
+<script type="text/javascript" src="/thmz/js/hlyy/mlrkon.js"></script>
+
 <title>就诊</title>
 <!-- 打印的样式-->
 <style media="print">
@@ -391,12 +393,12 @@
                         <span>性别: </span> <label><span id="patientGender"></span></label>&nbsp;&nbsp;
                         <label style="font-weight:normal" id="patientPhoneLabel" hidden><span>手机号: </span> <label><span
                                 id="patientPhone"></span></label>&nbsp;&nbsp;</label>
-<!--                        <span>病人性质: </span> <label><span id="patientResponseType"></span></label>-->
+                        <!--                        <span>病人性质: </span> <label><span id="patientResponseType"></span></label>-->
                         <span>病人身份: </span> <label><a class="fa fa-futbol-o"></a>&nbsp;&nbsp;<span id="patientVisitType" style="color: red;font-weight:bold"></span></label>
                         <span>慢病类型: </span> <label><span id="crmType"></span></label>
                         <!--当前接诊病人id-->
                         <!--  <input id="patientId" type="hidden"/>-->
-                       <!--就诊次数-->
+                        <!--就诊次数-->
                         <input type="hidden" id="visitTimes"/>
                         <!--当前接诊病人分诊流水号-->
                         <input type="hidden" id="mzfzSerialNoInClick"/>
@@ -451,8 +453,8 @@
                     <div class="item form-group customization" id="emrPsFlag" target-id="emrPs">
                         <label class="my_label">既往史:</label>
                         <textarea id="emrPs" class="form-control my_label_input" placeholder="请输入"></textarea>
-<!--                        <input id="emrPs" class="form-control my_label_input"-->
-<!--                               placeholder="请输入" type="text" data-placement="bottom-right">-->
+                        <!--                        <input id="emrPs" class="form-control my_label_input"-->
+                        <!--                               placeholder="请输入" type="text" data-placement="bottom-right">-->
                     </div>
                     <div class="item form-group customization" id="personalHistoryFlag" target-id="personalHistory">
                         <label class="my_label">个人史:</label>
@@ -1259,6 +1261,46 @@
                                         </div>
                                     </div>
                                 </div>
+                                <div class="item form-group">
+                                    <div style="width: 250px;float: left;">
+                                        <label class="my_label_4">联系人:</label>
+                                        <div style="width: 150px;float: left;">
+                                            <input  id="contacterName" class="form-control col-md-7 col-xs-12"
+                                            >
+                                        </div>
+                                    </div>
+
+                                </div>
+                                <div class="item form-group">
+                                    <div style="width: 250px;float: left;">
+                                        <label class="my_label_4">联系人关系:</label>
+                                        <div style="width: 150px;float: left;">
+                                            <select class="form-control selectpicker show-tick"
+                                                    title="请选择"
+                                                    id="contacterRelationship">
+                                            </select>
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="item form-group">
+                                    <div style="width: 250px;float: left;">
+                                        <label class="my_label_4">联系人电话:</label>
+                                        <div style="width: 150px;float: left;">
+                                            <input  id="contacterPhone" class="form-control col-md-7 col-xs-12"
+                                            >
+                                        </div>
+                                    </div>
+
+                                </div>
+                                <div class="item form-group">
+                                    <div style="width: 250px;float: left;">
+                                        <label class="my_label_4">联系人地址:</label>
+                                        <div style="width: 150px;float: left;">
+                                            <input  id="contacterAddress" class="form-control col-md-7 col-xs-12"
+                                            >
+                                        </div>
+                                    </div>
+                                </div>
                                 <div class="item form-group">
                                     <div style="width: 200px;float: left;">
                                         <label class="my_label_3">押金(元):</label>
@@ -2110,7 +2152,7 @@
                         <div class="hasCharge"><img id="chargeImage" src="/thmz/images/nocharge.png" alt=""
                                                     style="width: 100%;height: 100%;"></div>
                         <div class="hasPrint"><img id="printImage" src="/thmz/images/noprint.png" alt=""
-                                                    style="width: 100%;height: 100%;"></div>
+                                                   style="width: 100%;height: 100%;"></div>
                     </div>
                     <div class="item form-group">
                         <div class="checkbox" style="cursor: pointer;">
@@ -2311,13 +2353,13 @@
                 <div class="x_panel_mine" style="background: #EBEBE4;">
                     <div class="x_title">
                         <span style="font-weight: 700;color: black;margin-right: 20px;">自付金额:<span id="selfAmountView"
-                                                                                                   style="color: black;"></span>元</span>
+                                                                                                       style="color: black;"></span>元</span>
                         <span style="font-weight: 700;color: black;margin-right: 20px;">门诊统筹:<span id="fundPayView"
-                                                                                                   style="color: black;"></span>元</span>
+                                                                                                       style="color: black;"></span>元</span>
                         <span style="font-weight: 700;color: black;margin-right: 20px;">个账支付:<span id="acctPayView"
-                                                                                                   style="color: black;"></span>元</span>
+                                                                                                       style="color: black;"></span>元</span>
                         <span style="font-weight: 700;color: black;margin-right: 20px;">合计金额:<span id="totalAmountView"
-                                                                                                   style="color: black;"></span>元</span>
+                                                                                                       style="color: black;"></span>元</span>
                         <span>打印设置 </span>
                         <ul class="nav navbar-right panel_toolbox">
                             <li><a class="collapse-link"><i class="fa fa-chevron-up" id="setupId"></i></a>
@@ -2852,53 +2894,54 @@
             <div style="float: left;height: 20px;margin-top: -5px">
                 <svg id="cfBarcode" height="20"></svg>
             </div>
-            <div style="text-align:left;font-weight: 700;margin-left: 160px" class="hospitalName">长沙泰和医院</div>
+            <div style="text-align:left;font-weight: 500;margin-left: 160px;font-size: 24px" class="hospitalName">沭阳铭和医院</div>
             <div style="float: right;margin-right: 100px;width: 110px;text-align: center;position: absolute;top: 0px;right: 0px;"
                  id="cfOrderNumTitle"></div>
             <div style="float: right;color: red;margin-right: 30px;border: 1px solid red;width: 70px;text-align: center;position: absolute;top: 0px;right: 0px;"
                  id="cfTitle"></div>
         </div>
-        <div style="text-align:left;font-weight: 700;margin-left: 185px">处方笺</div>
-        <!--<h3 style="text-align:center;font-weight: 700;">长沙泰和医院</h3>-->
+        <div style="text-align:left;font-weight: 700;margin-left: 185px;font-size: 24px">处方笺</div>
+        <br>
+        <!--<h3 style="text-align:center;font-weight: 700;">沭阳铭和医院</h3>-->
         <!--<h3 style="text-align:center;font-weight: 700;">处方笺</h3>-->
 
         <table class="table table-striped table-bordered" style="border-bottom: 1px solid black;font-size: 13px;">
             <tbody>
             <tr>
-                <td style="text-align: right">姓名:</td>
+                <td style="text-align: left">姓名:</td>
                 <td id="patientNamePrescription"></td>
-                <td style="text-align: right">性别:</td>
+                <td style="text-align: left">性别:</td>
                 <td id="patientGenderPrescription"></td>
-                <td style="text-align: right">年龄:</td>
+                <td style="text-align: left">年龄:</td>
                 <td id="patientAgePrescription"></td>
             </tr>
             <tr>
-                <td style="text-align: right">门诊ID:</td>
+                <td style="text-align: left">门诊ID:</td>
                 <td id="patientIdPrescription"></td>
-                <td style="text-align: right">科室:</td>
+                <td style="text-align: left">科室:</td>
                 <td id="deptPrescription"></td>
                 <!--<td style="text-align: right">医生:</td>-->
                 <!--<td id="doctorPrescription"></td>-->
             </tr>
             <tr>
-                <td style="text-align: right">处方类型:</td>
+                <td style="text-align: left">处方类型:</td>
                 <td id="typePrescription"></td>
-                <td style="text-align: right">处方时间:</td>
+                <td style="text-align: left">处方时间:</td>
                 <td id="cfTime" colspan="3"></td>
             </tr>
             <tr>
-                <td style="text-align: right" width="18%">身份证号码:</td>
+                <td style="text-align: left" width="18%">身份证号码:</td>
                 <td id="socialNo" colspan="2"></td>
-                <td style="text-align: right">病人类别:</td>
+                <td style="text-align: left">病人类别:</td>
                 <td id="sfTypeId" colspan="2" ></td>
             </tr>
             <tr>
-                <td style="text-align: right">诊断:</td>
+                <td style="text-align: left">诊断:</td>
                 <td id="zdPrescription" colspan="5"></td>
             </tr>
             </tbody>
         </table>
-        <div style="height: 140mm;border-bottom: 1px solid black">
+        <div style="height: 110mm;border-bottom: 1px solid black">
             <table class="table table-striped table-bordered">
                 <img src="/thmz/images/prescription.png" style="margin-top: 5px;margin-bottom: 5px;"/>
                 <tbody id="prescriptionDetail" style="padding-bottom: 10px;font-size: 13px;">
@@ -2908,9 +2951,6 @@
                 <!--<tr>-->
                 <!--<td>1.重酒石酸去甲肾上腺素注射液 2mg 2mg 共18支用法:鞘内注射(QNZS) 频次:一次/4h(Q4H) 3天</td>-->
                 <!--</tr>-->
-                <!--<tr>-->
-                <!--<td>1.重酒石酸去甲肾上腺素注射液 2mg 2mg 共18支用法:鞘内注射(QNZS) 频次:一次/4h(Q4H) 3天</td>-->
-                <!--</tr>-->
                 </tbody>
             </table>
         </div>
@@ -2951,77 +2991,68 @@
 
 <!--打印门诊指引单开始-->
 <div id="guide_card_table" class="hide"
-     style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
-    <div>
+     style="width:48mm;margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: visible; overflow-x:hidden;">
+    <div style="width:40mm;">
         <div>
-            <div style="float: left;padding-right: 20px;"><img id="imgcode" style="height: 60px;"/></div>
-            <div style="text-align:left;font-weight: bold;font-size: 20px;float: left;height: 60px;line-height: 60px;margin-left: 20px;">
-                <span class="hospitalName">长沙泰和医院</span>门诊就诊指引单
+            <div style="flex:1;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">
+                <span class="hospitalName">沭阳铭和医院</span><br>门诊就诊指引单
             </div>
-            <div>
-                <div style="float: left;width: 195px;">
-                    <div style="margin-bottom: 10px">门&nbsp;诊&nbsp;号:<span id="patientIdGuideCard"></span></div>
-                    <div style="margin-bottom: 10px">姓&nbsp;&nbsp;名:<span id="patientNameGuideCard"></span></div>
-                    <div style="margin-bottom: 10px">接诊医生:<span id="doctorGuideCard"></span></div>
-                    <div style="margin-bottom: 10px">接诊时间:<span id="patientDateGuideCard"></span></div>
-                    <div>缴费金额:<span id="totalAmountGuideCard"></span></div>
-                </div>
-                <div  style="float: left;width: 320px;">
-                    <div id="payQrcodeGuideCard" style="float: left;width: 150px;height:150px;text-align: center;padding: 3px">
-
-                    </div>
-                    <div id="wxPayQrCard"  style="float: left;width: 150px;height:150px;text-align: center;padding: 3px">
-
-                    </div>
-                </div>
+            <div style="float: left;padding-right: 20px;"><img id="imgcode" style="height: 60px;"/></div>
+            <div style="float: left;width: 170px;">
+                <div style="margin-bottom: 8px">门诊号:<span id="patientIdGuideCard"></span></div>
+                <div style="margin-bottom: 8px">姓名:<span id="patientNameGuideCard"></span></div>
+                <div style="margin-bottom: 8px">接诊医生:<span id="doctorGuideCard"></span></div>
+                <div style="margin-bottom: 8px">接诊时间:
+                    <span id="patientDateGuideCard"></span></div>
+                <div>缴费金额:<span id="totalAmountGuideCard"></span></div>
+                <div id="payQrcodeGuideCard" style="float: left;width: 140px;height:140px;text-align: center;padding: 2px;"></div>
+                <div id="wxPayQrCard" style="float: left;width: 140px;height:140px;text-align: center;padding: 2px;"></div>
             </div>
         </div>
         <table class="table table-striped table-bordered" style="border-top: 2px dashed black">
             <tbody >
-                <tr>
-                    <td colspan="3">
-                        <span style="font-weight: 700;"> 1、项目指引:</span>
-                    </td>
-                </tr>
-            </tbody>
-        </table>
-        <table class="table table-striped table-bordered" style="border: 1px dashed black">
-            <tbody id="guideCardDetail" style="padding-bottom: 10px;font-size: 13px;">
-            </tbody>
-        </table>
-        <table class="table table-striped table-bordered" style="font-size: 13px;margin-top: 10px;">
-            <tbody>
-            <tr>
-                <td colspan="3">
-                    <span style="font-weight: 700;"> 2、缴费告知:</span>
-                     推荐使用扫码支付,也可在门诊收费窗口缴费;如有职工医保,可门诊统筹支付,已统筹处方因医保限制跨月不可退费。
-                </td>
-            </tr>
             <tr>
                 <td colspan="3">
-                    <span style="font-weight: 700;"> 3、预约与查询:</span>
-                    检查检验结果推荐在手机公众号查看,如需纸质版结果,抽血检验结果可至自助打印机和看诊楼层导诊处打印,超声结果在【超声科】前台打印,放射科结果在【放射科】前台打印。
+                    <span style="font-weight: 700;"> 1、项目指引:</span>
                 </td>
             </tr>
             </tbody>
         </table>
-        <div>
-            <div style="margin-top: 5px;display: flex">
-                <div style="height: 130px;text-align: center;margin-top: 25px">
-                    <img src="/thmz/images/zydnew.png" style="height: 80px;width: 180px;object-fit: cover"/>
-                    <div style="display: inline-block;text-align: center;width: 200px;font-size: 15px;font-weight: bold">
-                        <div style="margin-bottom: 3px">365天无假日医院</div>
-                        <div style="margin-bottom: 3px">如果您满意,请告诉别人</div>
-                        <div style="margin-bottom: 3px">如果您不满意,请告诉我们</div>
-                        <div style="margin-bottom: 3px">24小时帮助/投诉电话:</div>
-                        <div >88518888</div>
-                    </div>
-                </div>
-                <div id="healthEducationCard" style="width: 130px;height:130px;text-align: center;padding: 3px;margin-right: 3px;margin-top: 5px">
-
-                </div>
-            </div>
-        </div>
+        <table class="table table-striped table-bordered" style="border: 1px dashed black">
+            <tbody id="guideCardDetail" style="padding-bottom: 10px;font-size: 13px;">
+            </tbody>
+        </table>
+        <!--        <table class="table table-striped table-bordered" style="font-size: 13px;margin-top: 10px;">-->
+        <!--            <tbody>-->
+        <!--            <tr>-->
+        <!--                <td colspan="3">-->
+        <!--                    <span style="font-weight: 700;"> 2、缴费告知:</span>-->
+        <!--                     推荐使用扫码支付,也可在门诊收费窗口缴费;如有职工医保,可门诊统筹支付,已统筹处方因医保限制跨月不可退费。-->
+        <!--                </td>-->
+        <!--            </tr>-->
+        <!--            <tr>-->
+        <!--                <td colspan="3">-->
+        <!--                    <span style="font-weight: 700;"> 3、预约与查询:</span>-->
+        <!--                    检查检验结果推荐在手机公众号查看,如需纸质版结果,抽血检验结果可至自助打印机和看诊楼层导诊处打印,超声结果在【超声科】前台打印,放射科结果在【放射科】前台打印。-->
+        <!--                </td>-->
+        <!--            </tr>-->
+        <!--            </tbody>-->
+        <!--        </table>-->
+        <!--        <div>-->
+        <!--            <div style="margin-top: 5px;display: flex">-->
+        <!--                <div style="height: 130px;text-align: center;margin-top: 25px">-->
+        <!--                    <img src="/thmz/images/zydnew.png" style="height: 80px;width: 180px;object-fit: cover"/>-->
+        <!--                    <div style="display: inline-block;text-align: center;width: 200px;font-size: 15px;font-weight: bold">-->
+        <!--                        <div style="margin-bottom: 3px">365天无假日医院</div>-->
+        <!--                        <div style="margin-bottom: 3px">如果您满意,请告诉别人</div>-->
+        <!--                        <div style="margin-bottom: 3px">如果您不满意,请告诉我们</div>-->
+        <!--                        <div style="margin-bottom: 3px">24小时帮助/投诉电话:</div>-->
+        <!--                        <div >88518888</div>-->
+        <!--                    </div>-->
+        <!--                </div>-->
+        <!--                <div id="healthEducationCard" style="width:48mm;height:48mm;text-align: center;padding: 3px;margin-right: 3px;margin-top: 5px"></div>-->
+        <!--            </div>-->
+        <!--        </div>-->
     </div>
 </div>
 <!--打印门诊指引单结束-->
@@ -3036,7 +3067,7 @@
                 <svg id="JcBarcode" height="20"></svg>
             </div>
             <div style="position: relative;width: 100%;margin-left: -110px;">
-                <div style="text-align: center;font-weight: 700;" class="hospitalName">长沙泰和医院</div>
+                <div style="text-align: center;font-weight: 700;" class="hospitalName">沭阳铭和医院</div>
                 <div style="text-align:center;font-weight: 700;">检查申请单</div>
             </div>
             <table class="table table-striped table-bordered"
@@ -3134,7 +3165,7 @@
                 <svg id="JyBarcode" height="20"></svg>
             </div>
             <div style="position: relative;width: 100%;margin-left: -110px;">
-                <div style="text-align:center;font-weight: 700;" class="hospitalName">长沙泰和医院</div>
+                <div style="text-align:center;font-weight: 700;" class="hospitalName">沭阳铭和医院</div>
                 <div style="text-align:center;font-weight: 700;">检验申请单</div>
             </div>
             <table class="table table-striped table-bordered"
@@ -3226,7 +3257,7 @@
         <div>
             <div id="mz_bl_title">
                 <div style="position: relative;">
-                    <div style="text-align:center;font-weight: 700;" class="hospitalName">长沙泰和医院</div>
+                    <div style="text-align:center;font-weight: 700;" class="hospitalName">沭阳铭和医院</div>
                     <div style="float: right;color: red;margin-right: 30px;border: 1px solid red;width: 60px;text-align: center;position: absolute;top: 0px;right: 0px;"
                          id="firstOrNotTitle"></div>
                 </div>
@@ -3390,33 +3421,33 @@
                 <tbody>
                 <tr>
                     <td>患者姓名:<span id="patientNameZyReq"
-                                   style="width: 190px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                       style="width: 190px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                     <td colspan="3">年龄:<span id="patientAgeZyReq"
-                                             style="width: 60px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                               style="width: 60px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                     <td>性别:<span id="patientGenderZyReq"
-                                 style="width: 55px;display: inline-block;border-bottom: 1px solid grey;"></span></td>
+                                   style="width: 55px;display: inline-block;border-bottom: 1px solid grey;"></span></td>
 
                 </tr>
                 <tr>
                     <td colspan="2">证件号码:<span id="sfzZyReq"
-                                               style="width: 245px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                   style="width: 245px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                     <td colspan="3">门诊编号:<span id="patientIdZyReq"
-                                               style="width: 90px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                   style="width: 90px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                 </tr>
                 <tr>
                     <td colspan="5">住&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:<span id="addressZyReq"
-                                                                                             style="width: 415px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                                                               style="width: 415px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                 </tr>
                 <tr>
                     <td colspan="2">入院途径:<span id="routeOfAdmissionName"
-                            style="width: 245px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                   style="width: 245px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     <td colspan="3">电话:<span id="phoneZyReq"
-                                             style="width: 120px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                               style="width: 120px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                     </td>
                 </tr>
@@ -3428,7 +3459,7 @@
                                                                                 style="width: 300px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                     <td colspan="2">疾病编码<span id="icsCodeZyReq"
-                                              style="width: 87px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                  style="width: 87px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                 </tr>
                 <!--<tr>-->
@@ -3457,10 +3488,10 @@
                 <!--</tr>-->
                 <tr>
                     <td colspan="2">入住科室:<span id="smallDeptZyReq"
-                                               style="width: 240px;display: inline-block;border-bottom: 1px solid grey;margin-left: 4px;"></span>
+                                                   style="width: 240px;display: inline-block;border-bottom: 1px solid grey;margin-left: 4px;"></span>
                     </td>
                     <td colspan="3">入住病区:<span id="reqDeptZyReq"
-                                               style="width: 83px;display: inline-block;border-bottom: 1px solid grey;margin-left: 6px;"></span>
+                                                   style="width: 83px;display: inline-block;border-bottom: 1px solid grey;margin-left: 6px;"></span>
                     </td>
                 </tr>
                 <tr>
@@ -3476,7 +3507,7 @@
                 </tr>
                 <tr>
                     <td colspan="5">押金:<span id="depositZyReq"
-                            style="width: 415px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                               style="width: 415px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                 </tr>
                 <tr>
@@ -3500,10 +3531,10 @@
                     <!--<td>入院状态: <span id="admissStatusZyReq"></span></td>-->
                     <!--<td style="width: 140px;"></td>-->
                     <td style="width: 45%">申请科室: <span id="deptCodeZyReq"
-                                                       style="width: 142px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                           style="width: 142px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                     <td style="width: 55%">申请医生(签字):<span id="doctorCodeZyReq"
-                                                          style="width: 150px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                                style="width: 150px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                 </tr>
                 <tr>
@@ -3511,7 +3542,7 @@
                             style="width: 130px;display: inline-block;border-bottom: 1px solid grey;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                     </td>
                     <td style="width: 55%">申请日期:<span id="visitDateZyReq"
-                                                      style="width: 190px;display: inline-block;border-bottom: 1px solid grey;"></span>
+                                                          style="width: 190px;display: inline-block;border-bottom: 1px solid grey;"></span>
                     </td>
                 </tr>
                 </tbody>
@@ -3610,7 +3641,7 @@
                 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                 </button>
                 <h4 class="modal-title modal-title-thmz">分诊列表 <span style="font-size: 1px;margin-left: 20px;"
-                                                                    id="tip_message">请选择本次需要接诊的分诊信息</span>
+                                                                        id="tip_message">请选择本次需要接诊的分诊信息</span>
                 </h4>
             </div>
             <div class="modal-body">
@@ -3650,33 +3681,33 @@
             </div>
             <div class="modal-body">
                 <form class="form-horizontal form-label-left" novalidate>
-                <div class="item form-group">
-                    <label class="col-md-1 col-sm-1 col-xs-12">
-                    </label>
-                    <label class="col-md-3 col-sm-3 col-xs-12">参保地
-                    </label>
-                    <label class="col-md-3 col-sm-3 col-xs-12" for="visitAdvmPro">
-                        <select class="form-control selectpicker show-tick"  data-live-search="true"
-                                id="visitAdvmPro" onchange="cityChange('visitAdvmPro','visitAdvmCity',null)" title="参保地省"></select>
-                    </label>
-                    <label class="col-md-3 col-sm-3 col-xs-12" for="visitAdvmCity">
-                        <select class="form-control selectpicker show-tick"  data-live-search="true"
-                                id="visitAdvmCity" onchange="" title="参保地市"></select>
-                    </label>
-                </div>
-                <table class="table table-striped table-bordered">
-                    <thead>
-                    <tr>
-                        <th>开始日期</th>
-                        <th>结束日期</th>
-                        <th>病种编码</th>
-                        <th>病种名称</th>
-                        <th>备案机构</th>
-                    </tr>
-                    </thead>
-                    <tbody id="fetchSpcSlwinfoTable">
-                    </tbody>
-                </table>
+                    <div class="item form-group">
+                        <label class="col-md-1 col-sm-1 col-xs-12">
+                        </label>
+                        <label class="col-md-3 col-sm-3 col-xs-12">参保地
+                        </label>
+                        <label class="col-md-3 col-sm-3 col-xs-12" for="visitAdvmPro">
+                            <select class="form-control selectpicker show-tick"  data-live-search="true"
+                                    id="visitAdvmPro" onchange="cityChange('visitAdvmPro','visitAdvmCity',null)" title="参保地省"></select>
+                        </label>
+                        <label class="col-md-3 col-sm-3 col-xs-12" for="visitAdvmCity">
+                            <select class="form-control selectpicker show-tick"  data-live-search="true"
+                                    id="visitAdvmCity" onchange="" title="参保地市"></select>
+                        </label>
+                    </div>
+                    <table class="table table-striped table-bordered">
+                        <thead>
+                        <tr>
+                            <th>开始日期</th>
+                            <th>结束日期</th>
+                            <th>病种编码</th>
+                            <th>病种名称</th>
+                            <th>备案机构</th>
+                        </tr>
+                        </thead>
+                        <tbody id="fetchSpcSlwinfoTable">
+                        </tbody>
+                    </table>
                 </form>
             </div>
             <div class="modal-footer">
@@ -3706,8 +3737,8 @@
                         <label class="col-md-6 col-sm-6 col-xs-12" for="discountLv">
                             <select class="form-control selectpicker show-tick"
                                     id="discountLv"   title="请选择">
-                                    <option value="0">优先套餐优惠</option>
-                                    <option value="1">优先股东卡优惠</option>
+                                <option value="0">优先套餐优惠</option>
+                                <option value="1">优先股东卡优惠</option>
                             </select>
                         </label>
                     </div>
@@ -3772,7 +3803,7 @@
                                 <tr>
                                     <td></td>
                                     <td colspan="2" style="text-align:center;font-weight: 700;font-size: 18px;">
-                                        <span class="hospitalName">和医院</span>门诊检查报告单
+                                        <span class="hospitalName">和医院</span>门诊检查报告单
                                     </td>
                                     <td id="doctor" style="float: right;"></td>
                                 </tr>
@@ -4081,15 +4112,15 @@
                             <div class="col-md-8 col-sm-8 col-xs-12">
                                 <div style="float: left;">
                                     体重<input id="bl_weight" type="number" min="0"
-                                             style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>kg&nbsp;&nbsp;
+                                               style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>kg&nbsp;&nbsp;
                                     体温<input id="bl_temperature" type="number" min="0"
-                                             style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>℃&nbsp;&nbsp;
+                                               style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>℃&nbsp;&nbsp;
                                     脉搏<input id="bl_sphygmus" type="number" min="0"
-                                             style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>次/分&nbsp;&nbsp;
+                                               style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>次/分&nbsp;&nbsp;
                                     呼吸<input id="bl_breathe" type="number" min="0"
-                                             style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>次/分&nbsp;&nbsp;</br>
+                                               style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>次/分&nbsp;&nbsp;</br>
                                     血压<input id="bl_pressure_high" type="number" min="0"
-                                             style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>&nbsp;/
+                                               style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>&nbsp;/
                                     <input id="bl_pressure_floor" type="number" min="0"
                                            style="width: 40px;border: none !important;border-radius: 0 !important;border-bottom: 1px solid #ddd !important;color: red;"/>mmhg
                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;血压(左)<input
@@ -4415,7 +4446,7 @@
         <div style="position: relative;">
             <div style="float: left;margin-left: 5px;width: 60px;text-align: center;position: absolute;top: 0px;left: 0px;"
             ><img src="/thmz/images/taihe-logo-small.png" style="height: 50px;"></div>
-            <div style="text-align:center;font-weight: 700;font-size: 16px;" class="hospitalName">长沙泰和医院</div>
+            <div style="text-align:center;font-weight: 700;font-size: 16px;" class="hospitalName">沭阳铭和医院</div>
         </div>
         <div style="text-align:center;font-weight: 700;margin-top: 10px;font-size: 16px;">参保人员门诊统筹医保支付告知审核表</div>
         <table class="table table-striped table-bordered"