Browse Source

25 3月5 打印单

yq1 1 month ago
parent
commit
afea421bfd
1 changed files with 192 additions and 150 deletions
  1. 192 150
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue

+ 192 - 150
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue View File

@@ -738,8 +738,6 @@
738 738
           </tr>
739 739
         </table>
740 740
 
741
-     
742
-
743 741
         <table class="print-table" border="1">
744 742
           <tbody>
745 743
             <tr>
@@ -963,7 +961,6 @@
963 961
           </tbody>
964 962
         </table>
965 963
 
966
-
967 964
         <table class="table-box" style="margin-top: 10px;">
968 965
           <tbody>
969 966
             <tr>
@@ -1106,159 +1103,192 @@ export default {
1106 1103
   },
1107 1104
   methods: {
1108 1105
     checkData(){
1106
+      var checkdata=[]
1109 1107
       if(this.receiverTreatmentAccess.way == 0){
1110
-        this.$message.error('住院方式未填')
1111
-      }else if(this.receiverTreatmentAccess.consciousness == 0){
1112
-        this.$message.error('意识未填')
1113
-      }else if(this.predialysis.temperature == 0){
1114
-        this.$message.error('透前体温未填')
1115
-      }else if(this.receiverTreatmentAccess.posture == 0){
1116
-        this.$message.error('体位未填')
1117
-      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1118
-        this.$message.error('透前血压未填完整')
1119
-      }else if(this.predialysis.is_hemorrhage == 0){
1120
-        this.$message.error('出血未填')
1121
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
1122
-        this.$message.error('血管通路未填')
1123
-      }else if(this.predialysis.puncture_way == ''){
1124
-        this.$message.error('穿刺方法未填')
1125
-      }else if(this.predialysis.internal_fistula == ''){
1126
-        this.$message.error('内瘘震颤未填')
1127
-      }else if(this.predialysis.internal_fistula_skin == ''){
1128
-        this.$message.error('内瘘震颤皮肤未填')
1129
-      }else if(this.predialysis.puncture_needle == ''){
1130
-        this.$message.error('针型未填')
1131
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('置管') == -1 : false)){
1132
-        this.$message.error('置管未填')
1133
-      }else if(this.predialysis.blood_access_part_id == ''){
1134
-        this.$message.error('血管通路部位未填')
1135
-      }else if(this.predialysis.catheter_bend == 0){
1136
-        this.$message.error('导管打折未填')
1137
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('穿刺口') == -1 : false)){
1138
-        this.$message.error('穿刺口未填')
1139
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('导管吸壁') == -1 : false)){
1140
-        this.$message.error('导管吸壁未填')
1141
-      }else if(this.afterdialysis.cvc_a == 0){
1142
-        this.$message.error('容量A未填')
1143
-      }else if(this.afterdialysis.cvc_v == 0){
1144
-        this.$message.error('容量V未填')
1145
-      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1146
-        this.$message.error('透析时间未填')
1147
-      }else if(this.prescription.blood_flow_volume == 0){
1148
-        this.$message.error('血流量未填')
1149
-      }else if(this.predialysis.weight_before == 0){
1150
-        this.$message.error('透前体重未填')
1151
-      }else if(this.predialysis.dry_weight == 0){
1152
-        this.$message.error('干体重未填')
1153
-      }else if(this.prescription.target_ultrafiltration == 0){
1154
-        this.$message.error('目标超滤量未填')
1155
-      }else if(this.prescription.anticoagulant == 0){
1156
-        this.$message.error('抗凝剂未填')
1157
-      }else if(this.prescription.dialysate_formulation_name == ""){
1158
-        this.$message.error('透析液配方未填')
1159
-      }else if(this.prescription.mode_id == ""){
1160
-        this.$message.error('透析模式未填')
1161
-      }else if(this.prescription.replacement_total == "" && this.prescription.mode_id == 2){
1162
-        this.$message.error('置换量未填')
1163
-      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1164
-        this.$message.error('透析器或灌流器未填')
1165
-      }else if(this.prescription.prescription_doctor == 0 && this.prescription.creater == 0){
1166
-        this.$message.error('医生签名未填')
1167
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1168
-        this.$message.error('上机护士未填')
1169
-      }else if(this.dialysisOrder != null && ((this.dialysisOrder.puncture_nurse == this.check.modifier && this.check.creater == 0) || (this.check.modifier == 0 && this.check.creater == 0))){
1170
-        this.$message.error('核对护士未填')
1108
+        const obj='入院方式'
1109
+        checkdata.push(obj)
1110
+      } if(this.receiverTreatmentAccess.consciousness == 0){
1111
+        const obj0='意识'
1112
+        checkdata.push(obj0)
1113
+      } if(this.predialysis.temperature == 0){
1114
+        const obj1='透前体温'
1115
+        checkdata.push(obj1)
1116
+      } if(this.predialysis.is_hemorrhage == 0){
1117
+        const obj2='出血'
1118
+        checkdata.push(obj2)
1119
+      } if(this.predialysis.is_hemorrhage == 1 && this.predialysis.hemorrhage == "") {
1120
+        const obj3 = '出血选项'
1121
+        checkdata.push(obj3)
1122
+      } if(this.predialysis.blood_access_part_opera_name == ''){
1123
+        const obj4 = '血管通路'
1124
+        checkdata.push(obj4)
1125
+      } if(this.predialysis.puncture_way == ''){
1126
+        const obj5 = '穿刺方法'
1127
+        checkdata.push(obj5)
1128
+      } if(this.predialysis.internal_fistula == ''){
1129
+        const obj6 = '内瘘震颤'
1130
+        checkdata.push(obj6)
1131
+      } if(this.predialysis.internal_fistula_skin == ''){
1132
+        const obj7 = '内瘘皮肤'
1133
+        checkdata.push(obj7)
1134
+      } if(this.predialysis.puncture_needle == ''){
1135
+        const obj8 = '针型'
1136
+        checkdata.push(obj8)
1137
+      } if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1138
+        const obj9 = '透前血压'
1139
+        checkdata.push(obj9)
1140
+      } if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('置管') == -1 : false)){
1141
+        const obj10 = '置管'
1142
+        checkdata.push(obj10)
1143
+      } if(this.predialysis.blood_access_part_id == ''){
1144
+        const obj11 = '血管通路部位'
1145
+        checkdata.push(obj11)
1146
+      } if(this.predialysis.catheter_bend == 0){
1147
+        const obj12 = '导管打折'
1148
+        checkdata.push(obj12)
1149
+      } if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('穿刺口') == -1 : false)){
1150
+        const obj13 = '穿刺口'
1151
+        checkdata.push(obj13)
1152
+      } if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('导管吸壁') == -1 : false)){
1153
+        const obj14 = '导管吸壁'
1154
+        checkdata.push(obj14)
1155
+      } if(this.afterdialysis.cvc_a == 0){
1156
+        const obj15 = '容量A'
1157
+        checkdata.push(obj15)
1158
+      } if(this.afterdialysis.cvc_v == 0){
1159
+        const obj16 = '容量V'
1160
+        checkdata.push(obj16)
1161
+      } if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1162
+        const obj17 = '透析时间'
1163
+        checkdata.push(obj17)
1164
+      } if(this.prescription.blood_flow_volume == 0){
1165
+        const obj18 = '血流量'
1166
+        checkdata.push(obj18)
1167
+      } if(this.predialysis.weight_before == 0){
1168
+        const obj19 = '透前体重'
1169
+        checkdata.push(obj19)
1170
+      } if(this.predialysis.dry_weight == 0){
1171
+        const obj20 = '干体重'
1172
+        checkdata.push(obj20)
1173
+      } if(this.prescription.target_ultrafiltration == 0){
1174
+        const obj21 = '目标超滤量'
1175
+        checkdata.push(obj21)
1176
+      } if(this.prescription.anticoagulant == 0){
1177
+        const obj22 = '抗凝剂'
1178
+        checkdata.push(obj22)
1179
+      } if(this.prescription.dialysate_formulation_name == ""){
1180
+        const obj23 = '透析液配方'
1181
+        checkdata.push(obj23)
1182
+      } if(this.prescription.mode_id == ""){
1183
+        const obj24 = '透析模式'
1184
+        checkdata.push(obj24)
1185
+      } if(this.prescription.replacement_total == "" && this.prescription.mode_id == 2){
1186
+        const obj25 = '置换量'
1187
+        checkdata.push(obj25)
1188
+      } if(this.prescription.dialyzer_perfusion_apparatus == ""){
1189
+        const obj26 = '透析器或灌流器'
1190
+        checkdata.push(obj26)
1191
+      } if(this.prescription.prescription_doctor == 0 && this.prescription.creater == 0){
1192
+        const obj27 = '医生签名'
1193
+        checkdata.push(obj27)
1194
+      } if(this.dialysisOrder.puncture_nurse == 0){
1195
+        const obj28 = '上机护士'
1196
+        checkdata.push(obj28)
1197
+      } if(this.dialysisOrder != null && ((this.dialysisOrder.puncture_nurse == this.check.modifier && this.check.creater == 0) || (this.check.modifier == 0 && this.check.creater == 0))){
1198
+        const obj29 = '核对护士'
1199
+        checkdata.push(obj29)
1171 1200
       }else if(this.dialysisOrder != null && ((this.dialysisOrder.puncture_nurse == this.check.creater && this.check.modifier == 0) || (this.check.modifier == 0 && this.check.creater == 0))){
1172
-        this.$message.error('核对护士未填')
1173
-      }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1174
-        this.$message.error('实际治疗时间未填')
1175
-      }else if(this.afterdialysis.actual_ultrafiltration == 0){
1176
-        this.$message.error('实际超滤量未填')
1177
-      }else if(this.afterdialysis.weight_after == 0){
1178
-        this.$message.error('透后体重未填')
1179
-      }else if(this.afterdialysis.cruor == ""){
1180
-        this.$message.error('透析器堵塞未填')
1181
-      }else if(this.afterdialysis.puncture_point_oozing_blood == 0){
1182
-        this.$message.error('拔针后穿刺点渗血未填')
1183
-      }else if(this.afterdialysis.puncture_point_haematoma == 0){
1184
-        this.$message.error('穿刺处血肿未填')
1185
-      }else if(this.afterdialysis.internal_fistula == ""){
1186
-        this.$message.error('压迫后内瘘震颤未填')
1187
-      }else if(this.afterdialysis.sealing_fluid_dispose == ""){
1188
-        this.$message.error('封管液配置未填')
1189
-      }else if(this.afterdialysis.complication == ""){
1190
-        this.$message.error('并发症未填')
1191
-      }else if(this.summary.dialysis_summary == ""){
1192
-        this.$message.error('透析小结未填')
1193
-      }else if(this.afterdialysis.patient_gose == 0){
1194
-        this.$message.error('患者去向未填')
1195
-      }else if(this.dialysisOrder.start_nurse == 0){
1196
-        this.$message.error('当班责任护士未填')
1197
-      }else if(this.dialysisOrder.finish_nurse == 0){
1198
-        this.$message.error('下机护士和护士签名未填')
1199
-      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1200
-        let num = 0
1201
-        if(this.monitors.length > 0){
1202
-          this.monitors.map(item => {
1203
-            if(item.id > 0 && item.operate_time){
1204
-              this.users.map(it => {
1205
-                if(it.id == item.monitoring_nurse){
1206
-                  if(it.user_type == 2){
1207
-                    num++
1208
-                    this.$message.closeAll()
1209
-                    this.$message.error('存在不是护士保存的监测')
1210
-                  }
1211
-                }
1212
-              })
1213
-            }
1214
-          })
1201
+        const obj29 = '核对护士'
1202
+        checkdata.push(obj29)
1203
+      } if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1204
+        const obj30 = '实际治疗时间'
1205
+        checkdata.push(obj30)
1206
+      } if(this.afterdialysis.actual_ultrafiltration == 0){
1207
+        const obj31 = '实际超滤量'
1208
+        checkdata.push(obj31)
1209
+      } if(this.afterdialysis.weight_after == 0){
1210
+        const obj32 = '透后体重'
1211
+        checkdata.push(obj32)
1212
+      } if(this.afterdialysis.cruor == ""){
1213
+        const obj33 = '透析器堵塞'
1214
+        checkdata.push(obj33)
1215
+      } if(this.afterdialysis.puncture_point_oozing_blood == 0){
1216
+        const obj34 = '拔针后穿刺点渗血'
1217
+        checkdata.push(obj34)
1218
+      } if(this.afterdialysis.puncture_point_haematoma == 0){
1219
+        const obj35 = '穿刺处血肿'
1220
+        checkdata.push(obj35)
1221
+      } if(this.afterdialysis.internal_fistula == ""){
1222
+        const obj36 = '压迫后内瘘震颤'
1223
+        checkdata.push(obj36)
1224
+      } if(this.afterdialysis.sealing_fluid_dispose == ""){
1225
+        const obj37 = '封管液配置'
1226
+        checkdata.push(obj37)
1227
+      } if(this.afterdialysis.complication == ""){
1228
+        const obj38 = '并发症'
1229
+        checkdata.push(obj38)
1230
+      } if(this.summary.dialysis_summary == ""){
1231
+        const obj39 = '透析小结'
1232
+        checkdata.push(obj39)
1233
+      } if(this.afterdialysis.patient_gose == 0){
1234
+        const obj40 = '患者去向'
1235
+        checkdata.push(obj40)
1236
+      } if(this.dialysisOrder==null || this.dialysisOrder.start_nurse == 0){
1237
+        const obj41 = '当班责任护士'
1238
+        checkdata.push(obj41)
1239
+      } if(this.dialysisOrder==null || this.dialysisOrder.finish_nurse == 0){
1240
+        const obj42 = '下机护士'
1241
+        checkdata.push(obj42)
1242
+      } if(this.monitors.length > 0){
1243
+        for(let i in this.monitors){
1244
+          if(this.monitors[i].systolic_blood_pressure=='' || this.monitors[i].diastolic_blood_pressure==''){
1245
+            const obj43='监测第'+((i*1)+1)+'行血压'
1246
+            checkdata.push(obj43)
1247
+          }
1248
+          if(this.monitors[i].pulse_frequency==''){
1249
+            const obj44='监测第'+((i*1)+1)+'行脉搏'
1250
+            checkdata.push(obj44)
1251
+          }
1252
+          if(this.monitors[i].breathing_rate==''){
1253
+            const obj45='监测第'+((i*1)+1)+'行呼吸'
1254
+            checkdata.push(obj45)
1255
+          }
1256
+          if(this.monitors[i].blood_flow_volume==''){
1257
+            const obj46='监测第'+((i*1)+1)+'行血流量'
1258
+            checkdata.push(obj46)
1259
+          }
1260
+          if(this.monitors[i].ultrafiltration_volume==''){
1261
+            const obj47='监测第'+((i*1)+1)+'行超滤量'
1262
+            checkdata.push(obj47)
1263
+          }
1264
+          if(this.monitors[i].venous_pressure==''){
1265
+            const obj48='监测第'+((i*1)+1)+'行静脉压'
1266
+            checkdata.push(obj48)
1267
+          }
1268
+          if(this.monitors[i].transmembrane_pressure==''){
1269
+            const obj49='监测第'+((i*1)+1)+'行TMP'
1270
+            checkdata.push(obj49)
1271
+          }
1272
+          if(this.monitors[i].conductivity==''){
1273
+            const obj50='监测第'+((i*1)+1)+'行电导度'
1274
+            checkdata.push(obj50)
1275
+          }
1276
+          if(this.monitors[i].dialysate_temperature==''){
1277
+            const obj51='监测第'+((i*1)+1)+'行液温'
1278
+            checkdata.push(obj51)
1279
+          }
1215 1280
         }
1216
-        if(this.tableAdvice.length > 0){
1217
-          this.tableAdvice.map(item => {
1218
-            if(item.id > 0 && (item.created_time || item.start_time)){
1219
-              this.users.map(it => {
1220
-                if(it.id == item.advice_doctor){
1221
-                  if(it.user_type == 3){
1222
-                    num++
1223
-                    this.$message.closeAll()
1224
-                    this.$message.error('存在不是医生保存的医嘱')
1225
-                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1226
-                    if(it.user_type == 2){
1227
-                      num++
1228
-                      this.$message.closeAll()
1229
-                      this.$message.error('存在不是护士执行的医嘱')
1230
-                    }
1231
-                  }else if(it.id == item.checker && item.checker > 0){
1232
-                    if(it.user_type == 2){
1233
-                      num++
1234
-                      this.$message.closeAll()
1235
-                      this.$message.error('存在不是护士核对的医嘱')
1236
-                    }
1237
-                  }
1238
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1239
-                  if(it.user_type == 2){
1240
-                    num++
1241
-                    this.$message.closeAll()
1242
-                    this.$message.error('存在不是护士执行的医嘱')
1243
-                  }
1244
-                }else if(it.id == item.checker && item.checker > 0){
1245
-                  if(it.user_type == 2){
1246
-                    num++
1247
-                    this.$message.closeAll()
1248
-                    this.$message.error('存在不是护士核对的医嘱')
1249
-                  }
1250
-                }
1251
-              })
1281
+      } if(this.tableAdvice.length > 0){
1282
+        this.tableAdvice.map((item) =>{
1283
+          if(item.id > 0 && (item.created_time || item.start_time)){
1284
+            if(item.execution_staff ==0 || item.advice_doctor==0){
1285
+              const obj52 = '执行人员,医生签名'
1286
+              checkdata.push(obj52)
1252 1287
             }
1288
+          }
1253 1289
         })
1254
-        }
1255
-        
1256
-        if(num == 0){
1257
-          this.$message.success('核对完成')
1258
-        }
1259
-      }else{
1260
-        this.$message.success('核对完成')
1261 1290
       }
1291
+      this.getcheckData(checkdata)
1262 1292
     },
1263 1293
     getNewAge(UUserCard) {
1264 1294
       if (UUserCard != null && UUserCard != '') {
@@ -1898,6 +1928,18 @@ export default {
1898 1928
           // checker: 0,
1899 1929
         }
1900 1930
       )
1931
+    },
1932
+    getcheckData(val){
1933
+      if(val.length >0){
1934
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
1935
+        this.$alert(message, '提示', {
1936
+          confirmButtonText: '确定',
1937
+          type: 'warning',
1938
+          dangerouslyUseHTMLString: true,
1939
+        });
1940
+      }else{
1941
+        this.$message.success('核对完成')
1942
+      }
1901 1943
     }
1902 1944
   },
1903 1945
   watch: {