Browse Source

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

csx 3 years ago
parent
commit
26a64a956e

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

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

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

1357
     this.channels = this.$store.getters.channels
1357
     this.channels = this.$store.getters.channels
1358
 
1358
 
1359
     var date = this.$route.query && this.$route.query.date
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
   components: {
1362
   components: {
1363
     MultiSelectBox
1363
     MultiSelectBox

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

489
   created() {
489
   created() {
490
     // console.log("接诊评估", this.receiver_treatment_access);
490
     // console.log("接诊评估", this.receiver_treatment_access);
491
     var date = this.$route.query && this.$route.query.date;
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
     this.way_arr = getDataConfig("hemodialysis", "way");
495
     this.way_arr = getDataConfig("hemodialysis", "way");
495
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
496
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");

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

1311
 
1311
 
1312
       this.blood_access_noise = this.$store.getters.blood_access_noise
1312
       this.blood_access_noise = this.$store.getters.blood_access_noise
1313
       var date = this.$route.query && this.$route.query.date
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
       this.skins = getDataConfig('hemodialysis','skin')
1316
       this.skins = getDataConfig('hemodialysis','skin')
1317
       console.log("皮肤",this.skins)
1317
       console.log("皮肤",this.skins)

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

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

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

1131
     created() {
1131
     created() {
1132
      
1132
      
1133
       var date = this.$route.query && this.$route.query.date
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
       var nowDate = new Date()
1136
       var nowDate = new Date()
1137
       var nowYear = nowDate.getFullYear()
1137
       var nowYear = nowDate.getFullYear()

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

84
       }, special_premission: {
84
       }, special_premission: {
85
         type: Array,
85
         type: Array,
86
       },
86
       },
87
+      patient:{
88
+        type: Object
89
+      }
87
     },
90
     },
88
     created() {
91
     created() {
89
 
92
 
97
         } else {
100
         } else {
98
           this.form.nurse_id = this.dialysis_order.finish_nurse
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
     methods: {
111
     methods: {
117
           (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
126
           (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
118
           '-' +
127
           '-' +
119
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
128
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
129
+
120
         this.patient_id = this.$route.query.patient_id
130
         this.patient_id = this.$route.query.patient_id
121
         this.schedule_date = this.$route.query.date
131
         this.schedule_date = this.$route.query.date
122
 
132
 

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

925
   props: {
925
   props: {
926
     monitors: {
926
     monitors: {
927
       type: Array
927
       type: Array
928
+    },
929
+    patient:{
930
+      type: Object
928
     }
931
     }
929
   },
932
   },
930
   computed: {
933
   computed: {
937
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
940
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
938
     var date = this.$route.query.date;
941
     var date = this.$route.query.date;
939
     var patient_id = this.$route.query.patient_id;
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
     // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
947
     // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
944
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
948
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
945
     this.form.operate_time = new Date().getTime();
949
     this.form.operate_time = new Date().getTime();
1462
       }
1466
       }
1463
       return name
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
 </script>
1479
 </script>