소스 검색

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 일 전
부모
커밋
03f1322cea
1개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 11 4
      src/xt_pages/user/courseOfDisease_new.vue

+ 11 - 4
src/xt_pages/user/courseOfDisease_new.vue 파일 보기

@@ -1175,7 +1175,7 @@
1175 1175
           anticoagulant_name = "IU"
1176 1176
        }
1177 1177
        if(val == 8){
1178
-          anticoagulant_name = "IU/h"
1178
+          anticoagulant_name = "IU"
1179 1179
        }
1180 1180
        if(val == 9){
1181 1181
           anticoagulant_name = "IU/h"
@@ -2338,15 +2338,22 @@
2338 2338
           //透前
2339 2339
           var befor_total =0
2340 2340
         var cha_weight = 0
2341
+        var befor_weight =0
2342
+        var after_weight =0
2341 2343
         var pingjun_weight = 0
2342 2344
         if(this.berforList!=null){
2343 2345
           befor_total = this.berforList.length
2344 2346
           for(let i=0;i<this.berforList.length;i++){
2345
-             cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
2347
+            //  cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
2348
+            befor_weight +=this.berforList[i].weight_before
2349
+            after_weight += this.berforList[i].WeightAfter
2346 2350
           }
2347 2351
         }
2352
+        console.log("befor-weight",befor_weight)
2353
+        console.log("after_weight",after_weight)
2354
+        
2348 2355
 
2349
-        pingjun_weight = (cha_weight/befor_total).toFixed(2)
2356
+        pingjun_weight = ((befor_weight-after_weight)/befor_total).toFixed(2)
2350 2357
 
2351 2358
         //透后凝血
2352 2359
         var cruorNewArr = []
@@ -2519,7 +2526,7 @@
2519 2526
                 <td style="align-items: center;padding: 5px;">干体重</td>
2520 2527
                 <td style='padding: 5px;'>
2521 2528
                   <p>
2522
-                    <span style='font-weight: bold;'>当前干体重:${this.lastDryWeight.dry_weight}</span>&nbsp;<span class="">kg;</span>
2529
+                    <span style='font-weight: bold;'>当前干体重:${this.berforList[this.berforList.length-1].dry_weight}</span>&nbsp;<span class="">kg;</span>
2523 2530
                   </p>
2524 2531
                   <p>
2525 2532
                     <span style='font-weight: bold;'>调整记录:${dry_weight_str}</span>&nbsp;<span class=""></span>