Przeglądaj źródła

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 3 lat temu
rodzic
commit
53f968e2cf
21 zmienionych plików z 901 dodań i 391 usunięć
  1. 51 29
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  2. 61 27
      src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue
  3. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  4. 23 6
      src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue
  5. 26 7
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  6. 22 5
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  7. 54 30
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue
  8. 26 9
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  9. 54 32
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  10. 45 6
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  11. 53 29
      src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue
  12. 58 34
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue
  13. 43 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  14. 40 18
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue
  15. 58 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  16. 54 30
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue
  17. 39 17
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  18. 39 17
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue
  19. 56 31
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue
  20. 45 30
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  21. 53 30
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue

+ 51 - 29
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Wyświetl plik

@@ -1360,38 +1360,60 @@ export default {
1360 1360
         this.$message.error('下机护士未填')
1361 1361
       }else if(this.special_record == ""){
1362 1362
         this.$message.error('特殊记录未填')
1363
-      }else if(this.monitors.length > 0){
1364
-        this.monitors.map(item => {
1365
-          if(item.id > 0 && item.operate_time){
1366
-            this.users.map(it => {
1367
-              if(it.id == item.monitoring_nurse){
1368
-                if(it.type != 3){
1369
-                  this.$message.error('存在不是护士保存的监测')
1370
-                }
1371
-              }
1372
-            })
1373
-          }
1374
-        })
1375
-      }else if(this.tableAdvice.length > 0){
1376
-        this.tableAdvice.map(item => {
1377
-          if(item.id > 0 && item.created_time){
1378
-            this.users.map(it => {
1379
-              if(it.id == item.advice_doctor){
1380
-                if(it.type != 2){
1381
-                  this.$message.error('存在不是医生保存的医嘱')
1382
-                }
1383
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1384
-                if(it.type != 3){
1385
-                  this.$message.error('存在不是护士执行的医嘱')
1363
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1364
+        let num = 0
1365
+        if(this.monitors.length > 0){
1366
+          this.monitors.map(item => {
1367
+            if(item.id > 0 && item.operate_time){
1368
+              this.users.map(it => {
1369
+                if(it.id == item.monitoring_nurse){
1370
+                  if(it.user_type == 2){
1371
+                    num++
1372
+                    this.$message.error('存在不是护士保存的监测')
1373
+                  }
1386 1374
                 }
1387
-              }else if(it.id == item.checker && item.checker > 0){
1388
-                if(it.type != 3){
1389
-                  this.$message.error('存在不是护士核对的医嘱')
1375
+              })
1376
+            }
1377
+          })
1378
+        }
1379
+        if(this.tableAdvice.length > 0){
1380
+          this.tableAdvice.map(item => {
1381
+            if(item.id > 0 && (item.created_time || item.start_time)){
1382
+              this.users.map(it => {
1383
+                if(it.id == item.advice_doctor){
1384
+                  if(it.user_type == 3){
1385
+                    num++
1386
+                    this.$message.error('存在不是医生保存的医嘱')
1387
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388
+                    if(it.user_type == 2){
1389
+                      num++
1390
+                      this.$message.error('存在不是护士执行的医嘱')
1391
+                    }
1392
+                  }else if(it.id == item.checker && item.checker > 0){
1393
+                    if(it.user_type == 2){
1394
+                      num++
1395
+                      this.$message.error('存在不是护士核对的医嘱')
1396
+                    }
1397
+                  }
1398
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1399
+                  if(it.user_type == 2){
1400
+                    num++
1401
+                    this.$message.error('存在不是护士执行的医嘱')
1402
+                  }
1403
+                }else if(it.id == item.checker && item.checker > 0){
1404
+                  if(it.user_type == 2){
1405
+                    num++
1406
+                    this.$message.error('存在不是护士核对的医嘱')
1407
+                  }
1390 1408
                 }
1391
-              }
1392
-            })
1393
-          }
1409
+              })
1410
+            }
1394 1411
         })
1412
+        }
1413
+        
1414
+        if(num == 0){
1415
+          this.$message.success('核对完成')
1416
+        }
1395 1417
       }else{
1396 1418
         this.$message.success('核对完成')
1397 1419
       }

+ 61 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue Wyświetl plik

@@ -1155,7 +1155,7 @@ export default {
1155 1155
   },
1156 1156
   methods: {
1157 1157
     checkData(){
1158
-      if(this.receiverTreatmentAccess.condition == 0){
1158
+      if(this.patientInfo.source == 0){
1159 1159
         this.$message.error('门诊或住院未填')
1160 1160
       }else if(this.receiverTreatmentAccess.way == 0){
1161 1161
         this.$message.error('入科方式未填')
@@ -1167,7 +1167,7 @@ export default {
1167 1167
         this.$message.error('透前脉搏未填')
1168 1168
       }else if(this.predialysis.breathing_rate == ""){
1169 1169
         this.$message.error('透前呼吸频率未填')
1170
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1170
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1171 1171
         this.$message.error('透前血压未填完整')
1172 1172
       }else if(this.predialysis.puncture_way == ''){
1173 1173
         this.$message.error('穿刺方式未填')
@@ -1181,21 +1181,19 @@ export default {
1181 1181
         this.$message.error('透前导管未填')
1182 1182
       }else if(this.prescription.mode_id == ""){
1183 1183
         this.$message.error('透析方式未填')
1184
-      }else if(this.prescription.displace_liqui_part == 0){
1184
+      }else if(this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2){
1185 1185
         this.$message.error('置换方式未填')
1186
-      }else if(this.prescription.displace_liqui_value == 0){
1186
+      }else if(this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2){
1187 1187
         this.$message.error('置换量未填')
1188 1188
       }else if(this.prescription.blood_flow_volume == 0){
1189 1189
         this.$message.error('血流量未填')
1190
-      }else if(this.prescription.dialysis_dialyszers == ""){
1191
-        this.$message.error('透析器未填')
1192
-      }else if(this.prescription.dialysis_irrigation == ""){
1193
-        this.$message.error('灌流器未填')
1190
+      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1191
+        this.$message.error('透析(滤)器未填')
1194 1192
       }else if(this.predialysis.dry_weight == 0){
1195 1193
         this.$message.error('干体重未填')
1196 1194
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1197 1195
         this.$message.error('透析时间未填')
1198
-      }else if(this.last_afterdialysis.weight_after == 0){
1196
+      }else if(this.predialysis.weight_after_last_transparency == 0){
1199 1197
         this.$message.error('上次透后未填')
1200 1198
       }else if(this.predialysis.weight_before == 0){
1201 1199
         this.$message.error('透前体重未填')
@@ -1223,7 +1221,7 @@ export default {
1223 1221
         this.$message.error('透后脉搏未填')
1224 1222
       }else if(this.afterdialysis.breathing_rate == 0){
1225 1223
         this.$message.error('透后呼吸频率未填')
1226
-      }else if((this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1224
+      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
1227 1225
         this.$message.error('透后血压未填完整')
1228 1226
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1229 1227
         this.$message.error('实际治疗时间未填')
@@ -1259,26 +1257,62 @@ export default {
1259 1257
         this.$message.error('下机护士未填')
1260 1258
       }else if(this.prescription.creater == 0){
1261 1259
         this.$message.error('治疗医生未填')
1262
-      }else if(this.tableAdvice.length > 0){
1263
-        this.tableAdvice.map(item => {
1264
-          if(item.id > 0 && item.created_time){
1265
-            this.users.map(it => {
1266
-              if(it.id == item.advice_doctor){
1267
-                if(it.type != 2){
1268
-                  this.$message.error('存在不是医生保存的医嘱')
1260
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1261
+        let num = 0
1262
+        if(this.monitors.length > 0){
1263
+          this.monitors.map(item => {
1264
+            if(item.id > 0 && item.operate_time){
1265
+              this.users.map(it => {
1266
+                if(it.id == item.monitoring_nurse){
1267
+                  if(it.user_type == 2){
1268
+                    num++
1269
+                    this.$message.error('存在不是护士保存的监测')
1270
+                  }
1269 1271
                 }
1270
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1271
-                if(it.type != 3){
1272
-                  this.$message.error('存在不是护士执行的医嘱')
1273
-                }
1274
-              }else if(it.id == item.checker && item.checker > 0){
1275
-                if(it.type != 3){
1276
-                  this.$message.error('存在不是护士核对的医嘱')
1272
+              })
1273
+            }
1274
+          })
1275
+        }
1276
+        if(this.tableAdvice.length > 0){
1277
+          this.tableAdvice.map(item => {
1278
+            if(item.id > 0 && (item.created_time || item.start_time)){
1279
+              this.users.map(it => {
1280
+                if(it.id == item.advice_doctor){
1281
+                  if(it.user_type == 3){
1282
+                    num++
1283
+                    this.$message.error('存在不是医生保存的医嘱')
1284
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1285
+                    if(it.user_type == 2){
1286
+                      num++
1287
+                      this.$message.error('存在不是护士执行的医嘱')
1288
+                    }
1289
+                  }else if(it.id == item.checker && item.checker > 0){
1290
+                    if(it.user_type == 2){
1291
+                      num++
1292
+                      this.$message.error('存在不是护士核对的医嘱')
1293
+                    }
1294
+                  }
1295
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1296
+                  if(it.user_type == 2){
1297
+                    num++
1298
+                    this.$message.error('存在不是护士执行的医嘱')
1299
+                  }
1300
+                }else if(it.id == item.checker && item.checker > 0){
1301
+                  if(it.user_type == 2){
1302
+                    num++
1303
+                    this.$message.error('存在不是护士核对的医嘱')
1304
+                  }
1277 1305
                 }
1278
-              }
1279
-            })
1280
-          }
1306
+              })
1307
+            }
1281 1308
         })
1309
+        }
1310
+        
1311
+        if(num == 0){
1312
+          this.$message.success('核对完成')
1313
+        }
1314
+      }else{
1315
+        this.$message.success('核对完成')
1282 1316
       }
1283 1317
     },
1284 1318
     getDisplaceLiquiPart: function(val) {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue Wyświetl plik

@@ -1091,7 +1091,7 @@
1091 1091
                       <td width="50">
1092 1092
                           <div class="under-line">&nbsp;{{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "" }}</div>
1093 1093
                       </td>
1094
-                      <td width="20">ml</td>
1094
+                      <td width="20">L</td>
1095 1095
                       <td></td>
1096 1096
                   </tr>
1097 1097
                   </tbody>

+ 23 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Wyświetl plik

@@ -1808,7 +1808,7 @@ export default {
1808 1808
           this.$message.error('计划超滤总量未填')
1809 1809
         }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1810 1810
           this.$message.error('透析时间未填')
1811
-        }else if(this.prescription.replacement_total == 0){
1811
+        }else if(this.prescription.replacement_total == 0 && this.prescription.mode_id == 2){
1812 1812
           this.$message.error('置换量未填')
1813 1813
         }else if(this.prescription.mode_id == ""){
1814 1814
           this.$message.error('透析方式未填')
@@ -1850,32 +1850,49 @@ export default {
1850 1850
           this.$message.error('患者去向未填')
1851 1851
         }else if(this.prescription.creater == 0){
1852 1852
           this.$message.error('医生未填')
1853
-        }else if(this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0){
1853
+        }else if(this.doctor_advices.length = 0 || (this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0)){
1854 1854
           this.$message.error('治疗护士未填')
1855 1855
         }else if(this.doctor_advices.length > 0 && (this.doctor_advices[0].execution_staff != this.check.modifier) && this.check.modifier == 0 ){
1856 1856
           this.$message.error('核对护士未填')
1857 1857
         }else if(this.doctor_advices.length > 0 && (this.doctor_advices[0].execution_staff != this.check.creater) && this.check.creater == 0 ){
1858 1858
           this.$message.error('核对护士未填')
1859 1859
         }else if(this.tableAdvice.length > 0){
1860
+          let num = 0
1860 1861
           this.tableAdvice.map(item => {
1861
-            if(item.id > 0 && item.created_time){
1862
+            if(item.id > 0 && (item.created_time || item.start_time)){
1862 1863
               this.users.map(it => {
1863 1864
                 if(it.id == item.advice_doctor){
1864
-                  if(it.type != 2){
1865
+                  if(it.user_type == 3){
1866
+                    num++
1865 1867
                     this.$message.error('存在不是医生保存的医嘱')
1868
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1869
+                    if(it.user_type == 2){
1870
+                      num++
1871
+                      this.$message.error('存在不是护士执行的医嘱')
1872
+                    }
1873
+                  }else if(it.id == item.checker && item.checker > 0){
1874
+                    if(it.user_type == 2){
1875
+                      num++
1876
+                      this.$message.error('存在不是护士核对的医嘱')
1877
+                    }
1866 1878
                   }
1867 1879
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1868
-                  if(it.type != 3){
1880
+                  if(it.user_type == 2){
1881
+                    num++
1869 1882
                     this.$message.error('存在不是护士执行的医嘱')
1870 1883
                   }
1871 1884
                 }else if(it.id == item.checker && item.checker > 0){
1872
-                  if(it.type != 3){
1885
+                  if(it.user_type == 2){
1886
+                    num++
1873 1887
                     this.$message.error('存在不是护士核对的医嘱')
1874 1888
                   }
1875 1889
                 }
1876 1890
               })
1877 1891
             }
1878 1892
           })
1893
+          if(num == 0){
1894
+            this.$message.success('核对完成')
1895
+          }
1879 1896
         }else{
1880 1897
           this.$message.success('核对完成')
1881 1898
         }

+ 26 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Wyświetl plik

@@ -1149,7 +1149,7 @@ export default {
1149 1149
   methods: {
1150 1150
     checkData(){
1151 1151
       if(this.receiverTreatmentAccess.way == 0){
1152
-        this.$message.error('院方式未填')
1152
+        this.$message.error('院方式未填')
1153 1153
       }else if(this.receiverTreatmentAccess.consciousness == 0){
1154 1154
         this.$message.error('意识未填')
1155 1155
       }else if(this.predialysis.temperature == 0){
@@ -1186,7 +1186,7 @@ export default {
1186 1186
         this.$message.error('抗凝剂未填')
1187 1187
       }else if(this.prescription.dialysate_formulation_name == ""){
1188 1188
         this.$message.error('透析液配方未填')
1189
-      }else if(this.prescription.replacement_total == ""){
1189
+      }else if(this.prescription.replacement_total == "" && this.prescription.mode_id == 2){
1190 1190
         this.$message.error('置换量未填')
1191 1191
       }else if(this.prescription.mode_id == ""){
1192 1192
         this.$message.error('透析模式未填')
@@ -1196,7 +1196,7 @@ export default {
1196 1196
         this.$message.error('透析器未填')
1197 1197
       }else if((this.prescription.prescription_doctor == 0 && this.prescription.creater == 0) && this.org_id == 9987){
1198 1198
         this.$message.error('医生签名未填')
1199
-      }else if(this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1199
+      }else if(this.advices[0].length > 0 && this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1200 1200
         this.$message.error('医生签名未填')
1201 1201
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1202 1202
         this.$message.error('实际治疗时间未填')
@@ -1218,30 +1218,49 @@ export default {
1218 1218
         this.$message.error('透析小结未填')
1219 1219
       }else if(this.afterdialysis.patient_gose == 0){
1220 1220
         this.$message.error('患者去向未填')
1221
+      }else if(this.afterdialysis.patient_gose == 3 && this.afterdialysis.observation_content == ""){
1222
+        this.$message.error('交待病房护士/患者/陪人观察内容未填')
1221 1223
       }else if(this.afterdialysis.creater == 0){
1222 1224
         this.$message.error('当班责任(核对)护士未填')
1223 1225
       }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1224 1226
         this.$message.error('下机护士未填')
1225 1227
       }else if(this.tableAdvice.length > 0){
1228
+        let num = 0
1226 1229
         this.tableAdvice.map(item => {
1227
-          if(item.id > 0 && item.created_time){
1230
+          if(item.id > 0 && (item.created_time || item.start_time)){
1228 1231
             this.users.map(it => {
1229 1232
               if(it.id == item.advice_doctor){
1230
-                if(it.type != 2){
1233
+                if(it.user_type == 3){
1234
+                  num++
1231 1235
                   this.$message.error('存在不是医生保存的医嘱')
1236
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1237
+                  if(it.user_type == 2){
1238
+                    num++
1239
+                    this.$message.error('存在不是护士执行的医嘱')
1240
+                  }
1241
+                }else if(it.id == item.checker && item.checker > 0){
1242
+                  if(it.user_type == 2){
1243
+                    num++
1244
+                    this.$message.error('存在不是护士核对的医嘱')
1245
+                  }
1232 1246
                 }
1233 1247
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1234
-                if(it.type != 3){
1248
+                if(it.user_type == 2){
1249
+                  num++
1235 1250
                   this.$message.error('存在不是护士执行的医嘱')
1236 1251
                 }
1237 1252
               }else if(it.id == item.checker && item.checker > 0){
1238
-                if(it.type != 3){
1253
+                if(it.user_type == 2){
1254
+                  num++
1239 1255
                   this.$message.error('存在不是护士核对的医嘱')
1240 1256
                 }
1241 1257
               }
1242 1258
             })
1243 1259
           }
1244 1260
         })
1261
+        if(num == 0){
1262
+          this.$message.success('核对完成')
1263
+        }
1245 1264
       }else{
1246 1265
         this.$message.success('核对完成')
1247 1266
       }

+ 22 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Wyświetl plik

@@ -722,7 +722,7 @@ export default {
722 722
         this.$message.error('核对护士未填')
723 723
       }else if(this.finshForm.finish_nurse == ""){
724 724
         this.$message.error('下机护士未填')
725
-      }else if((this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
725
+      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
726 726
         this.$message.error('透后血压未填完整')
727 727
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
728 728
         this.$message.error('实际治疗时间未填')
@@ -741,25 +741,42 @@ export default {
741 741
       }else if(this.summary.dialysis_summary == ""){
742 742
         this.$message.error('透析小结未填')
743 743
       }else if(this.tableAdvice.length > 0){
744
+        let num = 0
744 745
         this.tableAdvice.map(item => {
745
-          if(item.id > 0 && item.created_time){
746
+          if(item.id > 0 && (item.created_time || item.start_time)){
746 747
             this.users.map(it => {
747 748
               if(it.id == item.advice_doctor){
748
-                if(it.type != 2){
749
+                if(it.user_type == 3){
750
+                  num++
749 751
                   this.$message.error('存在不是医生保存的医嘱')
752
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
753
+                  if(it.user_type == 2){
754
+                    num++
755
+                    this.$message.error('存在不是护士执行的医嘱')
756
+                  }
757
+                }else if(it.id == item.checker && item.checker > 0){
758
+                  if(it.user_type == 2){
759
+                    num++
760
+                    this.$message.error('存在不是护士核对的医嘱')
761
+                  }
750 762
                 }
751 763
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
752
-                if(it.type != 3){
764
+                if(it.user_type == 2){
765
+                  num++
753 766
                   this.$message.error('存在不是护士执行的医嘱')
754 767
                 }
755 768
               }else if(it.id == item.checker && item.checker > 0){
756
-                if(it.type != 3){
769
+                if(it.user_type == 2){
770
+                  num++
757 771
                   this.$message.error('存在不是护士核对的医嘱')
758 772
                 }
759 773
               }
760 774
             })
761 775
           }
762 776
         })
777
+        if(num == 0){
778
+          this.$message.success('核对完成')
779
+        }
763 780
       }else{
764 781
         this.$message.success('核对完成')
765 782
       }

+ 54 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Wyświetl plik

@@ -1346,7 +1346,7 @@ export default {
1346 1346
         this.$message.error('透前体温未填')
1347 1347
       }else if(this.receiverTreatmentAccess.posture == 0){
1348 1348
         this.$message.error('体位未填')
1349
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
1349
+      }else if(this.predialysis.blood_access_part_opera_id == 0){
1350 1350
         this.$message.error('内瘘波动及震颤未填')
1351 1351
       }else if(this.predialysis.blood_access_part_id == 0){
1352 1352
         this.$message.error('中心静脉导管部位未填')
@@ -1388,38 +1388,62 @@ export default {
1388 1388
         this.$message.error('下机护士未填')
1389 1389
       }else if(this.special_record == ""){
1390 1390
         this.$message.error('特殊记录未填')
1391
-      }else if(this.monitors.length > 0){
1392
-        this.monitors.map(item => {
1393
-          if(item.id > 0 && item.operate_time){
1394
-            this.users.map(it => {
1395
-              if(it.id == item.monitoring_nurse){
1396
-                if(it.type != 3){
1397
-                  this.$message.error('存在不是护士保存的监测')
1398
-                }
1399
-              }
1400
-            })
1401
-          }
1402
-        })
1403
-      }else if(this.tableAdvice.length > 0){
1404
-        this.tableAdvice.map(item => {
1405
-          if(item.id > 0 && item.created_time){
1406
-            this.users.map(it => {
1407
-              if(it.id == item.advice_doctor){
1408
-                if(it.type != 2){
1409
-                  this.$message.error('存在不是医生保存的医嘱')
1410
-                }
1411
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1412
-                if(it.type != 3){
1413
-                  this.$message.error('存在不是护士执行的医嘱')
1391
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1392
+        let num = 0
1393
+        if(this.monitors.length > 0){
1394
+          this.monitors.map(item => {
1395
+            if(item.id > 0 && item.operate_time){
1396
+              this.users.map(it => {
1397
+                if(it.id == item.monitoring_nurse){
1398
+                  if(it.user_type == 2){
1399
+                    num++
1400
+                    this.$message.error('存在不是护士保存的监测')
1401
+                  }
1414 1402
                 }
1415
-              }else if(it.id == item.checker && item.checker > 0){
1416
-                if(it.type != 3){
1417
-                  this.$message.error('存在不是护士核对的医嘱')
1403
+              })
1404
+            }
1405
+          })
1406
+        }
1407
+        if(this.tableAdvice.length > 0){
1408
+          this.tableAdvice.map(item => {
1409
+            if(item.id > 0 && (item.created_time || item.start_time)){
1410
+              this.users.map(it => {
1411
+                if(it.id == item.advice_doctor){
1412
+                  if(it.user_type == 3){
1413
+                    num++
1414
+                    this.$message.error('存在不是医生保存的医嘱')
1415
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1416
+                    if(it.user_type == 2){
1417
+                      num++
1418
+                      this.$message.error('存在不是护士执行的医嘱')
1419
+                    }
1420
+                  }else if(it.id == item.checker && item.checker > 0){
1421
+                    if(it.user_type == 2){
1422
+                      num++
1423
+                      this.$message.error('存在不是护士核对的医嘱')
1424
+                    }
1425
+                  }
1426
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1427
+                  if(it.user_type == 2){
1428
+                    num++
1429
+                    this.$message.error('存在不是护士执行的医嘱')
1430
+                  }
1431
+                }else if(it.id == item.checker && item.checker > 0){
1432
+                  if(it.user_type == 2){
1433
+                    num++
1434
+                    this.$message.error('存在不是护士核对的医嘱')
1435
+                  }
1418 1436
                 }
1419
-              }
1420
-            })
1421
-          }
1437
+              })
1438
+            }
1422 1439
         })
1440
+        }
1441
+        
1442
+        if(num == 0){
1443
+          this.$message.success('核对完成')
1444
+        }
1445
+      }else{
1446
+        this.$message.success('核对完成')
1423 1447
       }
1424 1448
     },
1425 1449
     getAdminUser(id) {

+ 26 - 9
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Wyświetl plik

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <el-button type="primary" @click="checkData">一键核对</el-button>
3
+    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4 4
     <div id="dialysis-print-box-1">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -1295,9 +1295,9 @@ export default {
1295 1295
         this.$message.error('透前导管未填')
1296 1296
       } else if (this.prescription.mode_id == '') {
1297 1297
         this.$message.error('透析方式未填')
1298
-      } else if (this.prescription.displace_liqui_part == 0) {
1298
+      } else if (this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2) {
1299 1299
         this.$message.error('置换方式未填')
1300
-      } else if (this.prescription.displace_liqui_value == 0) {
1300
+      } else if (this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2) {
1301 1301
         this.$message.error('置换量未填')
1302 1302
       } else if (this.prescription.blood_flow_volume == 0) {
1303 1303
         this.$message.error('血流量未填')
@@ -1307,9 +1307,9 @@ export default {
1307 1307
         this.$message.error('透析器未填')
1308 1308
       } else if (this.prescription.dialysis_irrigation == '') {
1309 1309
         this.$message.error('灌流器未填')
1310
-      } else if (this.prescription.plasma_separator == '') {
1310
+      } else if (this.prescription.plasma_separator == '' && this.org_id == 9538) {
1311 1311
         this.$message.error('血浆分离器未填')
1312
-      } else if (this.prescription.bilirubin_adsorption_column == '') {
1312
+      } else if (this.prescription.bilirubin_adsorption_column == '' && this.org_id == 9538) {
1313 1313
         this.$message.error('胆红素吸附柱未填')
1314 1314
       } else if (this.predialysis.weight_before == 0) {
1315 1315
         this.$message.error('透前体重未填')
@@ -1376,25 +1376,42 @@ export default {
1376 1376
       } else if (this.prescription.creater == 0) {
1377 1377
         this.$message.error('医生签名未填')
1378 1378
       }else if(this.tableAdvice.length > 0){
1379
+        let num = 0
1379 1380
         this.tableAdvice.map(item => {
1380
-          if(item.id > 0 && item.created_time){
1381
+          if(item.id > 0 && (item.created_time || item.start_time)){
1381 1382
             this.users.map(it => {
1382 1383
               if(it.id == item.advice_doctor){
1383
-                if(it.type != 2){
1384
+                if(it.user_type == 3){
1385
+                  num++
1384 1386
                   this.$message.error('存在不是医生保存的医嘱')
1387
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388
+                  if(it.user_type == 2){
1389
+                    num++
1390
+                    this.$message.error('存在不是护士执行的医嘱')
1391
+                  }
1392
+                }else if(it.id == item.checker && item.checker > 0){
1393
+                  if(it.user_type == 2){
1394
+                    num++
1395
+                    this.$message.error('存在不是护士核对的医嘱')
1396
+                  }
1385 1397
                 }
1386 1398
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1387
-                if(it.type != 3){
1399
+                if(it.user_type == 2){
1400
+                  num++
1388 1401
                   this.$message.error('存在不是护士执行的医嘱')
1389 1402
                 }
1390 1403
               }else if(it.id == item.checker && item.checker > 0){
1391
-                if(it.type != 3){
1404
+                if(it.user_type == 2){
1405
+                  num++
1392 1406
                   this.$message.error('存在不是护士核对的医嘱')
1393 1407
                 }
1394 1408
               }
1395 1409
             })
1396 1410
           }
1397 1411
         })
1412
+        if(num == 0){
1413
+          this.$message.success('核对完成')
1414
+        }
1398 1415
       }else{
1399 1416
         this.$message.success('核对完成')
1400 1417
       }

+ 54 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Wyświetl plik

@@ -503,7 +503,7 @@
503 503
                         <td width="50">电导度<br />(ms/cm)</td>
504 504
                         <td width="50">超滤量<br />(ml)</td>
505 505
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5" width="50">
506
-                          置换量<br />(ml)
506
+                          置换量<br />(L)
507 507
                         </td>
508 508
                         <td width="200">病情变化及处理</td>
509 509
                         <td width="100">护士签名</td>
@@ -1198,9 +1198,9 @@ export default {
1198 1198
         this.$message.error('透前导管未填')
1199 1199
       }else if(this.prescription.mode_id == ""){
1200 1200
         this.$message.error('透析方式未填')
1201
-      }else if(this.prescription.displace_liqui_part == 0){
1201
+      }else if(this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2){
1202 1202
         this.$message.error('置换方式未填')
1203
-      }else if(this.prescription.displace_liqui_value == 0){
1203
+      }else if(this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2){
1204 1204
         this.$message.error('置换量未填')
1205 1205
       }else if(this.prescription.blood_flow_volume == 0){
1206 1206
         this.$message.error('血流量未填')
@@ -1276,38 +1276,60 @@ export default {
1276 1276
         this.$message.error('下机护士未填')
1277 1277
       }else if(this.prescription.prescription_doctor == 0){
1278 1278
         this.$message.error('治疗医生未填')
1279
-      }else if(this.monitors.length > 0){
1280
-        this.monitors.map(item => {
1281
-          if(item.id > 0 && item.operate_time){
1282
-            this.users.map(it => {
1283
-              if(it.id == item.monitoring_nurse){
1284
-                if(it.type != 3){
1285
-                  this.$message.error('存在不是护士保存的监测')
1279
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1280
+        let num = 0
1281
+        if(this.monitors.length > 0){
1282
+          this.monitors.map(item => {
1283
+            if(item.id > 0 && item.operate_time){
1284
+              this.users.map(it => {
1285
+                if(it.id == item.monitoring_nurse){
1286
+                  if(it.user_type == 2){
1287
+                    num++
1288
+                    this.$message.error('存在不是护士保存的监测')
1289
+                  }
1286 1290
                 }
1287
-              }
1288
-            })
1289
-          }
1290
-        })
1291
-      }else if(this.tableAdvice.length > 0){
1292
-        this.tableAdvice.map(item => {
1293
-          if(item.id > 0 && item.created_time){
1294
-            this.users.map(it => {
1295
-              if(it.id == item.advice_doctor){
1296
-                if(it.type != 2){
1297
-                  this.$message.error('存在不是医生保存的医嘱')
1298
-                }
1299
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1300
-                if(it.type != 3){
1301
-                  this.$message.error('存在不是护士执行的医嘱')
1302
-                }
1303
-              }else if(it.id == item.checker && item.checker > 0){
1304
-                if(it.type != 3){
1305
-                  this.$message.error('存在不是护士核对的医嘱')
1291
+              })
1292
+            }
1293
+          })
1294
+        }
1295
+        if(this.tableAdvice.length > 0){
1296
+          this.tableAdvice.map(item => {
1297
+            if(item.id > 0 && (item.created_time || item.start_time)){
1298
+              this.users.map(it => {
1299
+                if(it.id == item.advice_doctor){
1300
+                  if(it.user_type == 3){
1301
+                    num++
1302
+                    this.$message.error('存在不是医生保存的医嘱')
1303
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1304
+                    if(it.user_type == 2){
1305
+                      num++
1306
+                      this.$message.error('存在不是护士执行的医嘱')
1307
+                    }
1308
+                  }else if(it.id == item.checker && item.checker > 0){
1309
+                    if(it.user_type == 2){
1310
+                      num++
1311
+                      this.$message.error('存在不是护士核对的医嘱')
1312
+                    }
1313
+                  }
1314
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1315
+                  if(it.user_type == 2){
1316
+                    num++
1317
+                    this.$message.error('存在不是护士执行的医嘱')
1318
+                  }
1319
+                }else if(it.id == item.checker && item.checker > 0){
1320
+                  if(it.user_type == 2){
1321
+                    num++
1322
+                    this.$message.error('存在不是护士核对的医嘱')
1323
+                  }
1306 1324
                 }
1307
-              }
1308
-            })
1309
-          }
1325
+              })
1326
+            }
1310 1327
         })
1328
+        }
1329
+        
1330
+        if(num == 0){
1331
+          this.$message.success('核对完成')
1332
+        }
1311 1333
       }else{
1312 1334
         this.$message.success('核对完成')
1313 1335
       }

+ 45 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Wyświetl plik

@@ -785,13 +785,13 @@ export default {
785 785
         this.$message.error('跌倒风险预防措施未填')
786 786
       }else if(this.prescription.prescription_doctor == 0){
787 787
         this.$message.error('上机医生未填')
788
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
788
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse <= 0){
789 789
         this.$message.error('冲管护士未填')
790
-      }else if(this.dialysisOrder.puncture_nurse == 0){
790
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
791 791
         this.$message.error('穿刺者未填')
792
-      }else if(this.dialysisOrder.start_nurse == 0){
792
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
793 793
         this.$message.error('上机护士未填')
794
-      }else if(this.dialysisOrder.finish_nurse == 0){
794
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
795 795
         this.$message.error('下机护士未填')
796 796
       }else if(this.afterdialysis.temperature == 0){
797 797
         this.$message.error('透后体温未填')
@@ -815,12 +815,51 @@ export default {
815 815
         this.$message.error('透析小结未填')
816 816
       }else if(this.orderForm.start_nurse == ""){
817 817
         this.$message.error('记录者未填')
818
-      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
818
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0) || (this.check.creater == 0 && this.check.modifier == 0))){
819 819
         this.$message.error('二核护士未填')
820
-      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
820
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0) || (this.check.creater == 0 && this.check.modifier == 0))){
821 821
         this.$message.error('二核护士未填')
822 822
       }else if(this.summary.modifier == 0 && this.summary.creater == 0){
823 823
         this.$message.error('医生签名未填')
824
+      }else if(this.tableAdvice.length > 0){
825
+        let num = 0
826
+        this.tableAdvice.map(item => {
827
+          if(item.id > 0 && (item.created_time || item.start_time)){
828
+            this.users.map(it => {
829
+              if(it.id == item.advice_doctor){
830
+                if(it.user_type == 3){
831
+                  num++
832
+                  this.$message.error('存在不是医生保存的医嘱')
833
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
834
+                  if(it.user_type == 2){
835
+                    num++
836
+                    this.$message.error('存在不是护士执行的医嘱')
837
+                  }
838
+                }else if(it.id == item.checker && item.checker > 0){
839
+                  if(it.user_type == 2){
840
+                    num++
841
+                    this.$message.error('存在不是护士核对的医嘱')
842
+                  }
843
+                }
844
+              }else if(it.id == item.execution_staff && item.execution_staff > 0){
845
+                if(it.user_type == 2){
846
+                  num++
847
+                  this.$message.error('存在不是护士执行的医嘱')
848
+                }
849
+              }else if(it.id == item.checker && item.checker > 0){
850
+                if(it.user_type == 2){
851
+                  num++
852
+                  this.$message.error('存在不是护士核对的医嘱')
853
+                }
854
+              }
855
+            })
856
+          }
857
+        })
858
+        if(num == 0){
859
+          this.$message.success('核对完成')
860
+        }
861
+      }else{
862
+        this.$message.success('核对完成')
824 863
       }
825 864
     },
826 865
     getNewAge(UUserCard) {

+ 53 - 29
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Wyświetl plik

@@ -732,38 +732,62 @@ export default {
732 732
         this.$message.error('上机护士未填')
733 733
       }else if(this.prescription.prescription_doctor == 0){
734 734
         this.$message.error('医师签名未填')
735
-      }else if(this.monitors.length > 0){
736
-        this.monitors.map(item => {
737
-          if(item.id > 0 && item.operate_time){
738
-            this.users.map(it => {
739
-              if(it.id == item.monitoring_nurse){
740
-                if(it.type != 3){
741
-                  this.$message.error('存在不是护士保存的监测')
742
-                }
743
-              }
744
-            })
745
-          }
746
-        })
747
-      }else if(this.tableAdvice.length > 0){
748
-        this.tableAdvice.map(item => {
749
-          if(item.id > 0 && item.created_time){
750
-            this.users.map(it => {
751
-              if(it.id == item.advice_doctor){
752
-                if(it.type != 2){
753
-                  this.$message.error('存在不是医生保存的医嘱')
754
-                }
755
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
756
-                if(it.type != 3){
757
-                  this.$message.error('存在不是护士执行的医嘱')
735
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
736
+        let num = 0
737
+        if(this.monitors.length > 0){
738
+          this.monitors.map(item => {
739
+            if(item.id > 0 && item.operate_time){
740
+              this.users.map(it => {
741
+                if(it.id == item.monitoring_nurse){
742
+                  if(it.user_type == 2){
743
+                    num++
744
+                    this.$message.error('存在不是护士保存的监测')
745
+                  }
758 746
                 }
759
-              }else if(it.id == item.checker && item.checker > 0){
760
-                if(it.type != 3){
761
-                  this.$message.error('存在不是护士核对的医嘱')
747
+              })
748
+            }
749
+          })
750
+        }
751
+        if(this.tableAdvice.length > 0){
752
+          this.tableAdvice.map(item => {
753
+            if(item.id > 0 && (item.created_time || item.start_time)){
754
+              this.users.map(it => {
755
+                if(it.id == item.advice_doctor){
756
+                  if(it.user_type == 3){
757
+                    num++
758
+                    this.$message.error('存在不是医生保存的医嘱')
759
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
760
+                    if(it.user_type == 2){
761
+                      num++
762
+                      this.$message.error('存在不是护士执行的医嘱')
763
+                    }
764
+                  }else if(it.id == item.checker && item.checker > 0){
765
+                    if(it.user_type == 2){
766
+                      num++
767
+                      this.$message.error('存在不是护士核对的医嘱')
768
+                    }
769
+                  }
770
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
771
+                  if(it.user_type == 2){
772
+                    num++
773
+                    this.$message.error('存在不是护士执行的医嘱')
774
+                  }
775
+                }else if(it.id == item.checker && item.checker > 0){
776
+                  if(it.user_type == 2){
777
+                    num++
778
+                    this.$message.error('存在不是护士核对的医嘱')
779
+                  }
762 780
                 }
763
-              }
764
-            })
765
-          }
781
+              })
782
+            }
766 783
         })
784
+        }
785
+        
786
+        if(num == 0){
787
+          this.$message.success('核对完成')
788
+        }
789
+      }else{
790
+        this.$message.success('核对完成')
767 791
       }
768 792
     },
769 793
     getHemorrhage(hemorrhage){

+ 58 - 34
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue Wyświetl plik

@@ -1120,15 +1120,15 @@ export default {
1120 1120
         this.$message.error('内瘘震颤皮肤未填')
1121 1121
       }else if(this.predialysis.puncture_needle == ''){
1122 1122
         this.$message.error('针型未填')
1123
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('置管') > -1 : false)){
1123
+      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('置管') == -1 : false)){
1124 1124
         this.$message.error('置管未填')
1125 1125
       }else if(this.predialysis.blood_access_part_id == ''){
1126 1126
         this.$message.error('血管通路部位未填')
1127 1127
       }else if(this.predialysis.catheter_bend == 0){
1128 1128
         this.$message.error('导管打折未填')
1129
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('穿刺口') > -1 : false)){
1129
+      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('穿刺口') == -1 : false)){
1130 1130
         this.$message.error('穿刺口未填')
1131
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('导管吸壁') > -1 : false)){
1131
+      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('导管吸壁') == -1 : false)){
1132 1132
         this.$message.error('导管吸壁未填')
1133 1133
       }else if(this.afterdialysis.cvc_a == 0){
1134 1134
         this.$message.error('容量A未填')
@@ -1158,9 +1158,9 @@ export default {
1158 1158
         this.$message.error('医生签名未填')
1159 1159
       }else if(this.dialysisOrder.puncture_nurse == 0){
1160 1160
         this.$message.error('上机护士未填')
1161
-      }else if(this.dialysisOrder != null && this.dialysisOrder.puncture_nurse == this.check.modifier && this.check.creater == 0){
1161
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.puncture_nurse == this.check.modifier && this.check.creater == 0) || (this.check.modifier == 0 && this.check.creater == 0))){
1162 1162
         this.$message.error('核对护士未填')
1163
-      }else if(this.dialysisOrder != null && this.dialysisOrder.puncture_nurse == this.check.creater && this.check.modifier == 0){
1163
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.puncture_nurse == this.check.creater && this.check.modifier == 0) || (this.check.modifier == 0 && this.check.creater == 0))){
1164 1164
         this.$message.error('核对护士未填')
1165 1165
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1166 1166
         this.$message.error('实际治疗时间未填')
@@ -1188,38 +1188,62 @@ export default {
1188 1188
         this.$message.error('当班责任护士未填')
1189 1189
       }else if(this.dialysisOrder.finish_nurse == 0){
1190 1190
         this.$message.error('下机护士和护士签名未填')
1191
-      }else if(this.monitors.length > 0){
1192
-        this.monitors.map(item => {
1193
-          if(item.id > 0 && item.operate_time){
1194
-            this.users.map(it => {
1195
-              if(it.id == item.monitoring_nurse){
1196
-                if(it.type != 3){
1197
-                  this.$message.error('存在不是护士保存的监测')
1198
-                }
1199
-              }
1200
-            })
1201
-          }
1202
-        })
1203
-      }else if(this.tableAdvice.length > 0){
1204
-        this.tableAdvice.map(item => {
1205
-          if(item.id > 0 && item.created_time){
1206
-            this.users.map(it => {
1207
-              if(it.id == item.advice_doctor){
1208
-                if(it.type != 2){
1209
-                  this.$message.error('存在不是医生保存的医嘱')
1210
-                }
1211
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1212
-                if(it.type != 3){
1213
-                  this.$message.error('存在不是护士执行的医嘱')
1191
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1192
+        let num = 0
1193
+        if(this.monitors.length > 0){
1194
+          this.monitors.map(item => {
1195
+            if(item.id > 0 && item.operate_time){
1196
+              this.users.map(it => {
1197
+                if(it.id == item.monitoring_nurse){
1198
+                  if(it.user_type == 2){
1199
+                    num++
1200
+                    this.$message.error('存在不是护士保存的监测')
1201
+                  }
1214 1202
                 }
1215
-              }else if(it.id == item.checker && item.checker > 0){
1216
-                if(it.type != 3){
1217
-                  this.$message.error('存在不是护士核对的医嘱')
1203
+              })
1204
+            }
1205
+          })
1206
+        }
1207
+        if(this.tableAdvice.length > 0){
1208
+          this.tableAdvice.map(item => {
1209
+            if(item.id > 0 && (item.created_time || item.start_time)){
1210
+              this.users.map(it => {
1211
+                if(it.id == item.advice_doctor){
1212
+                  if(it.user_type == 3){
1213
+                    num++
1214
+                    this.$message.error('存在不是医生保存的医嘱')
1215
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1216
+                    if(it.user_type == 2){
1217
+                      num++
1218
+                      this.$message.error('存在不是护士执行的医嘱')
1219
+                    }
1220
+                  }else if(it.id == item.checker && item.checker > 0){
1221
+                    if(it.user_type == 2){
1222
+                      num++
1223
+                      this.$message.error('存在不是护士核对的医嘱')
1224
+                    }
1225
+                  }
1226
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1227
+                  if(it.user_type == 2){
1228
+                    num++
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.error('存在不是护士核对的医嘱')
1235
+                  }
1218 1236
                 }
1219
-              }
1220
-            })
1221
-          }
1237
+              })
1238
+            }
1222 1239
         })
1240
+        }
1241
+        
1242
+        if(num == 0){
1243
+          this.$message.success('核对完成')
1244
+        }
1245
+      }else{
1246
+        this.$message.success('核对完成')
1223 1247
       }
1224 1248
     },
1225 1249
     getNewAge(UUserCard) {

+ 43 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Wyświetl plik

@@ -1805,12 +1805,54 @@ export default {
1805 1805
           this.$message.error('医生未填')
1806 1806
         }else if(this.dialysisOrder.start_nurse == 0){
1807 1807
           this.$message.error('责任护士未填')
1808
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1808
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1809 1809
           this.$message.error('穿刺护士未填')
1810 1810
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1811 1811
           this.$message.error('核对护士未填')
1812 1812
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1813 1813
           this.$message.error('核对护士未填')
1814
+        }else if(this.tableAdvice.length > 0){
1815
+          let num = 0
1816
+          if(this.tableAdvice.length > 0){
1817
+            this.tableAdvice.map(item => {
1818
+              if(item.id > 0 && (item.created_time || item.start_time)){
1819
+                this.users.map(it => {
1820
+                  if(it.id == item.advice_doctor){
1821
+                    if(it.user_type == 3){
1822
+                      num++
1823
+                      this.$message.error('存在不是医生保存的医嘱')
1824
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1825
+                      if(it.user_type == 2){
1826
+                        num++
1827
+                        this.$message.error('存在不是护士执行的医嘱')
1828
+                      }
1829
+                    }else if(it.id == item.checker && item.checker > 0){
1830
+                      if(it.user_type == 2){
1831
+                        num++
1832
+                        this.$message.error('存在不是护士核对的医嘱')
1833
+                      }
1834
+                    }
1835
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1836
+                    if(it.user_type == 2){
1837
+                      num++
1838
+                      this.$message.error('存在不是护士执行的医嘱')
1839
+                    }
1840
+                  }else if(it.id == item.checker && item.checker > 0){
1841
+                    if(it.user_type == 2){
1842
+                      num++
1843
+                      this.$message.error('存在不是护士核对的医嘱')
1844
+                    }
1845
+                  }
1846
+                })
1847
+              }
1848
+          })
1849
+          }
1850
+          
1851
+          if(num == 0){
1852
+            this.$message.success('核对完成')
1853
+          }
1854
+        }else{
1855
+          this.$message.success('核对完成')
1814 1856
         }
1815 1857
       },
1816 1858
       getComplication(complication){

+ 40 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue Wyświetl plik

@@ -1212,7 +1212,7 @@ export default {
1212 1212
           this.$message.error('透析小结未填')
1213 1213
         }else if(this.prescription.creater == 0){
1214 1214
           this.$message.error('医生签名未填')
1215
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1215
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1216 1216
           this.$message.error('穿刺护士未填')
1217 1217
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1218 1218
           this.$message.error('核对护士未填')
@@ -1223,25 +1223,47 @@ export default {
1223 1223
         }else if(this.dialysisOrder.finish_nurse == 0){
1224 1224
           this.$message.error('下机护士未填')
1225 1225
         }else if(this.tableAdvice.length > 0){
1226
-          this.tableAdvice.map(item => {
1227
-            if(item.id > 0 && item.created_time){
1228
-              this.users.map(it => {
1229
-                if(it.id == item.advice_doctor){
1230
-                  if(it.type != 2){
1231
-                    this.$message.error('存在不是医生保存的医嘱')
1232
-                  }
1233
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1234
-                  if(it.type != 3){
1235
-                    this.$message.error('存在不是护士执行的医嘱')
1236
-                  }
1237
-                }else if(it.id == item.checker && item.checker > 0){
1238
-                  if(it.type != 3){
1239
-                    this.$message.error('存在不是护士核对的医嘱')
1226
+          let num = 0
1227
+          if(this.tableAdvice.length > 0){
1228
+            this.tableAdvice.map(item => {
1229
+              if(item.id > 0 && (item.created_time || item.start_time)){
1230
+                this.users.map(it => {
1231
+                  if(it.id == item.advice_doctor){
1232
+                    if(it.user_type == 3){
1233
+                      num++
1234
+                      this.$message.error('存在不是医生保存的医嘱')
1235
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1236
+                      if(it.user_type == 2){
1237
+                        num++
1238
+                        this.$message.error('存在不是护士执行的医嘱')
1239
+                      }
1240
+                    }else if(it.id == item.checker && item.checker > 0){
1241
+                      if(it.user_type == 2){
1242
+                        num++
1243
+                        this.$message.error('存在不是护士核对的医嘱')
1244
+                      }
1245
+                    }
1246
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1247
+                    if(it.user_type == 2){
1248
+                      num++
1249
+                      this.$message.error('存在不是护士执行的医嘱')
1250
+                    }
1251
+                  }else if(it.id == item.checker && item.checker > 0){
1252
+                    if(it.user_type == 2){
1253
+                      num++
1254
+                      this.$message.error('存在不是护士核对的医嘱')
1255
+                    }
1240 1256
                   }
1241
-                }
1242
-              })
1243
-            }
1257
+                })
1258
+              }
1244 1259
           })
1260
+          }
1261
+          
1262
+          if(num == 0){
1263
+            this.$message.success('核对完成')
1264
+          }
1265
+        }else{
1266
+          this.$message.success('核对完成')
1245 1267
         }
1246 1268
       },
1247 1269
       getComplication(complication){

+ 58 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Wyświetl plik

@@ -1746,12 +1746,68 @@ export default {
1746 1746
         this.$message.error('导管特殊情况未填')
1747 1747
       }else if(this.afterdialysis.complication == ""){
1748 1748
         this.$message.error('透后并发症未填')
1749
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
1749
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse <= 0){
1750 1750
         this.$message.error('冲管护士未填')
1751
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1751
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1752 1752
         this.$message.error('穿刺护士未填')
1753 1753
       }else if(this.dialysisOrder.start_nurse == 0){
1754 1754
         this.$message.error('责任护士未填')
1755
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1756
+        let num = 0
1757
+        if(this.monitors.length > 0){
1758
+          this.monitors.map(item => {
1759
+            if(item.id > 0 && item.operate_time){
1760
+              this.users.map(it => {
1761
+                if(it.id == item.monitoring_nurse){
1762
+                  if(it.user_type == 2){
1763
+                    num++
1764
+                    this.$message.error('存在不是护士保存的监测')
1765
+                  }
1766
+                }
1767
+              })
1768
+            }
1769
+          })
1770
+        }
1771
+        if(this.tableAdvice.length > 0){
1772
+          this.tableAdvice.map(item => {
1773
+            if(item.id > 0 && (item.created_time || item.start_time)){
1774
+              this.users.map(it => {
1775
+                if(it.id == item.advice_doctor){
1776
+                  if(it.user_type == 3){
1777
+                    num++
1778
+                    this.$message.error('存在不是医生保存的医嘱')
1779
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1780
+                    if(it.user_type == 2){
1781
+                      num++
1782
+                      this.$message.error('存在不是护士执行的医嘱')
1783
+                    }
1784
+                  }else if(it.id == item.checker && item.checker > 0){
1785
+                    if(it.user_type == 2){
1786
+                      num++
1787
+                      this.$message.error('存在不是护士核对的医嘱')
1788
+                    }
1789
+                  }
1790
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1791
+                  if(it.user_type == 2){
1792
+                    num++
1793
+                    this.$message.error('存在不是护士执行的医嘱')
1794
+                  }
1795
+                }else if(it.id == item.checker && item.checker > 0){
1796
+                  if(it.user_type == 2){
1797
+                    num++
1798
+                    this.$message.error('存在不是护士核对的医嘱')
1799
+                  }
1800
+                }
1801
+              })
1802
+            }
1803
+        })
1804
+        }
1805
+        
1806
+        if(num == 0){
1807
+          this.$message.success('核对完成')
1808
+        }
1809
+      }else{
1810
+        this.$message.success('核对完成')
1755 1811
       }
1756 1812
     },
1757 1813
     otherSealingFluidDispose(sealing_fluid_dispose){

+ 54 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue Wyświetl plik

@@ -776,44 +776,68 @@ export default {
776 776
         this.$message.error('透析宣教未填')
777 777
       }else if(this.summary.dialysis_summary == ""){
778 778
         this.$message.error('透析小结未填')
779
-      }else if(this.dialysisOrder.puncture_nurse == 0){
779
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
780 780
         this.$message.error('穿刺护士未填')
781 781
       }else if(this.dialysisOrder.start_nurse == 0){
782 782
         this.$message.error('治疗护士未填')
783 783
       }else if(this.prescription.prescription_doctor == 0){
784 784
         this.$message.error('医生未填')
785
-      }else if(this.monitors.length > 0){
786
-        this.monitors.map(item => {
787
-          if(item.id > 0 && item.operate_time){
788
-            this.users.map(it => {
789
-              if(it.id == item.monitoring_nurse){
790
-                if(it.type != 3){
791
-                  this.$message.error('存在不是护士保存的监测')
792
-                }
793
-              }
794
-            })
795
-          }
796
-        })
797
-      }else if(this.tableAdvice.length > 0){
798
-        this.tableAdvice.map(item => {
799
-          if(item.id > 0 && item.created_time){
800
-            this.users.map(it => {
801
-              if(it.id == item.advice_doctor){
802
-                if(it.type != 2){
803
-                  this.$message.error('存在不是医生保存的医嘱')
804
-                }
805
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
806
-                if(it.type != 3){
807
-                  this.$message.error('存在不是护士执行的医嘱')
785
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
786
+        let num = 0
787
+        if(this.monitors.length > 0){
788
+          this.monitors.map(item => {
789
+            if(item.id > 0 && item.operate_time){
790
+              this.users.map(it => {
791
+                if(it.id == item.monitoring_nurse){
792
+                  if(it.user_type == 2){
793
+                    num++
794
+                    this.$message.error('存在不是护士保存的监测')
795
+                  }
808 796
                 }
809
-              }else if(it.id == item.checker && item.checker > 0){
810
-                if(it.type != 3){
811
-                  this.$message.error('存在不是护士核对的医嘱')
797
+              })
798
+            }
799
+          })
800
+        }
801
+        if(this.tableAdvice.length > 0){
802
+          this.tableAdvice.map(item => {
803
+            if(item.id > 0 && (item.created_time || item.start_time)){
804
+              this.users.map(it => {
805
+                if(it.id == item.advice_doctor){
806
+                  if(it.user_type == 3){
807
+                    num++
808
+                    this.$message.error('存在不是医生保存的医嘱')
809
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
810
+                    if(it.user_type == 2){
811
+                      num++
812
+                      this.$message.error('存在不是护士执行的医嘱')
813
+                    }
814
+                  }else if(it.id == item.checker && item.checker > 0){
815
+                    if(it.user_type == 2){
816
+                      num++
817
+                      this.$message.error('存在不是护士核对的医嘱')
818
+                    }
819
+                  }
820
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
821
+                  if(it.user_type == 2){
822
+                    num++
823
+                    this.$message.error('存在不是护士执行的医嘱')
824
+                  }
825
+                }else if(it.id == item.checker && item.checker > 0){
826
+                  if(it.user_type == 2){
827
+                    num++
828
+                    this.$message.error('存在不是护士核对的医嘱')
829
+                  }
812 830
                 }
813
-              }
814
-            })
815
-          }
831
+              })
832
+            }
816 833
         })
834
+        }
835
+        
836
+        if(num == 0){
837
+          this.$message.success('核对完成')
838
+        }
839
+      }else{
840
+        this.$message.success('核对完成')
817 841
       }
818 842
     },
819 843
     getHemorrhage(hemorrhage){

+ 39 - 17
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Wyświetl plik

@@ -1429,25 +1429,47 @@ export default {
1429 1429
       }else if(this.dialysisOrder.finish_nurse == 0){
1430 1430
         this.$message.error('下机护士未填')
1431 1431
       }else if(this.tableAdvice.length > 0){
1432
-        this.tableAdvice.map(item => {
1433
-          if(item.id > 0 && item.created_time){
1434
-            this.users.map(it => {
1435
-              if(it.id == item.advice_doctor){
1436
-                if(it.type != 2){
1437
-                  this.$message.error('存在不是医生保存的医嘱')
1438
-                }
1439
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1440
-                if(it.type != 3){
1441
-                  this.$message.error('存在不是护士执行的医嘱')
1442
-                }
1443
-              }else if(it.id == item.checker && item.checker > 0){
1444
-                if(it.type != 3){
1445
-                  this.$message.error('存在不是护士核对的医嘱')
1432
+        let num = 0
1433
+        if(this.tableAdvice.length > 0){
1434
+          this.tableAdvice.map(item => {
1435
+            if(item.id > 0 && (item.created_time || item.start_time)){
1436
+              this.users.map(it => {
1437
+                if(it.id == item.advice_doctor){
1438
+                  if(it.user_type == 3){
1439
+                    num++
1440
+                    this.$message.error('存在不是医生保存的医嘱')
1441
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1442
+                    if(it.user_type == 2){
1443
+                      num++
1444
+                      this.$message.error('存在不是护士执行的医嘱')
1445
+                    }
1446
+                  }else if(it.id == item.checker && item.checker > 0){
1447
+                    if(it.user_type == 2){
1448
+                      num++
1449
+                      this.$message.error('存在不是护士核对的医嘱')
1450
+                    }
1451
+                  }
1452
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1453
+                  if(it.user_type == 2){
1454
+                    num++
1455
+                    this.$message.error('存在不是护士执行的医嘱')
1456
+                  }
1457
+                }else if(it.id == item.checker && item.checker > 0){
1458
+                  if(it.user_type == 2){
1459
+                    num++
1460
+                    this.$message.error('存在不是护士核对的医嘱')
1461
+                  }
1446 1462
                 }
1447
-              }
1448
-            })
1449
-          }
1463
+              })
1464
+            }
1450 1465
         })
1466
+        }
1467
+        
1468
+        if(num == 0){
1469
+          this.$message.success('核对完成')
1470
+        }
1471
+      }else{
1472
+        this.$message.success('核对完成')
1451 1473
       }
1452 1474
     },
1453 1475
     getComplication(complication){

+ 39 - 17
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue Wyświetl plik

@@ -1320,25 +1320,47 @@ export default {
1320 1320
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1321 1321
         this.$message.error('核对护士未填')
1322 1322
       }else if(this.tableAdvice.length > 0){
1323
-        this.tableAdvice.map(item => {
1324
-          if(item.id > 0 && item.created_time){
1325
-            this.users.map(it => {
1326
-              if(it.id == item.advice_doctor){
1327
-                if(it.type != 2){
1328
-                  this.$message.error('存在不是医生保存的医嘱')
1329
-                }
1330
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1331
-                if(it.type != 3){
1332
-                  this.$message.error('存在不是护士执行的医嘱')
1333
-                }
1334
-              }else if(it.id == item.checker && item.checker > 0){
1335
-                if(it.type != 3){
1336
-                  this.$message.error('存在不是护士核对的医嘱')
1323
+        let num = 0
1324
+        if(this.tableAdvice.length > 0){
1325
+          this.tableAdvice.map(item => {
1326
+            if(item.id > 0 && (item.created_time || item.start_time)){
1327
+              this.users.map(it => {
1328
+                if(it.id == item.advice_doctor){
1329
+                  if(it.user_type == 3){
1330
+                    num++
1331
+                    this.$message.error('存在不是医生保存的医嘱')
1332
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1333
+                    if(it.user_type == 2){
1334
+                      num++
1335
+                      this.$message.error('存在不是护士执行的医嘱')
1336
+                    }
1337
+                  }else if(it.id == item.checker && item.checker > 0){
1338
+                    if(it.user_type == 2){
1339
+                      num++
1340
+                      this.$message.error('存在不是护士核对的医嘱')
1341
+                    }
1342
+                  }
1343
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1344
+                  if(it.user_type == 2){
1345
+                    num++
1346
+                    this.$message.error('存在不是护士执行的医嘱')
1347
+                  }
1348
+                }else if(it.id == item.checker && item.checker > 0){
1349
+                  if(it.user_type == 2){
1350
+                    num++
1351
+                    this.$message.error('存在不是护士核对的医嘱')
1352
+                  }
1337 1353
                 }
1338
-              }
1339
-            })
1340
-          }
1354
+              })
1355
+            }
1341 1356
         })
1357
+        }
1358
+        
1359
+        if(num == 0){
1360
+          this.$message.success('核对完成')
1361
+        }
1362
+      }else{
1363
+        this.$message.success('核对完成')
1342 1364
       }
1343 1365
     },
1344 1366
     getNewAge(UUserCard) {

+ 56 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue Wyświetl plik

@@ -1386,7 +1386,7 @@ export default {
1386 1386
         this.$message.error('患者去向未填')
1387 1387
       }else if(this.dialysisOrder.start_nurse == 0){
1388 1388
         this.$message.error('责任护士未填')
1389
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1389
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1390 1390
         this.$message.error('穿刺者未填')
1391 1391
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1392 1392
         this.$message.error('核对人未填')
@@ -1404,7 +1404,7 @@ export default {
1404 1404
         this.$message.error('治疗方式未填')
1405 1405
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1406 1406
         this.$message.error('透析时间未填')
1407
-      }else if(this.prescription.body_fluid == 0){
1407
+      }else if(this.prescription.body_fluid == 0 && this.prescription.body_fluid_other == ""){
1408 1408
         this.$message.error('体液过多症状未填')
1409 1409
       }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1410 1410
         this.$message.error('透析器型号未填')
@@ -1432,38 +1432,62 @@ export default {
1432 1432
         this.$message.error('实际超滤量未填')
1433 1433
       }else if(this.afterdialysis.weight_after == 0){
1434 1434
         this.$message.error('透后体重未填')
1435
-      }else if(this.monitors.length > 0){
1436
-        this.monitors.map(item => {
1437
-          if(item.id > 0 && item.operate_time){
1438
-            this.users.map(it => {
1439
-              if(it.id == item.monitoring_nurse){
1440
-                if(it.type != 3){
1441
-                  this.$message.error('存在不是护士保存的监测')
1442
-                }
1443
-              }
1444
-            })
1445
-          }
1446
-        })
1447
-      }else if(this.advices.length > 0){
1448
-        this.advices.map(item => {
1449
-          if(item.id > 0 && item.created_time){
1450
-            this.users.map(it => {
1451
-              if(it.id == item.advice_doctor){
1452
-                if(it.type != 2){
1453
-                  this.$message.error('存在不是医生保存的医嘱')
1454
-                }
1455
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1456
-                if(it.type != 3){
1457
-                  this.$message.error('存在不是护士执行的医嘱')
1435
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1436
+        let num = 0
1437
+        if(this.monitors.length > 0){
1438
+          this.monitors.map(item => {
1439
+            if(item.id > 0 && item.operate_time){
1440
+              this.users.map(it => {
1441
+                if(it.id == item.monitoring_nurse){
1442
+                  if(it.user_type == 2){
1443
+                    num++
1444
+                    this.$message.error('存在不是护士保存的监测')
1445
+                  }
1458 1446
                 }
1459
-              }else if(it.id == item.checker && item.checker > 0){
1460
-                if(it.type != 3){
1461
-                  this.$message.error('存在不是护士核对的医嘱')
1447
+              })
1448
+            }
1449
+          })
1450
+        }
1451
+        if(this.tableAdvice.length > 0){
1452
+          this.tableAdvice.map(item => {
1453
+            if(item.id > 0 && (item.created_time || item.start_time)){
1454
+              this.users.map(it => {
1455
+                if(it.id == item.advice_doctor){
1456
+                  if(it.user_type == 3){
1457
+                    num++
1458
+                    this.$message.error('存在不是医生保存的医嘱')
1459
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1460
+                    if(it.user_type == 2){
1461
+                      num++
1462
+                      this.$message.error('存在不是护士执行的医嘱')
1463
+                    }
1464
+                  }else if(it.id == item.checker && item.checker > 0){
1465
+                    if(it.user_type == 2){
1466
+                      num++
1467
+                      this.$message.error('存在不是护士核对的医嘱')
1468
+                    }
1469
+                  }
1470
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1471
+                  if(it.user_type == 2){
1472
+                    num++
1473
+                    this.$message.error('存在不是护士执行的医嘱')
1474
+                  }
1475
+                }else if(it.id == item.checker && item.checker > 0){
1476
+                  if(it.user_type == 2){
1477
+                    num++
1478
+                    this.$message.error('存在不是护士核对的医嘱')
1479
+                  }
1462 1480
                 }
1463
-              }
1464
-            })
1465
-          }
1481
+              })
1482
+            }
1466 1483
         })
1484
+        }
1485
+        
1486
+        if(num == 0){
1487
+          this.$message.success('核对完成')
1488
+        }
1489
+      }else{
1490
+        this.$message.success('核对完成')
1467 1491
       }
1468 1492
     },
1469 1493
     getPartName(id) {
@@ -1733,6 +1757,7 @@ export default {
1733 1757
         }
1734 1758
 
1735 1759
         this.advices = response.data.data.advices;
1760
+        this.tableAdvice = response.data.data.advices;
1736 1761
         this.monitors = response.data.data.monitors;
1737 1762
         this.summary = response.data.data.summary;
1738 1763
         this.org_template_info = response.data.data.org_template_info;

+ 45 - 30
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Wyświetl plik

@@ -1276,7 +1276,7 @@ export default {
1276 1276
         this.$message.error('碳酸氢根未填')
1277 1277
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1278 1278
         this.$message.error('血管通路未填')
1279
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1279
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1280 1280
         this.$message.error('穿刺者未填')
1281 1281
       }else if(this.predialysis.weight_before == 0){
1282 1282
         this.$message.error('透前体重未填')
@@ -1302,38 +1302,53 @@ export default {
1302 1302
         this.$message.error('核对护士未填')
1303 1303
       }else if(this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0){
1304 1304
         this.$message.error('护士签名未填')
1305
-      }else if(this.monitors.length > 0){
1306
-        this.monitors.map(item => {
1307
-          if(item.id > 0 && item.operate_time){
1308
-            this.users.map(it => {
1309
-              if(it.id == item.monitoring_nurse){
1310
-                if(it.type != 3){
1311
-                  this.$message.error('存在不是护士保存的监测')
1312
-                }
1313
-              }
1314
-            })
1315
-          }
1316
-        })
1317
-      }else if(this.tableAdvice.length > 0){
1318
-        this.tableAdvice.map(item => {
1319
-          if(item.id > 0 && item.created_time){
1320
-            this.users.map(it => {
1321
-              if(it.id == item.advice_doctor){
1322
-                if(it.type != 2){
1323
-                  this.$message.error('存在不是医生保存的医嘱')
1324
-                }
1325
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1326
-                if(it.type != 3){
1327
-                  this.$message.error('存在不是护士执行的医嘱')
1305
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1306
+        let num = 0
1307
+        if(this.monitors.length > 0){
1308
+          this.monitors.map(item => {
1309
+            if(item.id > 0 && item.operate_time){
1310
+              this.users.map(it => {
1311
+                if(it.id == item.monitoring_nurse){
1312
+                  if(it.user_type == 2){
1313
+                    num++
1314
+                    this.$message.error('存在不是护士保存的监测')
1315
+                  }
1328 1316
                 }
1329
-              }else if(it.id == item.checker && item.checker > 0){
1330
-                if(it.type != 3){
1331
-                  this.$message.error('存在不是护士核对的医嘱')
1317
+              })
1318
+            }
1319
+          })
1320
+        }
1321
+        if(this.tableAdvice.length > 0){
1322
+          this.tableAdvice.map(item => {
1323
+            if(item.id > 0 && (item.created_time || item.start_time)){
1324
+              this.users.map(it => {
1325
+                if(it.id == item.advice_doctor){
1326
+                  if(it.user_type == 3){
1327
+                    num++
1328
+                    this.$message.error('存在不是医生保存的医嘱')
1329
+                  }
1330
+                  else if(it.id == item.execution_staff && item.execution_staff > 0){
1331
+                    if(it.user_type == 2){
1332
+                      num++
1333
+                      this.$message.error('存在不是护士执行的医嘱')
1334
+                    }
1335
+                  }
1336
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1337
+                  if(it.user_type == 2){
1338
+                    num++
1339
+                    this.$message.error('存在不是护士执行的医嘱')
1340
+                  }
1332 1341
                 }
1333
-              }
1334
-            })
1335
-          }
1342
+              })
1343
+            }
1336 1344
         })
1345
+        }
1346
+        
1347
+        if(num == 0){
1348
+          this.$message.success('核对完成')
1349
+        }
1350
+      }else{
1351
+        this.$message.success('核对完成')
1337 1352
       }
1338 1353
     },
1339 1354
     getDisplaceLiquiPart: function(val) {

+ 53 - 30
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Wyświetl plik

@@ -1370,7 +1370,7 @@ export default {
1370 1370
         this.$message.error('心理评估未填')
1371 1371
       }else if(this.afterdialysis.dialysis_process == 0){
1372 1372
         this.$message.error('透析过程未填')
1373
-      }else if(this.afterdialysis.in_advance_reason == ""){
1373
+      }else if(this.afterdialysis.dialysis_process == 2 && this.afterdialysis.in_advance_reason == ""){
1374 1374
         this.$message.error('透析过程原因未填')
1375 1375
       }else if(this.afterdialysis.hemostasis_minute == 0){
1376 1376
         this.$message.error('内瘘管拔针后压迫止血时间未填')
@@ -1436,38 +1436,60 @@ export default {
1436 1436
         this.$message.error('实际超滤量未填')
1437 1437
       }else if(this.afterdialysis.weight_after == 0){
1438 1438
         this.$message.error('透后体重未填')
1439
-      }else if(this.monitors.length > 0){
1440
-        this.monitors.map(item => {
1441
-          if(item.id > 0 && item.operate_time){
1442
-            this.users.map(it => {
1443
-              if(it.id == item.monitoring_nurse){
1444
-                if(it.type != 3){
1445
-                  this.$message.error('存在不是护士保存的监测')
1446
-                }
1447
-              }
1448
-            })
1449
-          }
1450
-        })
1451
-      }else if(this.advices.length > 0){
1452
-        this.advices.map(item => {
1453
-          if(item.id > 0 && item.created_time){
1454
-            this.users.map(it => {
1455
-              if(it.id == item.advice_doctor){
1456
-                if(it.type != 2){
1457
-                  this.$message.error('存在不是医生保存的医嘱')
1458
-                }
1459
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1460
-                if(it.type != 3){
1461
-                  this.$message.error('存在不是护士执行的医嘱')
1439
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1440
+        let num = 0
1441
+        if(this.monitors.length > 0){
1442
+          this.monitors.map(item => {
1443
+            if(item.id > 0 && item.operate_time){
1444
+              this.users.map(it => {
1445
+                if(it.id == item.monitoring_nurse){
1446
+                  if(it.user_type == 2){
1447
+                    num++
1448
+                    this.$message.error('存在不是护士保存的监测')
1449
+                  }
1462 1450
                 }
1463
-              }else if(it.id == item.checker && item.checker > 0){
1464
-                if(it.type != 3){
1465
-                  this.$message.error('存在不是护士核对的医嘱')
1451
+              })
1452
+            }
1453
+          })
1454
+        }
1455
+        if(this.tableAdvice.length > 0){
1456
+          this.tableAdvice.map(item => {
1457
+            if(item.id > 0 && (item.created_time || item.start_time)){
1458
+              this.users.map(it => {
1459
+                if(it.id == item.advice_doctor){
1460
+                  if(it.user_type == 3){
1461
+                    num++
1462
+                    this.$message.error('存在不是医生保存的医嘱')
1463
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1464
+                    if(it.user_type == 2){
1465
+                      num++
1466
+                      this.$message.error('存在不是护士执行的医嘱')
1467
+                    }
1468
+                  }else if(it.id == item.checker && item.checker > 0){
1469
+                    if(it.user_type == 2){
1470
+                      num++
1471
+                      this.$message.error('存在不是护士核对的医嘱')
1472
+                    }
1473
+                  }
1474
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1475
+                  if(it.user_type == 2){
1476
+                    num++
1477
+                    this.$message.error('存在不是护士执行的医嘱')
1478
+                  }
1479
+                }else if(it.id == item.checker && item.checker > 0){
1480
+                  if(it.user_type == 2){
1481
+                    num++
1482
+                    this.$message.error('存在不是护士核对的医嘱')
1483
+                  }
1466 1484
                 }
1467
-              }
1468
-            })
1469
-          }
1485
+              })
1486
+            }
1470 1487
         })
1488
+        }
1489
+        
1490
+        if(num == 0){
1491
+          this.$message.success('核对完成')
1492
+        }
1471 1493
       }else{
1472 1494
         this.$message.success('核对完成')
1473 1495
       }
@@ -1730,6 +1752,7 @@ export default {
1730 1752
         }
1731 1753
 
1732 1754
         this.advices = response.data.data.advices;
1755
+        this.tableAdvice = response.data.data.advices;
1733 1756
         this.monitors = response.data.data.monitors;
1734 1757
         this.summary = response.data.data.summary;
1735 1758
         this.org_template_info = response.data.data.org_template_info;