Bladeren bron

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

See999 4 jaren geleden
bovenliggende
commit
65517fd944

+ 123 - 124
src/xt_pages/dialysis/details/assessmentBefore.vue Bestand weergeven

284
 </template>
284
 </template>
285
 
285
 
286
 <script>
286
 <script>
287
-import store from "@/store";
288
-import { getDataConfig } from "@/utils/data";
287
+import store from '@/store'
288
+import { getDataConfig } from '@/utils/data'
289
 
289
 
290
 export default {
290
 export default {
291
-  name: "assessmentBefore",
291
+  name: 'assessmentBefore',
292
   data() {
292
   data() {
293
     return {
293
     return {
294
-      title: "透前评估 "
295
-    };
294
+      title: '透前评估 '
295
+    }
296
   },
296
   },
297
   props: {
297
   props: {
298
     record: {
298
     record: {
302
   computed: {
302
   computed: {
303
     weight_before: function() {
303
     weight_before: function() {
304
       if (this.record.id == 0) {
304
       if (this.record.id == 0) {
305
-        return "-";
305
+        return '-'
306
       }
306
       }
307
-      return this.record.weight_before;
307
+      return this.record.weight_before
308
     },
308
     },
309
     additional_weight: function() {
309
     additional_weight: function() {
310
       if (this.record.id == 0) {
310
       if (this.record.id == 0) {
311
-        return "-";
311
+        return '-'
312
       }
312
       }
313
-      return this.record.additional_weight;
313
+      return this.record.additional_weight
314
     },
314
     },
315
     systolic_blood_pressure: function() {
315
     systolic_blood_pressure: function() {
316
       if (this.record.id == 0) {
316
       if (this.record.id == 0) {
317
-        return "-";
317
+        return '-'
318
       }
318
       }
319
-      return this.record.systolic_blood_pressure;
319
+      return this.record.systolic_blood_pressure
320
     },
320
     },
321
     last_post_dialysis: function() {
321
     last_post_dialysis: function() {
322
       if (this.record.id == 0) {
322
       if (this.record.id == 0) {
323
-        return "-";
323
+        return '-'
324
       }
324
       }
325
-      return this.record.last_post_dialysis;
325
+      return this.record.last_post_dialysis
326
     },
326
     },
327
     dry_weight: function() {
327
     dry_weight: function() {
328
       if (this.record.id == 0) {
328
       if (this.record.id == 0) {
329
-        return "-";
329
+        return '-'
330
       }
330
       }
331
-      return this.record.dry_weight;
331
+      return this.record.dry_weight
332
     },
332
     },
333
     diastolic_blood_pressure: function() {
333
     diastolic_blood_pressure: function() {
334
       if (this.record.id == 0) {
334
       if (this.record.id == 0) {
335
-        return "-";
335
+        return '-'
336
       }
336
       }
337
-      return this.record.diastolic_blood_pressure;
337
+      return this.record.diastolic_blood_pressure
338
     },
338
     },
339
     dialysis_interphase: function() {
339
     dialysis_interphase: function() {
340
       if (this.record.id == 0) {
340
       if (this.record.id == 0) {
341
-        return "-";
341
+        return '-'
342
       }
342
       }
343
-      return this.record.dialysis_interphase;
343
+      return this.record.dialysis_interphase
344
     },
344
     },
345
     catheter: function() {
345
     catheter: function() {
346
       if (this.record.id == 0) {
346
       if (this.record.id == 0) {
347
-        return "-";
347
+        return '-'
348
       }
348
       }
349
-      return this.record.catheter;
350
-      console.log("导管", this.record.catheter);
349
+      return this.record.catheter
350
+      console.log('导管', this.record.catheter)
351
     },
351
     },
352
 
352
 
353
     temperature: function() {
353
     temperature: function() {
354
       if (this.record.id == 0) {
354
       if (this.record.id == 0) {
355
-        return "-";
355
+        return '-'
356
       }
356
       }
357
-      return this.record.temperature;
357
+      return this.record.temperature
358
     },
358
     },
359
     pulse_frequency: function() {
359
     pulse_frequency: function() {
360
       if (this.record.id == 0) {
360
       if (this.record.id == 0) {
361
-        return "-";
361
+        return '-'
362
       }
362
       }
363
-      return this.record.pulse_frequency;
363
+      return this.record.pulse_frequency
364
     },
364
     },
365
     machine_type: function() {
365
     machine_type: function() {
366
       if (this.record.id == 0) {
366
       if (this.record.id == 0) {
367
-        return "-";
367
+        return '-'
368
       }
368
       }
369
-      return this.record.machine_type;
369
+      return this.record.machine_type
370
     },
370
     },
371
     breathing_rate: function() {
371
     breathing_rate: function() {
372
       if (this.record.id == 0) {
372
       if (this.record.id == 0) {
373
-        return "-";
373
+        return '-'
374
       }
374
       }
375
-      return this.record.breathing_rate;
375
+      return this.record.breathing_rate
376
     },
376
     },
377
     symptom_before_dialysis: function() {
377
     symptom_before_dialysis: function() {
378
       if (this.record.id == 0) {
378
       if (this.record.id == 0) {
379
-        return "-";
379
+        return '-'
380
       }
380
       }
381
-      return this.record.symptom_before_dialysis;
381
+      return this.record.symptom_before_dialysis
382
     },
382
     },
383
     complication: function() {
383
     complication: function() {
384
       if (this.record.id == 0) {
384
       if (this.record.id == 0) {
385
-        return "-";
385
+        return '-'
386
       }
386
       }
387
-      return this.record.complication;
387
+      return this.record.complication
388
     },
388
     },
389
     internal_fistula: function() {
389
     internal_fistula: function() {
390
       if (this.record.id == 0) {
390
       if (this.record.id == 0) {
391
-        return "-";
391
+        return '-'
392
       }
392
       }
393
-      return this.record.internal_fistula;
394
-     
393
+      return this.record.internal_fistula
395
     },
394
     },
396
 
395
 
397
     internal_fistula_skin: function() {
396
     internal_fistula_skin: function() {
398
       if (this.record.id == 0) {
397
       if (this.record.id == 0) {
399
-        return "-";
398
+        return '-'
400
       }
399
       }
401
-      return this.record.internal_fistula_skin;
400
+      return this.record.internal_fistula_skin
402
     },
401
     },
403
 
402
 
404
     is_hemorrhage: function() {
403
     is_hemorrhage: function() {
405
       if (this.record.id == 0) {
404
       if (this.record.id == 0) {
406
-        return false;
405
+        return false
407
       }
406
       }
408
-      return this.record.is_hemorrhage == 1;
407
+      return this.record.is_hemorrhage == 1
409
     },
408
     },
410
     hemorrhage: function() {
409
     hemorrhage: function() {
411
       if (this.record.id == 0) {
410
       if (this.record.id == 0) {
412
-        return "-";
411
+        return '-'
413
       }
412
       }
414
-      return this.record.hemorrhage;
413
+      return this.record.hemorrhage
415
     },
414
     },
416
     hemorrhage_other: function() {
415
     hemorrhage_other: function() {
417
       if (this.record.id == 0) {
416
       if (this.record.id == 0) {
418
-        return "-";
417
+        return '-'
419
       }
418
       }
420
-      return this.record.hemorrhage_other;
419
+      return this.record.hemorrhage_other
421
     },
420
     },
422
 
421
 
423
     remark: function() {
422
     remark: function() {
424
       if (this.record.id == 0) {
423
       if (this.record.id == 0) {
425
-        return "";
424
+        return ''
426
       }
425
       }
427
-      return this.record.remark;
426
+      return this.record.remark
428
     },
427
     },
429
     dialysis_count: function() {
428
     dialysis_count: function() {
430
-      if (this.record == null || this.record.id == "") {
431
-        return "-";
429
+      if (this.record == null || this.record.id == '') {
430
+        return '-'
432
       }
431
       }
433
-      return this.record.dialysis_count;
432
+      return this.record.dialysis_count
434
     },
433
     },
435
     internal_fistula_other: function() {
434
     internal_fistula_other: function() {
436
-      if (this.record == null || this.record.id == "") {
437
-        return "-";
435
+      if (this.record == null || this.record.id == '') {
436
+        return '-'
438
       }
437
       }
439
-      return this.record.internal_fistula_other;
438
+      return this.record.internal_fistula_other
440
     },
439
     },
441
     venous_catheterization_part_other: function() {
440
     venous_catheterization_part_other: function() {
442
-      if (this.record == null || this.record.id == "") {
443
-        return "-";
441
+      if (this.record == null || this.record.id == '') {
442
+        return '-'
444
       }
443
       }
445
-      return this.record.venous_catheterization_part_other;
444
+      return this.record.venous_catheterization_part_other
446
     },
445
     },
447
     emergency_treatment_other: function() {
446
     emergency_treatment_other: function() {
448
-      if (this.record == null || this.record.id == "") {
449
-        return "-";
447
+      if (this.record == null || this.record.id == '') {
448
+        return '-'
450
       }
449
       }
451
-      return this.record.emergency_treatment_other;
450
+      return this.record.emergency_treatment_other
452
     },
451
     },
453
     blood_access_internal_fistula: function() {
452
     blood_access_internal_fistula: function() {
454
-      var name1 = "";
455
-      var name2 = "";
453
+      var name1 = ''
454
+      var name2 = ''
456
 
455
 
457
-      if (this.record == null || this.record.id == "") {
458
-        return "-";
456
+      if (this.record == null || this.record.id == '') {
457
+        return '-'
459
       }
458
       }
460
       if (this.record.blood_access_internal_fistula == undefined) {
459
       if (this.record.blood_access_internal_fistula == undefined) {
461
-        name1 = "";
460
+        name1 = ''
462
       } else {
461
       } else {
463
-        name1 = this.record.blood_access_internal_fistula + ",";
462
+        name1 = this.record.blood_access_internal_fistula + ','
464
       }
463
       }
465
       if (this.record.internal_fistula_other == undefined) {
464
       if (this.record.internal_fistula_other == undefined) {
466
-        name2 = "";
465
+        name2 = ''
467
       } else {
466
       } else {
468
-        name2 = this.record.internal_fistula_other;
467
+        name2 = this.record.internal_fistula_other
469
       }
468
       }
470
 
469
 
471
-      return name1 + name2;
470
+      return name1 + name2
472
     },
471
     },
473
     ductus_arantii_other: function() {
472
     ductus_arantii_other: function() {
474
-      if (this.record == null || this.record.id == "") {
475
-        return "-";
473
+      if (this.record == null || this.record.id == '') {
474
+        return '-'
476
       }
475
       }
477
-      return this.record.ductus_arantii_other;
476
+      return this.record.ductus_arantii_other
478
     },
477
     },
479
     infect_other: function() {
478
     infect_other: function() {
480
-      if (this.record == null || this.record.id == "") {
481
-        return "-";
479
+      if (this.record == null || this.record.id == '') {
480
+        return '-'
482
       }
481
       }
483
-      return this.record.infect_other;
482
+      return this.record.infect_other
484
     },
483
     },
485
     skin_other: function() {
484
     skin_other: function() {
486
-      if (this.record == null || this.record.id == "") {
487
-        return "-";
485
+      if (this.record == null || this.record.id == '') {
486
+        return '-'
488
       }
487
       }
489
-      return this.record.skin_other;
488
+      return this.record.skin_other
490
     }
489
     }
491
   },
490
   },
492
   methods: {
491
   methods: {
493
     getBloodAccessPart: function(id) {
492
     getBloodAccessPart: function(id) {
494
-      var BloodAccessPart = getDataConfig("hemodialysis", "vascular_access");
495
-      var BloodAccessPartName = "";
493
+      var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
494
+      var BloodAccessPartName = ''
496
       for (let i = 0; i < BloodAccessPart.length; i++) {
495
       for (let i = 0; i < BloodAccessPart.length; i++) {
497
         if (BloodAccessPart[i].id == id) {
496
         if (BloodAccessPart[i].id == id) {
498
-          BloodAccessPartName = BloodAccessPart[i].name;
497
+          BloodAccessPartName = BloodAccessPart[i].name
499
         }
498
         }
500
       }
499
       }
501
-      return BloodAccessPartName;
500
+      return BloodAccessPartName
502
     },
501
     },
503
     getBloodAccessOpera: function(id) {
502
     getBloodAccessOpera: function(id) {
504
       var BloodAccessOpera = getDataConfig(
503
       var BloodAccessOpera = getDataConfig(
505
-        "hemodialysis",
506
-        "vascular_access_desc"
507
-      );
508
-      var BloodAccessOperaName = "";
504
+        'hemodialysis',
505
+        'vascular_access_desc'
506
+      )
507
+      var BloodAccessOperaName = ''
509
       for (let i = 0; i < BloodAccessOpera.length; i++) {
508
       for (let i = 0; i < BloodAccessOpera.length; i++) {
510
         if (BloodAccessOpera[i].id == id) {
509
         if (BloodAccessOpera[i].id == id) {
511
-          BloodAccessOperaName = BloodAccessOpera[i].name;
510
+          BloodAccessOperaName = BloodAccessOpera[i].name
512
         }
511
         }
513
       }
512
       }
514
-      return BloodAccessOperaName;
513
+      return BloodAccessOperaName
515
     },
514
     },
516
 
515
 
517
     getBloodAccessInternalFistula: function(id) {
516
     getBloodAccessInternalFistula: function(id) {
518
       var BloodAccessInternalFistulaOptions = this.$store.getters
517
       var BloodAccessInternalFistulaOptions = this.$store.getters
519
-        .blood_access_internal_fistula;
520
-      var BloodAccessInternalFistulaName = "";
518
+        .blood_access_internal_fistula
519
+      var BloodAccessInternalFistulaName = ''
521
       for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
520
       for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
522
         if (BloodAccessInternalFistulaOptions[i].id == id) {
521
         if (BloodAccessInternalFistulaOptions[i].id == id) {
523
           BloodAccessInternalFistulaName =
522
           BloodAccessInternalFistulaName =
524
-            BloodAccessInternalFistulaOptions[i].name;
523
+            BloodAccessInternalFistulaOptions[i].name
525
         }
524
         }
526
       }
525
       }
527
-      return BloodAccessInternalFistulaName;
526
+      return BloodAccessInternalFistulaName
528
     },
527
     },
529
     getBloodAccessNoise: function(id) {
528
     getBloodAccessNoise: function(id) {
530
-      var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
531
-      var BloodAccessNoiseName = "";
529
+      var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise
530
+      var BloodAccessNoiseName = ''
532
       for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
531
       for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
533
         if (BloodAccessNoiseOptions[i].id == id) {
532
         if (BloodAccessNoiseOptions[i].id == id) {
534
-          BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
533
+          BloodAccessNoiseName = BloodAccessNoiseOptions[i].name
535
         }
534
         }
536
       }
535
       }
537
-      return BloodAccessNoiseName;
536
+      return BloodAccessNoiseName
538
     },
537
     },
539
     getVenousCatheterization: function(id) {
538
     getVenousCatheterization: function(id) {
540
       var VenousCatheterizationOptions = this.$store.getters
539
       var VenousCatheterizationOptions = this.$store.getters
541
-        .venous_catheterization;
542
-      var VenousCatheterizationName = "";
540
+        .venous_catheterization
541
+      var VenousCatheterizationName = ''
543
       for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
542
       for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
544
         if (VenousCatheterizationOptions[i].id == id) {
543
         if (VenousCatheterizationOptions[i].id == id) {
545
-          VenousCatheterizationName = VenousCatheterizationOptions[i].name;
544
+          VenousCatheterizationName = VenousCatheterizationOptions[i].name
546
         }
545
         }
547
       }
546
       }
548
-      return VenousCatheterizationName;
547
+      return VenousCatheterizationName
549
     },
548
     },
550
     getWay: function(id) {
549
     getWay: function(id) {
551
-      var PunctureWayOptions = this.$store.getters.puncture_way;
552
-      var PunctureWayOptionsName = "";
550
+      var PunctureWayOptions = getDataConfig('hemodialysis', 'puncture_method')
551
+      var PunctureWayOptionsName = ''
553
       for (let i = 0; i < PunctureWayOptions.length; i++) {
552
       for (let i = 0; i < PunctureWayOptions.length; i++) {
554
         if (PunctureWayOptions[i].id == id) {
553
         if (PunctureWayOptions[i].id == id) {
555
-          PunctureWayOptionsName = PunctureWayOptions[i].name;
554
+          PunctureWayOptionsName = PunctureWayOptions[i].name
556
         }
555
         }
557
       }
556
       }
558
-      return PunctureWayOptionsName;
557
+      return PunctureWayOptionsName
559
     },
558
     },
560
     getVenousCatheterizationPart: function(id) {
559
     getVenousCatheterizationPart: function(id) {
561
       var venousCatheterizationPartOptions = this.$store.getters
560
       var venousCatheterizationPartOptions = this.$store.getters
562
-        .venous_catheterization_part;
563
-      var venousCatheterizationPartName = "";
561
+        .venous_catheterization_part
562
+      var venousCatheterizationPartName = ''
564
       for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
563
       for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
565
         if (venousCatheterizationPartOptions[i].id == id) {
564
         if (venousCatheterizationPartOptions[i].id == id) {
566
           venousCatheterizationPartName =
565
           venousCatheterizationPartName =
567
-            venousCatheterizationPartOptions[i].name;
566
+            venousCatheterizationPartOptions[i].name
568
         }
567
         }
569
       }
568
       }
570
-      return venousCatheterizationPartName;
569
+      return venousCatheterizationPartName
571
     },
570
     },
572
     getDuctusArantii: function(id) {
571
     getDuctusArantii: function(id) {
573
-      var ductusArantiiOptions = this.$store.getters.ductus_arantii;
574
-      var ductusArantiiOptionsName = "";
572
+      var ductusArantiiOptions = this.$store.getters.ductus_arantii
573
+      var ductusArantiiOptionsName = ''
575
       for (let i = 0; i < ductusArantiiOptions.length; i++) {
574
       for (let i = 0; i < ductusArantiiOptions.length; i++) {
576
         if (ductusArantiiOptions[i].id == id) {
575
         if (ductusArantiiOptions[i].id == id) {
577
-          ductusArantiiOptionsName = ductusArantiiOptions[i].name;
576
+          ductusArantiiOptionsName = ductusArantiiOptions[i].name
578
         }
577
         }
579
       }
578
       }
580
-      return ductusArantiiOptionsName;
579
+      return ductusArantiiOptionsName
581
     },
580
     },
582
     getEmergencyTreatment: function(id) {
581
     getEmergencyTreatment: function(id) {
583
-      var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
584
-      var emergencyTreatmentName = "";
582
+      var emergencyTreatmentOptions = this.$store.getters.emergency_treatment
583
+      var emergencyTreatmentName = ''
585
       for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
584
       for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
586
         if (emergencyTreatmentOptions[i].id == id) {
585
         if (emergencyTreatmentOptions[i].id == id) {
587
-          emergencyTreatmentName = emergencyTreatmentOptions[i].name;
586
+          emergencyTreatmentName = emergencyTreatmentOptions[i].name
588
         }
587
         }
589
       }
588
       }
