Pārlūkot izejas kodu

25 2月8日 打印单

yq1 3 nedēļas atpakaļ
vecāks
revīzija
2a2dda80cb

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 716 - 1063
src/pages/main/template/DialysisPrintOrderEight.vue


+ 127 - 163
src/pages/main/template/DialysisPrintOrderFiftySeven.vue Parādīt failu

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box" style="position: relative">
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
3 4
     <div class="dialysis-print-order">
4 5
       <div class="order-yy-name">{{ orgname }}</div>
5 6
       <div class="order-title">血液透析(滤过)记录表单</div>
@@ -829,7 +830,7 @@ import { getDataConfig } from "@/utils/data";
829 830
 import { jsGetAge, uParseTime } from "@/utils/tools";
830 831
 import LabelBox from "../printItem/LabelBox";
831 832
 import print from "print-js";
832
-
833
+import {Toast,Dialog} from 'vant'
833 834
 export default {
834 835
   name: "dialysisPrintOrderOne",
835 836
   components: {
@@ -962,170 +963,115 @@ export default {
962 963
         );
963 964
       }
964 965
     },
965
-    checkData() {
966
-      if (this.predialysis.temperature == "") {
967
-        this.$message.error("透前体温未填");
968
-      } else if (this.predialysis.pulse_frequency == "") {
969
-        this.$message.error("透前脉搏未填");
970
-      } else if (this.predialysis.breathing_rate == "") {
971
-        this.$message.error("透前呼吸频率未填");
972
-      } else if (
973
-        this.predialysis.systolic_blood_pressure == 0 ||
974
-        this.predialysis.diastolic_blood_pressure == 0
975
-      ) {
976
-        this.$message.error("透前血压未填完整");
977
-      } else if (this.predialysis.symptom_before_dialysis == "") {
978
-        this.$message.error("上机前病情未填");
979
-      } else if (this.prescription.mode_id == "") {
980
-        this.$message.error("治疗方式未填");
981
-      } else if (
982
-        this.prescription.displace_liqui_part == 0 &&
983
-        this.prescription.mode_id == 2
984
-      ) {
985
-        this.$message.error("置换方式未填");
986
-      } else if (
987
-        this.prescription.displace_liqui_value == 0 &&
988
-        this.prescription.mode_id == 2
989
-      ) {
990
-        this.$message.error("置换量未填");
991
-      } else if (
992
-        this.prescription.dialysis_duration_hour == 0 &&
993
-        this.prescription.dialysis_duration_minute == 0
994
-      ) {
995
-        this.$message.error("治疗时间未填");
996
-      } else if (this.prescription.anticoagulant == 0) {
997
-        this.$message.error("治疗抗凝未填");
998
-      } else if (this.prescription.target_ultrafiltration == 0) {
999
-        this.$message.error("处方脱水量未填");
1000
-      } else if (this.prescription.dialysate_flow == 0) {
1001
-        this.$message.error("透析液流量未填");
1002
-      } else if (this.prescription.blood_flow_volume == 0) {
1003
-        this.$message.error("血流量未填");
1004
-      } else if (this.prescription.prescription_doctor == 0) {
1005
-        this.$message.error("医师签名未填");
1006
-      } else if (this.predialysis.machine_type == "") {
1007
-        this.$message.error("透析机未填");
1008
-      } else if (this.prescription.dialyzer_perfusion_apparatus == "") {
1009
-        this.$message.error("透析(滤)器未填");
1010
-      } else if (this.prescription.calcium == 0) {
1011
-        this.$message.error("钙未填");
1012
-      } else if (this.prescription.sodium == 0) {
1013
-        this.$message.error("钠未填");
1014
-      } else if (this.prescription.bicarbonate == 0) {
1015
-        this.$message.error("碳酸氢根未填");
1016
-      } else if (this.predialysis.blood_access_part_opera_name == "") {
1017
-        this.$message.error("血管通路未填");
1018
-      } else if (
1019
-        this.dialysisOrder == null ||
1020
-        this.dialysisOrder.puncture_nurse == 0
1021
-      ) {
1022
-        this.$message.error("穿刺者未填");
1023
-      } else if (this.predialysis.weight_before == 0) {
1024
-        this.$message.error("透前体重未填");
1025
-      } else if (this.predialysis.dry_weight == 0) {
1026
-        this.$message.error("干体重未填");
1027
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
1028
-        this.$message.error("实际脱水量未填");
1029
-      } else if (this.afterdialysis.weight_after == 0) {
1030
-        this.$message.error("透后体重未填");
1031
-      } else if (this.afterdialysis.cruor == "") {
1032
-        this.$message.error("透析器凝血未填");
1033
-      } else if (this.afterdialysis.internal_fistula == "") {
1034
-        this.$message.error("透后内瘘未填");
1035
-      } else if (this.afterdialysis.catheter == "") {
1036
-        this.$message.error("透后导管未填");
1037
-      } else if (this.summary.dialysis_summary == "") {
1038
-        this.$message.error("治疗小结未填");
1039
-      } else if (
1040
-        this.dialysisOrder == null ||
1041
-        this.dialysisOrder.start_nurse == 0
1042
-      ) {
1043
-        this.$message.error("护士签名未填");
1044
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
1045
-        this.$message.error("核对护士未填");
1046
-      } else if (this.dialysisOrder != null && this.check.creater == 0) {
1047
-        this.$message.error("核对护士未填");
1048
-      } else if (
1049
-        this.dialysisOrder != null &&
1050
-        this.dialysisOrder.start_nurse == this.check.modifier &&
1051
-        this.check.creater == 0
1052
-      ) {
1053
-        this.$message.error("核对护士未填");
1054
-      } else if (
1055
-        this.dialysisOrder != null &&
1056
-        this.dialysisOrder.start_nurse == this.check.creater &&
1057
-        this.check.modifier == 0
1058
-      ) {
1059
-        this.$message.error("核对护士未填");
1060
-      } else if (this.tableAdvice.length > 0 || this.monitors.length > 0) {
1061
-        let num = 0;
1062
-        if (this.monitors.length > 0) {
1063
-          this.monitors.map((item) => {
1064
-            if (item.id > 0 && item.operate_time) {
1065
-              this.users.map((it) => {
1066
-                if (it.id == item.monitoring_nurse) {
1067
-                  if (it.user_type == 2) {
1068
-                    num++;
1069
-                    this.$message.closeAll();
1070
-                    this.$message.error("存在不是护士保存的监测");
1071
-                  }
1072
-                }
1073
-              });
1074
-            }
1075
-          });
1076
-        }
1077
-        if (this.tableAdvice.length > 0) {
1078
-          this.tableAdvice.map((item) => {
1079
-            if (item.id > 0 && (item.created_time || item.start_time)) {
1080
-              this.users.map((it) => {
1081
-                if (it.id == item.advice_doctor) {
1082
-                  if (it.user_type == 3) {
1083
-                    num++;
1084
-                    this.$message.closeAll();
1085
-                    this.$message.error("存在不是医生保存的医嘱");
1086
-                  } else if (
1087
-                    it.id == item.execution_staff &&
1088
-                    item.execution_staff > 0
1089
-                  ) {
1090
-                    if (it.user_type == 2) {
1091
-                      num++;
1092
-                      this.$message.closeAll();
1093
-                      this.$message.error("存在不是护士执行的医嘱");
1094
-                    }
1095
-                  } else if (it.id == item.checker && item.checker > 0) {
1096
-                    if (it.user_type == 2) {
1097
-                      num++;
1098
-                      this.$message.closeAll();
1099
-                      this.$message.error("存在不是护士核对的医嘱");
1100
-                    }
1101
-                  }
1102
-                } else if (
1103
-                  it.id == item.execution_staff &&
1104
-                  item.execution_staff > 0
1105
-                ) {
1106
-                  if (it.user_type == 2) {
1107
-                    num++;
1108
-                    this.$message.closeAll();
1109
-                    this.$message.error("存在不是护士执行的医嘱");
1110
-                  }
1111
-                } else if (it.id == item.checker && item.checker > 0) {
1112
-                  if (it.user_type == 2) {
1113
-                    num++;
1114
-                    this.$message.closeAll();
1115
-                    this.$message.error("存在不是护士核对的医嘱");
1116
-                  }
1117
-                }
1118
-              });
1119
-            }
1120
-          });
1121
-        }
1122
-
1123
-        if (num == 0) {
1124
-          this.$message.success("核对完成");
966
+    checkData(){
967
+      var checkData=[]
968
+      if(this.sick_condition==''){
969
+        const obj='病情评估'
970
+        checkData.push(obj)
971
+      }if(this.prescription.mode_id == ''){
972
+        const obj1='治疗方式'
973
+        checkData.push(obj1)
974
+      }if(this.afterdialysis.actual_treatment_hour == ''&&
975
+        this.afterdialysis.actual_treatment_minute==''
976
+      ){
977
+        const obj2='治疗时间'
978
+        checkData.push(obj2)
979
+      }if(this.prescription.anticoagulant==0){
980
+        const obj3='治疗抗凝'
981
+        checkData.push(obj3)
982
+      }if(this.prescription.target_ultrafiltration ==''){
983
+        const obj4='处方脱水量'
984
+        checkData.push(obj4)
985
+      }if(this.prescription.dialysate_flow ==''){
986
+        const obj5='透析液流量'
987
+        checkData.push(obj5)
988
+      }if(this.prescription.creater == ''){
989
+        const obj6='医师签名'
990
+        checkData.push(obj6)
991
+      }if(this.dialysisOrder == null || this.patientInfo.DialysisSchedule.device_number.number==''){
992
+        const obj7='透析机'
993
+        checkData.push(obj7)
994
+      }if(this.prescription.dialyzer_perfusion_apparatus ==''){
995
+        const obj8='透析机'
996
+        checkData.push(obj8)
997
+      }if(this.prescription.kalium==''){
998
+        const obj9='钾'
999
+        checkData.push(obj9)
1000
+      }if(this.prescription.calcium==''){
1001
+        const obj10='钙'
1002
+        checkData.push(obj10)
1003
+      }if(this.prescription.bicarbonate==''){
1004
+        const obj11='碳酸氢盐'
1005
+        checkData.push(obj11)
1006
+      }if(this.predialysis.blood_access_part_opera_name==''){
1007
+        const obj12='血管通路'
1008
+        checkData.push(obj12)
1009
+      }if(this.dialysisOrder != null && this.dialysisOrder.puncture_nurse==''){
1010
+        const obj13='穿刺者'
1011
+        checkData.push(obj13)
1012
+      }if(this.assessmentafter.weight_after==''){
1013
+        const obj14='上次透后体重'
1014
+        checkData.push(obj14)
1015
+      }if(this.predialysis.weight_before ==''){
1016
+        const obj15='透前体重'
1017
+        checkData.push(obj15)
1018
+      }if(this.predialysis.dry_weight==''){
1019
+        const obj16='干体重'
1020
+        checkData.push(obj16)
1021
+      }if(this.afterdialysis.actual_ultrafiltratio==''){
1022
+        const obj17='净脱水量'
1023
+        checkData.push(obj17)
1024
+      }if(this.afterdialysis.weight_after==''){
1025
+        const obj18='透后体重'
1026
+        checkData.push(obj18)
1027
+      }if(this.summary.dialysis_summary ==''){
1028
+        const obj19='治疗小结'
1029
+        checkData.push(obj19)
1030
+      }if(this.prescription.creater ==''){
1031
+        const obj20='医生签名'
1032
+        checkData.push(obj20)
1033
+      }if(this.dialysisOrder.start_nurse=='' && this.dialysisOrder ==''){
1034
+        const obj21='护士签名'
1035
+        checkData.push(obj21)
1036
+      }if (this.advices.length > 0) {
1037
+        this.advices.map((item) => {
1038
+          if (item.execution_staff == 0 && item.checker == 0) {
1039
+            const obj22 = '执行人员,核对签名'
1040
+            checkData.push(obj22)
1041
+          }
1042
+        })
1043
+      }if(this.monitors.length !=0){
1044
+        for(let i in this.monitors){
1045
+          if(this.monitors[i].transmembrane_pressure==''){
1046
+            const obj23 = '第'+((i*1)+1)+'TMP'
1047
+            checkData.push(obj23)
1048
+          }if(this.monitors[i].venous_pressure==''){
1049
+            const obj24 = '第'+((i*1)+1)+'静脉压'
1050
+            checkData.push(obj24)
1051
+          }if(this.monitors[i].blood_flow_volume==''){
1052
+            const obj25 = '第'+((i*1)+1)+'血流量'
1053
+            checkData.push(obj25)
1054
+          }if(this.monitors[i].ultrafiltration_volume==''){
1055
+            const obj26 = '第'+((i*1)+1)+'脱水量'
1056
+            checkData.push(obj26)
1057
+          }if(this.monitors[i].temperature==''){
1058
+            const obj27 = '第'+((i*1)+1)+'T'
1059
+            checkData.push(obj27)
1060
+          }if(this.monitors[i].pulse_frequency==''){
1061
+            const obj28 = '第'+((i*1)+1)+'HR'
1062
+            checkData.push(obj28)
1063
+          }if(this.monitors[i].breathing_rate==''){
1064
+            const obj29 = '第'+((i*1)+1)+'R'
1065
+            checkData.push(obj29)
1066
+          }if(this.monitors[i].systolic_blood_pressure=='' || 
1067
+            this.monitors[i].diastolic_blood_pressure ==''
1068
+          ){
1069
+            const obj30 = '第'+((i*1)+1)+'BP'
1070
+            checkData.push(obj30)
1071
+          }
1125 1072
         }
1126
-      } else {
1127
-        this.$message.success("核对完成");
1128 1073
       }
1074
+      this.getcheckData(checkData)
1129 1075
     },
1130 1076
     getNewAge(UUserCard) {
1131 1077
       if (UUserCard != null && UUserCard != "") {
@@ -1679,6 +1625,24 @@ export default {
1679 1625
         }
1680 1626
       );
1681 1627
     },
1628
+    getcheckData(val){
1629
+      if(val.length >0){
1630
+        let message = `记录单未填数据:\n${val.join("\n")}`;
1631
+        Dialog.confirm({
1632
+          allowHtml:true,
1633
+          message:message,
1634
+        }).then(() => {
1635
+
1636
+          })
1637
+          .catch(() => {
1638
+
1639
+          });
1640
+
1641
+        return message
1642
+      }else{
1643
+        this.$message.success('核对完成')
1644
+      }
1645
+    }
1682 1646
   },
1683 1647
   watch: {
1684 1648
     "patientInfo.gender": function () {