XMLWAN 4 years ago
parent
commit
0d1d54da2a
1 changed files with 22 additions and 184 deletions
  1. 22 184
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue

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

@@ -4,92 +4,45 @@
4 4
              :modal-append-to-body="false"
5 5
              width="854px">
6 6
 
7
-    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
8
-      
7
+    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
9 8
       <el-form-item label="透析物品核查 : ">
10 9
         <el-radio v-model="doubleReview.dialysis_item_check" label="1">正确</el-radio>
11
-        <!-- <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio> -->
10
+        <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio>
12 11
       </el-form-item>
13
-      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
12
+      <el-form-item label="差错描述 : " label-width="80px">
14 13
         <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
15 14
       </el-form-item>
16 15
     </el-form>
17
-   
18
-   <el-form :inline="true" class="demo-form-inline newCheckBox" :model="doubleReview" label-width="110px">
19
-       <el-checkbox-group v-model="checkList" @change="changeBox">
20
-          <el-checkbox :label="diazes"></el-checkbox>
21
-          <el-checkbox :label="puncture_needle"></el-checkbox>
22
-          <el-checkbox :label="dialysate_formulation"></el-checkbox>
23
-          <el-checkbox :label="kalium"></el-checkbox>
24
-          <el-checkbox :label="calcium"></el-checkbox>
25
-       </el-checkbox-group>
26
-    </el-form>
27
-    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
16
+    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
28 17
       <el-form-item label="透析参数核查 : ">
29 18
         <el-radio v-model="doubleReview.dialysis_parameter_check" label="1">正确</el-radio>
30
-        <!-- <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio> -->
19
+        <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio>
31 20
       </el-form-item>
32
-      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
21
+      <el-form-item label="差错描述 : " label-width="80px">
33 22
         <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
34 23
       </el-form-item>
35 24
     </el-form>
36
-    <el-form class="newCheckBox">
37
-     <el-checkbox-group v-model="checkListOne" >
38
-        <el-checkbox label="透析模式:"></el-checkbox>
39
-        <el-checkbox label="透析时长:"></el-checkbox>
40
-        <el-checkbox label="目标超滤量:"></el-checkbox>
41
-        <el-checkbox label="抗凝剂:" ></el-checkbox>
42
-        <el-checkbox label="首剂:"></el-checkbox>
43
-        <el-checkbox label="维持:"></el-checkbox>
44
-        <el-checkbox label="总量:"></el-checkbox>
45
-        <el-checkbox label="置换液:"></el-checkbox>
46
-        <el-checkbox label="置换总量:"></el-checkbox>
47
-        <el-checkbox label="处方血流量:"></el-checkbox>
48
-        <el-checkbox label="透析液流量:"></el-checkbox>
49
-     </el-checkbox-group>
50
-    </el-form>
51
-    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
25
+    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
52 26
       <el-form-item label="血管通路核查 : ">
53 27
 
54 28
         <el-radio v-model="doubleReview.vascular_access_verification" label="1">正确</el-radio>
55
-        <!-- <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio> -->
29
+        <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio>
56 30
 
57 31
       </el-form-item>
58
-      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
32
+      <el-form-item label="差错描述 : " label-width="80px">
59 33
         <el-input v-model="doubleReview.vascular_access_desc"></el-input>
60 34
       </el-form-item>
61 35
     </el-form>
62
-    <el-form class="newCheckBox">
63
-       <el-checkbox-group v-model="checkListTwo">
64
-        <el-checkbox label="通路类型:"></el-checkbox>
65
-        <el-checkbox label="动静脉接错"></el-checkbox>
66
-        <el-checkbox label="渗血"></el-checkbox>
67
-        <el-checkbox label="压迫" ></el-checkbox>
68
-        <el-checkbox label="折叠"></el-checkbox>
69
-        <el-checkbox label="滑脱"></el-checkbox>
70
-     </el-checkbox-group>
71
-    </el-form>
72
-    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
36
+    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
73 37
       <el-form-item label="管道连接核查 : ">
74 38
         <el-radio v-model="doubleReview.pipeline_connection_check" label="1">正确</el-radio>
75
-        <!-- <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio> -->
39
+        <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio>
76 40
       </el-form-item>
77
-      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
41
+      <el-form-item label="差错描述 : " label-width="80px">
78 42
         <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
79 43
       </el-form-item>
80 44
     </el-form>
81
-    <el-form class="newCheckBox">
82
-      <el-checkbox-group v-model="checkListThree">
83
-        <el-checkbox label="泵前补液测管未夹"></el-checkbox>
84
-        <el-checkbox label="肝素管夹未开启"></el-checkbox>
85
-        <el-checkbox label="透析器连接错误"></el-checkbox>
86
-        <el-checkbox label="动静脉壶页面不标准" ></el-checkbox>
87
-        <el-checkbox label="静脉管路未卡入保护夹"></el-checkbox>
88
-        <el-checkbox label="压力传感器夹未打开"></el-checkbox>
89
-        <el-checkbox label="接口连接松动"></el-checkbox>
90
-        <el-checkbox label="管路打折"></el-checkbox>
91
-     </el-checkbox-group>
92
-    </el-form>
45
+
93 46
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="120px">
94 47
       <el-form-item label="第一核对时间:">
95 48
         <el-time-picker
@@ -146,7 +99,7 @@
146 99
   import { postDoubleCheck } from '@/api/dialysis'
147 100
   import { uParseTime } from '@/utils/tools'
148 101
   import { parseTime } from '@/utils'