590
-      return emergencyTreatmentName;
589
+      return emergencyTreatmentName
591
     },
590
     },
592
     isShow(name) {
591
     isShow(name) {
593
-      var filedList = store.getters.xt_user.fileds;
594
-      var arr = [];
592
+      var filedList = store.getters.xt_user.fileds
593
+      var arr = []
595
       for (let i = 0; i < filedList.length; i++) {
594
       for (let i = 0; i < filedList.length; i++) {
596
         if (
595
         if (
597
           filedList[i].module == 3 &&
596
           filedList[i].module == 3 &&
598
           filedList[i].filed_name_cn == name &&
597
           filedList[i].filed_name_cn == name &&
599
           filedList[i].is_show == 1
598
           filedList[i].is_show == 1
600
         ) {
599
         ) {
601
-          return true;
600
+          return true
602
         }
601
         }
603
       }
602
       }
604
-      return false;
603
+      return false
605
     },
604
     },
606
     getSkin: function(id) {
605
     getSkin: function(id) {
607
-      var skinOptions = this.$store.getters.skin;
608
-      var skinName = "";
606
+      var skinOptions = this.$store.getters.skin
607
+      var skinName = ''
609
       for (let i = 0; i < skinOptions.length; i++) {
608
       for (let i = 0; i < skinOptions.length; i++) {
610
         if (skinOptions[i].id == id) {
609
         if (skinOptions[i].id == id) {
611
-          skinName = skinOptions[i].name;
610
+          skinName = skinOptions[i].name
612
         }
611
         }
613
       }
612
       }
614
-      return skinName;
613
+      return skinName
615
     }
614
     }
