Bladeren bron

新分支

28169 4 dagen geleden
bovenliggende
commit
ba4ff44646
1 gewijzigde bestanden met toevoegingen van 10 en 4 verwijderingen
  1. 10 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue

+ 10 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

@@ -4908,6 +4908,7 @@ mu
4908 4908
       getPatientBefor(params).then(response=>{
4909 4909
          if(response.data.state == 1){
4910 4910
           var patientBefor = response.data.data.patientBefor
4911
+          var prescription = response.data.data.prescription
4911 4912
           if(patientBefor!=undefined){
4912 4913
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
4913 4914
               this.dialysisPrescription.target_ultrafiltration = (patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)
@@ -4920,11 +4921,16 @@ mu
4920 4921
 
4921 4922
             }
4922 4923
 
4923
-            if(this.$store.getters.xt_user.template_info.org_id==10722 || this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0){
4924
-              this.dialysisPrescription.target_ultrafiltration = (patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)
4925
-              this.dialysisPrescription.prescription_water = (patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)
4924
+            // if(this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0){
4925
+            //   this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4926
+            //   this.dialysisPrescription.prescription_water = prescription.prescription_water
4926 4927
 
4927
-            }
4928
+            // }
4929
+          }
4930
+          if(prescription!=undefined){
4931
+           
4932
+            this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4933
+            this.dialysisPrescription.prescription_water = prescription.prescription_water
4928 4934
           }
4929 4935
 
4930 4936
          }