Selaa lähdekoodia

9月20日,打印单核查

yq1 1 kuukausi sitten
vanhempi
commit
51940b20d4

+ 109 - 100
src/pages/main/template/DialysisPrintOrderServentyFour.vue Näytä tiedosto

@@ -473,111 +473,110 @@ export default {
473 473
   },
474 474
   methods: {
475 475
     checkData(){
476
-      if(this.receiverTreatmentAccess.sick_condition == 0){
477
-        this.$message.error('病情评估未填')
478
-      }else if(this.receiverTreatmentAccess.way == 0){
479
-        this.$message.error('入科方式未填')
480
-      }else if(this.prescription.mode_id == ""){
481
-        this.$message.error('净化治疗方式未填')
482
-      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
483
-        this.$message.error('透析器或灌流器未填')
484
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
485
-        this.$message.error('血管通路未填')
486
-      }else if(this.predialysis.weight_before == 0){
487
-        this.$message.error('透前体重未填')
488
-      }else if(this.predialysis.dry_weight == 0){
489
-        this.$message.error('干体重未填')
490
-      }else if(this.prescription.target_ultrafiltration == 0){
491
-        this.$message.error('预脱水量未填')
492
-      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
493
-        this.$message.error('透析时间未填')
494
-      }else if(this.prescription.blood_flow_volume == 0){
495
-        this.$message.error('血流量未填')
496
-      }else if(this.prescription.displace_liqui_part == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
497
-        this.$message.error('置换方式未填')
498
-      }else if(this.prescription.displace_liqui_value == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
499
-        this.$message.error('置换量未填')
500
-      }else if(this.prescription.anticoagulant == 0){
501
-        this.$message.error('抗凝剂未填')
502
-      }else if(this.prescription.calcium == 0 && this.prescription.dialysate_formulation != 0){
503
-        this.$message.error('钙未填')
504
-      }else if(this.prescription.sodium == 0 && this.prescription.dialysate_formulation != 0){
505
-        this.$message.error('钠未填')
506
-      }else if(this.prescription.kalium == 0 && this.prescription.dialysate_formulation != 0){
507
-        this.$message.error('钾未填')
508
-      }else if(this.predialysis.complication == ''){
509
-        this.$message.error('透前并发症未填')
510
-      }else if(this.doctorForm.doctor == ""){
511
-        this.$message.error('医生签名未填')
512
-      }else if(this.orderForm.start_nurse == ""){
513
-        this.$message.error('上机护士未填')
514
-      }else if(this.check.modifier == 0){
515
-        this.$message.error('核对护士未填')
516
-      }else if(this.finshForm.finish_nurse == ""){
517
-        this.$message.error('下机护士未填')
518
-      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
519
-        this.$message.error('透后血压未填完整')
520
-      }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
521
-        this.$message.error('实际治疗时间未填')
522
-      }else if(this.afterdialysis.actual_ultrafiltration == 0){
523
-        this.$message.error('实际超滤量未填')
524
-      }else if(this.afterdialysis.puncture_point_oozing_blood == 0){
525
-        this.$message.error('拔针后穿刺点渗血未填')
526
-      }else if(this.afterdialysis.puncture_point_haematoma == 0){
527
-        this.$message.error('穿刺处血肿未填')
528
-      }else if(this.afterdialysis.internal_fistula == ""){
529
-        this.$message.error('压迫后内瘘震颤未填')
530
-      }else if(this.afterdialysis.complication == ''){
531
-        this.$message.error('透后并发症未填')
532
-      }else if(this.afterdialysis.cruor == ""){
533
-        this.$message.error('透析器凝血未填')
534
-      }else if(this.summary.dialysis_summary == ""){
535
-        this.$message.error('透析小结未填')
536
-      }else if(this.tableAdvice.length > 0){
537
-        let num = 0
476
+      var checkDate =[]
477
+      if(this.predialysis.symptom_before_dialysis_other == '' &&
478
+        this.predialysis.symptom_before_dialysis == ''
479
+      ){
480
+        const obj = "上机前病情"
481
+        checkDate.push(obj)
482
+      } if(this.prescription.mode == ""){
483
+        const obj2 = "治疗方式"
484
+        checkDate.push(obj2)
485
+      } if(this.prescription.displace_liqui_value == "" &&
486
+        (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
487
+          const obj3 = "置换量"
488
+          checkDate.push(obj3)
489
+      } if(this.afterdialysis.actual_treatment_hour == '' && 
490
+          this.afterdialysis.actual_treatment_minute == ''
491
+      ){
492
+        const obj4 = "治疗时间"
493
+        checkDate.push(obj4)
494
+      } if(this.prescription.anticoagulant == ''){
495
+        const obj5 = "抗凝剂未填"
496
+        checkDate.push(obj5)
497
+      } if(this.prescription.anticoagulant_shouji == 0 && this.prescription.anticoagulant=='普通肝素'){
498
+        const obj6 = "首剂"
499
+        checkDate.push(obj6)
500
+      } if(this.prescription.anticoagulant_weichi == 0 && this.prescription.anticoagulant=='普通肝素'){
501
+        const obj7 = "维持"
502
+        checkDate.push(obj7)
503
+      } if(this.prescription.anticoagulant_zongliang == 0 && this.prescription.anticoagulant=='普通肝素'){
504
+        const obj8 = "总量"
505
+        checkDate.push(obj8)
506
+      } if(this.prescription.prescription_water == 0){
507
+        const obj14 = "处方脱水量"
508
+        checkDate.push(obj14)
509
+      } if(this.prescription.dialysate_flow == ''){
510
+        const obj16 = "透析液流量"
511
+        checkDate.push(obj16)
512
+      } if(this.prescription.creater == ""){
513
+        const obj15 = "医生签名"
514
+        checkDate.push(obj15)
515
+      } if (this.predialysis.machine_type == '') {
516
+        const obj19 = "透析机"
517
+        checkDate.push(obj19)
518
+      } if (
519
+        this.prescription.dialysis_irrigation == '' &&
520
+        this.prescription.dialysis_dialyszers == '' &&
521
+        this.prescription.dialysis_strainer == ''
522
+      ){
523
+        const obj18 = "透析(滤)器"
524
+        checkDate.push(obj18)
525
+      } if (this.prescription.calcium == 0) {
526
+        const obj37 = "钙"
527
+        checkDate.push(obj37)
528
+      } if (this.prescription.sodium == 0) {
529
+        const obj38 = "钠"
530
+        checkDate.push(obj38)
531
+      } if (this.prescription.kalium == 0) {
532
+        const obj39 = "钾"
533
+        checkDate.push(obj39)
534
+      } if (this.prescription.bicarbonate == 0) {
535
+        const obj40 = "碳酸氢根"
536
+        checkDate.push(obj40)
537
+      } if (this.predialysis.blood_access_part_opera_name == ''){
538
+        const obj20 = "血管通路"
539
+        checkDate.push(obj20)
540
+      } if (this.dialysisOrder == null ||
541
+        this.dialysisOrder.puncture_nurse == 0
542
+      ) {
543
+        const obj21 = "穿刺者"
544
+        checkDate.push(obj21)
545
+      } if(this.summary.dialysis_summary == ""){
546
+        const obj22 = "透析小结"
547
+        checkDate.push(obj22)
548
+      } if(this.lastWeight.weight_after == 0){
549
+        const obj9 = "上次透后体重"
550
+        checkDate.push(obj9)
551
+      } if(this.predialysis.weight_before == 0){
552
+        const obj10 = "透前体重"
553
+        checkDate.push(obj10)
554
+      } if(this.predialysis.dry_weight == 0){
555
+        const obj11 = "干体重"
556
+        checkDate.push(obj11)
557
+      } if(this.afterdialysis.weight_after == 0){
558
+        const obj12 = "透后体重"
559
+        checkDate.push(obj12)
560
+      } if(this.afterdialysis.actual_ultrafiltration == 0){
561
+        const obj33 = "净脱水量"
562
+        checkDate.push(obj33)
563
+      } if (
564
+        this.dialysisOrder == null ||
565
+        this.dialysisOrder.start_nurse == 0
566
+      ) {
567
+        const obj23 = "护士签名"
568
+        checkDate.push(obj23)
569
+      } if(this.tableAdvice.length > 0){
538 570
         this.tableAdvice.map(item => {
539 571
           if(item.id > 0 && (item.created_time || item.start_time)){
540
-            this.users.map(it => {
541
-              if(it.id == item.advice_doctor){
542
-                if(it.user_type == 3){
543
-                  num++
544
-                  this.$message.closeAll()
545
-                  this.$message.error('存在不是医生保存的医嘱')
546
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
547
-                  if(it.user_type == 2){
548
-                    num++
549
-                    this.$message.closeAll()
550
-                    this.$message.error('存在不是护士执行的医嘱')
551
-                  }
552
-                }else if(it.id == item.checker && item.checker > 0){
553
-                  if(it.user_type == 2){
554
-                    num++
555
-                    this.$message.closeAll()
556
-                    this.$message.error('存在不是护士核对的医嘱')
557
-                  }
558
-                }
559
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
560
-                if(it.user_type == 2){
561
-                  num++
562
-                  this.$message.closeAll()
563
-                  this.$message.error('存在不是护士执行的医嘱')
564
-                }
565
-              }else if(it.id == item.checker && item.checker > 0){
566
-                if(it.user_type == 2){
567
-                  num++
568
-                  this.$message.closeAll()
569
-                  this.$message.error('存在不是护士核对的医嘱')
570
-                }
571
-              }
572
-            })
572
+            if(item.execution_staff ==0 || item.checker ==0){
573
+              const obj24 = '执行,核对'
574
+              checkDate.push(obj24)
575
+            }
573 576
           }
574 577
         })
575
-        if(num == 0){
576
-          this.$message.success('核对完成')
577
-        }
578
-      }else{
579
-        this.$message.success('核对完成')
580 578
       }
579
+      this.getcheckData(checkDate)
581 580
     },
582 581
     getUser() {
583 582
       fetchAllAdminUsers().then(response => {
@@ -1061,6 +1060,16 @@ export default {
1061 1060
         }
1062 1061
       }
1063 1062
       return displace_liqui_part_name;
1063
+    },
1064
+    getcheckData(val){
1065
+      if(val.length >0){
1066
+        const a = val.join(',')
1067
+        console.log('a',a);
1068
+        this.$toast(a +" 未填");
1069
+        return a
1070
+      }else{
1071
+        this.$toast('核对完成');
1072
+      }
1064 1073
     }
1065 1074
   },
1066 1075
   watch: {

+ 179 - 0
src/pages/main/template/DialysisPrintOrderseventyfive.vue Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box-1" style="margin-left: 10px;">
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
3 4
     <div id="dialysis-print-box-1-1"
4 5
         class="dialysis-print-order print-template-two print_page_main_content"
5 6
       >
@@ -1018,6 +1019,174 @@ export default {
1018 1019
     }
1019 1020
   },
1020 1021
   methods: {
1022
+    checkData() {
1023
+      var checkDate =[]
1024
+      if (
1025
+        this.predialysis.blood_access_part_id == "" &&
1026
+        this.predialysis.blood_access_part_opera_name == ""
1027
+      ) {
1028
+        const obj10 = '血管通路'
1029
+        checkDate.push(obj10);
1030
+      } 
1031
+      if (this.dialysisOrder !=null &&
1032
+          this.dialysisOrder.DeviceNumber.number == '' &&
1033
+          this.patientInfo.DialysisSchedule.device_number.number == ""
1034
+      ) {
1035
+        const obj9 = '透析机'
1036
+        checkDate.push(obj9);
1037
+      } 
1038
+      if (this.dialysisOrder !=null && 
1039
+        this.dialysisOrder.dialysis_dialyszers == "" &&
1040
+        this.dialysisOrder.dialysis_strainer == ""
1041
+      ) {
1042
+        const obj17 = '透析(滤)器'
1043
+        checkDate.push(obj17);
1044
+      } if (this.prescription.mode == "") {
1045
+        const obj13 = '治疗方式'
1046
+        checkDate.push(obj13);
1047
+      } if (
1048
+        this.prescription.displace_liqui_value == 0 &&
1049
+        this.prescription.mode_id == 2
1050
+      ) {
1051
+        const obj15 = '置换量'
1052
+        checkDate.push(obj15);
1053
+      } if (this.dialysisOrder !=null && 
1054
+          this.dialysisOrder.dialysis_irrigation != '0'
1055
+      ) {
1056
+        const obj18 = '灌流器'
1057
+        checkDate.push(obj18);
1058
+      } if (this.predialysis.puncture_way == "") {
1059
+        const obj6 = '穿刺方式'
1060
+        checkDate.push(obj6);
1061
+      } if (this.prescription.anticoagulant_name == '') {
1062
+        const obj28 = '抗凝方式'
1063
+        checkDate.push(obj28);
1064
+      } if (
1065
+        this.prescription.anticoagulant_shouji == "" &&
1066
+        this.prescription.anticoagulant_name == '肝素钠'
1067
+      ) {
1068
+        const obj30 = '首剂'
1069
+        checkDate.push(obj30);
1070
+      } if (
1071
+        this.prescription.anticoagulant_weichi == "" &&
1072
+        this.prescription.anticoagulant_name == '肝素钠'
1073
+      ) {
1074
+        const obj31 = '追加'
1075
+        checkDate.push(obj31);
1076
+      } if (this.predialysis.temperature == "") {
1077
+        const obj2 = '透前体温'
1078
+        checkDate.push(obj2);
1079
+      } if (this.predialysis.pulse_frequency == "") {
1080
+        const obj3 = '透前脉搏'
1081
+        checkDate.push(obj3);
1082
+      } if (
1083
+        this.predialysis.systolic_blood_pressure == 0 ||
1084
+        this.predialysis.diastolic_blood_pressure == 0
1085
+      ) {
1086
+        const obj5 = '透前血压'
1087
+        checkDate.push(obj5);
1088
+      } if (this.predialysis.dry_weight == '') {
1089
+        const obj21 = '干体重'
1090
+        checkDate.push(obj21);
1091
+      } if (this.prescription.target_ultrafiltration == '') {
1092
+        const obj = '医嘱脱水量'
1093
+        checkDate.push(obj);
1094
+      } if (this.prescription.dialysis_duration_hour == "" &&
1095
+        this.prescription.dialysis_duration_minute == ''
1096
+      ) {
1097
+        const obj8 = '治疗时间'
1098
+        checkDate.push(obj8);
1099
+      } if (this.predialysis.puncture_needle == "") {
1100
+        const obj7 = '穿刺针'
1101
+        checkDate.push(obj7);
1102
+      } if (this.prescription.creater == 0) {
1103
+        const obj52 = '医生签名'
1104
+        checkDate.push(obj52);
1105
+      } if (this.prescription.remark == 0) {
1106
+        const objq = '特殊医嘱'
1107
+        checkDate.push(objq);
1108
+      } if (
1109
+        this.dialysisOrder != null &&
1110
+        this.dialysisOrder.puncture_nurse == 0
1111
+      ) {
1112
+        const obj47 = '上机护士'
1113
+        checkDate.push(obj47);
1114
+      } if (
1115
+        this.dialysisOrder != null &&
1116
+        this.dialysisOrder.start_nurse == 0
1117
+      ) {
1118
+        const obj48 = '责任护士'
1119
+        checkDate.push(obj48);
1120
+      } if (this.check != null && this.check.modifier == 0) {
1121
+        const obj49 = '核对护士'
1122
+        checkDate.push(obj49);
1123
+      } if (this.afterdialysis.internal_fistula == "") {
1124
+        const obj39 = '穿刺'
1125
+        checkDate.push(obj39);
1126
+      } if (this.afterdialysis.cruor == "") {
1127
+        const obj11 = '透析器'
1128
+        checkDate.push(obj11);
1129
+      } if (this.afterdialysis.is_eat == "") {
1130
+        const obj12 = '透析中进食'
1131
+        checkDate.push(obj12);
1132
+      } if (
1133
+        this.afterdialysis.actual_treatment_hour == 0 &&
1134
+        this.afterdialysis.actual_treatment_minute == 0
1135
+      ) {
1136
+        const obj37 = '实际治疗时间'
1137
+        checkDate.push(obj37);
1138
+      } if (this.predialysis.weight_before == 0) {
1139
+        const obj20 = '透前体重'
1140
+        checkDate.push(obj20);
1141
+      } if (this.afterdialysis.weight_after == 0) {
1142
+        const obj41 = '透后体重'
1143
+        checkDate.push(obj41);
1144
+      } if (
1145
+        this.afterdialysis.systolic_blood_pressure == 0 ||
1146
+        this.afterdialysis.diastolic_blood_pressure == 0
1147
+      ) {
1148
+        const obj36 = '透后血压'
1149
+        checkDate.push(obj36);
1150
+      } if (this.afterdialysis.pulse_frequency == 0) {
1151
+        const obj34 = '透后脉搏'
1152
+        checkDate.push(obj34);
1153
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
1154
+        const obj16 = '实际脱水量'
1155
+        checkDate.push(obj16);
1156
+      } if (this.afterdialysis.actual_displacement == '') {
1157
+        const obj14 = '实际置换量'
1158
+        checkDate.push(obj14);
1159
+      } if (this.summary.dialysis_summary == "") {
1160
+        const obj45 = '透析小结'
1161
+        checkDate.push(obj45);
1162
+      } if (this.summary.mission == '') {
1163
+        const obj46 = '宣教知识'
1164
+        checkDate.push(obj46);
1165
+      } if (this.prescription.calcium == 0) {
1166
+        const obj23 = '钙'
1167
+        checkDate.push(obj23);
1168
+      } if (this.prescription.sodium == 0) {
1169
+        const obj24 = '钠'
1170
+        checkDate.push(obj24);
1171
+      } if (this.prescription.kalium == 0) {
1172
+        const obj25 = '钾'
1173
+        checkDate.push(obj25);
1174
+      } if (this.doctor_advices.length > 0) {
1175
+        console.log('12122this.doctor_advices',this.doctor_advices);
1176
+        
1177
+        this.doctor_advices.map((item) => {
1178
+          if (item.id > 0 && (item.created_time || item.start_time)) {
1179
+            if(item.advice_doctor ==0 && item.execution_staff == 0){
1180
+              const obj53 = '医嘱医生,执行'
1181
+              checkDate.push(obj53);
1182
+            }
1183
+          }
1184
+        });
1185
+      }
1186
+      console.log('checkDate',checkDate);
1187
+      
1188
+      this.getcheckData(checkDate)
1189
+    },
1021 1190
     getDisplaceLiquiPart: function (val) {
1022 1191
       let displace_liqui_part_name = '/'
1023 1192
       let displace_liqui_part = this.displaceLiquiPartOptions
@@ -1492,6 +1661,16 @@ export default {
1492 1661
           return 'ml'
1493 1662
           break
1494 1663
       }
1664
+    },
1665
+    getcheckData(val){
1666
+      if(val.length >0){
1667
+        const a = val.join(',')
1668
+        console.log('a',a);
1669
+        this.$toast(a +" 未填");
1670
+        return a
1671
+      }else{
1672
+        this.$toast('核对完成')
1673
+      }
1495 1674
     }
1496 1675
   },
1497 1676
   watch: {

+ 130 - 101
src/pages/main/template/DialysisPrintOrderseventyone.vue Näytä tiedosto

@@ -4,7 +4,7 @@
4 4
     <div id="dialysis-print-box">
5 5
         <div class="dialysis-print-order">
6 6
           <div class="order-yy-name">{{orgname}}</div>
7
-          <div class="order-title">血液净化治疗记录单3333</div>
7
+          <div class="order-title">血液净化治疗记录单</div>
8 8
 
9 9
           <div style="display: flex;border: 1px solid black;padding: 5px;">
10 10
             <div style="flex: 1;">
@@ -677,111 +677,130 @@ export default {
677 677
   },
678 678
   methods: {
679 679
     checkData(){
680
-      if(this.receiverTreatmentAccess.sick_condition == 0){
681
-        this.$message.error('病情评估未填')
682
-      }else if(this.receiverTreatmentAccess.way == 0){
683
-        this.$message.error('入科方式未填')
684
-      }else if(this.prescription.mode_id == ""){
685
-        this.$message.error('净化治疗方式未填')
686
-      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
687
-        this.$message.error('透析器或灌流器未填')
688
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
689
-        this.$message.error('血管通路未填')
690
-      }else if(this.predialysis.weight_before == 0){
691
-        this.$message.error('透前体重未填')
692
-      }else if(this.predialysis.dry_weight == 0){
693
-        this.$message.error('干体重未填')
694
-      }else if(this.prescription.target_ultrafiltration == 0){
695
-        this.$message.error('预脱水量未填')
696
-      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
697
-        this.$message.error('透析时间未填')
698
-      }else if(this.prescription.blood_flow_volume == 0){
699
-        this.$message.error('血流量未填')
700
-      }else if(this.prescription.displace_liqui_part == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
701
-        this.$message.error('置换方式未填')
702
-      }else if(this.prescription.displace_liqui_value == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
703
-        this.$message.error('置换量未填')
704
-      }else if(this.prescription.anticoagulant == 0){
705
-        this.$message.error('抗凝剂未填')
706
-      }else if(this.prescription.calcium == 0 && this.prescription.dialysate_formulation != 0){
707
-        this.$message.error('钙未填')
708
-      }else if(this.prescription.sodium == 0 && this.prescription.dialysate_formulation != 0){
709
-        this.$message.error('钠未填')
710
-      }else if(this.prescription.kalium == 0 && this.prescription.dialysate_formulation != 0){
711
-        this.$message.error('钾未填')
712
-      }else if(this.predialysis.complication == ''){
713
-        this.$message.error('透前并发症未填')
714
-      }else if(this.doctorForm.doctor == ""){
715
-        this.$message.error('医生签名未填')
716
-      }else if(this.orderForm.start_nurse == ""){
717
-        this.$message.error('上机护士未填')
718
-      }else if(this.check.modifier == 0){
719
-        this.$message.error('核对护士未填')
720
-      }else if(this.finshForm.finish_nurse == ""){
721
-        this.$message.error('下机护士未填')
722
-      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
723
-        this.$message.error('透后血压未填完整')
724
-      }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
725
-        this.$message.error('实际治疗时间未填')
726
-      }else if(this.afterdialysis.actual_ultrafiltration == 0){
727
-        this.$message.error('实际超滤量未填')
728
-      }else if(this.afterdialysis.puncture_point_oozing_blood == 0){
729
-        this.$message.error('拔针后穿刺点渗血未填')
730
-      }else if(this.afterdialysis.puncture_point_haematoma == 0){
731
-        this.$message.error('穿刺处血肿未填')
732
-      }else if(this.afterdialysis.internal_fistula == ""){
733
-        this.$message.error('压迫后内瘘震颤未填')
734
-      }else if(this.afterdialysis.complication == ''){
735
-        this.$message.error('透后并发症未填')
736
-      }else if(this.afterdialysis.cruor == ""){
737
-        this.$message.error('透析器凝血未填')
738
-      }else if(this.summary.dialysis_summary == ""){
739
-        this.$message.error('透析小结未填')
740
-      }else if(this.tableAdvice.length > 0){
741
-        let num = 0
680
+      var checkDate =[]
681
+      if(this.patientInfo.name == ''){
682
+        const obj ='姓名'
683
+        checkDate.push(obj)
684
+      } if(this.patientInfo.gender ==''){
685
+        const obj1 ='性别'
686
+        checkDate.push(obj1)
687
+      } if(this.patientInfo.id_card_no ==''){
688
+        const obj2 ='年龄'
689
+        checkDate.push(obj2)
690
+      } if(this.patientInfo.dialysis_no == ''){
691
+        const obj3 ='透析号'
692
+        checkDate.push(obj3)
693
+      } if(this.queryParams.xtdate == ''){
694
+        const obj4 ='治疗日期'
695
+        checkDate.push(obj4)
696
+      } if(this.patientInfo.DialysisSchedule.device_zone.name == ''){
697
+        const obj5 ='治疗区域'
698
+        checkDate.push(obj5)
699
+      } if(this.dialysisOrder == '' && 
700
+          this.dialysisOrder.DeviceNumber.number =='' && 
701
+          this.patientInfo.DialysisSchedule.device_number.number ==''
702
+      ){
703
+        const obj6 ='透析床号'
704
+        checkDate.push(obj6)
705
+      } if(this.predialysis.symptom_before_dialysis == '' && 
706
+        this.predialysis.symptom_before_dialysis_other == ''
707
+      ){
708
+        const obj7 ='上机前病情'
709
+        checkDate.push(obj7)
710
+      } if(this.prescription.mode ==''){
711
+        const obj8 ='治疗方式'
712
+        checkDate.push(obj8)
713
+      } if(this.prescription.displace_liqui_part =='' && 
714
+            this.prescription.mode_id == 2 && 
715
+            this.prescription.mode_id == 5 && this.prescription.mode_id == 12
716
+      ){
717
+        const obj9 ='置换方式'
718
+        checkDate.push(obj9)
719
+      } if(this.prescription.displace_liqui_value =='' && this.prescription.mode_id == 2){
720
+        const obj10 ='置换量 '
721
+        checkDate.push(obj10)
722
+      } if(this.prescription.dialysis_duration_hour =='' &&
723
+          this.prescription.dialysis_duration_minute == ''
724
+      ){
725
+        const obj11 ='治疗时间'
726
+        checkDate.push(obj11)
727
+      } if(this.prescription.anticoagulant ==''){
728
+        const obj12 ='抗凝剂'
729
+        checkDate.push(obj12)
730
+      } if(this.prescription.anticoagulant_shouji ==''){
731
+        const obj13 ='首剂'
732
+        checkDate.push(obj13)
733
+      } if(this.prescription.anticoagulant_zongliang ==''){
734
+        const obj14 ='总量'
735
+        checkDate.push(obj14)
736
+      } if(this.prescription.target_ultrafiltration ==''){
737
+        const obj15 ='处方脱水量'
738
+        checkDate.push(obj15)
739
+      } if(this.prescription.dialysate_flow ==''){
740
+        const obj16 ='透析液流量'
741
+        checkDate.push(obj16)
742
+      } if(this.prescription.creater ==0){
743
+        const obj17 ='医师签名'
744
+        checkDate.push(obj17)
745
+      } if(this.predialysis.machine_type ==''){
746
+        const obj18 ='透析机'
747
+        checkDate.push(obj18)
748
+      } if(this.prescription.dialysis_dialyszers =='' && 
749
+            this.prescription.dialysis_strainer ==''
750
+      ){
751
+        const obj19 ='透 (滤) 器'
752
+        checkDate.push(obj19)
753
+      } if(this.prescription.dialysis_irrigation ==''){
754
+        const obj20 ='灌流器'
755
+        checkDate.push(obj20)
756
+      } if (this.predialysis.blood_access_part_opera_name == ''){
757
+        const obj21 = "血管通路"
758
+        checkDate.push(obj21)
759
+      } if(this.dialysisOrder !=null && this.dialysisOrder.start_nurse ==0){
760
+        const obj22 = "操作者"
761
+        checkDate.push(obj22)
762
+      } if(this.predialysis.puncture_needle == '' && this.org_id == 10612){
763
+        const obj23 = "穿刺针"
764
+        checkDate.push(obj23)
765
+      } if(this.dialysisOrder.puncture_nurse == '' && this.org_id == 10612 &&
766
+        this.dialysisOrder != null 
767
+      ){
768
+        const obj23 = "穿刺护士"
769
+        checkDate.push(obj23)
770
+      } if( this.afterdialysis.last_after_weight == ''){
771
+        const obj24 = "上次透后体重"
772
+        checkDate.push(obj24)
773
+      } if(this.predialysis.weight_before == 0){
774
+        const obj25 = "透前体重"
775
+        checkDate.push(obj25)
776
+      } if(this.predialysis.dry_weight == 0){
777
+        const obj26 = "干体重"
778
+        checkDate.push(obj26)
779
+      } if(this.afterdialysis.weight_after == 0){
780
+        const obj27 = "透后体重"
781
+        checkDate.push(obj27)
782
+      } if(this.afterdialysis.actual_ultrafiltration == 0){
783
+        const obj28 = "净脱水量"
784
+        checkDate.push(obj28)
785
+      } if (this.summary.dialysis_summary == "") {
786
+        const obj29 = "透析小结"
787
+        checkDate.push(obj29)
788
+      } if(this.dialysisOrder != null && 
789
+            this.dialysisOrder.start_nurse ==''
790
+      ){
791
+        const obj30 = "护士签名"
792
+        checkDate.push(obj30)
793
+      } if(this.tableAdvice.length > 0){
742 794
         this.tableAdvice.map(item => {
743 795
           if(item.id > 0 && (item.created_time || item.start_time)){
744
-            this.users.map(it => {
745
-              if(it.id == item.advice_doctor){
746
-                if(it.user_type == 3){
747
-                  num++
748
-                  this.$message.closeAll()
749
-                  this.$message.error('存在不是医生保存的医嘱')
750
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
751
-                  if(it.user_type == 2){
752
-                    num++
753
-                    this.$message.closeAll()
754
-                    this.$message.error('存在不是护士执行的医嘱')
755
-                  }
756
-                }else if(it.id == item.checker && item.checker > 0){
757
-                  if(it.user_type == 2){
758
-                    num++
759
-                    this.$message.closeAll()
760
-                    this.$message.error('存在不是护士核对的医嘱')
761
-                  }
762
-                }
763
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
764
-                if(it.user_type == 2){
765
-                  num++
766
-                  this.$message.closeAll()
767
-                  this.$message.error('存在不是护士执行的医嘱')
768
-                }
769
-              }else if(it.id == item.checker && item.checker > 0){
770
-                if(it.user_type == 2){
771
-                  num++
772
-                  this.$message.closeAll()
773
-                  this.$message.error('存在不是护士核对的医嘱')
774
-                }
775
-              }
776
-            })
796
+            if(item.execution_staff ==0 && item.checker ==0){
797
+              const obj32 = '执行,核对'
798
+              checkDate.push(obj32)
799
+            }
777 800
           }
778 801
         })
779
-        if(num == 0){
780
-          this.$message.success('核对完成')
781
-        }
782
-      }else{
783
-        this.$message.success('核对完成')
784 802
       }
803
+      this.getcheckData(checkDate)
785 804
     },
786 805
     getUser() {
787 806
       fetchAllAdminUsers().then(response => {
@@ -1265,6 +1284,16 @@ export default {
1265 1284
         }
1266 1285
       }
1267 1286
       return displace_liqui_part_name;
1287
+    },
1288
+    getcheckData(val){
1289
+      if(val.length >0){
1290
+        const a = val.join(',')
1291
+        console.log('a',a);
1292
+        this.$toast(a +" 未填");
1293
+        return a
1294
+      }else{
1295
+        this.$toast('核对完成')
1296
+      }
1268 1297
     }
1269 1298
   },
1270 1299
   watch: {

+ 271 - 0
src/pages/main/template/DialysisPrintOrderseventytwo.vue Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box-1">
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
3 4
     <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content" >
4 5
       <div style="display:inline-block;width:100%;text-align:center;">
5 6
         <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">{{orgname}}</div>
@@ -1295,6 +1296,266 @@ export default {
1295 1296
     }
1296 1297
   },
1297 1298
   methods: {
1299
+    checkData() {
1300
+      var checkDate =[]
1301
+      if (this.predialysis.symptom_before_dialysis == "") {
1302
+        const obj5 = "透前症状"
1303
+        checkDate.push(obj5)
1304
+      } if (this.predialysis.temperature == '') {
1305
+        const obj = "透前体温"
1306
+        checkDate.push(obj)
1307
+      } if (this.predialysis.pulse_frequency == "") {
1308
+        const obj1 = "透前脉搏"
1309
+        checkDate.push(obj1)
1310
+      } if (this.predialysis.breathing_rate == "") {
1311
+         const obj2 = "透前呼吸频率"
1312
+         checkDate.push(obj2)
1313
+      } if (
1314
+        this.predialysis.systolic_blood_pressure == 0 ||
1315
+        this.predialysis.diastolic_blood_pressure == 0
1316
+      ) {
1317
+        const obj3 = "透前血压"
1318
+        checkDate.push(obj3)
1319
+      } if( this.predialysis.internal_fistula!='' && 
1320
+          this.predialysis.puncture_way == ''
1321
+      ){
1322
+        const obj4 = "穿刺方式"
1323
+        checkDate.push(obj4)
1324
+      } if( this.predialysis.internal_fistula!='' && 
1325
+          this.predialysis.puncture_needle == ''
1326
+      ){
1327
+        const obj6 = "穿刺针"
1328
+        checkDate.push(obj6)
1329
+      } if (this.predialysis.blood_access_part_opera_name == ''){
1330
+        const obj7 = "血管通路"
1331
+        checkDate.push(obj7)
1332
+      } 
1333
+      // if (this.predialysis.internal_fistula =='') {
1334
+      //   const obj8 = "内瘘"
1335
+      //   checkDate.push(obj8)
1336
+      // } if (this.predialysis.catheter == "" ) {
1337
+      //   const obj9 = "导管"
1338
+      //   checkDate.push(obj9)
1339
+      // } 
1340
+      if (this.prescription.mode == '') {
1341
+        const obj10 = "透析方式"
1342
+        checkDate.push(obj10)
1343
+      } if (this.prescription.displace_liqui_part == '' &&
1344
+            this.prescription.mode_id ==2
1345
+      ) {
1346
+        const obj11 = "置换方式"
1347
+        checkDate.push(obj11)
1348
+      } if (this.prescription.displace_liqui_value =='' &&
1349
+            this.prescription.mode_id ==2
1350
+      ) {
1351
+        const obj12 = "置换量"
1352
+        checkDate.push(obj12)
1353
+      } if (this.prescription.blood_flow_volume == 0) {
1354
+        const obj13 = "血流量"
1355
+        checkDate.push(obj13)
1356
+      } if (this.prescription.dialysis_duration_hour == '' &&
1357
+            this.prescription.dialysis_duration_minute == ''
1358
+      ) {
1359
+        const obj14 = "透析时间"
1360
+        checkDate.push(obj14)
1361
+      } if (
1362
+        this.prescription.dialysis_dialyszers == '' &&
1363
+        this.prescription.dialysis_strainer == ''
1364
+      ){
1365
+        const obj15 = "透析(滤)器"
1366
+        checkDate.push(obj15)
1367
+      } if ( this.prescription.dialysis_irrigation == ''){
1368
+        const obj16 = "灌流器"
1369
+        checkDate.push(obj16)
1370
+      } if ( this.predialysis.is_hemorrhage == 1 && 
1371
+            this.predialysis.hemorrhage == ''
1372
+      ){
1373
+        const obj17 = "出血情况"
1374
+        checkDate.push(obj17)
1375
+      } if ( this.predialysis.weight_after_last_transparency == '') {
1376
+        const obj18 = "上次透后体重"
1377
+        checkDate.push(obj18) 
1378
+      } if (this.predialysis.weight_before == '') {
1379
+        const obj19 = "透前体重"
1380
+        checkDate.push(obj19)
1381
+      } if (this.prescription.target_ultrafiltration == '') {
1382
+        const obj20 = "计划超滤量"
1383
+        checkDate.push(obj20)
1384
+      } if (this.predialysis.dry_weight == '' ) {
1385
+        const obj21 = "干体重"
1386
+        checkDate.push(obj21)
1387
+      } if (this.prescription.calcium == 0) {
1388
+        const obj22 = "钙"
1389
+        checkDate.push(obj22)
1390
+      } if (this.prescription.sodium == 0) {
1391
+        const obj23 = "钠"
1392
+        checkDate.push(obj23)
1393
+      } if (this.prescription.kalium == 0) {
1394
+        const obj24 = "钾"
1395
+        checkDate.push(obj24)
1396
+      } if (this.prescription.bicarbonate == 0) {
1397
+        const obj25 = "碳酸氢根"
1398
+        checkDate.push(obj25)
1399
+      } if (this.prescription.dialysate_flow == 0) {
1400
+        const obj26 = "透析液流量"
1401
+        checkDate.push(obj26)
1402
+      } if (this.prescription.anticoagulant_name =='') {
1403
+        const obj27 = "抗凝剂"
1404
+        checkDate.push(obj27)
1405
+      } if (this.prescription.anticoagulant_shouji == '' &&
1406
+        this.prescription.anticoagulant !=5 && this.prescription.anticoagulant !=''
1407
+      ) {
1408
+        const obj28 = "首剂"
1409
+        checkDate.push(obj28)
1410
+      } 
1411
+      // if (this.prescription.anticoagulant_weichi == '') {
1412
+      //   const obj29 = "维持"
1413
+      //   checkDate.push(obj29)
1414
+      // }
1415
+      if (this.prescription.anticoagulant_zongliang == 0 &&
1416
+         this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1417
+      ) {
1418
+        const obj30 = "总量"
1419
+        checkDate.push(obj30)
1420
+      } if (
1421
+        this.prescription.anticoagulant_gaimingcheng == "" &&
1422
+        this.prescription.anticoagulant == 5
1423
+      ) {
1424
+        const obj31 = "钙名称"
1425
+        checkDate.push(obj31)
1426
+      } if (
1427
+        this.prescription.anticoagulant_gaijiliang == "" &&
1428
+        this.prescription.anticoagulant == 5
1429
+      ) {
1430
+        const obj32 = "钙剂量"
1431
+        checkDate.push(obj32)
1432
+      } if ( this.dialysisOrder && 
1433
+            this.dialysisOrder.DeviceNumber.number == '' &&
1434
+            this.patientInfo.DialysisSchedule.device_number.number ==''
1435
+      ) {
1436
+        const obj33 = "透析机号"
1437
+        checkDate.push(obj33)
1438
+      } if (this.afterdialysis.temperature == "") {
1439
+        const obj34 = "透后体温"
1440
+        checkDate.push(obj34)
1441
+      } if (this.afterdialysis.pulse_frequency == "") {
1442
+        const obj35 = "透后脉搏"
1443
+        checkDate.push(obj35)
1444
+      } if (this.afterdialysis.breathing_rate == "") {
1445
+        const obj36 = "透后呼吸频率"
1446
+        checkDate.push(obj36)
1447
+      } if (
1448
+        this.afterdialysis.systolic_blood_pressure == 0 ||
1449
+        this.afterdialysis.diastolic_blood_pressure == 0
1450
+      ) {
1451
+        const obj37 = "透后血压"
1452
+        checkDate.push(obj37)
1453
+      } if (
1454
+        this.afterdialysis.actual_treatment_hour == 0 &&
1455
+        this.afterdialysis.actual_treatment_minute == 0
1456
+      ) {
1457
+        const obj38 = "实际治疗时间"
1458
+        checkDate.push(obj38)
1459
+      } if (this.afterdialysis.cruor == "") {
1460
+        const obj39 = "透析器凝血"
1461
+        checkDate.push(obj39)
1462
+      } if (this.afterdialysis.internal_fistula == "") {
1463
+        const obj40 = "透后内瘘"
1464
+        checkDate.push(obj40)
1465
+      } 
1466
+      // if (this.afterdialysis.catheter == "") {
1467
+      //   const obj41 = "透后导管"
1468
+      //   checkDate.push(obj41)
1469
+      // } 
1470
+      if (this.afterdialysis.complication == 0) {
1471
+        const obj42 = "并发症"
1472
+        checkDate.push(obj42)
1473
+      } if (this.afterdialysis.catheter != "" && this.afterdialysis.cvc_a =='') {
1474
+        const obj43 = "中心静脉封管(肝素-A端)"
1475
+        checkDate.push(obj43)
1476
+      } if (this.afterdialysis.catheter != "" && this.afterdialysis.cvc_v == '') {
1477
+        const obj44 = "中心静脉封管(肝素-V端)"
1478
+        checkDate.push(obj44)
1479
+      } if (this.afterdialysis.ktv =='') {
1480
+        const obj45 = "KT/V"
1481
+        checkDate.push(obj45)
1482
+      } if (this.afterdialysis.weight_after == '') {
1483
+        const obj46 = "透后体重"
1484
+        checkDate.push(obj46)
1485
+      } if (this.afterdialysis.dialysis_intakes ==''){
1486
+        const obj47 = "透析中入量"
1487
+        checkDate.push(obj47)
1488
+      } if (this.afterdialysis.actual_ultrafiltration ==''){
1489
+        const obj48 = "实际超滤量"
1490
+        checkDate.push(obj48)
1491
+      } if (this.afterdialysis.patient_gose == 0){
1492
+        const obj49 = "患者去向"
1493
+        checkDate.push(obj49)
1494
+      } if (this.summary.dialysis_summary == "") {
1495
+        const obj50 = "透析小结"
1496
+        checkDate.push(obj50)
1497
+      } if (this.afterdialysis.remark == ''){
1498
+        const obj51 = "备注"
1499
+        checkDate.push(obj51)
1500
+      } if (
1501
+        this.dialysisOrder == null ||
1502
+        this.dialysisOrder.puncture_nurse == 0
1503
+      ) {
1504
+        const obj47 = "穿刺护士"
1505
+        checkDate.push(obj47)
1506
+      } if (
1507
+        this.dialysisOrder == null ||
1508
+        this.dialysisOrder.start_nurse == 0
1509
+      ) {
1510
+        const obj48 = "治疗护士"
1511
+        checkDate.push(obj48)
1512
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
1513
+        const obj49 = "核对人员"
1514
+        checkDate.push(obj49)
1515
+      } else if (
1516
+        this.dialysisOrder != null &&
1517
+        this.dialysisOrder.start_nurse == this.check.modifier &&
1518
+        this.check.creater == 0
1519
+      ) {
1520
+        const obj49 = "核对人员"
1521
+        checkDate.push(obj49)
1522
+      } else if (
1523
+        this.dialysisOrder != null &&
1524
+        this.dialysisOrder.start_nurse == this.check.creater &&
1525
+        this.check.modifier == 0
1526
+      ) {
1527
+        const obj49 = "核对人员"
1528
+        checkDate.push(obj49)
1529
+      } else if (
1530
+        this.dialysisOrder != null &&
1531
+        this.dialysisOrder.start_nurse != this.check.creater &&
1532
+        this.dialysisOrder.start_nurse != this.check.modifier &&
1533
+        this.check.creater == 0
1534
+      ) {
1535
+        const obj49 = "核对人员"
1536
+        checkDate.push(obj49)
1537
+      } if (
1538
+        this.dialysisOrder == null ||
1539
+        this.dialysisOrder.finish_nurse == 0
1540
+      ) {
1541
+        const obj50 = "下机护士"
1542
+        checkDate.push(obj50)
1543
+      } if (this.prescription.creater == 0) {
1544
+        const obj51 = "治疗医生"
1545
+        checkDate.push(obj51)
1546
+      }
1547
+      if(this.doctor_advices.length > 0){
1548
+        this.doctor_advices.map((item) =>{
1549
+          if(item.id > 0 && (item.created_time || item.start_time)){
1550
+            if(item.execution_staff ==0 && item.checker ==0 && item.advice_doctor ==0){
1551
+              const obj52 = '医生,执行人员,核对人员'
1552
+              checkDate.push(obj52)
1553
+            }
1554
+          }
1555
+        })
1556
+      }
1557
+      this.getcheckData(checkDate)
1558
+    },
1298 1559
     getDisplaceLiquiPart: function (val) {
1299 1560
       let displace_liqui_part_name = '/'
1300 1561
       let displace_liqui_part = this.displaceLiquiPartOptions
@@ -1856,6 +2117,16 @@ export default {
1856 2117
           return this.patientgose[i].lable
1857 2118
         }
1858 2119
       }
2120
+    },
2121
+    getcheckData(val){
2122
+      if(val.length >0){
2123
+        const a = val.join(',')
2124
+        console.log('a',a);
2125
+        this.$toast(a +" 未填");
2126
+        return a
2127
+      }else{
2128
+        this.$toast('核对完成')
2129
+      }
1859 2130
     }
1860 2131
   },
1861 2132
   watch: {