616
   }
615
   }
617
-};
616
+}
618
 </script>
617
 </script>
619
 
618
 
620
 <style rel="stylesheet/scss" lang="scss" scoped></style>
619
 <style rel="stylesheet/scss" lang="scss" scoped></style>

+ 63 - 76
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Bestand weergeven

241
               <el-select v-model="assessmentBeforeDislysis.puncture_way">
241
               <el-select v-model="assessmentBeforeDislysis.puncture_way">
242
                 <el-option :key="0" label="请选择" :value="0"></el-option>
242
                 <el-option :key="0" label="请选择" :value="0"></el-option>
243
 
243
 
244
-                <el-option v-for="item in this.$store.getters.puncture_way" :label="item.name" :value="item.id"
244
+                <el-option v-for="item in this.puncture_ways" :label="item.name" :value="item.id"
245
                            :key="item.id"></el-option>
245
                            :key="item.id"></el-option>
246
               </el-select>
246
               </el-select>
247
             </el-form-item>
247
             </el-form-item>
498
 <script>
498
 <script>
499
   import multiSelectBox from './MultiSelectBox'
499
   import multiSelectBox from './MultiSelectBox'
500
   import { getDataConfig } from '@/utils/data'
500
   import { getDataConfig } from '@/utils/data'
501
-  import { postAssessmentBeforeDislysis,CreateDryWeight } from '@/api/dialysis'
501
+  import { postAssessmentBeforeDislysis, CreateDryWeight } from '@/api/dialysis'
502
   import store from '@/store'