149
-  import { getDataConfig } from '@/utils/data'
102
+
150 103
   export default {
151 104
     name: 'doubleCheckDialog',
152 105
     data() {
@@ -175,17 +128,8 @@
175 128
           check_time: 0,
176 129
           first_check_time: 0
177 130
         },
178
-        dialysate_formulation_options:[],
179
-        record_date: '',
180
-        checkList: [],
181
-        checkListOne:[],
182
-        checkListTwo:[],
183
-        checkListThree:[],
184
-        diazes:"透析器/灌流器:",
185
-        puncture_needle:"穿刺针:",
186
-        dialysate_formulation:"透析液配方:",
187
-        kalium:"钾:",
188
-        calcium:"钙:",
131
+
132
+        record_date: ''
189 133
       }
190 134
     }, methods: {
191 135
       show() {
@@ -520,63 +464,6 @@
520 464
           }
521 465
         }
522 466
       },
523
-      changeBox(val){
524
-         console.log("val2222222",this.prescription)
525
-         console.log("3333333",this.predialysis_evaluation)
526
-         var arr = []
527
-         var str = val.join(';')
528
-         console.log("strw222222222",str)
529
-        if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
530
-            arr.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus?this.prescription.dialyzer_perfusion_apparatus:"")
531
-        }
532
-
533
-       if(str.indexOf('透析器/灌流器')!=-1 && this.prescription==null){
534
-            arr.push("透析器/灌流器:")
535
-        }
536
-       
537
-        if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id!=0){
538
-           arr.push("穿刺针:"+this.predialysis_evaluation.puncture_needle)
539
-        }
540
-
541
-         if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id==0){
542
-           arr.push("穿刺针:")
543
-        }
544
-        
545
-        if(str.indexOf('透析液配方')!=-1 && this.prescription!=null){
546
-           arr.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
547
-        }
548
-
549
-       if(str.indexOf('透析液配方')!=-1 && this.prescription==null){
550
-           arr.push("透析液配方:")
551
-        }
552
-        if(str.indexOf('钾')!=-1 && this.prescription!=null ){
553
-          arr.push("钾:"+this.prescription.kalium)
554
-        }
555
-        if(str.indexOf('钾')!=-1 && this.prescription==null ){
556
-          arr.push("钾:")
557
-        }
558
-        if(str.indexOf('钙')!=-1 && this.prescription!=null ){
559
-          arr.push("钙:"+this.prescription.calcium)
560
-        }
561
-        if(str.indexOf('钙')!=-1 && this.prescription==null ){
562
-          arr.push("钙:")
563
-        }
564
-        console.log("arr",arr)
565
-        this.doubleReview.dialysis_item_desc = arr.join(";")
566
-      },
567
-      GetDialysateFormulationById(val) {
568
-         this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
569
-         console.log("透析液配方",this.dialysate_formulation_options)
570
-        let name = ''
571
-        let dfl = this.dialysate_formulation_options.length
572
-        for (let index = 0; index < dfl; index++) {
573
-          if (this.dialysate_formulation_options[index].id == val) {
574
-            name = this.dialysate_formulation_options[index].name
575
-            break
576
-          }
577
-        }
578
-        return name
579
-     },
580 467
     },
581 468
 
582 469
     props: {
@@ -598,46 +485,13 @@
598 485
         default: () => {
599 486
           return { id: 0 }
600 487
         }
601
-      },
602
-      predialysis_evaluation: { // 透前评估
603
-        type: Object,
604
-        default: () => {
605
-          return { id: 0 }
606
-        }
607
-      },
608
-      prescription: {
609
-        // 透析处方
610
-        type: Object,
611
-        default: () => {
612
-          return { id: 0 }
613
-        }
614
-      },
488
+      }
615 489
 
616 490
     },
617 491
     watch: {
618 492
       isVisibility(val) {
619
-         console.log("333333333",this.patient)
620
-        console.log("透前评估23455",this.predialysis_evaluation)
621
-        console.log("透析处方23567",this.prescription)
622
-        console.log("双人核对",this.double_check)
623
-        if(this.prescription!=null && this.prescription.id!=0){
624
-          this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
625
-          this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
626
-          this.kalium = this.kalium + this.prescription.kalium
627
-          this.calcium = this.calcium + this.prescription.calcium
628
-        }
629
-        if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
630
-          this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
631
-        } 
632
-        if(this.double_check !=null && this.double_check.id!=0){
633
-           console.log("双人核对",this.double_check)
634
-           if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
635
-             this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
636
-             console.log("222222",this.checkList)
637
-           }
638
-        }
639
-      }, 
640
-      'double_check.id': function() {
493
+
494
+      }, 'double_check.id': function() {
641 495
         if (this.double_check.id > 0) {
642 496
           for (var index in this.doubleReview) {
643 497
             this.doubleReview[index] = this.double_check[index] + ''
@@ -704,7 +558,6 @@
704 558
 
705 559
     },
706 560
     created() {
707
-     
708 561
       var date = this.$route.query && this.$route.query.date
709 562
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
710 563
 
@@ -718,27 +571,12 @@
718 571
         this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
719 572
       }
720 573
       this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
721
-     
574
+
722 575
     }
723 576
 
724 577
   }
725 578
 </script>
726 579
 
727
-<style lang="scss">
728
-.newInline{
729
-  display: flex;
730
-}
731
-.newItem{
732
-  flex: 1;
733
-  display: flex !important;
734
-  .el-form-item__content{
735
-    width: 100%;
736
-  }
737
-}
738
-.newCheckBox{
739
-  margin-bottom: 10px;
740
-  .el-checkbox{
741
-    margin-bottom: 10px;
742
-  }
743
-}
580
+<style scoped>
581
+
744 582
 </style>