Browse Source

修改字段显示问题

张保健 4 years ago
parent
commit
a5e726009a

+ 123 - 124
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -284,15 +284,15 @@
284 284
 </template>
285 285
 
286 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 290
 export default {
291
-  name: "assessmentBefore",
291
+  name: 'assessmentBefore',
292 292
   data() {
293 293
     return {
294
-      title: "透前评估 "
295
-    };
294
+      title: '透前评估 '
295
+    }
296 296
   },
297 297
   props: {
298 298
     record: {
@@ -302,319 +302,318 @@ export default {
302 302
   computed: {
303 303
     weight_before: function() {
304 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 309
     additional_weight: function() {
310 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 315
     systolic_blood_pressure: function() {
316 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 321
     last_post_dialysis: function() {
322 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 327
     dry_weight: function() {
328 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 333
     diastolic_blood_pressure: function() {
334 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 339
     dialysis_interphase: function() {
340 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 345
     catheter: function() {
346 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 353
     temperature: function() {
354 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 359
     pulse_frequency: function() {
360 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 365
     machine_type: function() {
366 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 371
     breathing_rate: function() {
372 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 377
     symptom_before_dialysis: function() {
378 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 383
     complication: function() {
384 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 389
     internal_fistula: function() {
390 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 396
     internal_fistula_skin: function() {
398 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 403
     is_hemorrhage: function() {
405 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 409
     hemorrhage: function() {
411 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 415
     hemorrhage_other: function() {
417 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 422
     remark: function() {
424 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 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 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 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 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 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 459
       if (this.record.blood_access_internal_fistula == undefined) {
461
-        name1 = "";
460
+        name1 = ''
462 461
       } else {
463
-        name1 = this.record.blood_access_internal_fistula + ",";
462
+        name1 = this.record.blood_access_internal_fistula + ','
464 463
       }
465 464
       if (this.record.internal_fistula_other == undefined) {
466
-        name2 = "";
465
+        name2 = ''
467 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 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 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 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 491
   methods: {
493 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 495
       for (let i = 0; i < BloodAccessPart.length; i++) {
497 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 502
     getBloodAccessOpera: function(id) {
504 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 508
       for (let i = 0; i < BloodAccessOpera.length; i++) {
510 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 516
     getBloodAccessInternalFistula: function(id) {
518 517
       var BloodAccessInternalFistulaOptions = this.$store.getters
519
-        .blood_access_internal_fistula;
520
-      var BloodAccessInternalFistulaName = "";
518
+        .blood_access_internal_fistula
519
+      var BloodAccessInternalFistulaName = ''
521 520
       for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
522 521
         if (BloodAccessInternalFistulaOptions[i].id == id) {
523 522
           BloodAccessInternalFistulaName =
524
-            BloodAccessInternalFistulaOptions[i].name;
523
+            BloodAccessInternalFistulaOptions[i].name
525 524
         }
526 525
       }
527
-      return BloodAccessInternalFistulaName;
526
+      return BloodAccessInternalFistulaName
528 527
     },
529 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 531
       for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
533 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 538
     getVenousCatheterization: function(id) {
540 539
       var VenousCatheterizationOptions = this.$store.getters
541
-        .venous_catheterization;
542
-      var VenousCatheterizationName = "";
540
+        .venous_catheterization
541
+      var VenousCatheterizationName = ''
543 542
       for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
544 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 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 552
       for (let i = 0; i < PunctureWayOptions.length; i++) {
554 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 559
     getVenousCatheterizationPart: function(id) {
561 560
       var venousCatheterizationPartOptions = this.$store.getters
562
-        .venous_catheterization_part;
563
-      var venousCatheterizationPartName = "";
561
+        .venous_catheterization_part
562
+      var venousCatheterizationPartName = ''
564 563
       for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
565 564
         if (venousCatheterizationPartOptions[i].id == id) {
566 565
           venousCatheterizationPartName =
567
-            venousCatheterizationPartOptions[i].name;
566
+            venousCatheterizationPartOptions[i].name
568 567
         }
569 568
       }
570
-      return venousCatheterizationPartName;
569
+      return venousCatheterizationPartName
571 570
     },
572 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 574
       for (let i = 0; i < ductusArantiiOptions.length; i++) {
576 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 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 584
       for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
586 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 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 594
       for (let i = 0; i < filedList.length; i++) {
596 595
         if (
597 596
           filedList[i].module == 3 &&
598 597
           filedList[i].filed_name_cn == name &&
599 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 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 608
       for (let i = 0; i < skinOptions.length; i++) {
610 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 617
 </script>
619 618
 
620 619
 <style rel="stylesheet/scss" lang="scss" scoped></style>

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

@@ -241,7 +241,7 @@
241 241
               <el-select v-model="assessmentBeforeDislysis.puncture_way">
242 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 245
                            :key="item.id"></el-option>
246 246
               </el-select>
247 247
             </el-form-item>
@@ -498,7 +498,7 @@
498 498
 <script>
499 499
   import multiSelectBox from './MultiSelectBox'
500 500
   import { getDataConfig } from '@/utils/data'
501
-  import { postAssessmentBeforeDislysis,CreateDryWeight } from '@/api/dialysis'
501
+  import { postAssessmentBeforeDislysis, CreateDryWeight } from '@/api/dialysis'
502 502
   import store from '@/store'
503 503
   import { uParseTime } from '@/utils/tools'
504 504
 
@@ -511,15 +511,15 @@
511 511
     name: 'assessment-after-dislysis-dialog',
512 512
     data() {
513 513
       return {
514
-        showTxt:'',
515
-        hasPermission:true,
514
+        showTxt: '',
515
+        hasPermission: true,
516 516
         weight_adjust: {
517 517
           weight: '',
518 518
           doctor: '',
519 519
           remark: ''
520 520
 
521 521
         },
522
-        lastPredialysisEvaluation:null,
522
+        lastPredialysisEvaluation: null,
523 523
         lastDryWeightDislysis: null,
524 524
         doctorOptions: [],
525 525
         isVisibility: false,
@@ -593,7 +593,8 @@
593 593
           titles: '',
594 594
           type: '' // 不同弹框类型,用来匹配数据
595 595
         },
596
-        machineType:[],
596
+        machineType: [],
597
+        puncture_ways: ''
597 598
 
598 599
       }
599 600
     },
@@ -620,11 +621,9 @@
620 621
 
621 622
     },
622 623
     methods: {
623
-      setLastRecord(lastPredialysisEvaluation,lastDryWeightDislysis){
624
+      setLastRecord(lastPredialysisEvaluation, lastDryWeightDislysis) {
624 625
         this.lastPredialysisEvaluation = lastPredialysisEvaluation
625 626
         this.lastDryWeightDislysis = lastDryWeightDislysis
626
-
627
-
628 627
       },
629 628
       isShow(name) {
630 629
         var filedList = store.getters.xt_user.fileds
@@ -637,7 +636,7 @@
637 636
       },
638 637
       show(assessment) {
639 638
         this.assessment = assessment
640
-        console.log("透前",assessment)
639
+        console.log('透前', assessment)
641 640
         this.getPermission()
642 641
         this.isVisibility = true
643 642
         for (let i = 0; i < this.admin_users.length; i++) {
@@ -649,22 +648,19 @@
649 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 653
             this.weight_adjust.weight = this.lastDryWeightDislysis.dry_weight
656 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 657
               this.weight_adjust.weight = this.lastPredialysisEvaluation.dry_weight
661 658
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
662 659
             }
663 660
           }
664
-        }else{
661
+        } else {
665 662
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
666 663
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
667
-
668 664
         }
669 665
       },
670 666
       hide() {
@@ -817,36 +813,32 @@
817 813
       }, innerDialogCancle: function() {
818 814
         this.InnerDialogProps.visibility = false
819 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 823
         const ParamsQuery = arr
828
-        console.log("paramsquery",ParamsQuery)
824
+        console.log('paramsquery', ParamsQuery)
829 825
         ParamsQuery['patient'] = this.patient.id
830 826
         ParamsQuery['record_date'] = this.record_date
831
-        ParamsQuery['mode'] = "1"
827
+        ParamsQuery['mode'] = '1'
832 828
 
833 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 844
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
@@ -876,21 +868,19 @@
876 868
         this.isVisibility = false
877 869
       }, showDryWeightDialog: function() {
878 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 874
         this.dialogFormVisible = true
883 875
         this.isVisibility = false
884
-
885 876
       }, submitDryWeight() {
886
-
887
-        let params = {
888
-          id:this.patient.id,
877
+        const params = {
878
+          id: this.patient.id,
889 879
           dry_weight: this.weight_adjust.weight,
890 880
           remark: this.weight_adjust.remark,
891 881
           doctor_id: this.weight_adjust.doctor,
892
-          mode : "1",
893
-        };
882
+          mode: '1'
883
+        }
894 884
         CreateDryWeight(params).then(response => {
895 885
           if (response.data.state == 0) {
896 886
             this.$message.error(response.data.msg)
@@ -902,41 +892,41 @@
902 892
             this.isVisibility = true
903 893
           }
904 894
         })
905
-      },cancleDryWeight(){
895
+      }, cancleDryWeight() {
906 896
         this.dialogFormVisible = false
907 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 907
         }).then(res => {
918 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 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 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 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 928
                 this.hasPermission = false
939
-                this.showTxt = "你没有新增透前评估权限"
929
+                this.showTxt = '你没有新增透前评估权限'
940 930
               }
941 931
             }
942 932
           }
@@ -950,21 +940,20 @@
950 940
       this.catheter = getDataConfig('hemodialysis', 'catheter')
951 941
       this.complication = getDataConfig('hemodialysis', 'complication')
952 942
       this.hemorrhage = getDataConfig('hemodialysis', 'hemorrhage')
943
+      this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
953 944
       this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
954 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 947
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
957 948
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
958 949
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
959
-      this.machineType = getDataConfig('hemodialysis','machine_type')
950
+      this.machineType = getDataConfig('hemodialysis', 'machine_type')
960 951
       this.blood_access_noise = this.$store.getters.blood_access_noise
961 952
       var date = this.$route.query && this.$route.query.date
962 953
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
963 954
 
964
-
965 955
       // this.weight_adjust.weight = this.dry_weight.dry_weight
966 956
 
967
-
968 957
       // if(this.predialysis_evaluation.id == 0){
969 958
       //
970 959
       //
@@ -977,13 +966,11 @@
977 966
       //   }
978 967
       //
979 968
       // }
980
-
981 969
     }, watch: {
982 970
       isVisibility(val) {
983 971
 
984 972
       },
985 973
       'predialysis_evaluation.id': function() {
986
-
987 974
         console.log(this.last_predialysis)
988 975
 
989 976
         if (this.predialysis_evaluation.id > 0) {

+ 19 - 21
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -1214,29 +1214,27 @@ export default {
1214 1214
         'hemodialysis',
1215 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 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 1233
       const arrFour = []
1234 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 1239
       console.log('arrFour', arrFour)
1242 1240
       this.anticoagulantsConfit = arrFour
@@ -1326,7 +1324,7 @@ export default {
1326 1324
       ) {
1327 1325
         return false
1328 1326
       }
1329
-      this.anticoagulant = this.anticoagulantsConfit[thismode]
1327
+      this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
1330 1328
     },
1331 1329
     menuMsgTip: function() {
1332 1330
       this.msgtip_visibility = false

File diff suppressed because it is too large
+ 427 - 428
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue