XMLWAN 4 years ago
parent
commit
3c56a1f3d2

+ 3 - 0
src/xt_pages/dialysis/details/NavIgation.vue View File

@@ -95,8 +95,11 @@
95 95
       title="双人核对"
96 96
       ref="doubleCheck"
97 97
       :patient="patient"
98
+      :predialysis_evaluation="predialysis_evaluation"
99
+      :prescription="prescription"
98 100
       :double_check="double_check"
99 101
       :admin_users="admin_users"
102
+    
100 103
     ></double-check-dialog>
101 104
 
102 105
     <accepts-treatment-dialog

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

@@ -1943,29 +1943,29 @@
1943 1943
 
1944 1944
 
1945 1945
           //获取最后一次血管通路
1946
-         if(this.predialysis!=null){
1947
-            if(this.lastAssessment!=null){
1948
-              var blood_id = 0
1949
-              for(let i= 0;i<this.blood_access_option.length;i++){
1950
-                  if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
1951
-                    blood_id = this.blood_access_option[i].id
1952
-                  }
1953
-              }
1954
-               console.log("中国人名职员",this.lastAssessment)
1955
-               this.dialysisPrescription.blood_access = blood_id
1956
-            }else{
1957
-              if(this.last_prescription!=null){
1958
-                  var blood_id = 0
1959
-                  for(let i= 0;i<this.blood_access_option.length;i++){
1960
-                      if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
1961
-                        blood_id = this.blood_access_option[i].id
1962
-                      }
1963
-                  }   
1964
-                   this.dialysisPrescription.blood_access = blood_id
1965
-              }
1966
-            }
1946
+        //  if(this.predialysis!=null){
1947
+        //     if(this.lastAssessment!=null){
1948
+        //       var blood_id = 0
1949
+        //       for(let i= 0;i<this.blood_access_option.length;i++){
1950
+        //           if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
1951
+        //             blood_id = this.blood_access_option[i].id
1952
+        //           }
1953
+        //       }
1954
+        //        console.log("中国人名职员",this.lastAssessment)
1955
+        //        this.dialysisPrescription.blood_access = blood_id
1956
+        //     }else{
1957
+        //       if(this.last_prescription!=null){
1958
+        //           var blood_id = 0
1959
+        //           for(let i= 0;i<this.blood_access_option.length;i++){
1960
+        //               if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
1961
+        //                 blood_id = this.blood_access_option[i].id
1962
+        //               }
1963
+        //           }   
1964
+        //            this.dialysisPrescription.blood_access = blood_id
1965
+        //       }
1966
+        //     }
1967 1967
            
1968
-         }
1968
+        //  }
1969 1969
 
