Browse Source

新分支

28169 4 days ago
parent
commit
ba4ff44646

+ 10 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

4908
       getPatientBefor(params).then(response=>{
4908
       getPatientBefor(params).then(response=>{
4909
          if(response.data.state == 1){
4909
          if(response.data.state == 1){
4910
           var patientBefor = response.data.data.patientBefor
4910
           var patientBefor = response.data.data.patientBefor
4911
+          var prescription = response.data.data.prescription
4911
           if(patientBefor!=undefined){
4912
           if(patientBefor!=undefined){
4912
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
4913
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
4913
               this.dialysisPrescription.target_ultrafiltration = (patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)
4914
               this.dialysisPrescription.target_ultrafiltration = (patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)
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
          }