Browse Source

平板端修改

张保健 5 years ago
parent
commit
c7125c529e

+ 8 - 0
src/api/dialysis.js View File

@@ -188,6 +188,14 @@ export function GetMonitor (params) {
188 188
   })
189 189
 }
190 190
 
191
+export function GetMonitorToday (params) {
192
+  return request({
193
+    url: '/m/api/monitor/gettodaylast',
194
+    method: 'get',
195
+    params: params
196
+  })
197
+}
198
+
191 199
 export function PostSearch (keyword) {
192 200
   return request({
193 201
     url: '/m/api/patients/search?keyword=' + keyword,

+ 11 - 5
src/pages/main/dialog/ComputerDialog.vue View File

@@ -145,15 +145,21 @@
145 145
       if (this.puncture_nurse_id == 0) {
146 146
         this.puncture_nurse_id = this.$store.getters.user.user.id
147 147
       }
148
+      
149
+      // var beds = []
150
+      // for (let index = 0; index < this.device_numbers.length; index++) {
151
+      //   const device_number = this.device_numbers[index]
152
+      //   if (device_number.zone_id == this.schedule.partition_id) {
153
+      //     beds.push(device_number)
154
+      //   }
155
+      // }
156
+      // this.zone_beds = beds
148 157
 
149
-      var beds = []
150 158
       for (let index = 0; index < this.device_numbers.length; index++) {
151 159
         const device_number = this.device_numbers[index]
152
-        if (device_number.zone_id == this.schedule.partition_id) {
153
-          beds.push(device_number)
154
-        }
160
+        this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
155 161
       }
156
-      this.zone_beds = beds
162
+      this.zone_beds = this.device_numbers
157 163
 
158 164
       if (this.record.id > 0) {
159 165
         for (let i = 0; i < this.special_premission.length; i++) {

+ 43 - 29
src/pages/main/dialog/MonitDialog.vue View File

@@ -225,7 +225,7 @@
225 225
 </template>
226 226
 
227 227
 <script>
228
-  import {addMonitorRecord, deleteMonitorRecord, editMonitorRecord, GetMonitor} from '@/api/dialysis'
228
+  import {addMonitorRecord, deleteMonitorRecord, editMonitorRecord, GetMonitor,GetMonitorToday} from '@/api/dialysis'
229 229
   import {parseTime} from '@/utils'
230 230
   import {Dialog, Toast} from 'vant'
231 231
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
@@ -264,6 +264,7 @@
264 264
         rowClass: 'row-class-active',
265 265
 
266 266
         visibility: false,
267
+        today_last_monitor_record : {},
267 268
         propForm: {
268 269
           title: '',
269 270
           list: [],
@@ -346,6 +347,44 @@
346 347
         }
347 348
         return false
348 349
       },
350
+      getLastRecordTody(){
351
+        let params = {
352
+          patient_id: this.patient.id
353
+        }
354
+
355
+        GetMonitorToday(params).then(rs => {
356
+          var resp =rs.data.data
357
+          this.today_last_monitor_record = resp.monitor
358
+
359
+          
360
+          this.form.operate_time = Date.parse(new Date())
361
+          this.form.pulse_frequency = '' //this.last_monitor_record.pulse_frequency;
362
+          this.form.breathing_rated = resp.monitor.breathing_rate?resp.monitor.breathing_rate:'';
363
+          this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
364
+          this.form.diastolic_bp = '' //this.last_monitor_record.diastolic_blood_pressure;
365
+          this.form.blood_flow_volume = resp.monitor.blood_flow_volume?resp.monitor.blood_flow_volume:'';
366
+          this.form.venous_pressure = ''//this.last_monitor_record.venous_pressure;
367
+          this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
368
+          this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
369
+          this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate?resp.monitor.ultrafiltration_rate:'';
370
+          this.form.ultrafiltration_volume = ''// this.last_monitor_record.ultrafiltration_volume;
371
+          this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:'';
372
+          this.form.dialysate_temperature =  resp.monitor.dialysate_temperature?resp.monitor.dialysate_temperature:'';
373
+          this.form.temperature = resp.monitor.temperature?resp.monitor.temperature:'';
374
+          this.form.replacement_rate =  resp.monitor.replacement_rate?resp.monitor.replacement_rate:'';
375
+          this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
376
+          this.form.conductivity = ''
377
+          this.form.displacement_flow_quantity = ''
378
+
379
+          this.form.ktv = '' //this.last_monitor_record.ktv;
380
+          this.form.symptom = ''// this.last_monitor_record.symptom;
381
+          this.form.dispose = '' // this.last_monitor_record.dispose;
382
+          this.form.result = '' //this.last_monitor_record.result;
383
+          this.form.id = -1
384
+          console.log(this.form)
385
+        })
386
+      },
387
+
349 388
       getLastRecord () {
350 389
         let params = {
351 390
           patient_id: this.patient.id
@@ -716,7 +755,7 @@
716 755
         this.formPanel = true
717 756
         this.listPanel = false
718 757
         // if(this.monitor_time_str == "") {
719
-
758
+          
720 759
         var date = this.$route.query && this.$route.query.date
721 760
         date *= 1000
722 761
         var newDate = new Date(date)
@@ -732,33 +771,8 @@
732 771
         // this.monitor_time_str = this.handleTime(nowTime);
733 772
         // this.monitor_time_str = record_date + " " + this.form.monitor_time;
734 773
 
735
-        // this.getLastRecord()
736
-
737
-        this.form.operate_time = Date.parse(new Date())
738
-        this.form.pulse_frequency = '' //this.last_monitor_record.pulse_frequency;
739
-        this.form.breathing_rated = '' //this.last_monitor_record.breathing_rate;
740
-        this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
741
-        this.form.diastolic_bp = '' //this.last_monitor_record.diastolic_blood_pressure;
742
-        this.form.blood_flow_volume = '' //this.last_monitor_record.blood_flow_volume;
743
-        this.form.venous_pressure = ''//this.last_monitor_record.venous_pressure;
744
-        this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
745
-        this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
746
-        this.form.ultrafiltration_rate = ''// this.last_monitor_record.ultrafiltration_rate;
747
-        this.form.ultrafiltration_volume = ''// this.last_monitor_record.ultrafiltration_volume;
748
-        this.form.sodium_concentration = ''//this.last_monitor_record.sodium_concentration;
749
-        this.form.dialysate_temperature = '' //this.last_monitor_record.dialysate_temperature;
750
-        this.form.temperature = '' //this.last_monitor_record.temperature;
751
-        this.form.replacement_rate = '' // this.last_monitor_record.replacement_rate;
752
-        this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
753
-        this.form.conductivity = ''
754
-        this.form.displacement_flow_quantity = ''
755
-
756
-        this.form.ktv = '' //this.last_monitor_record.ktv;
757
-        this.form.symptom = ''// this.last_monitor_record.symptom;
758
-        this.form.dispose = '' // this.last_monitor_record.dispose;
759
-        this.form.result = '' //this.last_monitor_record.result;
760
-        this.form.id = -1
761
-        console.log(this.form)
774
+        this.getLastRecordTody()
775
+        
762 776
         // }
763 777
       },
764 778
       submitEditAction: function () {

+ 2 - 2
src/pages/main/index.vue View File

@@ -118,8 +118,8 @@
118 118
         })
119 119
       },getData(){
120 120
         console.log("111111")
121
-        this.requestScheduals()
122
-        this.requestDialysisScheduals()
121
+        // this.requestScheduals()
122
+        // this.requestDialysisScheduals()
123 123
       }
124 124
 
125 125
     },

+ 1 - 1
src/pages/personal/ElectronicSignature.vue View File

@@ -118,7 +118,7 @@ export default {
118 118
       middleAry: [],
119 119
       // 配置参数
120 120
       config: {
121
-        lineWidth: 15,
121
+        lineWidth: 3,
122 122
         lineColor: "#000",
123 123
         shadowBlur: 1,
124 124
         fillStyle: "#fff"