Selaa lähdekoodia

解决模板没有清空的bug

hurugang 3 vuotta sitten
vanhempi
commit
2830c51d41
1 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 9 1
      src/main/resources/static/js/mz/clinic.js

+ 9 - 1
src/main/resources/static/js/mz/clinic.js

@@ -1898,9 +1898,11 @@ function medicalModelModal(id) {
                             $("#xyzlTitle").removeClass("hide").addClass("in");
                         } else {
                             $("#xyzlTitle").removeClass("in").addClass("hide");
+                            $("#xyzlContent").html("");
                         }
                     } else {
                         $("#xyzlTitle").removeClass("in").addClass("hide");
+                        $("#xyzlContent").html("");
                     }
                     var zy = null;
                     if (emrProcess.indexOf("中药治疗:") >= 0) {
@@ -1932,9 +1934,11 @@ function medicalModelModal(id) {
                             $("#zyzlTitle").removeClass("hide").addClass("in");
                         } else {
                             $("#zyzlTitle").removeClass("in").addClass("hide");
+                            $("#zyzlContent").html("");
                         }
                     } else {
                         $("#zyzlTitle").removeClass("in").addClass("hide");
+                        $("#zyzlContent").html("");
                     }
                     var jcjy = null;
                     if (emrProcess.indexOf("辅助检查、检验:") >= 0) {
@@ -1955,9 +1959,11 @@ function medicalModelModal(id) {
                             $("#zlyjTitle").removeClass("hide").addClass("in");
                         } else {
                             $("#zlyjTitle").removeClass("in").addClass("hide");
+                            $("#zlyjContent").html("");
                         }
                     } else {
                         $("#zlyjTitle").removeClass("in").addClass("hide");
+                        $("#zlyjContent").html("");
                     }
                     if (emrProcess.indexOf("诊疗:") >= 0) {
                         var zl = emrProcess.substring(emrProcess.indexOf("诊疗:") + 3);
@@ -1973,9 +1979,11 @@ function medicalModelModal(id) {
                             $("#zlTitle").removeClass("hide").addClass("in");
                         } else {
                             $("#zlTitle").removeClass("in").addClass("hide");
+                            $("#zlContent").html("");
                         }
                     } else {
                         $("#zlTitle").removeClass("in").addClass("hide");
+                        $("#zlContent").html("");
                     }
                 }
             } else {
@@ -7465,7 +7473,7 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
                             var zlhtml = "";
                             for (var i = 0; i < zlArr.length; i++) {
                                 zlhtml += "<div style='margin-bottom: 5px;padding-left: 10px;'>";
-                                zlhtml += zlyjArr[i];
+                                zlhtml += zlArr[i];
                                 zlhtml += "</div>";
                             }
                             $("#prescriptionDetail_zlContent").html(zlhtml);