Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx 4 years ago
parent
commit
8a3918b771
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/pages/main/dialog/PrescriptionDialog.vue

+ 8 - 0
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -2849,6 +2849,7 @@ export default {
2849 2849
     ) {
2850 2850
       this.timeValue = ''
2851 2851
       this.time = '03:00'
2852
+      this.dialysisPrescription.dialysis_duration = 3
2852 2853
     } else {
2853 2854
       this.timeValue =
2854 2855
         this.dialysisPrescription.dialysis_duration_hour +
@@ -2863,6 +2864,13 @@ export default {
2863 2864
         (this.dialysisPrescription.dialysis_duration_minute > 10
2864 2865
           ? this.dialysisPrescription.dialysis_duration_minute
2865 2866
           : '0' + this.dialysisPrescription.dialysis_duration_minute)
2867
+
2868
+      this.dialysisPrescription.dialysis_duration =
2869
+        parseFloat(this.dialysisPrescription.dialysis_duration_hour) +
2870
+        parseFloat(
2871
+          (this.dialysisPrescription.dialysis_duration_minute / 60).toFixed(2)
2872
+        );
2873
+
2866 2874
     }
2867 2875
 
2868 2876
     this.dialyserList = this.machines_prop