Просмотр исходного кода

门诊病历的体格检查如果都是0不显示

hurugang 3 лет назад
Родитель
Сommit
da1f49e0a7

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

@@ -6525,7 +6525,7 @@ function printPrescription(patientId, times, clnicId, payMark) {
  */
 function getTz(mzBlRecord) {
     var tz = null;
-    if (mzBlRecord.weight != null) {
+    if (mzBlRecord.weight != null && mzBlRecord.weight != 0) {
         var temp = "体重:" + mzBlRecord.weight + "kg ";
         if (tz == null) {
             tz = temp;
@@ -6533,7 +6533,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.temperature != null) {
+    if (mzBlRecord.temperature != null && mzBlRecord.temperature != 0) {
         var temp = "体温:" + mzBlRecord.temperature + "℃ ";
         if (tz == null) {
             tz = temp;
@@ -6541,7 +6541,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.sphygmus != null) {
+    if (mzBlRecord.sphygmus != null && mzBlRecord.sphygmus != 0) {
         var temp = "脉搏:" + mzBlRecord.sphygmus + "次/分 ";
         if (tz == null) {
             tz = temp;
@@ -6549,7 +6549,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.breathe != null) {
+    if (mzBlRecord.breathe != null && mzBlRecord.breathe != 0) {
         var temp = "呼吸:" + mzBlRecord.breathe + "次/分 ";
         if (tz == null) {
             tz = temp;
@@ -6557,7 +6557,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.pressureHigh != null && mzBlRecord.pressureFloor != null) {
+    if (mzBlRecord.pressureHigh != null && mzBlRecord.pressureFloor != null && mzBlRecord.pressureHigh != 0 && mzBlRecord.pressureFloor != 0) {
         var temp = "血压:" + mzBlRecord.pressureHigh + "/" + mzBlRecord.pressureFloor;
         if (tz == null) {
             tz = temp;
@@ -6565,7 +6565,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.pressureHighLeft != null && mzBlRecord.pressureFloorLeft != null) {
+    if (mzBlRecord.pressureHighLeft != null && mzBlRecord.pressureFloorLeft != null && mzBlRecord.pressureHighLeft != 0 && mzBlRecord.pressureFloorLeft != 0) {
         var temp = "左血压:" + mzBlRecord.pressureHighLeft + "/" + mzBlRecord.pressureFloorLeft;
         if (tz == null) {
             tz = temp;

+ 6 - 7
src/main/resources/static/js/mz/mz_bl_record.js

@@ -406,7 +406,6 @@ function printBlRecord(patientId, times) {
 
 
 
-
 /**
  * 构建体征描述
  * @param mzBlRecord
@@ -414,7 +413,7 @@ function printBlRecord(patientId, times) {
  */
 function getTz(mzBlRecord) {
     var tz = null;
-    if (mzBlRecord.weight != null) {
+    if (mzBlRecord.weight != null && mzBlRecord.weight != 0) {
         var temp = "体重:" + mzBlRecord.weight + "kg ";
         if (tz == null) {
             tz = temp;
@@ -422,7 +421,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.temperature != null) {
+    if (mzBlRecord.temperature != null && mzBlRecord.temperature != 0) {
         var temp = "体温:" + mzBlRecord.temperature + "℃ ";
         if (tz == null) {
             tz = temp;
@@ -430,7 +429,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.sphygmus != null) {
+    if (mzBlRecord.sphygmus != null && mzBlRecord.sphygmus != 0) {
         var temp = "脉搏:" + mzBlRecord.sphygmus + "次/分 ";
         if (tz == null) {
             tz = temp;
@@ -438,7 +437,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.breathe != null) {
+    if (mzBlRecord.breathe != null && mzBlRecord.breathe != 0) {
         var temp = "呼吸:" + mzBlRecord.breathe + "次/分 ";
         if (tz == null) {
             tz = temp;
@@ -446,7 +445,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.pressureHigh != null && mzBlRecord.pressureFloor != null) {
+    if (mzBlRecord.pressureHigh != null && mzBlRecord.pressureFloor != null && mzBlRecord.pressureHigh != 0 && mzBlRecord.pressureFloor != 0) {
         var temp = "血压:" + mzBlRecord.pressureHigh + "/" + mzBlRecord.pressureFloor;
         if (tz == null) {
             tz = temp;
@@ -454,7 +453,7 @@ function getTz(mzBlRecord) {
             tz += " " + temp;
         }
     }
-    if (mzBlRecord.pressureHighLeft != null && mzBlRecord.pressureFloorLeft != null) {
+    if (mzBlRecord.pressureHighLeft != null && mzBlRecord.pressureFloorLeft != null && mzBlRecord.pressureHighLeft != 0 && mzBlRecord.pressureFloorLeft != 0) {
         var temp = "左血压:" + mzBlRecord.pressureHighLeft + "/" + mzBlRecord.pressureFloorLeft;
         if (tz == null) {
             tz = temp;