502
   import store from '@/store'
503
   import { uParseTime } from '@/utils/tools'
503
   import { uParseTime } from '@/utils/tools'
504
 
504
 
511
     name: 'assessment-after-dislysis-dialog',
511
     name: 'assessment-after-dislysis-dialog',
512
     data() {
512
     data() {
513
       return {
513
       return {
514
-        showTxt:'',
515
-        hasPermission:true,
514
+        showTxt: '',
515
+        hasPermission: true,
516
         weight_adjust: {
516
         weight_adjust: {
517
           weight: '',
517
           weight: '',
518
           doctor: '',
518
           doctor: '',
519
           remark: ''
519
           remark: ''
520
 
520
 
521
         },
521
         },
522
-        lastPredialysisEvaluation:null,
522
+        lastPredialysisEvaluation: null,
523
         lastDryWeightDislysis: null,
523
         lastDryWeightDislysis: null,
524
         doctorOptions: [],
524
         doctorOptions: [],
525
         isVisibility: false,
525
         isVisibility: false,
593
           titles: '',
593
           titles: '',
594
           type: '' // 不同弹框类型,用来匹配数据
594
           type: '' // 不同弹框类型,用来匹配数据
595
         },
595
         },
596
-        machineType:[],
596
+        machineType: [],
597
+        puncture_ways: ''
597
 
598
 
598
       }
599
       }
599
     },
600
     },
620
 
621
 
621
     },
622
     },
