From 6c9cee486dcdc94245819e10e905975883fb837e Mon Sep 17 00:00:00 2001 From: wangxh Date: Wed, 22 Apr 2020 15:30:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=97=85=E6=A1=88=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20=E4=BD=8F=E9=99=A2=E6=AC=A1=E6=95=B0=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=8A=A0=E8=BD=BDbug=E4=BF=AE=E5=A4=8D=202.=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=9F=A5=E8=AF=A2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commomSearch/showRecordIframeBlood.jsp | 1 - .../recordManage/commomSearch/commomListqf.js | 18 +++++++++++------- .../recordManage/commomSearch/showRecord174.js | 4 ++-- .../templateSearch/customSearchIframeqf.js | 8 ++++++++ 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/recordManage/commomSearch/showRecordIframeBlood.jsp b/src/main/webapp/WEB-INF/views/recordManage/commomSearch/showRecordIframeBlood.jsp index 48c74be..7001dee 100644 --- a/src/main/webapp/WEB-INF/views/recordManage/commomSearch/showRecordIframeBlood.jsp +++ b/src/main/webapp/WEB-INF/views/recordManage/commomSearch/showRecordIframeBlood.jsp @@ -89,7 +89,6 @@ - <%----%> diff --git a/src/main/webapp/static/js/recordManage/commomSearch/commomListqf.js b/src/main/webapp/static/js/recordManage/commomSearch/commomListqf.js index 9d41563..41fbe86 100644 --- a/src/main/webapp/static/js/recordManage/commomSearch/commomListqf.js +++ b/src/main/webapp/static/js/recordManage/commomSearch/commomListqf.js @@ -689,24 +689,28 @@ function insertContent(content, id) { clearContent(id); setLocation(id); var json = JSON.parse(content); + debugger for (key in json) { + console.log(key) + console.log(json[key]) var tr = document.createElement("tr"); var td2 = document.createElement("td"); var td4 = document.createElement("td"); tr.setAttribute("bgcolor", "#FFFAFA"); tr.setAttribute("border", "0"); - td2.innerHTML = key; - td4.innerHTML = json[key]; + if (id == 'inpatient_no' || id == 'diag_code' || id == 'operate_code') { + td2.innerHTML = key; + td4.innerHTML = json[key]; + } else { + td2.innerHTML = json[key]; + td4.innerHTML = key; + } tr.appendChild(td2); tr.appendChild(td4); document.getElementById(id + "Content").appendChild(tr); tr.onmouseover = function () { this.className = 'mouseOver'; - if (id == 'inpatient_no' || id == 'diag_code' || id == 'operate_code') { - document.getElementById(id).value = $(this).children("td").eq(0).html(); - } else { - document.getElementById(id).value = $(this).children("td").eq(1).html(); - } + document.getElementById(id).value = $(this).children("td").eq(0).html(); }; tr.onmouseout = function () { this.className = 'mouseOut'; diff --git a/src/main/webapp/static/js/recordManage/commomSearch/showRecord174.js b/src/main/webapp/static/js/recordManage/commomSearch/showRecord174.js index 6559d55..6876035 100644 --- a/src/main/webapp/static/js/recordManage/commomSearch/showRecord174.js +++ b/src/main/webapp/static/js/recordManage/commomSearch/showRecord174.js @@ -107,13 +107,13 @@ $("#admissTimes").change(function () { success:function(d){ if(d != null){ $("#patientId").val(d.patientId); - $("#iframe").prop("src",path+"/commom/showRecordIframe?patientId="+d.patientId); + $("#iframe").prop("src",path+"/commom/showRecordIframeBlood?patientId="+d.patientId); $("#disDate").val(d.disDate); $("#disDeptName").val(d.disDept); $("#diagName").val(d.mainDiagName); $("#otherDiagName").val(d.otherDiagName); //重新加载其他诊断名称鼠标滑过显示全部文本 - loadQtip('.otherDiagName'); + /*loadQtip('.otherDiagName');*/ //变更收藏信息 $("#collectId").val(""); $("#collectTime").val(currentDate); diff --git a/src/main/webapp/static/js/recordManage/templateSearch/customSearchIframeqf.js b/src/main/webapp/static/js/recordManage/templateSearch/customSearchIframeqf.js index b8deae9..c3e0fd0 100644 --- a/src/main/webapp/static/js/recordManage/templateSearch/customSearchIframeqf.js +++ b/src/main/webapp/static/js/recordManage/templateSearch/customSearchIframeqf.js @@ -142,6 +142,7 @@ function getSql() { var age_month = ''; var age_day = ''; $("#block").children().find('div').each(function () { + debugger var val = $(this).children().val(); var className = $(this).children().attr('class'); if (className == 'select2') { @@ -195,6 +196,11 @@ function getSql() { age_day = val; whereNames += "("; } + if (val == 'and') { + age = ''; + age_month = ''; + age_day = ''; + } whereNames += val + ' '; } }) @@ -231,7 +237,9 @@ function getSql() { var orderBys = " order by " + commomtable + ".inpatient_no," + commomtable + ".admiss_times"; var sql = selectNames + fromTableNames + whereNames; $("#orderBys").val(orderBys); + debugger $("#sql").val(sql); + console.log("sql = " + $("#sql").val()); //console.log(sql); $("#tableThNames").val(tableThNames); if (tableThNames != '') {