28169 пре 4 дана
родитељ
комит
ba4ff44646
1 измењених фајлова са 10 додато и 4 уклоњено
  1. 10 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue

+ 10 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -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
          }