see999 3 years ago
parent
commit
9ed97fafc5

+ 3 - 0
src/xt_pages/dialysis/details/NavIgation.vue View File

@@ -147,6 +147,7 @@
147 147
       :admins="admin_users"
148 148
       :device_numbers="device_numbers"
149 149
       :special_premission="special_premission"
150
+      :patient="patient"
150 151
     ></computer-dialog>
151 152
 
152 153
     <monitor-dialog
@@ -154,6 +155,7 @@
154 155
       ref="monitor_dialog"
155 156
       :monitors="monitor_records"
156 157
       @monitor="add_monitor"
158
+      :patient="patient"
157 159
     ></monitor-dialog>
158 160
 
159 161
     <finish-dialog
@@ -165,6 +167,7 @@
165 167
       :prescription="prescription"
166 168
       @assessmentAfterDislysis="assessmentAfterDislysisFunc"
167 169
       :special_premission="special_premission"
170
+      :patient="patient"
168 171
     ></finish-dialog>
169 172
 
170 173
     <assessment-after-dislysis

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -1357,7 +1357,7 @@ export default {
1357 1357
     this.channels = this.$store.getters.channels
1358 1358
 
1359 1359
     var date = this.$route.query && this.$route.query.date
1360
-    this.record_date = uParseTime(date, '{y}-{m}-{d}') ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1360
+    this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1361 1361
   },
1362 1362
   components: {
1363 1363
     MultiSelectBox

+ 2 - 1
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

@@ -489,7 +489,8 @@ export default {
489 489
   created() {
490 490
     // console.log("接诊评估", this.receiver_treatment_access);
491 491
     var date = this.$route.query && this.$route.query.date;
492
-    this.record_date = uParseTime(date, "{y}-{m}-{d}") ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}');
492
+    this.record_date = date ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}');
493
+    console.log('this.record_date',this.record_date)
493 494
 
494 495
     this.way_arr = getDataConfig("hemodialysis", "way");
495 496
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -1311,7 +1311,7 @@
1311 1311
 
1312 1312
       this.blood_access_noise = this.$store.getters.blood_access_noise
1313 1313
       var date = this.$route.query && this.$route.query.date
1314
-      this.record_date = uParseTime(date, '{y}-{m}-{d}') ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}')
1314
+      this.record_date = date ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}')
1315 1315
       //获取皮肤
1316 1316
       this.skins = getDataConfig('hemodialysis','skin')
1317 1317
       console.log("皮肤",this.skins)

+ 9 - 0
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

@@ -140,6 +140,9 @@
140 140
       },
141 141
       special_premission: {
142 142
         type: Array
143
+      },
144
+      patient:{
145
+        type: Object
143 146
       }
144 147
     }, mounted() {
145 148
 
@@ -161,6 +164,12 @@
161 164
      
162 165
     },
163 166
     watch: {
167
+      patient:{
168
+        handler(newVal){
169
+          this.patient_id = newVal.id
170
+        },
171
+        deep:true
172
+      },
164 173
       'schedule.id': function() {
165 174
       },
166 175
       'dialysis_order.id': function() {

+ 1 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -1131,7 +1131,7 @@
1131 1131
     created() {
1132 1132
      
1133 1133
       var date = this.$route.query && this.$route.query.date
1134
-      this.record_date = uParseTime(date, '{y}-{m}-{d}') ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1134
+      this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1135 1135
 
1136 1136
       var nowDate = new Date()
1137 1137
       var nowYear = nowDate.getFullYear()

+ 10 - 0
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

@@ -84,6 +84,9 @@
84 84
       }, special_premission: {
85 85
         type: Array,
86 86
       },
87
+      patient:{
88
+        type: Object
89
+      }
87 90
     },
88 91
     created() {
89 92
 
@@ -97,6 +100,12 @@
97 100
         } else {
98 101
           this.form.nurse_id = this.dialysis_order.finish_nurse
99 102
         }
103
+      },
104
+      patient:{
105
+        handler(newVal){
106
+          this.patient_id = newVal.id
107
+        },
108
+        deep:true
100 109
       }
101 110
     },
102 111
     methods: {
@@ -117,6 +126,7 @@
117 126
           (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
118 127
           '-' +
119 128
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
129
+
120 130
         this.patient_id = this.$route.query.patient_id
121 131
         this.schedule_date = this.$route.query.date
122 132
 

+ 15 - 3
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -925,6 +925,9 @@ export default {
925 925
   props: {
926 926
     monitors: {
927 927
       type: Array
928
+    },
929
+    patient:{
930
+      type: Object
928 931
     }
929 932
   },
930 933
   computed: {
@@ -937,9 +940,10 @@ export default {
937 940
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
938 941
     var date = this.$route.query.date;
939 942
     var patient_id = this.$route.query.patient_id;
940
-    this.patient_id = patient_id;
941
-    this.schedule_date = date ? date : new Date(new Date().toLocaleDateString()).getTime();
942
-    this.form.monitoring_date = date;
943
+    this.patient_id = patient_id ? patient_id : this.patient.id;
944
+    console.log('this.patient_id',this.patient_id)
945
+    this.schedule_date = date ? date : new Date(new Date().toLocaleDateString()).getTime() / 1000;
946
+    this.form.monitoring_date = date ? date : new Date(new Date().toLocaleDateString()).getTime() / 1000;
943 947
     // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
944 948
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
945 949
     this.form.operate_time = new Date().getTime();
@@ -1462,6 +1466,14 @@ export default {
1462 1466
       }
1463 1467
       return name
1464 1468
     }
1469
+  },
1470
+  watch:{
1471
+    patient:{
1472
+      handler(newVal){
1473
+        this.patient_id = newVal.id
1474
+      },
1475
+      deep:true
1476
+    }
1465 1477
   }
1466 1478
 }
1467 1479
 </script>