Browse Source

接诊病人后查询就诊轨迹

hurugang 4 years ago
parent
commit
3d17f62e52
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/main/resources/static/js/mz/clinic.js

+ 6 - 3
src/main/resources/static/js/mz/clinic.js

@@ -429,9 +429,7 @@ function contentMethod() {
             '                </div>' +
             '            </div>';
         $("#smartAssistPopoverContent").html(html);
-       if( $("#"+popoverId).hasClass("in")){
-           fitPatientHisData();
-       }
+        fitPatientHisData();
     }, 100);
 
     // setTimeout(function () {
@@ -444,6 +442,10 @@ function contentMethod() {
  * 设置患者的就诊轨迹
  */
 function fitPatientHisData() {
+    var popoverId = $("#box-arrow-left").attr("aria-describedby");
+    if(!$("#"+popoverId).hasClass("in")){
+        return;
+    }
     var emptyHtml='<img src="/thmz/images/locus.png" style="height: 120px;position: absolute;top: 50%;transform: translateY(-50%);margin-left: -30px;">';
     if($("#patientId").val()==null || $("#patientId").val()==""){
         $("#patientHisDataForm").html(emptyHtml);
@@ -900,6 +902,7 @@ function realClinicalReception(patientId) {
                         $("#first").parent().removeClass("checked");
                     }
                     $("#patientHisData").text(res.data.name);
+                    fitPatientHisData();
                 }
             } else {
                 errorMesage(res);