Procházet zdrojové kódy

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

See999 před 4 roky
rodič
revize
fd0439fe0d

+ 1 - 1
src/xt_pages/dialysis/details/NavIgation.vue Zobrazit soubor

572
       this.$refs.monitor_dialog.show();
572
       this.$refs.monitor_dialog.show();
573
     },
573
     },
574
     showAssessmentAfterDialog: function() {
574
     showAssessmentAfterDialog: function() {
575
-      this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis);
575
+      this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
576
     },
576
     },
577
     showDoctorAdviceDialog: function() {
577
     showDoctorAdviceDialog: function() {
578
       this.$refs.doctor_advice.show();
578
       this.$refs.doctor_advice.show();

+ 21 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Zobrazit soubor

1013
     },
1013
     },
1014
 
1014
 
1015
     // 数据开始
1015
     // 数据开始
1016
-    show(predialysis) {
1016
+    show(predialysis,last_after) {
1017
       this.isVisibility = true
1017
       this.isVisibility = true
1018
       this.predialysis = predialysis
1018
       this.predialysis = predialysis
1019
       this.form.observation_content = predialysis.observation_content
1019
       this.form.observation_content = predialysis.observation_content
1022
         predialysis.observation_content_other
1022
         predialysis.observation_content_other
1023
       // console.log("透后", predialysis);
1023
       // console.log("透后", predialysis);
1024
 
1024
 
1025
+      if(predialysis != null && predialysis.id == 0){
1026
+        if (last_after != null) {
1027
+          for (var key in last_after){
1028
+            if (key != 'actual_treatment_hour' && key != 'actual_treatment_minute' && key != 'weight_loss' && key != 'weight_after'  && key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' ){
1029
+              this.$set(
1030
+                this.form,
1031
+                key,
1032
+                last_after[key]
1033
+              )
1034
+
1035
+            }
1036
+          }
1037
+        }
1038
+      }
1039
+
1040
+
1041
+
1042
+
1025
       this.getPermission()
1043
       this.getPermission()
1044
+
1045
+
1026
     },
1046
     },
1027
 
1047
 
1028
     hide() {
1048
     hide() {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Zobrazit soubor

685
 
685
 
686
           if (this.lastPredialysisEvaluation != null) {
686
           if (this.lastPredialysisEvaluation != null) {
687
             for (var key in this.lastPredialysisEvaluation){
687
             for (var key in this.lastPredialysisEvaluation){
688
-              if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'temperature' && key != 'breathing_rate' && key != 'dry_weight' && key != 'weight_before'){
688
+              if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'dry_weight' && key != 'weight_before'){
689
                 this.$set(
689
                 this.$set(
690
                   this.assessmentBeforeDislysis,
690
                   this.assessmentBeforeDislysis,
691
                   key,
691
                   key,
895
             })
895
             })
896
 
896
 
897
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
897
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
898
-
898
+            console.log("返回数据",assessment_before_dislysis_resp)
899
             // prop
899
             // prop
900
             var predialysis_evaluation = this.predialysis_evaluation
900
             var predialysis_evaluation = this.predialysis_evaluation
901
             for (var index in assessment_before_dislysis_resp) {
901
             for (var index in assessment_before_dislysis_resp) {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Zobrazit soubor

895
         this.form.temperature = '' // this.last_monitor_record.pulse_frequency;
895
         this.form.temperature = '' // this.last_monitor_record.pulse_frequency;
896
 
896
 
897
         this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
897
         this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
898
-        this.form.breathing_rated =  ''
898
+        this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : ''
899
         this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
899
         this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
900
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
900
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
901
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
901
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
909
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
909
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
910
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
910
         this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
911
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
911
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
912
-        this.form.temperature = ''
912
+        this.form.temperature =  resp.monitor.temperature ? resp.monitor.temperature : ''
913
         this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
913
         this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
914
         this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : ''
914
         this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : ''
915
         this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : ''
915
         this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : ''