csx преди 5 години
родител
ревизия
5b17931f70
променени са 1 файла, в които са добавени 185 реда и са изтрити 38 реда
  1. 185 38
      src/pages/main/dialog/MonitDialog.vue

+ 185 - 38
src/pages/main/dialog/MonitDialog.vue Целия файл

@@ -6,7 +6,7 @@
6 6
             <h1 class="name">透析监测</h1>
7 7
             <span class="success" >&nbsp;</span>
8 8
         </div>
9
-        <div style="width:100%;background: #fff;">        
9
+        <div style="width:100%;background: #fff;">
10 10
          <div class="yzNav" style="width:80%">
11 11
                 <span @click="openForm()">新增监测</span>
12 12
                 <span @click="openEidtForm()">修改监测</span>
@@ -21,14 +21,14 @@
21 21
                 <th width="72px">血压(mmHg)</th>
22 22
                 <th width="80px">心率(次/分)</th>
23 23
                 <th width="110px">呼吸(次/分)</th>
24
-                <th width="92px">血流量(ml/min)</th>  
24
+                <th width="92px">血流量(ml/min)</th>
25 25
                 <th width="76px">静脉压(mmHg)</th>
26 26
                 <th width="76px">跨膜压(mmHg)</th>
27 27
                 <th width="76px">超滤量(L)</th>
28 28
                 <th width="92px">钠浓度(mmol/L)</th>
29 29
                 <th width="82px">透析液温度(℃)</th>
30 30
                 <th width="92px">置换率(L/h)</th>
31
-                <th width="50px">置换量(L)</th>        
31
+                <th width="50px">置换量(L)</th>
32 32
                 <th width="92px">病情变化</th>
33 33
                 <th width="92px">处理</th>
34 34
                 <th width="92px">结果</th>
@@ -145,27 +145,27 @@
145 145
               <input type="text" class="inputBox" style="width: 100%;margin-bottom:5px;" v-model="form.result" readonly placeholder="选择"  @click="showSubMenu('result')">
146 146
               <textarea @focus="lastInputFocus" @blur="lastInputBlur" class="inputBox" style="width: 100%;" :rows="4" v-model="form.result"></textarea>
147 147
             </div>
148
-            
148
+
149 149
             <div class="cell width">
150 150
               <label>监测人:</label>
151
-              <span>{{doctor}}</span>                       
151
+              <span>{{doctor}}</span>
152 152
             </div>
153 153
 
154
-          </div> 
154
+          </div>
155 155
         </div>
156 156
     </div>
157
-    
157
+
158 158
     <mt-datetime-picker
159 159
       ref="picker"
160 160
       type="datetime"
161 161
       @confirm="handleConfirm"
162 162
       v-model="pickertime">
163 163
     </mt-datetime-picker>
164
-    
164
+
165 165
     <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm"
166 166
                         :propsForm="propForm"></check-box-sub-menu>
167 167
 
168
-    
168
+
169 169
 </div>
170 170
 </template>
171 171
 
@@ -292,21 +292,91 @@ export default {
292 292
         var resp = rs.data;
293 293
         if (resp.state == 1) {
294 294
           var monitor = resp.data.monitor;
295
+          if(monitor.systolic_blood_pressure == 0){
296
+            this.form.systolic_bp = ""
297
+          }else {
298
+            this.form.systolic_bp = monitor.systolic_blood_pressure;
299
+          }
300
+
301
+          if(monitor.diastolic_blood_pressure == 0){
302
+            this.form.diastolic_bp = ""
303
+          }else {
304
+            this.form.diastolic_bp = monitor.diastolic_blood_pressure;
305
+          }
306
+
307
+          if(monitor.pulse_frequency == 0){
308
+            this.form.pulse_frequency = ""
309
+          }else {
310
+            this.form.pulse_frequency = monitor.pulse_frequency;
311
+          }
312
+
313
+          if(monitor.breathing_rate == 0){
314
+            this.form.breathing_rated = ""
315
+          }else {
316
+            this.form.breathing_rated = monitor.breathing_rate;
317
+          }
318
+
319
+          if(monitor.blood_flow_volume == 0){
320
+            this.form.blood_flow_volume = ""
321
+          }else {
322
+            this.form.blood_flow_volume = monitor.blood_flow_volume;
323
+          }
324
+
325
+
326
+          if(monitor.venous_pressure == 0){
327
+            this.form.venous_pressure = ""
328
+          }else {
329
+            this.form.venous_pressure = monitor.venous_pressure;
330
+          }
331
+
332
+          if(monitor.arterial_pressure == 0){
333
+            this.form.arterial_pressure = ""
334
+          }else {
335
+            this.form.arterial_pressure = monitor.arterial_pressure;
336
+          }
337
+
338
+          if(monitor.transmembrane_pressure == 0){
339
+            this.form.transmembrane_pressure = ""
340
+          }else {
341
+            this.form.transmembrane_pressure = monitor.transmembrane_pressure;
342
+          }
343
+
344
+          if(monitor.ultrafiltration_rate == 0){
345
+            this.form.ultrafiltration_rate = ""
346
+          }else {
347
+            this.form.ultrafiltration_rate = monitor.ultrafiltration_rate;
348
+          }
349
+
350
+          if(monitor.ultrafiltration_volume == 0){
351
+            this.form.ultrafiltration_volume = ""
352
+          }else {
353
+            this.form.ultrafiltration_volume = monitor.ultrafiltration_volume;
354
+          }
355
+
356
+          if(monitor.sodium_concentration == 0){
357
+            this.form.sodium_concentration = ""
358
+          }else {
359
+            this.form.sodium_concentration = monitor.sodium_concentration;
360
+          }
361
+
362
+          if(monitor.dialysate_temperature == 0){
363
+            this.form.dialysate_temperature = ""
364
+          }else {
365
+            this.form.dialysate_temperature = monitor.dialysate_temperature;
366
+          }
367
+
368
+          if(monitor.replacement_rate == 0){
369
+            this.form.replacement_rate = ""
370
+          }else {
371
+            this.form.replacement_rate = monitor.replacement_rate;
372
+          }
373
+
374
+          if(monitor.displacement_quantity == 0){
375
+            this.form.displacement_quantity = ""
376
+          }else {
377
+            this.form.displacement_quantity = monitor.displacement_quantity;
378
+          }
295 379
 
296
-          this.form.systolic_bp = monitor.systolic_blood_pressure;
297
-          this.form.diastolic_bp = monitor.diastolic_blood_pressure;
298
-          this.form.pulse_frequency = monitor.pulse_frequency;
299
-          this.form.breathing_rated = monitor.breathing_rate;
300
-          this.form.blood_flow_volume = monitor.blood_flow_volume;
301
-          this.form.venous_pressure = monitor.venous_pressure;
302
-          this.form.arterial_pressure = monitor.arterial_pressure;
303
-          this.form.transmembrane_pressure = monitor.transmembrane_pressure;
304
-          this.form.ultrafiltration_rate = monitor.ultrafiltration_rate;
305
-          this.form.ultrafiltration_volume = monitor.ultrafiltration_volume;
306
-          this.form.sodium_concentration = monitor.sodium_concentration;
307
-          this.form.dialysate_temperature = monitor.dialysate_temperature;
308
-          this.form.replacement_rate = monitor.replacement_rate;
309
-          this.form.displacement_quantity = monitor.displacement_quantity;
310 380
           this.form.ktv = monitor.ktv;
311 381
           this.form.symptom = monitor.symptom;
312 382
           this.form.dispose = monitor.dispose;
@@ -442,21 +512,98 @@ export default {
442 512
       this.listPanel = false;
443 513
       // console.log("this.currentRow", this.currentRow);
444 514
 
445
-      this.form.pulse_frequency = this.currentRow.pulse_frequency;
446
-      this.form.breathing_rated = this.currentRow.breathing_rate;
447
-      this.form.systolic_bp = this.currentRow.systolic_blood_pressure;
448
-      this.form.diastolic_bp = this.currentRow.diastolic_blood_pressure;
449
-      this.form.blood_flow_volume = this.currentRow.blood_flow_volume;
450
-      this.form.venous_pressure = this.currentRow.venous_pressure;
451
-      this.form.arterial_pressure = this.currentRow.arterial_pressure;
452
-      this.form.transmembrane_pressure = this.currentRow.transmembrane_pressure;
453
-      this.form.ultrafiltration_rate = this.currentRow.ultrafiltration_rate;
454
-      this.form.ultrafiltration_volume = this.currentRow.ultrafiltration_volume;
455
-      this.form.sodium_concentration = this.currentRow.sodium_concentration;
456
-      this.form.dialysate_temperature = this.currentRow.dialysate_temperature;
457
-      this.form.replacement_rate = this.currentRow.replacement_rate;
458
-      this.form.displacement_quantity = this.currentRow.displacement_quantity;
459
-      this.form.ktv = this.currentRow.ktv;
515
+
516
+      if(this.currentRow.systolic_blood_pressure == 0){
517
+        this.form.systolic_bp = ""
518
+      }else {
519
+        this.form.systolic_bp = this.currentRow.systolic_blood_pressure;
520
+      }
521
+
522
+      if(this.currentRow.diastolic_blood_pressure == 0){
523
+        this.form.diastolic_bp = ""
524
+      }else {
525
+        this.form.diastolic_bp = this.currentRow.diastolic_blood_pressure;
526
+      }
527
+
528
+      if(this.currentRow.pulse_frequency == 0){
529
+        this.form.pulse_frequency = ""
530
+      }else {
531
+        this.form.pulse_frequency = this.currentRow.pulse_frequency;
532
+      }
533
+
534
+      if(this.currentRow.breathing_rate == 0){
535
+        this.form.breathing_rated = ""
536
+      }else {
537
+        this.form.breathing_rated = this.currentRow.breathing_rate;
538
+      }
539
+
540
+      if(this.currentRow.blood_flow_volume == 0){
541
+        this.form.blood_flow_volume = ""
542
+      }else {
543
+        this.form.blood_flow_volume = this.currentRow.blood_flow_volume;
544
+      }
545
+
546
+
547
+      if(this.currentRow.venous_pressure == 0){
548
+        this.form.venous_pressure = ""
549
+      }else {
550
+        this.form.venous_pressure = this.currentRow.venous_pressure;
551
+      }
552
+
553
+      if(this.currentRow.arterial_pressure == 0){
554
+        this.form.arterial_pressure = ""
555
+      }else {
556
+        this.form.arterial_pressure = this.currentRow.arterial_pressure;
557
+      }
558
+
559
+      if(this.currentRow.transmembrane_pressure == 0){
560
+        this.form.transmembrane_pressure = ""
561
+      }else {
562
+        this.form.transmembrane_pressure = this.currentRow.transmembrane_pressure;
563
+      }
564
+
565
+      if(this.currentRow.ultrafiltration_rate == 0){
566
+        this.form.ultrafiltration_rate = ""
567
+      }else {
568
+        this.form.ultrafiltration_rate =this.currentRow.ultrafiltration_rate;
569
+      }
570
+
571
+      if(this.currentRow.ultrafiltration_volume == 0){
572
+        this.form.ultrafiltration_volume = ""
573
+      }else {
574
+        this.form.ultrafiltration_volume = this.currentRow.ultrafiltration_volume;
575
+      }
576
+
577
+      if(this.currentRow.sodium_concentration == 0){
578
+        this.form.sodium_concentration = ""
579
+      }else {
580
+        this.form.sodium_concentration = this.currentRow.sodium_concentration;
581
+      }
582
+
583
+      if(this.currentRow.dialysate_temperature == 0){
584
+        this.form.dialysate_temperature = ""
585
+      }else {
586
+        this.form.dialysate_temperature = this.currentRow.dialysate_temperature;
587
+      }
588
+
589
+      if(this.currentRow.replacement_rate == 0){
590
+        this.form.replacement_rate = ""
591
+      }else {
592
+        this.form.replacement_rate = this.currentRow.replacement_rate;
593
+      }
594
+
595
+      if(this.currentRow.displacement_quantity == 0){
596
+        this.form.displacement_quantity = ""
597
+      }else {
598
+        this.form.displacement_quantity = this.currentRow.displacement_quantity;
599
+      }
600
+
601
+      if(this.currentRow.ktv == 0){
602
+        this.form.ktv = ""
603
+      }else {
604
+        this.form.ktv = this.currentRow.ktv;
605
+      }
606
+
460 607
       this.form.symptom = this.currentRow.symptom;
461 608
       this.form.dispose = this.currentRow.dispose;
462 609
       this.form.result = this.currentRow.result;