1970 1970
         if (weight_before > 0 && last_weight_after > 0) {
1971 1971
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(

+ 148 - 12
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -5,44 +5,105 @@
5 5
              width="854px">
6 6
 
7 7
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
8
+      
8 9
       <el-form-item label="透析物品核查 : ">
9 10
         <el-radio v-model="doubleReview.dialysis_item_check" label="1">正确</el-radio>
10
-        <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio>
11
+        <!-- <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio> -->
11 12
       </el-form-item>
12 13
       <el-form-item label="差错描述 : " label-width="80px">
13 14
         <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
14 15
       </el-form-item>
15 16
     </el-form>
17
+   
18
+   <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px" style="magin-left:10px">
19
+       <el-checkbox-group v-model="checkList" @change="changeBox">
20
+         <el-row>
21
+           <el-col>
22
+            <el-checkbox :label="diazes"></el-checkbox>
23
+           </el-col>
24
+         
25
+         </el-row>
26
+         <el-row>
27
+           <el-checkbox :label="puncture_needle"></el-checkbox>
28
+         </el-row>
29
+         <el-row>
30
+           <el-checkbox :label="dialysate_formulation"></el-checkbox>
31
+         </el-row>
32
+         <el-row>
33
+           <el-checkbox :label="kalium"></el-checkbox>
34
+         </el-row>
35
+         <el-row>
36
+           <el-checkbox :label="calcium"></el-checkbox>
37
+         </el-row>
38
+      
39
+       </el-checkbox-group>
40
+    </el-form>
16 41
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
17 42
       <el-form-item label="透析参数核查 : ">
18 43
         <el-radio v-model="doubleReview.dialysis_parameter_check" label="1">正确</el-radio>
19
-        <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio>
44
+        <!-- <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio> -->
20 45
       </el-form-item>
21 46
       <el-form-item label="差错描述 : " label-width="80px">
22 47
         <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
23 48
       </el-form-item>
24 49
     </el-form>
50
+    <el-form>
51
+     <el-checkbox-group v-model="checkListOne" >
52
+        <el-checkbox label="透析模式:"></el-checkbox>
53
+        <el-checkbox label="透析时长:"></el-checkbox>
54
+        <el-checkbox label="目标超滤量:"></el-checkbox>
55
+        <el-checkbox label="抗凝剂:" ></el-checkbox>
56
+        <el-checkbox label="首剂:"></el-checkbox>
57
+        <el-checkbox label="维持:"></el-checkbox>
58
+        <el-checkbox label="总量:"></el-checkbox>
59
+        <el-checkbox label="置换液:"></el-checkbox>
60
+        <el-checkbox label="置换总量:"></el-checkbox>
61
+        <el-checkbox label="处方血流量:"></el-checkbox>
62
+        <el-checkbox label="透析液流量:"></el-checkbox>
63
+     </el-checkbox-group>
64
+    </el-form>
25 65
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
26 66
       <el-form-item label="血管通路核查 : ">
27 67
 
28 68
         <el-radio v-model="doubleReview.vascular_access_verification" label="1">正确</el-radio>
29
-        <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio>
69
+        <!-- <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio> -->
30 70
 
31 71
       </el-form-item>
32 72
       <el-form-item label="差错描述 : " label-width="80px">
33 73
         <el-input v-model="doubleReview.vascular_access_desc"></el-input>
34 74
       </el-form-item>
35 75
     </el-form>
76
+    <el-form>
77
+       <el-checkbox-group v-model="checkListTwo">
78
+        <el-checkbox label="通路类型:"></el-checkbox>
79
+        <el-checkbox label="动静脉接错"></el-checkbox>
80
+        <el-checkbox label="渗血"></el-checkbox>
81
+        <el-checkbox label="压迫" ></el-checkbox>
82
+        <el-checkbox label="折叠"></el-checkbox>
83
+        <el-checkbox label="滑脱"></el-checkbox>
84
+     </el-checkbox-group>
85
+    </el-form>
36 86
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
37 87
       <el-form-item label="管道连接核查 : ">
38 88
         <el-radio v-model="doubleReview.pipeline_connection_check" label="1">正确</el-radio>
39
-        <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio>
89
+        <!-- <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio> -->
40 90
       </el-form-item>
41 91
       <el-form-item label="差错描述 : " label-width="80px">
42 92
         <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
43 93
       </el-form-item>
44 94
     </el-form>
45
-
95
+    <el-form>
96
+      <el-checkbox-group v-model="checkListThree">
97
+        <el-checkbox label="泵前补液测管未夹"></el-checkbox>
98
+        <el-checkbox label="肝素管夹未开启"></el-checkbox>
99
+        <el-checkbox label="透析器连接错误"></el-checkbox>
100
+        <el-checkbox label="动静脉壶页面不标准" ></el-checkbox>
101
+        <el-checkbox label="静脉管路未卡入保护夹"></el-checkbox>
102
+        <el-checkbox label="压力传感器夹未打开"></el-checkbox>
103
+        <el-checkbox label="接口连接松动"></el-checkbox>
104
+        <el-checkbox label="管路打折"></el-checkbox>
105
+     </el-checkbox-group>
106
+    </el-form>
46 107
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="120px">
47 108
       <el-form-item label="第一核对时间:">
48 109
         <el-time-picker
@@ -99,7 +160,7 @@
99 160
   import { postDoubleCheck } from '@/api/dialysis'
100 161
   import { uParseTime } from '@/utils/tools'
101 162
   import { parseTime } from '@/utils'
102
-
163
+  import { getDataConfig } from '@/utils/data'
103 164
   export default {
104 165
     name: 'doubleCheckDialog',
105 166
     data() {
@@ -128,8 +189,17 @@
128 189
           check_time: 0,
129 190
           first_check_time: 0
130 191
         },
131
-
132
-        record_date: ''
192
+        dialysate_formulation_options:[],
193
+        record_date: '',
194
+        checkList: [],
195
+        checkListOne:[],
196
+        checkListTwo:[],
197
+        checkListThree:[],
198
+        diazes:"透析器/灌流器:",
199
+        puncture_needle:"穿刺针:",
200
+        dialysate_formulation:"透析液配方:",
201
+        kalium:"钾:",
202
+        calcium:"钙:",
133 203
       }
134 204
     }, methods: {
135 205
       show() {
@@ -464,6 +534,46 @@
464 534
           }
465 535
         }
466 536
       },
537
+      changeBox(val){
538
+         console.log("val2222222",this.prescription)
539
+         console.log("3333333",this.predialysis_evaluation)
540
+         var arr = []
541
+         var str = val.join(';')
542
+         console.log("strw222222222",str)
543
+        if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
544
+            arr.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
545
+        }
546
+        if(str.indexOf('透析器/灌流器')!=-1 && this.prescription==null){
547
+            arr.push("透析器/灌流器:")
548
+        }
549
+        if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id!=0){
550
+           arr.push("穿刺针:"+this.predialysis_evaluation.puncture_needle)
551
+        }
552
+        if(str.indexOf('透析液配方')!=-1 && this.GetDialysateFormulationById(this.prescription.dialysate_formulation)!=null){
553
+           arr.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
554
+        }
555
+        if(str.indexOf('钾')!=-1 ){
556
+          arr.push("钾:"+this.prescription.kalium)
557
+        }
558
+        if(str.indexOf('钙')!=-1 ){
559
+          arr.push("钙:"+this.prescription.calcium)
560
+        }
561
+        console.log("arr",arr)
562
+        this.doubleReview.dialysis_item_desc = arr.join(";")
563
+      },
564
+      GetDialysateFormulationById(val) {
565
+         this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
566
+         console.log("透析液配方",this.dialysate_formulation_options)
567
+        let name = ''
568
+        let dfl = this.dialysate_formulation_options.length
569
+        for (let index = 0; index < dfl; index++) {
570
+          if (this.dialysate_formulation_options[index].id == val) {
571
+            name = this.dialysate_formulation_options[index].name
572
+            break
573
+          }
574
+        }
575
+        return name
576
+     },
467 577
     },
468 578
 
469 579
     props: {
@@ -485,13 +595,38 @@
485 595
         default: () => {
486 596
           return { id: 0 }
487 597
         }
488
-      }
598
+      },
599
+      predialysis_evaluation: { // 透前评估
600
+        type: Object,
601
+        default: () => {
602
+          return { id: 0 }
603
+        }
604
+      },
605
+      prescription: {
606
+        // 透析处方
607
+        type: Object,
608
+        default: () => {
609
+          return { id: 0 }
610
+        }
611
+      },
489 612
 
490 613
     },
491 614
     watch: {
492 615
       isVisibility(val) {
493
-
494
-      }, 'double_check.id': function() {
616
+         console.log("333333333",this.patient)
617
+        console.log("透前评估23455",this.predialysis_evaluation)
618
+        console.log("透析处方23567",this.prescription)
619
+        if(this.prescription=null && this.prescription.id!=0){
620
+          this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
621
+          this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
622
+          this.kalium = this.kalium + this.prescription.kalium
623
+          this.calcium = this.calcium + this.prescription.calcium
624
+        }
625
+        if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
626
+          this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
627
+        } 
628
+      }, 
629
+      'double_check.id': function() {
495 630
         if (this.double_check.id > 0) {
496 631
           for (var index in this.doubleReview) {
497 632
             this.doubleReview[index] = this.double_check[index] + ''
@@ -558,6 +693,7 @@
558 693
 
559 694
     },
560 695
     created() {
696
+     
561 697
       var date = this.$route.query && this.$route.query.date
562 698
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
563 699
 
@@ -571,7 +707,7 @@
571 707
         this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
572 708
       }
573 709
       this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
574
-
710
+     
575 711
     }
576 712
 
577 713
   }

+ 1 - 1
src/xt_pages/dialysis/details/index.vue View File

@@ -988,7 +988,7 @@ export default {
988 988
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
989 989
          
990 990
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
991
-         
991
+           console.log("透器评估",predialysis_evaluation)
992 992
           if (predialysis_evaluation != null) {
993 993
             if (predialysis_evaluation.blood_access_part_id == -2) {
994 994
               predialysis_evaluation.blood_access_part_id = 0

+ 3 - 1
src/xt_pages/user/components/PatientForm.vue View File

@@ -1400,6 +1400,7 @@ export default {
1400 1400
       this.submitForm(formName, "renew");
1401 1401
     },
1402 1402
     onSubmit(formName) {
1403
+      console.log("2222",this.form)
1403 1404
       this.submitForm(formName, "redict");
1404 1405
     },
1405 1406
     submitForm(formName, action) {
@@ -1603,6 +1604,7 @@ export default {
1603 1604
           if (response.data.state == 1) {
1604 1605
             this.$emit("tran-patient-info", response.data.data.patient);
1605 1606
             var patietInfo = response.data.data.patient;
1607
+            console.log("9999999",response.data.data.patient)
1606 1608
             this.form.avatar = patietInfo.avatar;
1607 1609
             this.form.name = patietInfo.name;
1608 1610
             this.form.alias = patietInfo.alias;
@@ -1644,7 +1646,7 @@ export default {
1644 1646
             if (patietInfo.source == 1 || patietInfo.source == 2) {
1645 1647
               this.form.source = patietInfo.source;
1646 1648
             }
1647
-            if (patietInfo.lapseto == 1 || patietInfo.lapseto == 2) {
1649
+            if (patietInfo.lapseto == 1 || patietInfo.lapseto == 2 || patietInfo.lapseto == 3) {
1648 1650
               this.form.lapseto = patietInfo.lapseto;
1649 1651
             }
1650 1652
             if (

+ 6 - 1
src/xt_pages/user/vascularAccess.vue View File

@@ -508,6 +508,8 @@
508 508
                    this.user_status = ""
509 509
                    this.stop_reason = ""
510 510
                    this.remark = ""
511
+                }else{
512
+                   this.$message.error("该日期数据已存在!")
511 513
                 }
512 514
              })
513 515
            }  
@@ -644,7 +646,8 @@
644 646
                 user_status:this.form.user_status,
645 647
                 stop_reason:this.form.stop_reason,
646 648
                 remark:this.form.remark,
647
-                stop_time:this.form.stop_time
649
+                stop_time:this.form.stop_time,
650
+                patient_id:this.patientID
648 651
               }
649 652
               console.log("编辑",params)
650 653
               updatedVasularAccess(params).then(response=>{
@@ -654,6 +657,8 @@
654 657
                   this.$message.success("保存成功")
655 658
                   this.editDialogVisible = false
656 659
                   this.getlist()
660
+                }else{
661
+                   this.$message.error("该日期数据已存在!")
657 662
                 }
658 663
               })
659 664
            }