622
     methods: {
623
     methods: {
623
-      setLastRecord(lastPredialysisEvaluation,lastDryWeightDislysis){
624
+      setLastRecord(lastPredialysisEvaluation, lastDryWeightDislysis) {
624
         this.lastPredialysisEvaluation = lastPredialysisEvaluation
625
         this.lastPredialysisEvaluation = lastPredialysisEvaluation
625
         this.lastDryWeightDislysis = lastDryWeightDislysis
626
         this.lastDryWeightDislysis = lastDryWeightDislysis
626
-
627
-
628
       },
627
       },
629
       isShow(name) {
628
       isShow(name) {
630
         var filedList = store.getters.xt_user.fileds
629
         var filedList = store.getters.xt_user.fileds
637
       },
636
       },
638
       show(assessment) {
637
       show(assessment) {
639
         this.assessment = assessment
638
         this.assessment = assessment
640
-        console.log("透前",assessment)
639
+        console.log('透前', assessment)
641
         this.getPermission()
640
         this.getPermission()
642
         this.isVisibility = true
641
         this.isVisibility = true
643
         for (let i = 0; i < this.admin_users.length; i++) {
642
         for (let i = 0; i < this.admin_users.length; i++) {
649
           this.weight_adjust.doctor = this.$store.getters.xt_user.user.id
648
           this.weight_adjust.doctor = this.$store.getters.xt_user.user.id
650
         }
649
         }
651
 
650
 
652
-
653
-        if (this.predialysis_evaluation.id == 0){
654
-          if (this.lastDryWeightDislysis != null){
651
+        if (this.predialysis_evaluation.id == 0) {
652
+          if (this.lastDryWeightDislysis != null) {
655
             this.weight_adjust.weight = this.lastDryWeightDislysis.dry_weight
653
             this.weight_adjust.weight = this.lastDryWeightDislysis.dry_weight
656
             this.assessmentBeforeDislysis.dry_weight = this.lastDryWeightDislysis.dry_weight
654
             this.assessmentBeforeDislysis.dry_weight = this.lastDryWeightDislysis.dry_weight
657
-
658
-          }else{
659
-            if(this.lastPredialysisEvaluation != null){
655
+          } else {
656
+            if (this.lastPredialysisEvaluation != null) {
660
               this.weight_adjust.weight = this.lastPredialysisEvaluation.dry_weight
657
               this.weight_adjust.weight = this.lastPredialysisEvaluation.dry_weight
661
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
658
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
662
             }
659
             }
663
           }
660
           }
664
-        }else{
661
+        } else {
665
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
662
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
666
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
663
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
667
-
668
         }
664
         }
669
       },
665
       },
670
       hide() {
666
       hide() {
817
       }, innerDialogCancle: function() {
813
       }, innerDialogCancle: function() {
818
         this.InnerDialogProps.visibility = false
814
         this.InnerDialogProps.visibility = false
819
       }, handleComfirm: function() {
815
       }, handleComfirm: function() {
820
-         var arr = this.assessmentBeforeDislysis
821
-         for(let i=0;i<this.machineType.length;i++){
822
-           if(arr.machine_type == this.machineType[i].id){
823
-                arr.machine_type = this.machineType[i].name
824
-           }
825
-         }
826
-         console.log("arr",arr)
816
+        var arr = this.assessmentBeforeDislysis
817
+        for (let i = 0; i < this.machineType.length; i++) {
818
+          if (arr.machine_type == this.machineType[i].id) {
819
+            arr.machine_type = this.machineType[i].name
820
+          }
821
+        }
822
+        console.log('arr', arr)
827
         const ParamsQuery = arr
823
         const ParamsQuery = arr
828
-        console.log("paramsquery",ParamsQuery)
824
+        console.log('paramsquery', ParamsQuery)
829
         ParamsQuery['patient'] = this.patient.id
825
         ParamsQuery['patient'] = this.patient.id
830
         ParamsQuery['record_date'] = this.record_date
826
         ParamsQuery['record_date'] = this.record_date
831
-        ParamsQuery['mode'] = "1"
827
+        ParamsQuery['mode'] = '1'
832
 
828
 
833
         console.log(this.predialysis_evaluation)
829
         console.log(this.predialysis_evaluation)
834
 
830
 
835
-        if(this.predialysis_evaluation.id == 0){
836
-          ParamsQuery['mode'] = "1"
837
-
838
-        }else{
839
-          if (this.predialysis_evaluation.creater == 0){
840
-            ParamsQuery['mode'] = "1"
841
-          }else{
842
-            ParamsQuery['mode'] = "2"
843
-            if (this.predialysis_evaluation.creater != this.$store.getters.xt_user.user.id){
844
-              ParamsQuery['mode'] = "3"
831
+        if (this.predialysis_evaluation.id == 0) {
832
+          ParamsQuery['mode'] = '1'
833
+        } else {
834
+          if (this.predialysis_evaluation.creater == 0) {
835
+            ParamsQuery['mode'] = '1'
836
+          } else {
837
+            ParamsQuery['mode'] = '2'
838
+            if (this.predialysis_evaluation.creater != this.$store.getters.xt_user.user.id) {
839
+              ParamsQuery['mode'] = '3'
845
             }
840
             }
846
-
847
           }
841
           }
848
-
849
-
850
         }
842
         }
851
 
843
 
852
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
844
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
876
         this.isVisibility = false
868
         this.isVisibility = false
877
       }, showDryWeightDialog: function() {
869
       }, showDryWeightDialog: function() {
878
         if (this.$store.getters.xt_user.user.user_type == 3) {
870
         if (this.$store.getters.xt_user.user.user_type == 3) {
879
-          this.$message.error("您没有权限调整干体重")
880
-          return;
871
+          this.$message.error('您没有权限调整干体重')
872
+          return
881
         }
873
         }
882
         this.dialogFormVisible = true
874
         this.dialogFormVisible = true
883
         this.isVisibility = false
875
         this.isVisibility = false
884
-
885
       }, submitDryWeight() {
876
       }, submitDryWeight() {
886
-
887
-        let params = {
888
-          id:this.patient.id,
877
+        const params = {
878
+          id: this.patient.id,
889
           dry_weight: this.weight_adjust.weight,
879
           dry_weight: this.weight_adjust.weight,
890
           remark: this.weight_adjust.remark,
880
           remark: this.weight_adjust.remark,
891
           doctor_id: this.weight_adjust.doctor,
881
           doctor_id: this.weight_adjust.doctor,
892
-          mode : "1",
893
-        };
882
+          mode: '1'
883
+        }
894
         CreateDryWeight(params).then(response => {
884
         CreateDryWeight(params).then(response => {
895
           if (response.data.state == 0) {
885
           if (response.data.state == 0) {
896
             this.$message.error(response.data.msg)
886
             this.$message.error(response.data.msg)
902
             this.isVisibility = true
892
             this.isVisibility = true
903
           }
893
           }
904
         })
894
         })
905
-      },cancleDryWeight(){
895
+      }, cancleDryWeight() {
906
         this.dialogFormVisible = false
896
         this.dialogFormVisible = false
907
         this.isVisibility = true
897
         this.isVisibility = true
908
       },
898
       },
909
-      getPermission(){
910
-        request.get("/api/func_per/get",{
911
-          params:{
912
-            create_url:"/api/dialysis/assessmentbeforedislysis?mode=1",
913
-            modify_url:"/api/dialysis/assessmentbeforedislysis?mode=2",
914
-            modify_other_url:"/api/dialysis/assessmentbeforedislysis?mode=3",
915
-            module:3
899
+      getPermission() {
900
+        request.get('/api/func_per/get', {
901
+          params: {
902
+            create_url: '/api/dialysis/assessmentbeforedislysis?mode=1',
903
+            modify_url: '/api/dialysis/assessmentbeforedislysis?mode=2',
904
+            modify_other_url: '/api/dialysis/assessmentbeforedislysis?mode=3',
905
+            module: 3
916
           }
906
           }
917
         }).then(res => {
907
         }).then(res => {
918
           console.log(res)
908
           console.log(res)
919
-          console.log("透前",this.patient_prop)
920
-          console.log("透前",this.assessment)
921
-          if(res.data.state == 0){
909
+          console.log('透前', this.patient_prop)
910
+          console.log('透前', this.assessment)
911
+          if (res.data.state == 0) {
922
             this.hasPermission = false
912
             this.hasPermission = false
923
-          }else if(res.data.state == 1){
924
-            if(this.assessment.id != "" && this.assessment.creater != 0){//有数据
925
-              if(this.assessment.creater == this.$store.getters.xt_user.user.id){//创建人是自己
926
-                if(res.data.data.is_has_modify == false){
913
+          } else if (res.data.state == 1) {
914
+            if (this.assessment.id != '' && this.assessment.creater != 0) { // 有数据
915
+              if (this.assessment.creater == this.$store.getters.xt_user.user.id) { // 创建人是自己
916
+                if (res.data.data.is_has_modify == false) {
927
                   this.hasPermission = false
917
                   this.hasPermission = false
928
-                  this.showTxt = "你没有修改透前评估权限"
918
+                  this.showTxt = '你没有修改透前评估权限'
929
                 }
919
                 }
930
-              }else{//创建人不是自己
931
-                if(res.data.data.is_has_modify_other == false){
920
+              } else { // 创建人不是自己
921
+                if (res.data.data.is_has_modify_other == false) {
932
                   this.hasPermission = false
922
                   this.hasPermission = false
933
-                  this.showTxt = "你没有修改他人透前评估权限"
923
+                  this.showTxt = '你没有修改他人透前评估权限'
934
                 }
924
                 }
935
               }
925
               }
936
-            }else if(this.assessment.id == "" || this.assessment.creater == 0){
937
-              if(res.data.data.is_has_create  == false){
926
+            } else if (this.assessment.id == '' || this.assessment.creater == 0) {
927
+              if (res.data.data.is_has_create == false) {
938
                 this.hasPermission = false
928
                 this.hasPermission = false
939
-                this.showTxt = "你没有新增透前评估权限"
929
+                this.showTxt = '你没有新增透前评估权限'
940
               }
930
               }
941
             }
931
             }
942
           }
932
           }
950
       this.catheter = getDataConfig('hemodialysis', 'catheter')
940
       this.catheter = getDataConfig('hemodialysis', 'catheter')
951
       this.complication = getDataConfig('hemodialysis', 'complication')
941
       this.complication = getDataConfig('hemodialysis', 'complication')
952
       this.hemorrhage = getDataConfig('hemodialysis', 'hemorrhage')
942
       this.hemorrhage = getDataConfig('hemodialysis', 'hemorrhage')
943
+      this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
953
       this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
944
       this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
954
       this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
945
       this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
955
-      //console.log("血管通路部位",this.blood_access_part_opera)
946
+      // console.log("血管通路部位",this.blood_access_part_opera)
956
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
947
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
957
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
948
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
958
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
949
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
959
-      this.machineType = getDataConfig('hemodialysis','machine_type')
950
+      this.machineType = getDataConfig('hemodialysis', 'machine_type')
960
       this.blood_access_noise = this.$store.getters.blood_access_noise
951
       this.blood_access_noise = this.$store.getters.blood_access_noise
961
       var date = this.$route.query && this.$route.query.date
952
       var date = this.$route.query && this.$route.query.date
962
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
953
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
963
 
954
 
964
-
965
       // this.weight_adjust.weight = this.dry_weight.dry_weight
955
       // this.weight_adjust.weight = this.dry_weight.dry_weight
966
 
956
 
967
-
968
       // if(this.predialysis_evaluation.id == 0){
957
       // if(this.predialysis_evaluation.id == 0){
969
       //
958
       //
970
       //
959
       //
977
       //   }
966
       //   }
978
       //
967
       //
979
       // }
968
       // }
980
-
981
     }, watch: {
969
     }, watch: {
982
       isVisibility(val) {
970
       isVisibility(val) {
983
 
971
 
984
       },
972
       },
985
       'predialysis_evaluation.id': function() {
973
       'predialysis_evaluation.id': function() {
986
-
987
         console.log(this.last_predialysis)
974
         console.log(this.last_predialysis)
988
 
975
 
989
         if (this.predialysis_evaluation.id > 0) {
976
         if (this.predialysis_evaluation.id > 0) {

+ 19 - 21
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

1214
         'hemodialysis',
1214
         'hemodialysis',
1215
         'dialysate_formulation'
1215
         'dialysate_formulation'
1216
       )
1216
       )
1217
-      this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1218
-      console.log('0000000000', this.anticoagulantsConfit)
1217
+      // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1218
+
1219
       var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
1219
       var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
1220
-      console.log('333', anticoagulantsConfitOne)
1221
-      for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
1222
-        console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
1223
-      }
1224
-      var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
1225
-      const arr = []
1226
-      anticoagulantsConfit.map((item, index) => {
1227
-        const objChild = { ...item }
1228
-        arr.push(objChild)
1229
-      })
1230
-      var arrthree = {}
1231
-      arrthree = { ...arr }
1232
-      console.log('arrthree', arrthree)
1220
+
1221
+      // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
1222
+      //   console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
1223
+      // }
1224
+      // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
1225
+      // const arr = []
1226
+      // anticoagulantsConfit.map((item, index) => {
1227
+      //   const objChild = { ...item }
1228
+      //   arr.push(objChild)
1229
+      // })
1230
+      // var arrthree = {}
1231
+      // arrthree = { ...arr }
1232
+      // console.log('arrthree', arrthree)
1233
       const arrFour = []
1233
       const arrFour = []
1234
       Object.keys(anticoagulantsConfitOne).map((item, index) => {
1234
       Object.keys(anticoagulantsConfitOne).map((item, index) => {
1235
-        Object.keys(arrthree).map((it, i) => {
1236
-          if (anticoagulantsConfitOne[item].name == arrthree[it].name) {
1237
-            arrFour.push(anticoagulantsConfitOne[item])
1238
-          }
1239
-        })
1235
+        if (index != 2) {
1236
+          arrFour.push(anticoagulantsConfitOne[item])
1237
+        }
1240
       })
1238
       })
1241
       console.log('arrFour', arrFour)
1239
       console.log('arrFour', arrFour)
1242
       this.anticoagulantsConfit = arrFour
1240
       this.anticoagulantsConfit = arrFour
1326
       ) {
1324
       ) {
1327
         return false
1325
         return false
1328
       }
1326
       }
1329
-      this.anticoagulant = this.anticoagulantsConfit[thismode]
1327
+      this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
1330
     },
1328
     },
1331
     menuMsgTip: function() {
1329
     menuMsgTip: function() {
1332
       this.msgtip_visibility = false
1330
       this.msgtip_visibility = false

Diff onderdrukt omdat het te groot bestand
+ 427 - 428
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue