see999 3 yıl önce
ebeveyn
işleme
8603d407d5
33 değiştirilmiş dosya ile 862 ekleme ve 277 silme
  1. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  2. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue
  3. 67 33
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  4. 19 4
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyFive.vue
  5. 16 7
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyFour.vue
  6. 62 32
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  7. 7 2
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue
  8. 54 2
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue
  9. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue
  10. 8 1
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  11. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  12. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue
  13. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  14. 8 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  15. 6 1
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  16. 12 2
      src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue
  17. 65 31
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue
  18. 63 33
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFour.vue
  19. 62 32
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue
  20. 49 22
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  21. 64 2
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue
  22. 65 18
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue
  23. 7 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue
  24. 12 3
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  25. 27 3
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue
  26. 8 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  27. 10 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue
  28. 7 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  29. 29 5
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue
  30. 11 5
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue
  31. 5 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  32. 7 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  33. 73 22
      src/xt_pages/workforce/remind_print_setting.vue

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name"></div>
6
         <div class="order-yy-name"></div>
1369
                 if(it.id == item.monitoring_nurse){
1369
                 if(it.id == item.monitoring_nurse){
1370
                   if(it.user_type == 2){
1370
                   if(it.user_type == 2){
1371
                     num++
1371
                     num++
1372
+                    this.$message.closeAll()
1372
                     this.$message.error('存在不是护士保存的监测')
1373
                     this.$message.error('存在不是护士保存的监测')
1373
                   }
1374
                   }
1374
                 }
1375
                 }
1383
                 if(it.id == item.advice_doctor){
1384
                 if(it.id == item.advice_doctor){
1384
                   if(it.user_type == 3){
1385
                   if(it.user_type == 3){
1385
                     num++
1386
                     num++
1387
+                    this.$message.closeAll()
1386
                     this.$message.error('存在不是医生保存的医嘱')
1388
                     this.$message.error('存在不是医生保存的医嘱')
1387
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1389
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388
                     if(it.user_type == 2){
1390
                     if(it.user_type == 2){
1389
                       num++
1391
                       num++
1392
+                      this.$message.closeAll()
1390
                       this.$message.error('存在不是护士执行的医嘱')
1393
                       this.$message.error('存在不是护士执行的医嘱')
1391
                     }
1394
                     }
1392
                   }else if(it.id == item.checker && item.checker > 0){
1395
                   }else if(it.id == item.checker && item.checker > 0){
1393
                     if(it.user_type == 2){
1396
                     if(it.user_type == 2){
1394
                       num++
1397
                       num++
1398
+                      this.$message.closeAll()
1395
                       this.$message.error('存在不是护士核对的医嘱')
1399
                       this.$message.error('存在不是护士核对的医嘱')
1396
                     }
1400
                     }
1397
                   }
1401
                   }
1398
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1402
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1399
                   if(it.user_type == 2){
1403
                   if(it.user_type == 2){
1400
                     num++
1404
                     num++
1405
+                    this.$message.closeAll()
1401
                     this.$message.error('存在不是护士执行的医嘱')
1406
                     this.$message.error('存在不是护士执行的医嘱')
1402
                   }
1407
                   }
1403
                 }else if(it.id == item.checker && item.checker > 0){
1408
                 }else if(it.id == item.checker && item.checker > 0){
1404
                   if(it.user_type == 2){
1409
                   if(it.user_type == 2){
1405
                     num++
1410
                     num++
1411
+                    this.$message.closeAll()
1406
                     this.$message.error('存在不是护士核对的医嘱')
1412
                     this.$message.error('存在不是护士核对的医嘱')
1407
                   }
1413
                   }
1408
                 }
1414
                 }

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
5
       <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
6
         <div style="display:inline-block;width:100%;text-align:center;">
6
         <div style="display:inline-block;width:100%;text-align:center;">
1266
                 if(it.id == item.monitoring_nurse){
1266
                 if(it.id == item.monitoring_nurse){
1267
                   if(it.user_type == 2){
1267
                   if(it.user_type == 2){
1268
                     num++
1268
                     num++
1269
+                    this.$message.closeAll()
1269
                     this.$message.error('存在不是护士保存的监测')
1270
                     this.$message.error('存在不是护士保存的监测')
1270
                   }
1271
                   }
1271
                 }
1272
                 }
1280
                 if(it.id == item.advice_doctor){
1281
                 if(it.id == item.advice_doctor){
1281
                   if(it.user_type == 3){
1282
                   if(it.user_type == 3){
1282
                     num++
1283
                     num++
1284
+                    this.$message.closeAll()
1283
                     this.$message.error('存在不是医生保存的医嘱')
1285
                     this.$message.error('存在不是医生保存的医嘱')
1284
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1286
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1285
                     if(it.user_type == 2){
1287
                     if(it.user_type == 2){
1286
                       num++
1288
                       num++
1289
+                      this.$message.closeAll()
1287
                       this.$message.error('存在不是护士执行的医嘱')
1290
                       this.$message.error('存在不是护士执行的医嘱')
1288
                     }
1291
                     }
1289
                   }else if(it.id == item.checker && item.checker > 0){
1292
                   }else if(it.id == item.checker && item.checker > 0){
1290
                     if(it.user_type == 2){
1293
                     if(it.user_type == 2){
1291
                       num++
1294
                       num++
1295
+                      this.$message.closeAll()
1292
                       this.$message.error('存在不是护士核对的医嘱')
1296
                       this.$message.error('存在不是护士核对的医嘱')
1293
                     }
1297
                     }
1294
                   }
1298
                   }
1295
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1299
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1296
                   if(it.user_type == 2){
1300
                   if(it.user_type == 2){
1297
                     num++
1301
                     num++
1302
+                    this.$message.closeAll()
1298
                     this.$message.error('存在不是护士执行的医嘱')
1303
                     this.$message.error('存在不是护士执行的医嘱')
1299
                   }
1304
                   }
1300
                 }else if(it.id == item.checker && item.checker > 0){
1305
                 }else if(it.id == item.checker && item.checker > 0){
1301
                   if(it.user_type == 2){
1306
                   if(it.user_type == 2){
1302
                     num++
1307
                     num++
1308
+                    this.$message.closeAll()
1303
                     this.$message.error('存在不是护士核对的医嘱')
1309
                     this.$message.error('存在不是护士核对的医嘱')
1304
                   }
1310
                   }
1305
                 }
1311
                 }

+ 67 - 33
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
       
6
       
1822
           this.$message.error('透前体温未填')
1822
           this.$message.error('透前体温未填')
1823
         }else if(this.receiverTreatmentAccess.posture == 0){
1823
         }else if(this.receiverTreatmentAccess.posture == 0){
1824
           this.$message.error('体位未填')
1824
           this.$message.error('体位未填')
1825
-        }else if(monitors[0] && (this.monitors[0].systolic_blood_pressure.systolic_blood_pressure == 0 || this.monitors[0].systolic_blood_pressure.diastolic_blood_pressure == 0)){
1825
+        }else if(this.monitors[0] && (this.monitors[0].systolic_blood_pressure == 0 || this.monitors[0].diastolic_blood_pressure == 0)){
1826
           this.$message.error('透前血压未填完整')
1826
           this.$message.error('透前血压未填完整')
1827
         }else if(this.predialysis.catheter == ''){
1827
         }else if(this.predialysis.catheter == ''){
1828
           this.$message.error('导管穿刺口未填')
1828
           this.$message.error('导管穿刺口未填')
1910
           this.$message.error('治疗小结未填')
1910
           this.$message.error('治疗小结未填')
1911
         }else if(this.prescription.prescription_doctor == 0){
1911
         }else if(this.prescription.prescription_doctor == 0){
1912
           this.$message.error('医生未填')
1912
           this.$message.error('医生未填')
1913
-        }else if(this.dialysisOrder.start_nurse == 0){
1913
+        }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1914
           this.$message.error('责任护士未填')
1914
           this.$message.error('责任护士未填')
1915
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1915
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1916
           this.$message.error('穿刺护士未填')
1916
           this.$message.error('穿刺护士未填')
1917
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1918
+          this.$message.error('核对护士未填')
1919
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1920
+          this.$message.error('核对护士未填')
1917
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1921
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1918
           this.$message.error('核对护士未填')
1922
           this.$message.error('核对护士未填')
1919
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1923
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1920
           this.$message.error('核对护士未填')
1924
           this.$message.error('核对护士未填')
1921
-        }else if(this.monitors.length > 0){
1922
-          this.monitors.map(item => {
1923
-            if(item.id > 0 && item.operate_time){
1924
-              this.users.map(it => {
1925
-                if(it.id == item.monitoring_nurse){
1926
-                  if(it.type != 3){
1927
-                    this.$message.error('存在不是护士保存的监测')
1928
-                  }
1929
-                }
1930
-              })
1931
-            }
1932
-          })
1933
-        }else if(this.tableAdvice.length > 0){
1934
-          this.tableAdvice.map(item => {
1935
-            if(item.id > 0 && item.created_time){
1936
-              this.users.map(it => {
1937
-                if(it.id == item.advice_doctor){
1938
-                  if(it.type != 2){
1939
-                    this.$message.error('存在不是医生保存的医嘱')
1940
-                  }
1941
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1942
-                  if(it.type != 3){
1943
-                    this.$message.error('存在不是护士执行的医嘱')
1925
+        }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1926
+          let num = 0
1927
+          if(this.monitors.length > 0){
1928
+            this.monitors.map(item => {
1929
+              if(item.id > 0 && item.operate_time){
1930
+                this.users.map(it => {
1931
+                  if(it.id == item.monitoring_nurse){
1932
+                    if(it.user_type == 2){
1933
+                      num++
1934
+                      this.$message.closeAll()
1935
+                      this.$message.error('存在不是护士保存的监测')
1936
+                    }
1944
                   }
1937
                   }
1945
-                }else if(it.id == item.checker && item.checker > 0){
1946
-                  if(it.type != 3){
1947
-                    this.$message.error('存在不是护士核对的医嘱')
1938
+                })
1939
+              }
1940
+            })
1941
+          }
1942
+          if(this.tableAdvice.length > 0){
1943
+            this.tableAdvice.map(item => {
1944
+              if(item.id > 0 && (item.created_time || item.start_time)){
1945
+                this.users.map(it => {
1946
+                  if(it.id == item.advice_doctor){
1947
+                    if(it.user_type == 3){
1948
+                      num++
1949
+                      this.$message.closeAll()
1950
+                      this.$message.error('存在不是医生保存的医嘱')
1951
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1952
+                      if(it.user_type == 2){
1953
+                        num++
1954
+                        this.$message.closeAll()
1955
+                        this.$message.error('存在不是护士执行的医嘱')
1956
+                      }
1957
+                    }else if(it.id == item.checker && item.checker > 0){
1958
+                      if(it.user_type == 2){
1959
+                        num++
1960
+                        this.$message.closeAll()
1961
+                        this.$message.error('存在不是护士核对的医嘱')
1962
+                      }
1963
+                    }
1964
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1965
+                    if(it.user_type == 2){
1966
+                      num++
1967
+                      this.$message.closeAll()
1968
+                      this.$message.error('存在不是护士执行的医嘱')
1969
+                    }
1970
+                  }else if(it.id == item.checker && item.checker > 0){
1971
+                    if(it.user_type == 2){
1972
+                      num++
1973
+                      this.$message.closeAll()
1974
+                      this.$message.error('存在不是护士核对的医嘱')
1975
+                    }
1948
                   }
1976
                   }
1949
-                }
1950
-              })
1951
-            }
1977
+                })
1978
+              }
1952
           })
1979
           })
1980
+          }
1981
+          
1982
+          if(num == 0){
1983
+            this.$message.success('核对完成')
1984
+          }
1985
+        }else{
1986
+          this.$message.success('核对完成')
1953
         }
1987
         }
1954
       },
1988
       },
1955
       getComplication(complication){
1989
       getComplication(complication){

+ 19 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyFive.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
834
                           <!--<span v-if="afterdialysis.creater==0">&nbsp;</span>-->
834
                           <!--<span v-if="afterdialysis.creater==0">&nbsp;</span>-->
835
                           <!--<img class="es-img" :src="setAdminUserES(afterdialysis.creater)" alt="" srcset="" v-else>-->
835
                           <!--<img class="es-img" :src="setAdminUserES(afterdialysis.creater)" alt="" srcset="" v-else>-->
836
 
836
 
837
-                          <span v-if="dialysisOrder.start_nurse != check.modifier">
837
+                          <span v-if="dialysisOrder ? dialysisOrder.start_nurse != check.modifier : false">
838
                             <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
838
                             <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
839
                             {{ getAdminUser(check == null ? 0 : check.modifier) }}
839
                             {{ getAdminUser(check == null ? 0 : check.modifier) }}
840
                             </span>
840
                             </span>
1183
         this.$message.error('透前体温未填')
1183
         this.$message.error('透前体温未填')
1184
       }else if(this.receiverTreatmentAccess.posture == 0){
1184
       }else if(this.receiverTreatmentAccess.posture == 0){
1185
         this.$message.error('体位未填')
1185
         this.$message.error('体位未填')
1186
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1186
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1187
         this.$message.error('透前血压未填完整')
1187
         this.$message.error('透前血压未填完整')
1188
+      }else if(this.predialysis.pulse_frequency == ""){
1189
+        this.$message.error('透前脉搏未填')
1188
       }else if(this.predialysis.is_hemorrhage == 0){
1190
       }else if(this.predialysis.is_hemorrhage == 0){
1189
         this.$message.error('出血未填')
1191
         this.$message.error('出血未填')
1190
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1192
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1225
         this.$message.error('医生签名未填')
1227
         this.$message.error('医生签名未填')
1226
       }else if(this.advices[0].length > 0 && this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1228
       }else if(this.advices[0].length > 0 && this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1227
         this.$message.error('医生签名未填')
1229
         this.$message.error('医生签名未填')
1230
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1231
+        this.$message.error('上机护士未填')
1228
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1232
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1229
         this.$message.error('实际治疗时间未填')
1233
         this.$message.error('实际治疗时间未填')
1230
       }else if(this.afterdialysis.actual_ultrafiltration == 0){
1234
       }else if(this.afterdialysis.actual_ultrafiltration == 0){
1247
         this.$message.error('患者去向未填')
1251
         this.$message.error('患者去向未填')
1248
       }else if(this.afterdialysis.patient_gose == 3 && this.afterdialysis.observation_content == ""){
1252
       }else if(this.afterdialysis.patient_gose == 3 && this.afterdialysis.observation_content == ""){
1249
         this.$message.error('交待病房护士/患者/陪人观察内容未填')
1253
         this.$message.error('交待病房护士/患者/陪人观察内容未填')
1250
-      }else if(this.afterdialysis.creater == 0){
1254
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
1255
+        this.$message.error('当班责任(核对)护士未填')
1256
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
1257
+        this.$message.error('当班责任(核对)护士未填')
1258
+      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1259
+        this.$message.error('当班责任(核对)护士未填')
1260
+      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1251
         this.$message.error('当班责任(核对)护士未填')
1261
         this.$message.error('当班责任(核对)护士未填')
1252
       }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1262
       }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1253
         this.$message.error('下机护士未填')
1263
         this.$message.error('下机护士未填')
1259
               if(it.id == item.advice_doctor){
1269
               if(it.id == item.advice_doctor){
1260
                 if(it.user_type == 3){
1270
                 if(it.user_type == 3){
1261
                   num++
1271
                   num++
1272
+                  this.$message.closeAll()
1262
                   this.$message.error('存在不是医生保存的医嘱')
1273
                   this.$message.error('存在不是医生保存的医嘱')
1263
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1274
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1264
                   if(it.user_type == 2){
1275
                   if(it.user_type == 2){
1265
                     num++
1276
                     num++
1277
+                    this.$message.closeAll()
1266
                     this.$message.error('存在不是护士执行的医嘱')
1278
                     this.$message.error('存在不是护士执行的医嘱')
1267
                   }
1279
                   }
1268
                 }else if(it.id == item.checker && item.checker > 0){
1280
                 }else if(it.id == item.checker && item.checker > 0){
1269
                   if(it.user_type == 2){
1281
                   if(it.user_type == 2){
1270
                     num++
1282
                     num++
1283
+                    this.$message.closeAll()
1271
                     this.$message.error('存在不是护士核对的医嘱')
1284
                     this.$message.error('存在不是护士核对的医嘱')
1272
                   }
1285
                   }
1273
                 }
1286
                 }
1274
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1287
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1275
                 if(it.user_type == 2){
1288
                 if(it.user_type == 2){
1276
                   num++
1289
                   num++
1290
+                  this.$message.closeAll()
1277
                   this.$message.error('存在不是护士执行的医嘱')
1291
                   this.$message.error('存在不是护士执行的医嘱')
1278
                 }
1292
                 }
1279
               }else if(it.id == item.checker && item.checker > 0){
1293
               }else if(it.id == item.checker && item.checker > 0){
1280
                 if(it.user_type == 2){
1294
                 if(it.user_type == 2){
1281
                   num++
1295
                   num++
1296
+                  this.$message.closeAll()
1282
                   this.$message.error('存在不是护士核对的医嘱')
1297
                   this.$message.error('存在不是护士核对的医嘱')
1283
                 }
1298
                 }
1284
               }
1299
               }

+ 16 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderFortyFour.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1" style="width:940px">
4
     <div id="dialysis-print-box-1" style="width:940px">
5
       <div
5
       <div
6
         id="dialysis-print-box-1-1"
6
         id="dialysis-print-box-1-1"
916
   },
916
   },
917
   methods: {
917
   methods: {
918
     checkData(){
918
     checkData(){
919
-      if(this.receiverTreatmentAccess.condition == 0){
920
-        this.$message.error('门诊或住院未填')
919
+      if(this.predialysis.dialysis_count == 0){
920
+        this.$message.error('透析频率未填')
921
       }else if(this.predialysis.temperature == ""){
921
       }else if(this.predialysis.temperature == ""){
922
         this.$message.error('透前体温未填')
922
         this.$message.error('透前体温未填')
923
       }else if(this.predialysis.pulse_frequency == ""){
923
       }else if(this.predialysis.pulse_frequency == ""){
986
         this.$message.error('置换方式未填')
986
         this.$message.error('置换方式未填')
987
       }else if(this.prescription.mode_id == 2 && this.prescription.displace_liqui_value == 0){
987
       }else if(this.prescription.mode_id == 2 && this.prescription.displace_liqui_value == 0){
988
         this.$message.error('置换总量未填')
988
         this.$message.error('置换总量未填')
989
+      }else if(this.prescription.mode_id == 2 && this.prescription.displace_speed == ''){
990
+        this.$message.error('置换液流速未填')
991
+      }else if(this.prescription.dialysis_dialyszers == ''){
992
+        this.$message.error('透析器未填')
993
+      }else if(this.prescription.dialysis_irrigation == ''){
994
+        this.$message.error('灌流器未填')
989
       }else if(this.predialysis.blood_access_part_opera_name == ''){
995
       }else if(this.predialysis.blood_access_part_opera_name == ''){
990
         this.$message.error('血管通路未填')
996
         this.$message.error('血管通路未填')
991
       }else if(this.predialysis.blood_access_part_id == ''){
997
       }else if(this.predialysis.blood_access_part_id == ''){
1004
         this.$message.error('钙未填')
1010
         this.$message.error('钙未填')
1005
       }else if(this.prescription.bicarbonate == 0){
1011
       }else if(this.prescription.bicarbonate == 0){
1006
         this.$message.error('碳酸氢根未填')
1012
         this.$message.error('碳酸氢根未填')
1007
-      }else if(this.prescription.max_ultrafiltration_rate == 0){
1008
-        this.$message.error('最大超滤率未填')
1009
       }else if(this.summary.special_record == ""){
1013
       }else if(this.summary.special_record == ""){
1010
         this.$message.error('医师记录未填')
1014
         this.$message.error('医师记录未填')
1011
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1015
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1014
         this.$message.error('治疗小结未填')
1018
         this.$message.error('治疗小结未填')
1015
       }else if(this.summary.mission == ""){
1019
       }else if(this.summary.mission == ""){
1016
         this.$message.error('透后宣教未填')
1020
         this.$message.error('透后宣教未填')
1017
-      }else if(this.dialysisOrder.start_nurse == 0){
1021
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1018
         this.$message.error('上机护士未填')
1022
         this.$message.error('上机护士未填')
1019
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1023
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1020
         this.$message.error('核对人员未填')
1024
         this.$message.error('核对人员未填')
1024
         this.$message.error('核对人员未填')
1028
         this.$message.error('核对人员未填')
1025
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
1029
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
1026
         this.$message.error('核对人员未填')
1030
         this.$message.error('核对人员未填')
1027
-      }else if(this.dialysisOrder.finish_nurse == 0){
1031
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1028
         this.$message.error('下机护士未填')
1032
         this.$message.error('下机护士未填')
1029
       }else if(this.prescription.creater == 0){
1033
       }else if(this.prescription.creater == 0){
1030
         this.$message.error('医生签名未填')
1034
         this.$message.error('医生签名未填')
1051
                 if(it.id == item.advice_doctor){
1055
                 if(it.id == item.advice_doctor){
1052
                   if(it.user_type == 3){
1056
                   if(it.user_type == 3){
1053
                     num++
1057
                     num++
1058
+                    this.$message.closeAll()
1054
                     this.$message.error('存在不是医生保存的医嘱')
1059
                     this.$message.error('存在不是医生保存的医嘱')
1055
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1060
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1056
                     if(it.user_type == 2){
1061
                     if(it.user_type == 2){
1057
                       num++
1062
                       num++
1063
+                      this.$message.closeAll()
1058
                       this.$message.error('存在不是护士执行的医嘱')
1064
                       this.$message.error('存在不是护士执行的医嘱')
1059
                     }
1065
                     }
1060
                   }else if(it.id == item.checker && item.checker > 0){
1066
                   }else if(it.id == item.checker && item.checker > 0){
1061
                     if(it.user_type == 2){
1067
                     if(it.user_type == 2){
1062
                       num++
1068
                       num++
1069
+                      this.$message.closeAll()
1063
                       this.$message.error('存在不是护士核对的医嘱')
1070
                       this.$message.error('存在不是护士核对的医嘱')
1064
                     }
1071
                     }
1065
                   }
1072
                   }
1066
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1073
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1067
                   if(it.user_type == 2){
1074
                   if(it.user_type == 2){
1068
                     num++
1075
                     num++
1076
+                    this.$message.closeAll()
1069
                     this.$message.error('存在不是护士执行的医嘱')
1077
                     this.$message.error('存在不是护士执行的医嘱')
1070
                   }
1078
                   }
1071
                 }else if(it.id == item.checker && item.checker > 0){
1079
                 }else if(it.id == item.checker && item.checker > 0){
1072
                   if(it.user_type == 2){
1080
                   if(it.user_type == 2){
1073
                     num++
1081
                     num++
1082
+                    this.$message.closeAll()
1074
                     this.$message.error('存在不是护士核对的医嘱')
1083
                     this.$message.error('存在不是护士核对的医嘱')
1075
                   }
1084
                   }
1076
                 }
1085
                 }

+ 62 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1" style="width:940px">
4
     <div id="dialysis-print-box-1" style="width:940px">
5
       <div
5
       <div
6
         id="dialysis-print-box-1-1"
6
         id="dialysis-print-box-1-1"
1012
         this.$message.error('治疗小结未填')
1012
         this.$message.error('治疗小结未填')
1013
       }else if(this.summary.mission == ""){
1013
       }else if(this.summary.mission == ""){
1014
         this.$message.error('透后宣教未填')
1014
         this.$message.error('透后宣教未填')
1015
-      }else if(this.dialysisOrder.start_nurse == 0){
1015
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1016
         this.$message.error('上机护士未填')
1016
         this.$message.error('上机护士未填')
1017
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1017
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1018
         this.$message.error('核对人员未填')
1018
         this.$message.error('核对人员未填')
1022
         this.$message.error('核对人员未填')
1022
         this.$message.error('核对人员未填')
1023
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
1023
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
1024
         this.$message.error('核对人员未填')
1024
         this.$message.error('核对人员未填')
1025
-      }else if(this.dialysisOrder.finish_nurse == 0){
1025
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1026
         this.$message.error('下机护士未填')
1026
         this.$message.error('下机护士未填')
1027
       }else if(this.prescription.creater == 0){
1027
       }else if(this.prescription.creater == 0){
1028
         this.$message.error('医生签名未填')
1028
         this.$message.error('医生签名未填')
1029
-      }else if(this.monitors.length > 0){
1030
-        this.monitors.map(item => {
1031
-          if(item.id > 0 && item.operate_time){
1032
-            this.users.map(it => {
1033
-              if(it.id == item.monitoring_nurse){
1034
-                if(it.type != 3){
1035
-                  this.$message.error('存在不是护士保存的监测')
1029
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1030
+        let num = 0
1031
+        if(this.monitors.length > 0){
1032
+          this.monitors.map(item => {
1033
+            if(item.id > 0 && item.operate_time){
1034
+              this.users.map(it => {
1035
+                if(it.id == item.monitoring_nurse){
1036
+                  if(it.user_type == 2){
1037
+                    num++
1038
+                    this.$message.closeAll()
1039
+                    this.$message.error('存在不是护士保存的监测')
1040
+                  }
1036
                 }
1041
                 }
1037
-              }
1038
-            })
1039
-          }
1040
-        })
1041
-      }else if(this.tableAdvice.length > 0){
1042
-        this.tableAdvice.map(item => {
1043
-          if(item.id > 0 && item.created_time){
1044
-            this.users.map(it => {
1045
-              if(it.id == item.advice_doctor){
1046
-                if(it.type != 2){
1047
-                  this.$message.error('存在不是医生保存的医嘱')
1048
-                }
1049
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1050
-                if(it.type != 3){
1051
-                  this.$message.error('存在不是护士执行的医嘱')
1052
-                }
1053
-              }else if(it.id == item.checker && item.checker > 0){
1054
-                if(it.type != 3){
1055
-                  this.$message.error('存在不是护士核对的医嘱')
1042
+              })
1043
+            }
1044
+          })
1045
+        }
1046
+        if(this.tableAdvice.length > 0){
1047
+          this.tableAdvice.map(item => {
1048
+            if(item.id > 0 && (item.created_time || item.start_time)){
1049
+              this.users.map(it => {
1050
+                if(it.id == item.advice_doctor){
1051
+                  if(it.user_type == 3){
1052
+                    num++
1053
+                    this.$message.closeAll()
1054
+                    this.$message.error('存在不是医生保存的医嘱')
1055
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1056
+                    if(it.user_type == 2){
1057
+                      num++
1058
+                      this.$message.closeAll()
1059
+                      this.$message.error('存在不是护士执行的医嘱')
1060
+                    }
1061
+                  }else if(it.id == item.checker && item.checker > 0){
1062
+                    if(it.user_type == 2){
1063
+                      num++
1064
+                      this.$message.closeAll()
1065
+                      this.$message.error('存在不是护士核对的医嘱')
1066
+                    }
1067
+                  }
1068
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1069
+                  if(it.user_type == 2){
1070
+                    num++
1071
+                    this.$message.closeAll()
1072
+                    this.$message.error('存在不是护士执行的医嘱')
1073
+                  }
1074
+                }else if(it.id == item.checker && item.checker > 0){
1075
+                  if(it.user_type == 2){
1076
+                    num++
1077
+                    this.$message.closeAll()
1078
+                    this.$message.error('存在不是护士核对的医嘱')
1079
+                  }
1056
                 }
1080
                 }
1057
-              }
1058
-            })
1059
-          }
1081
+              })
1082
+            }
1060
         })
1083
         })
1084
+        }
1085
+        
1086
+        if(num == 0){
1087
+          this.$message.success('核对完成')
1088
+        }
1089
+      }else{
1090
+        this.$message.success('核对完成')
1061
       }
1091
       }
1062
     },
1092
     },
1063
     getDisplaceLiquiPart: function(val) {
1093
     getDisplaceLiquiPart: function(val) {

+ 7 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div
5
       <div
6
         id="dialysis-print-box-1-1"
6
         id="dialysis-print-box-1-1"
713
         this.$message.error('透析器未填')
713
         this.$message.error('透析器未填')
714
       }else if(this.prescription.anticoagulant == 0){
714
       }else if(this.prescription.anticoagulant == 0){
715
         this.$message.error('抗凝剂未填')
715
         this.$message.error('抗凝剂未填')
716
-      }else if(this.prescription.blood_access_part_opera_name == ''){
716
+      }else if(this.predialysis.blood_access_part_opera_name == ''){
717
         this.$message.error('血管通路未填')
717
         this.$message.error('血管通路未填')
718
       }else if(this.prescription.mode_id == 2 && this.prescription.displace_liqui_part == 0){
718
       }else if(this.prescription.mode_id == 2 && this.prescription.displace_liqui_part == 0){
719
         this.$message.error('置换方式未填')
719
         this.$message.error('置换方式未填')
762
                 if(it.id == item.advice_doctor){
762
                 if(it.id == item.advice_doctor){
763
                   if(it.user_type == 3){
763
                   if(it.user_type == 3){
764
                     num++
764
                     num++
765
+                    this.$message.closeAll()
765
                     this.$message.error('存在不是医生保存的医嘱')
766
                     this.$message.error('存在不是医生保存的医嘱')
766
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
767
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
767
                     if(it.user_type == 2){
768
                     if(it.user_type == 2){
768
                       num++
769
                       num++
770
+                      this.$message.closeAll()
769
                       this.$message.error('存在不是护士执行的医嘱')
771
                       this.$message.error('存在不是护士执行的医嘱')
770
                     }
772
                     }
771
                   }else if(it.id == item.checker && item.checker > 0){
773
                   }else if(it.id == item.checker && item.checker > 0){
772
                     if(it.user_type == 2){
774
                     if(it.user_type == 2){
773
                       num++
775
                       num++
776
+                      this.$message.closeAll()
774
                       this.$message.error('存在不是护士核对的医嘱')
777
                       this.$message.error('存在不是护士核对的医嘱')
775
                     }
778
                     }
776
                   }
779
                   }
777
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
780
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
778
                   if(it.user_type == 2){
781
                   if(it.user_type == 2){
779
                     num++
782
                     num++
783
+                    this.$message.closeAll()
780
                     this.$message.error('存在不是护士执行的医嘱')
784
                     this.$message.error('存在不是护士执行的医嘱')
781
                   }
785
                   }
782
                 }else if(it.id == item.checker && item.checker > 0){
786
                 }else if(it.id == item.checker && item.checker > 0){
783
                   if(it.user_type == 2){
787
                   if(it.user_type == 2){
784
                     num++
788
                     num++
789
+                    this.$message.closeAll()
785
                     this.$message.error('存在不是护士核对的医嘱')
790
                     this.$message.error('存在不是护士核对的医嘱')
786
                   }
791
                   }
787
                 }
792
                 }

+ 54 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name"></div>
6
         <div class="order-yy-name"></div>
796
         this.$message.error('导管评估未填')
796
         this.$message.error('导管评估未填')
797
       }else if(this.afterdialysis.intravenous_tube == 0){
797
       }else if(this.afterdialysis.intravenous_tube == 0){
798
         this.$message.error('静脉管道未填')
798
         this.$message.error('静脉管道未填')
799
-      }else if(this.dialysisOrder.start_nurse == 0){
799
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
800
         this.$message.error('责任护士未填')
800
         this.$message.error('责任护士未填')
801
       }else if(this.dialysisOrder == null && this.check.creater == 0){
801
       }else if(this.dialysisOrder == null && this.check.creater == 0){
802
         this.$message.error('核对护士未填')
802
         this.$message.error('核对护士未填')
803
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
804
+        this.$message.error('核对护士未填')
803
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
805
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
804
         this.$message.error('核对护士未填')
806
         this.$message.error('核对护士未填')
805
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
807
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
806
         this.$message.error('核对护士未填')
808
         this.$message.error('核对护士未填')
807
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
809
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0){
808
         this.$message.error('核对护士未填')
810
         this.$message.error('核对护士未填')
811
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
812
+        let num = 0
813
+        if(this.monitors.length > 0){
814
+          this.monitors.map(item => {
815
+            if(item.id > 0 && item.operate_time){
816
+              this.users.map(it => {
817
+                if(it.id == item.monitoring_nurse){
818
+                  if(it.user_type == 2){
819
+                    num++
820
+                    this.$message.closeAll()
821
+                    this.$message.error('存在不是护士保存的监测')
822
+                  }
823
+                }
824
+              })
825
+            }
826
+          })
827
+        }
828
+        if(this.tableAdvice.length > 0){
829
+          this.tableAdvice.map(item => {
830
+            if(item.id > 0 && (item.created_time || item.start_time)){
831
+              this.users.map(it => {
832
+                if(it.id == item.advice_doctor){
833
+                  if(it.user_type == 3){
834
+                    num++
835
+                    this.$message.closeAll()
836
+                    this.$message.error('存在不是医生保存的医嘱')
837
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
838
+                    if(it.user_type == 2){
839
+                      num++
840
+                      this.$message.closeAll()
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.closeAll()
848
+                    this.$message.error('存在不是护士执行的医嘱')
849
+                  }
850
+                }
851
+              })
852
+            }
853
+        })
854
+        }
855
+        
856
+        if(num == 0){
857
+          this.$message.success('核对完成')
858
+        }
859
+      }else{
860
+        this.$message.success('核对完成')
809
       }
861
       }
810
     },
862
     },
811
     getMonths(t){
863
     getMonths(t){

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
1864
                 if(it.id == item.advice_doctor){
1864
                 if(it.id == item.advice_doctor){
1865
                   if(it.user_type == 3){
1865
                   if(it.user_type == 3){
1866
                     num++
1866
                     num++
1867
+                    this.$message.closeAll()
1867
                     this.$message.error('存在不是医生保存的医嘱')
1868
                     this.$message.error('存在不是医生保存的医嘱')
1868
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1869
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1869
                     if(it.user_type == 2){
1870
                     if(it.user_type == 2){
1870
                       num++
1871
                       num++
1872
+                      this.$message.closeAll()
1871
                       this.$message.error('存在不是护士执行的医嘱')
1873
                       this.$message.error('存在不是护士执行的医嘱')
1872
                     }
1874
                     }
1873
                   }else if(it.id == item.checker && item.checker > 0){
1875
                   }else if(it.id == item.checker && item.checker > 0){
1874
                     if(it.user_type == 2){
1876
                     if(it.user_type == 2){
1875
                       num++
1877
                       num++
1878
+                      this.$message.closeAll()
1876
                       this.$message.error('存在不是护士核对的医嘱')
1879
                       this.$message.error('存在不是护士核对的医嘱')
1877
                     }
1880
                     }
1878
                   }
1881
                   }
1879
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1882
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1880
                   if(it.user_type == 2){
1883
                   if(it.user_type == 2){
1881
                     num++
1884
                     num++
1885
+                    this.$message.closeAll()
1882
                     this.$message.error('存在不是护士执行的医嘱')
1886
                     this.$message.error('存在不是护士执行的医嘱')
1883
                   }
1887
                   }
1884
                 }else if(it.id == item.checker && item.checker > 0){
1888
                 }else if(it.id == item.checker && item.checker > 0){
1885
                   if(it.user_type == 2){
1889
                   if(it.user_type == 2){
1886
                     num++
1890
                     num++
1891
+                    this.$message.closeAll()
1887
                     this.$message.error('存在不是护士核对的医嘱')
1892
                     this.$message.error('存在不是护士核对的医嘱')
1888
                   }
1893
                   }
1889
                 }
1894
                 }

+ 8 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
1198
         this.$message.error('医生签名未填')
1198
         this.$message.error('医生签名未填')
1199
       }else if(this.advices[0].length > 0 && 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
         this.$message.error('医生签名未填')
1200
         this.$message.error('医生签名未填')
1201
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1202
+        this.$message.error('上机护士未填')
1201
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1203
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1202
         this.$message.error('实际治疗时间未填')
1204
         this.$message.error('实际治疗时间未填')
1203
       }else if(this.afterdialysis.actual_ultrafiltration == 0){
1205
       }else if(this.afterdialysis.actual_ultrafiltration == 0){
1232
               if(it.id == item.advice_doctor){
1234
               if(it.id == item.advice_doctor){
1233
                 if(it.user_type == 3){
1235
                 if(it.user_type == 3){
1234
                   num++
1236
                   num++
1237
+                  this.$message.closeAll()
1235
                   this.$message.error('存在不是医生保存的医嘱')
1238
                   this.$message.error('存在不是医生保存的医嘱')
1236
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1239
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1237
                   if(it.user_type == 2){
1240
                   if(it.user_type == 2){
1238
                     num++
1241
                     num++
1242
+                    this.$message.closeAll()
1239
                     this.$message.error('存在不是护士执行的医嘱')
1243
                     this.$message.error('存在不是护士执行的医嘱')
1240
                   }
1244
                   }
1241
                 }else if(it.id == item.checker && item.checker > 0){
1245
                 }else if(it.id == item.checker && item.checker > 0){
1242
                   if(it.user_type == 2){
1246
                   if(it.user_type == 2){
1243
                     num++
1247
                     num++
1248
+                    this.$message.closeAll()
1244
                     this.$message.error('存在不是护士核对的医嘱')
1249
                     this.$message.error('存在不是护士核对的医嘱')
1245
                   }
1250
                   }
1246
                 }
1251
                 }
1247
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1252
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1248
                 if(it.user_type == 2){
1253
                 if(it.user_type == 2){
1249
                   num++
1254
                   num++
1255
+                  this.$message.closeAll()
1250
                   this.$message.error('存在不是护士执行的医嘱')
1256
                   this.$message.error('存在不是护士执行的医嘱')
1251
                 }
1257
                 }
1252
               }else if(it.id == item.checker && item.checker > 0){
1258
               }else if(it.id == item.checker && item.checker > 0){
1253
                 if(it.user_type == 2){
1259
                 if(it.user_type == 2){
1254
                   num++
1260
                   num++
1261
+                  this.$message.closeAll()
1255
                   this.$message.error('存在不是护士核对的医嘱')
1262
                   this.$message.error('存在不是护士核对的医嘱')
1256
                 }
1263
                 }
1257
               }
1264
               }

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
748
               if(it.id == item.advice_doctor){
748
               if(it.id == item.advice_doctor){
749
                 if(it.user_type == 3){
749
                 if(it.user_type == 3){
750
                   num++
750
                   num++
751
+                  this.$message.closeAll()
751
                   this.$message.error('存在不是医生保存的医嘱')
752
                   this.$message.error('存在不是医生保存的医嘱')
752
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
753
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
753
                   if(it.user_type == 2){
754
                   if(it.user_type == 2){
754
                     num++
755
                     num++
756
+                    this.$message.closeAll()
755
                     this.$message.error('存在不是护士执行的医嘱')
757
                     this.$message.error('存在不是护士执行的医嘱')
756
                   }
758
                   }
757
                 }else if(it.id == item.checker && item.checker > 0){
759
                 }else if(it.id == item.checker && item.checker > 0){
758
                   if(it.user_type == 2){
760
                   if(it.user_type == 2){
759
                     num++
761
                     num++
762
+                    this.$message.closeAll()
760
                     this.$message.error('存在不是护士核对的医嘱')
763
                     this.$message.error('存在不是护士核对的医嘱')
761
                   }
764
                   }
762
                 }
765
                 }
763
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
766
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
764
                 if(it.user_type == 2){
767
                 if(it.user_type == 2){
765
                   num++
768
                   num++
769
+                  this.$message.closeAll()
766
                   this.$message.error('存在不是护士执行的医嘱')
770
                   this.$message.error('存在不是护士执行的医嘱')
767
                 }
771
                 }
768
               }else if(it.id == item.checker && item.checker > 0){
772
               }else if(it.id == item.checker && item.checker > 0){
769
                 if(it.user_type == 2){
773
                 if(it.user_type == 2){
770
                   num++
774
                   num++
775
+                  this.$message.closeAll()
771
                   this.$message.error('存在不是护士核对的医嘱')
776
                   this.$message.error('存在不是护士核对的医嘱')
772
                 }
777
                 }
773
               }
778
               }

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name"></div>
6
         <div class="order-yy-name"></div>
1397
                 if(it.id == item.monitoring_nurse){
1397
                 if(it.id == item.monitoring_nurse){
1398
                   if(it.user_type == 2){
1398
                   if(it.user_type == 2){
1399
                     num++
1399
                     num++
1400
+                    this.$message.closeAll()
1400
                     this.$message.error('存在不是护士保存的监测')
1401
                     this.$message.error('存在不是护士保存的监测')
1401
                   }
1402
                   }
1402
                 }
1403
                 }
1411
                 if(it.id == item.advice_doctor){
1412
                 if(it.id == item.advice_doctor){
1412
                   if(it.user_type == 3){
1413
                   if(it.user_type == 3){
1413
                     num++
1414
                     num++
1415
+                    this.$message.closeAll()
1414
                     this.$message.error('存在不是医生保存的医嘱')
1416
                     this.$message.error('存在不是医生保存的医嘱')
1415
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1417
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1416
                     if(it.user_type == 2){
1418
                     if(it.user_type == 2){
1417
                       num++
1419
                       num++
1420
+                      this.$message.closeAll()
1418
                       this.$message.error('存在不是护士执行的医嘱')
1421
                       this.$message.error('存在不是护士执行的医嘱')
1419
                     }
1422
                     }
1420
                   }else if(it.id == item.checker && item.checker > 0){
1423
                   }else if(it.id == item.checker && item.checker > 0){
1421
                     if(it.user_type == 2){
1424
                     if(it.user_type == 2){
1422
                       num++
1425
                       num++
1426
+                      this.$message.closeAll()
1423
                       this.$message.error('存在不是护士核对的医嘱')
1427
                       this.$message.error('存在不是护士核对的医嘱')
1424
                     }
1428
                     }
1425
                   }
1429
                   }
1426
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1430
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1427
                   if(it.user_type == 2){
1431
                   if(it.user_type == 2){
1428
                     num++
1432
                     num++
1433
+                    this.$message.closeAll()
1429
                     this.$message.error('存在不是护士执行的医嘱')
1434
                     this.$message.error('存在不是护士执行的医嘱')
1430
                   }
1435
                   }
1431
                 }else if(it.id == item.checker && item.checker > 0){
1436
                 }else if(it.id == item.checker && item.checker > 0){
1432
                   if(it.user_type == 2){
1437
                   if(it.user_type == 2){
1433
                     num++
1438
                     num++
1439
+                    this.$message.closeAll()
1434
                     this.$message.error('存在不是护士核对的医嘱')
1440
                     this.$message.error('存在不是护士核对的医嘱')
1435
                   }
1441
                   }
1436
                 }
1442
                 }

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div
5
       <div
6
         id="dialysis-print-box-1-1"
6
         id="dialysis-print-box-1-1"
1383
               if(it.id == item.advice_doctor){
1383
               if(it.id == item.advice_doctor){
1384
                 if(it.user_type == 3){
1384
                 if(it.user_type == 3){
1385
                   num++
1385
                   num++
1386
+                  this.$message.closeAll()
1386
                   this.$message.error('存在不是医生保存的医嘱')
1387
                   this.$message.error('存在不是医生保存的医嘱')
1387
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388
                   if(it.user_type == 2){
1389
                   if(it.user_type == 2){
1389
                     num++
1390
                     num++
1391
+                    this.$message.closeAll()
1390
                     this.$message.error('存在不是护士执行的医嘱')
1392
                     this.$message.error('存在不是护士执行的医嘱')
1391
                   }
1393
                   }
1392
                 }else if(it.id == item.checker && item.checker > 0){
1394
                 }else if(it.id == item.checker && item.checker > 0){
1393
                   if(it.user_type == 2){
1395
                   if(it.user_type == 2){
1394
                     num++
1396
                     num++
1397
+                    this.$message.closeAll()
1395
                     this.$message.error('存在不是护士核对的医嘱')
1398
                     this.$message.error('存在不是护士核对的医嘱')
1396
                   }
1399
                   }
1397
                 }
1400
                 }
1398
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1401
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1399
                 if(it.user_type == 2){
1402
                 if(it.user_type == 2){
1400
                   num++
1403
                   num++
1404
+                  this.$message.closeAll()
1401
                   this.$message.error('存在不是护士执行的医嘱')
1405
                   this.$message.error('存在不是护士执行的医嘱')
1402
                 }
1406
                 }
1403
               }else if(it.id == item.checker && item.checker > 0){
1407
               }else if(it.id == item.checker && item.checker > 0){
1404
                 if(it.user_type == 2){
1408
                 if(it.user_type == 2){
1405
                   num++
1409
                   num++
1410
+                  this.$message.closeAll()
1406
                   this.$message.error('存在不是护士核对的医嘱')
1411
                   this.$message.error('存在不是护士核对的医嘱')
1407
                 }
1412
                 }
1408
               }
1413
               }

+ 8 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
5
       <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
6
         <div style="display:inline-block;width:100%;text-align:center;">
6
         <div style="display:inline-block;width:100%;text-align:center;">
1184
         this.$message.error('透前脉搏未填')
1184
         this.$message.error('透前脉搏未填')
1185
       }else if(this.predialysis.breathing_rate == ""){
1185
       }else if(this.predialysis.breathing_rate == ""){
1186
         this.$message.error('透前呼吸频率未填')
1186
         this.$message.error('透前呼吸频率未填')
1187
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1187
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1188
         this.$message.error('透前血压未填完整')
1188
         this.$message.error('透前血压未填完整')
1189
       }else if(this.predialysis.puncture_way == ''){
1189
       }else if(this.predialysis.puncture_way == ''){
1190
         this.$message.error('穿刺方式未填')
1190
         this.$message.error('穿刺方式未填')
1285
                 if(it.id == item.monitoring_nurse){
1285
                 if(it.id == item.monitoring_nurse){
1286
                   if(it.user_type == 2){
1286
                   if(it.user_type == 2){
1287
                     num++
1287
                     num++
1288
+                    this.$message.closeAll()
1288
                     this.$message.error('存在不是护士保存的监测')
1289
                     this.$message.error('存在不是护士保存的监测')
1289
                   }
1290
                   }
1290
                 }
1291
                 }
1299
                 if(it.id == item.advice_doctor){
1300
                 if(it.id == item.advice_doctor){
1300
                   if(it.user_type == 3){
1301
                   if(it.user_type == 3){
1301
                     num++
1302
                     num++
1303
+                    this.$message.closeAll()
1302
                     this.$message.error('存在不是医生保存的医嘱')
1304
                     this.$message.error('存在不是医生保存的医嘱')
1303
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1305
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1304
                     if(it.user_type == 2){
1306
                     if(it.user_type == 2){
1305
                       num++
1307
                       num++
1308
+                      this.$message.closeAll()
1306
                       this.$message.error('存在不是护士执行的医嘱')
1309
                       this.$message.error('存在不是护士执行的医嘱')
1307
                     }
1310
                     }
1308
                   }else if(it.id == item.checker && item.checker > 0){
1311
                   }else if(it.id == item.checker && item.checker > 0){
1309
                     if(it.user_type == 2){
1312
                     if(it.user_type == 2){
1310
                       num++
1313
                       num++
1314
+                      this.$message.closeAll()
1311
                       this.$message.error('存在不是护士核对的医嘱')
1315
                       this.$message.error('存在不是护士核对的医嘱')
1312
                     }
1316
                     }
1313
                   }
1317
                   }
1314
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1318
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1315
                   if(it.user_type == 2){
1319
                   if(it.user_type == 2){
1316
                     num++
1320
                     num++
1321
+                    this.$message.closeAll()
1317
                     this.$message.error('存在不是护士执行的医嘱')
1322
                     this.$message.error('存在不是护士执行的医嘱')
1318
                   }
1323
                   }
1319
                 }else if(it.id == item.checker && item.checker > 0){
1324
                 }else if(it.id == item.checker && item.checker > 0){
1320
                   if(it.user_type == 2){
1325
                   if(it.user_type == 2){
1321
                     num++
1326
                     num++
1327
+                    this.$message.closeAll()
1322
                     this.$message.error('存在不是护士核对的医嘱')
1328
                     this.$message.error('存在不是护士核对的医嘱')
1323
                   }
1329
                   }
1324
                 }
1330
                 }

+ 6 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div
5
       <div
6
         id="dialysis-print-box-1-1"
6
         id="dialysis-print-box-1-1"
829
               if(it.id == item.advice_doctor){
829
               if(it.id == item.advice_doctor){
830
                 if(it.user_type == 3){
830
                 if(it.user_type == 3){
831
                   num++
831
                   num++
832
+                  this.$message.closeAll()
832
                   this.$message.error('存在不是医生保存的医嘱')
833
                   this.$message.error('存在不是医生保存的医嘱')
833
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
834
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
834
                   if(it.user_type == 2){
835
                   if(it.user_type == 2){
835
                     num++
836
                     num++
837
+                    this.$message.closeAll()
836
                     this.$message.error('存在不是护士执行的医嘱')
838
                     this.$message.error('存在不是护士执行的医嘱')
837
                   }
839
                   }
838
                 }else if(it.id == item.checker && item.checker > 0){
840
                 }else if(it.id == item.checker && item.checker > 0){
839
                   if(it.user_type == 2){
841
                   if(it.user_type == 2){
840
                     num++
842
                     num++
843
+                    this.$message.closeAll()
841
                     this.$message.error('存在不是护士核对的医嘱')
844
                     this.$message.error('存在不是护士核对的医嘱')
842
                   }
845
                   }
843
                 }
846
                 }
844
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
847
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
845
                 if(it.user_type == 2){
848
                 if(it.user_type == 2){
846
                   num++
849
                   num++
850
+                  this.$message.closeAll()
847
                   this.$message.error('存在不是护士执行的医嘱')
851
                   this.$message.error('存在不是护士执行的医嘱')
848
                 }
852
                 }
849
               }else if(it.id == item.checker && item.checker > 0){
853
               }else if(it.id == item.checker && item.checker > 0){
850
                 if(it.user_type == 2){
854
                 if(it.user_type == 2){
851
                   num++
855
                   num++
856
+                  this.$message.closeAll()
852
                   this.$message.error('存在不是护士核对的医嘱')
857
                   this.$message.error('存在不是护士核对的医嘱')
853
                 }
858
                 }
854
               }
859
               }

+ 12 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div id='new-dialysis-1' class="dialysis-print-order">
5
       <div id='new-dialysis-1' class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
724
         this.$message.error('透后体重未填')
724
         this.$message.error('透后体重未填')
725
       }else if(this.summary.dialysis_summary == ""){
725
       }else if(this.summary.dialysis_summary == ""){
726
         this.$message.error('透析小结未填')
726
         this.$message.error('透析小结未填')
727
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
728
+        this.$message.error('核对护士未填')
729
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
730
+        this.$message.error('核对护士未填')
727
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
731
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
728
         this.$message.error('核对护士未填')
732
         this.$message.error('核对护士未填')
729
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
733
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
730
         this.$message.error('核对护士未填')
734
         this.$message.error('核对护士未填')
731
-      }else if(this.dialysisOrder.start_nurse == 0){
735
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
732
         this.$message.error('上机护士未填')
736
         this.$message.error('上机护士未填')
733
       }else if(this.prescription.prescription_doctor == 0){
737
       }else if(this.prescription.prescription_doctor == 0){
734
         this.$message.error('医师签名未填')
738
         this.$message.error('医师签名未填')
741
                 if(it.id == item.monitoring_nurse){
745
                 if(it.id == item.monitoring_nurse){
742
                   if(it.user_type == 2){
746
                   if(it.user_type == 2){
743
                     num++
747
                     num++
748
+                    this.$message.closeAll()
744
                     this.$message.error('存在不是护士保存的监测')
749
                     this.$message.error('存在不是护士保存的监测')
745
                   }
750
                   }
746
                 }
751
                 }
755
                 if(it.id == item.advice_doctor){
760
                 if(it.id == item.advice_doctor){
756
                   if(it.user_type == 3){
761
                   if(it.user_type == 3){
757
                     num++
762
                     num++
763
+                    this.$message.closeAll()
758
                     this.$message.error('存在不是医生保存的医嘱')
764
                     this.$message.error('存在不是医生保存的医嘱')
759
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
765
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
760
                     if(it.user_type == 2){
766
                     if(it.user_type == 2){
761
                       num++
767
                       num++
768
+                      this.$message.closeAll()
762
                       this.$message.error('存在不是护士执行的医嘱')
769
                       this.$message.error('存在不是护士执行的医嘱')
763
                     }
770
                     }
764
                   }else if(it.id == item.checker && item.checker > 0){
771
                   }else if(it.id == item.checker && item.checker > 0){
765
                     if(it.user_type == 2){
772
                     if(it.user_type == 2){
766
                       num++
773
                       num++
774
+                      this.$message.closeAll()
767
                       this.$message.error('存在不是护士核对的医嘱')
775
                       this.$message.error('存在不是护士核对的医嘱')
768
                     }
776
                     }
769
                   }
777
                   }
770
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
778
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
771
                   if(it.user_type == 2){
779
                   if(it.user_type == 2){
772
                     num++
780
                     num++
781
+                    this.$message.closeAll()
773
                     this.$message.error('存在不是护士执行的医嘱')
782
                     this.$message.error('存在不是护士执行的医嘱')
774
                   }
783
                   }
775
                 }else if(it.id == item.checker && item.checker > 0){
784
                 }else if(it.id == item.checker && item.checker > 0){
776
                   if(it.user_type == 2){
785
                   if(it.user_type == 2){
777
                     num++
786
                     num++
787
+                    this.$message.closeAll()
778
                     this.$message.error('存在不是护士核对的医嘱')
788
                     this.$message.error('存在不是护士核对的医嘱')
779
                   }
789
                   }
780
                 }
790
                 }

+ 65 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
667
         this.$message.error('医生未填')
667
         this.$message.error('医生未填')
668
       }else if(this.predialysis.creater == 0){
668
       }else if(this.predialysis.creater == 0){
669
         this.$message.error('透前评估护士未填')
669
         this.$message.error('透前评估护士未填')
670
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
671
+        this.$message.error('核对护士未填')
672
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
673
+        this.$message.error('核对护士未填')
670
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
674
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
671
         this.$message.error('核对护士未填')
675
         this.$message.error('核对护士未填')
672
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
676
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
673
         this.$message.error('核对护士未填')
677
         this.$message.error('核对护士未填')
674
-      }else if(this.dialysisOrder.start_nurse == 0){
678
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
675
         this.$message.error('责任护士未填')
679
         this.$message.error('责任护士未填')
676
       }else if(this.monitors.length > 0 && this.monitors[0].blood_pressure_monitoring_site == 0){
680
       }else if(this.monitors.length > 0 && this.monitors[0].blood_pressure_monitoring_site == 0){
677
         this.$message.error('血压检测部位未填')
681
         this.$message.error('血压检测部位未填')
699
         this.$message.error('下机护士未填')
703
         this.$message.error('下机护士未填')
700
       }else if(this.summary.dialysis_summary == ""){
704
       }else if(this.summary.dialysis_summary == ""){
701
         this.$message.error('病程记录未填')
705
         this.$message.error('病程记录未填')
702
-      }else if(this.monitors.length > 0){
703
-        this.monitors.map(item => {
704
-          if(item.id > 0 && item.operate_time){
705
-            this.users.map(it => {
706
-              if(it.id == item.monitoring_nurse){
707
-                if(it.type != 3){
708
-                  this.$message.error('存在不是护士保存的监测')
709
-                }
710
-              }
711
-            })
712
-          }
713
-        })
714
-      }else if(this.tableAdvice.length > 0){
715
-        this.tableAdvice.map(item => {
716
-          if(item.id > 0 && item.created_time){
717
-            this.users.map(it => {
718
-              if(it.id == item.advice_doctor){
719
-                if(it.type != 2){
720
-                  this.$message.error('存在不是医生保存的医嘱')
721
-                }
722
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
723
-                if(it.type != 3){
724
-                  this.$message.error('存在不是护士执行的医嘱')
706
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
707
+        let num = 0
708
+        if(this.monitors.length > 0){
709
+          this.monitors.map(item => {
710
+            if(item.id > 0 && item.operate_time){
711
+              this.users.map(it => {
712
+                if(it.id == item.monitoring_nurse){
713
+                  if(it.user_type == 2){
714
+                    num++
715
+                    this.$message.closeAll()
716
+                    this.$message.error('存在不是护士保存的监测')
717
+                  }
725
                 }
718
                 }
726
-              }else if(it.id == item.checker && item.checker > 0){
727
-                if(it.type != 3){
728
-                  this.$message.error('存在不是护士核对的医嘱')
719
+              })
720
+            }
721
+          })
722
+        }
723
+        if(this.tableAdvice.length > 0){
724
+          this.tableAdvice.map(item => {
725
+            if(item.id > 0 && (item.created_time || item.start_time)){
726
+              this.users.map(it => {
727
+                if(it.id == item.advice_doctor){
728
+                  if(it.user_type == 3){
729
+                    num++
730
+                    this.$message.closeAll()
731
+                    this.$message.error('存在不是医生保存的医嘱')
732
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
733
+                    if(it.user_type == 2){
734
+                      num++
735
+                      this.$message.closeAll()
736
+                      this.$message.error('存在不是护士执行的医嘱')
737
+                    }
738
+                  }else if(it.id == item.checker && item.checker > 0){
739
+                    if(it.user_type == 2){
740
+                      num++
741
+                      this.$message.closeAll()
742
+                      this.$message.error('存在不是护士核对的医嘱')
743
+                    }
744
+                  }
745
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
746
+                  if(it.user_type == 2){
747
+                    num++
748
+                    this.$message.closeAll()
749
+                    this.$message.error('存在不是护士执行的医嘱')
750
+                  }
751
+                }else if(it.id == item.checker && item.checker > 0){
752
+                  if(it.user_type == 2){
753
+                    num++
754
+                    this.$message.closeAll()
755
+                    this.$message.error('存在不是护士核对的医嘱')
756
+                  }
729
                 }
757
                 }
730
-              }
731
-            })
732
-          }
758
+              })
759
+            }
733
         })
760
         })
761
+        }
762
+        
763
+        if(num == 0){
764
+          this.$message.success('核对完成')
765
+        }
766
+      }else{
767
+        this.$message.success('核对完成')
734
       }
768
       }
735
     },
769
     },
736
     getMonths(t){
770
     getMonths(t){

+ 63 - 33
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFour.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div
5
       <div
6
         id="dialysis-print-box-1-1"
6
         id="dialysis-print-box-1-1"
618
         this.$message.error('实际脱水量未填')
618
         this.$message.error('实际脱水量未填')
619
       }else if(this.afterdialysis.weight_after == 0){
619
       }else if(this.afterdialysis.weight_after == 0){
620
         this.$message.error('透后体重未填')
620
         this.$message.error('透后体重未填')
621
-      }else if(this.dialysisOrder.end_time == 0){
621
+      }else if(this.dialysisOrder == null || (this.dialysisOrder && this.dialysisOrder.end_time == 0)){
622
         this.$message.error('离科时间未填')
622
         this.$message.error('离科时间未填')
623
       }else if(this.dialysisOrder.washpipe_nurse == 0){
623
       }else if(this.dialysisOrder.washpipe_nurse == 0){
624
         this.$message.error('预冲者未填')
624
         this.$message.error('预冲者未填')
625
       }else if(this.dialysisOrder.puncture_nurse == 0){
625
       }else if(this.dialysisOrder.puncture_nurse == 0){
626
         this.$message.error('穿刺者/换药者未填')
626
         this.$message.error('穿刺者/换药者未填')
627
-      }else if(this.dialysisOrder.start_nurse == 0){
627
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
628
         this.$message.error('责任护士未填')
628
         this.$message.error('责任护士未填')
629
       }else if(this.check.creater == 0){
629
       }else if(this.check.creater == 0){
630
         this.$message.error('查对者未填')
630
         this.$message.error('查对者未填')
631
       }else if(this.check.modifier == 0){
631
       }else if(this.check.modifier == 0){
632
         this.$message.error('交叉核对者未填')
632
         this.$message.error('交叉核对者未填')
633
-      }else if(this.dialysisOrder.finish_nurse == 0){
633
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
634
         this.$message.error('下机护士未填')
634
         this.$message.error('下机护士未填')
635
       }else if(this.afterdialysis.cruor == ""){
635
       }else if(this.afterdialysis.cruor == ""){
636
         this.$message.error('透析器级别未填')
636
         this.$message.error('透析器级别未填')
638
         this.$message.error('透析小结未填')
638
         this.$message.error('透析小结未填')
639
       }else if(this.prescription.prescription_doctor == 0){
639
       }else if(this.prescription.prescription_doctor == 0){
640
         this.$message.error('医生签字未填')
640
         this.$message.error('医生签字未填')
641
-      }else if(this.monitors.length > 0){
642
-        this.monitors.map(item => {
643
-          if(item.id > 0 && item.operate_time){
644
-            this.users.map(it => {
645
-              if(it.id == item.monitoring_nurse){
646
-                if(it.type != 3){
647
-                  this.$message.error('存在不是护士保存的监测')
641
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
642
+        let num = 0
643
+        if(this.monitors.length > 0){
644
+          this.monitors.map(item => {
645
+            if(item.id > 0 && item.operate_time){
646
+              this.users.map(it => {
647
+                if(it.id == item.monitoring_nurse){
648
+                  if(it.user_type == 2){
649
+                    num++
650
+                    this.$message.closeAll()
651
+                    this.$message.error('存在不是护士保存的监测')
652
+                  }
648
                 }
653
                 }
649
-              }
650
-            })
651
-          }
652
-        })
653
-      }else if(this.tableAdvice.length > 0){
654
-        this.tableAdvice.map(item => {
655
-          if(item.id > 0 && item.created_time){
656
-            this.users.map(it => {
657
-              if(it.id == item.advice_doctor){
658
-                if(it.type != 2){
659
-                  this.$message.error('存在不是医生保存的医嘱')
660
-                }
661
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
662
-                if(it.type != 3){
663
-                  this.$message.error('存在不是护士执行的医嘱')
664
-                }
665
-              }else if(it.id == item.checker && item.checker > 0){
666
-                if(it.type != 3){
667
-                  this.$message.error('存在不是护士核对的医嘱')
654
+              })
655
+            }
656
+          })
657
+        }
658
+        if(this.tableAdvice.length > 0){
659
+          this.tableAdvice.map(item => {
660
+            if(item.id > 0 && (item.created_time || item.start_time)){
661
+              this.users.map(it => {
662
+                if(it.id == item.advice_doctor){
663
+                  if(it.user_type == 3){
664
+                    num++
665
+                    this.$message.closeAll()
666
+                    this.$message.error('存在不是医生保存的医嘱')
667
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
668
+                    if(it.user_type == 2){
669
+                      num++
670
+                      this.$message.closeAll()
671
+                      this.$message.error('存在不是护士执行的医嘱')
672
+                    }
673
+                  }else if(it.id == item.checker && item.checker > 0){
674
+                    if(it.user_type == 2){
675
+                      num++
676
+                      this.$message.closeAll()
677
+                      this.$message.error('存在不是护士核对的医嘱')
678
+                    }
679
+                  }
680
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
681
+                  if(it.user_type == 2){
682
+                    num++
683
+                    this.$message.closeAll()
684
+                    this.$message.error('存在不是护士执行的医嘱')
685
+                  }
686
+                }else if(it.id == item.checker && item.checker > 0){
687
+                  if(it.user_type == 2){
688
+                    num++
689
+                    this.$message.closeAll()
690
+                    this.$message.error('存在不是护士核对的医嘱')
691
+                  }
668
                 }
692
                 }
669
-              }
670
-            })
671
-          }
693
+              })
694
+            }
672
         })
695
         })
696
+        }
697
+        
698
+        if(num == 0){
699
+          this.$message.success('核对完成')
700
+        }
701
+      }else{
702
+        this.$message.success('核对完成')
673
       }
703
       }
674
     },
704
     },
675
     getDisplaceLiquiPart: function(val) {
705
     getDisplaceLiquiPart: function(val) {

+ 62 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
         <div class="dialysis-print-order">
5
         <div class="dialysis-print-order">
6
             <div class="order-yy-name">{{ orgname }}</div>
6
             <div class="order-yy-name">{{ orgname }}</div>
588
         this.$message.error('透析器型号未填')
588
         this.$message.error('透析器型号未填')
589
       }else if(this.prescription.prescription_doctor == 0){
589
       }else if(this.prescription.prescription_doctor == 0){
590
         this.$message.error('医生未填')
590
         this.$message.error('医生未填')
591
-      }else if(this.dialysisOrder.start_nurse == 0){
591
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
592
         this.$message.error('接管护士未填')
592
         this.$message.error('接管护士未填')
593
       }else if(this.dialysisOrder.start_time == 0){
593
       }else if(this.dialysisOrder.start_time == 0){
594
         this.$message.error('接管时间未填')
594
         this.$message.error('接管时间未填')
602
         this.$message.error('凝血分级未填')
602
         this.$message.error('凝血分级未填')
603
       }else if(this.summary.dialysis_summary == ""){
603
       }else if(this.summary.dialysis_summary == ""){
604
         this.$message.error('补充记录未填')
604
         this.$message.error('补充记录未填')
605
-      }else if(this.dialysisOrder.finish_nurse == 0){
605
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
606
         this.$message.error('回血护士未填')
606
         this.$message.error('回血护士未填')
607
       }else if(this.dialysisOrder.end_time == 0){
607
       }else if(this.dialysisOrder.end_time == 0){
608
         this.$message.error('回血时间未填')
608
         this.$message.error('回血时间未填')
609
-      }else if(this.monitors.length > 0){
610
-        this.monitors.map(item => {
611
-          if(item.id > 0 && item.operate_time){
612
-            this.users.map(it => {
613
-              if(it.id == item.monitoring_nurse){
614
-                if(it.type != 3){
615
-                  this.$message.error('存在不是护士保存的监测')
616
-                }
617
-              }
618
-            })
619
-          }
620
-        })
621
-      }else if(this.tableAdvice.length > 0){
622
-        this.tableAdvice.map(item => {
623
-          if(item.id > 0 && item.created_time){
624
-            this.users.map(it => {
625
-              if(it.id == item.advice_doctor){
626
-                if(it.type != 2){
627
-                  this.$message.error('存在不是医生保存的医嘱')
628
-                }
629
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
630
-                if(it.type != 3){
631
-                  this.$message.error('存在不是护士执行的医嘱')
609
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
610
+        let num = 0
611
+        if(this.monitors.length > 0){
612
+          this.monitors.map(item => {
613
+            if(item.id > 0 && item.operate_time){
614
+              this.users.map(it => {
615
+                if(it.id == item.monitoring_nurse){
616
+                  if(it.user_type == 2){
617
+                    num++
618
+                    this.$message.closeAll()
619
+                    this.$message.error('存在不是护士保存的监测')
620
+                  }
632
                 }
621
                 }
633
-              }else if(it.id == item.checker && item.checker > 0){
634
-                if(it.type != 3){
635
-                  this.$message.error('存在不是护士核对的医嘱')
622
+              })
623
+            }
624
+          })
625
+        }
626
+        if(this.tableAdvice.length > 0){
627
+          this.tableAdvice.map(item => {
628
+            if(item.id > 0 && (item.created_time || item.start_time)){
629
+              this.users.map(it => {
630
+                if(it.id == item.advice_doctor){
631
+                  if(it.user_type == 3){
632
+                    num++
633
+                    this.$message.closeAll()
634
+                    this.$message.error('存在不是医生保存的医嘱')
635
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
636
+                    if(it.user_type == 2){
637
+                      num++
638
+                      this.$message.closeAll()
639
+                      this.$message.error('存在不是护士执行的医嘱')
640
+                    }
641
+                  }else if(it.id == item.checker && item.checker > 0){
642
+                    if(it.user_type == 2){
643
+                      num++
644
+                      this.$message.closeAll()
645
+                      this.$message.error('存在不是护士核对的医嘱')
646
+                    }
647
+                  }
648
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
649
+                  if(it.user_type == 2){
650
+                    num++
651
+                    this.$message.closeAll()
652
+                    this.$message.error('存在不是护士执行的医嘱')
653
+                  }
654
+                }else if(it.id == item.checker && item.checker > 0){
655
+                  if(it.user_type == 2){
656
+                    num++
657
+                    this.$message.closeAll()
658
+                    this.$message.error('存在不是护士核对的医嘱')
659
+                  }
636
                 }
660
                 }
637
-              }
638
-            })
639
-          }
661
+              })
662
+            }
640
         })
663
         })
664
+        }
665
+        
666
+        if(num == 0){
667
+          this.$message.success('核对完成')
668
+        }
669
+      }else{
670
+        this.$message.success('核对完成')
641
       }
671
       }
642
     },
672
     },
643
     getNewAge(UUserCard) {
673
     getNewAge(UUserCard) {

+ 49 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div
5
       <div
6
         id="dialysis-print-box-1-1"
6
         id="dialysis-print-box-1-1"
850
         this.$message.error('跌倒风险预防措施未填')
850
         this.$message.error('跌倒风险预防措施未填')
851
       }else if(this.prescription.prescription_doctor == 0){
851
       }else if(this.prescription.prescription_doctor == 0){
852
         this.$message.error('上机医生未填')
852
         this.$message.error('上机医生未填')
853
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
853
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse == 0){
854
         this.$message.error('冲管护士未填')
854
         this.$message.error('冲管护士未填')
855
-      }else if(this.dialysisOrder.puncture_nurse == 0){
855
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
856
         this.$message.error('穿刺者未填')
856
         this.$message.error('穿刺者未填')
857
-      }else if(this.dialysisOrder.start_nurse == 0){
857
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
858
         this.$message.error('上机护士未填')
858
         this.$message.error('上机护士未填')
859
-      }else if(this.dialysisOrder.finish_nurse == 0){
859
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
860
         this.$message.error('下机护士未填')
860
         this.$message.error('下机护士未填')
861
       }else if(this.afterdialysis.temperature == 0){
861
       }else if(this.afterdialysis.temperature == 0){
862
         this.$message.error('透后体温未填')
862
         this.$message.error('透后体温未填')
885
       }else if(this.summary.special_record == ""){
885
       }else if(this.summary.special_record == ""){
886
         this.$message.error('病情记录未填')
886
         this.$message.error('病情记录未填')
887
       }else if(this.tableAdvice.length > 0){
887
       }else if(this.tableAdvice.length > 0){
888
-        this.tableAdvice.map(item => {
889
-          if(item.id > 0 && item.created_time){
890
-            this.users.map(it => {
891
-              if(it.id == item.advice_doctor){
892
-                if(it.type != 2){
893
-                  this.$message.error('存在不是医生保存的医嘱')
894
-                }
895
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
896
-                if(it.type != 3){
897
-                  this.$message.error('存在不是护士执行的医嘱')
898
-                }
899
-              }else if(it.id == item.checker && item.checker > 0){
900
-                if(it.type != 3){
901
-                  this.$message.error('存在不是护士核对的医嘱')
888
+        let num = 0
889
+        if(this.tableAdvice.length > 0){
890
+          this.tableAdvice.map(item => {
891
+            if(item.id > 0 && (item.created_time || item.start_time)){
892
+              this.users.map(it => {
893
+                if(it.id == item.advice_doctor){
894
+                  if(it.user_type == 3){
895
+                    num++
896
+                    this.$message.closeAll()
897
+                    this.$message.error('存在不是医生保存的医嘱')
898
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
899
+                    if(it.user_type == 2){
900
+                      num++
901
+                      this.$message.closeAll()
902
+                      this.$message.error('存在不是护士执行的医嘱')
903
+                    }
904
+                  }else if(it.id == item.checker && item.checker > 0){
905
+                    if(it.user_type == 2){
906
+                      num++
907
+                      this.$message.closeAll()
908
+                      this.$message.error('存在不是护士核对的医嘱')
909
+                    }
910
+                  }
911
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
912
+                  if(it.user_type == 2){
913
+                    num++
914
+                    this.$message.closeAll()
915
+                    this.$message.error('存在不是护士执行的医嘱')
916
+                  }
917
+                }else if(it.id == item.checker && item.checker > 0){
918
+                  if(it.user_type == 2){
919
+                    num++
920
+                    this.$message.closeAll()
921
+                    this.$message.error('存在不是护士核对的医嘱')
922
+                  }
902
                 }
923
                 }
903
-              }
904
-            })
905
-          }
924
+              })
925
+            }
906
         })
926
         })
927
+        }
928
+        
929
+        if(num == 0){
930
+          this.$message.success('核对完成')
931
+        }
932
+      }else{
933
+        this.$message.success('核对完成')
907
       }
934
       }
908
     },
935
     },
909
     getNewAge(UUserCard) {
936
     getNewAge(UUserCard) {

+ 64 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
673
         this.$message.error('静脉凝血未填')
673
         this.$message.error('静脉凝血未填')
674
       }else if(this.dialysis_summary == ""){
674
       }else if(this.dialysis_summary == ""){
675
         this.$message.error('治疗小结未填')
675
         this.$message.error('治疗小结未填')
676
-      }else if(this.dialysisOrder.start_nurse == 0){
676
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
677
         this.$message.error('上机护士未填')
677
         this.$message.error('上机护士未填')
678
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
679
+        let num = 0
680
+        if(this.monitors.length > 0){
681
+          this.monitors.map(item => {
682
+            if(item.id > 0 && item.operate_time){
683
+              this.users.map(it => {
684
+                if(it.id == item.monitoring_nurse){
685
+                  if(it.user_type == 2){
686
+                    num++
687
+                    this.$message.closeAll()
688
+                    this.$message.error('存在不是护士保存的监测')
689
+                  }
690
+                }
691
+              })
692
+            }
693
+          })
694
+        }
695
+        if(this.tableAdvice.length > 0){
696
+          this.tableAdvice.map(item => {
697
+            if(item.id > 0 && (item.created_time || item.start_time)){
698
+              this.users.map(it => {
699
+                if(it.id == item.advice_doctor){
700
+                  if(it.user_type == 3){
701
+                    num++
702
+                    this.$message.closeAll()
703
+                    this.$message.error('存在不是医生保存的医嘱')
704
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
705
+                    if(it.user_type == 2){
706
+                      num++
707
+                      this.$message.closeAll()
708
+                      this.$message.error('存在不是护士执行的医嘱')
709
+                    }
710
+                  }else if(it.id == item.checker && item.checker > 0){
711
+                    if(it.user_type == 2){
712
+                      num++
713
+                      this.$message.closeAll()
714
+                      this.$message.error('存在不是护士核对的医嘱')
715
+                    }
716
+                  }
717
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
718
+                  if(it.user_type == 2){
719
+                    num++
720
+                    this.$message.closeAll()
721
+                    this.$message.error('存在不是护士执行的医嘱')
722
+                  }
723
+                }else if(it.id == item.checker && item.checker > 0){
724
+                  if(it.user_type == 2){
725
+                    num++
726
+                    this.$message.closeAll()
727
+                    this.$message.error('存在不是护士核对的医嘱')
728
+                  }
729
+                }
730
+              })
731
+            }
732
+        })
733
+        }
734
+        
735
+        if(num == 0){
736
+          this.$message.success('核对完成')
737
+        }
738
+      }else{
739
+        this.$message.success('核对完成')
678
       }
740
       }
679
     },
741
     },
680
     getCruor(cruor){
742
     getCruor(cruor){

+ 65 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <!-- <div class="order-yy-name">{{ orgname }}</div> -->
6
         <!-- <div class="order-yy-name">{{ orgname }}</div> -->
1213
           this.$message.error('医生签名未填')
1213
           this.$message.error('医生签名未填')
1214
         }else if(this.dialysisOrder.puncture_nurse == 0){
1214
         }else if(this.dialysisOrder.puncture_nurse == 0){
1215
           this.$message.error('穿刺护士未填')
1215
           this.$message.error('穿刺护士未填')
1216
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1217
+          this.$message.error('核对护士未填')
1218
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1219
+          this.$message.error('核对护士未填')
1216
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1220
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1217
           this.$message.error('核对护士未填')
1221
           this.$message.error('核对护士未填')
1218
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1222
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1221
           this.$message.error('看机护士未填')
1225
           this.$message.error('看机护士未填')
1222
         }else if(this.dialysisOrder.finish_nurse == 0){
1226
         }else if(this.dialysisOrder.finish_nurse == 0){
1223
           this.$message.error('下机护士未填')
1227
           this.$message.error('下机护士未填')
1224
-        }else if(this.tableAdvice.length > 0){
1225
-          this.tableAdvice.map(item => {
1226
-            if(item.id > 0 && item.created_time){
1227
-              this.users.map(it => {
1228
-                if(it.id == item.advice_doctor){
1229
-                  if(it.type != 2){
1230
-                    this.$message.error('存在不是医生保存的医嘱')
1231
-                  }
1232
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1233
-                  if(it.type != 3){
1234
-                    this.$message.error('存在不是护士执行的医嘱')
1228
+        }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1229
+          let num = 0
1230
+          if(this.monitors.length > 0){
1231
+            this.monitors.map(item => {
1232
+              if(item.id > 0 && item.operate_time){
1233
+                this.users.map(it => {
1234
+                  if(it.id == item.monitoring_nurse){
1235
+                    if(it.user_type == 2){
1236
+                      num++
1237
+                      this.$message.closeAll()
1238
+                      this.$message.error('存在不是护士保存的监测')
1239
+                    }
1235
                   }
1240
                   }
1236
-                }else if(it.id == item.checker && item.checker > 0){
1237
-                  if(it.type != 3){
1238
-                    this.$message.error('存在不是护士核对的医嘱')
1241
+                })
1242
+              }
1243
+            })
1244
+          }
1245
+          if(this.tableAdvice.length > 0){
1246
+            this.tableAdvice.map(item => {
1247
+              if(item.id > 0 && (item.created_time || item.start_time)){
1248
+                this.users.map(it => {
1249
+                  if(it.id == item.advice_doctor){
1250
+                    if(it.user_type == 3){
1251
+                      num++
1252
+                      this.$message.closeAll()
1253
+                      this.$message.error('存在不是医生保存的医嘱')
1254
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1255
+                      if(it.user_type == 2){
1256
+                        num++
1257
+                        this.$message.closeAll()
1258
+                        this.$message.error('存在不是护士执行的医嘱')
1259
+                      }
1260
+                    }else if(it.id == item.checker && item.checker > 0){
1261
+                      if(it.user_type == 2){
1262
+                        num++
1263
+                        this.$message.closeAll()
1264
+                        this.$message.error('存在不是护士核对的医嘱')
1265
+                      }
1266
+                    }
1267
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1268
+                    if(it.user_type == 2){
1269
+                      num++
1270
+                      this.$message.closeAll()
1271
+                      this.$message.error('存在不是护士执行的医嘱')
1272
+                    }
1273
+                  }else if(it.id == item.checker && item.checker > 0){
1274
+                    if(it.user_type == 2){
1275
+                      num++
1276
+                      this.$message.closeAll()
1277
+                      this.$message.error('存在不是护士核对的医嘱')
1278
+                    }
1239
                   }
1279
                   }
1240
-                }
1241
-              })
1242
-            }
1280
+                })
1281
+              }
1243
           })
1282
           })
1283
+          }
1284
+          
1285
+          if(num == 0){
1286
+            this.$message.success('核对完成')
1287
+          }
1288
+        }else{
1289
+          this.$message.success('核对完成')
1244
         }
1290
         }
1245
       },
1291
       },
1246
       getComplication(complication){
1292
       getComplication(complication){
1508
             }
1554
             }
1509
 
1555
 
1510
             this.advices = response.data.data.advices
1556
             this.advices = response.data.data.advices
1557
+            this.tableAdvice = response.data.data.advices;
1511
             console.log('hhhhhhhhhhhh', this.advices)
1558
             console.log('hhhhhhhhhhhh', this.advices)
1512
             this.monitors = response.data.data.monitors
1559
             this.monitors = response.data.data.monitors
1513
             console.log('哈哈哈哈哈哈哈', this.monitors)
1560
             console.log('哈哈哈哈哈哈哈', this.monitors)

+ 7 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
1197
                 if(it.id == item.monitoring_nurse){
1197
                 if(it.id == item.monitoring_nurse){
1198
                   if(it.user_type == 2){
1198
                   if(it.user_type == 2){
1199
                     num++
1199
                     num++
1200
+                    this.$message.closeAll()
1200
                     this.$message.error('存在不是护士保存的监测')
1201
                     this.$message.error('存在不是护士保存的监测')
1201
                   }
1202
                   }
1202
                 }
1203
                 }
1211
                 if(it.id == item.advice_doctor){
1212
                 if(it.id == item.advice_doctor){
1212
                   if(it.user_type == 3){
1213
                   if(it.user_type == 3){
1213
                     num++
1214
                     num++
1215
+                    this.$message.closeAll()
1214
                     this.$message.error('存在不是医生保存的医嘱')
1216
                     this.$message.error('存在不是医生保存的医嘱')
1215
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1217
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1216
                     if(it.user_type == 2){
1218
                     if(it.user_type == 2){
1217
                       num++
1219
                       num++
1220
+                      this.$message.closeAll()
1218
                       this.$message.error('存在不是护士执行的医嘱')
1221
                       this.$message.error('存在不是护士执行的医嘱')
1219
                     }
1222
                     }
1220
                   }else if(it.id == item.checker && item.checker > 0){
1223
                   }else if(it.id == item.checker && item.checker > 0){
1221
                     if(it.user_type == 2){
1224
                     if(it.user_type == 2){
1222
                       num++
1225
                       num++
1226
+                      this.$message.closeAll()
1223
                       this.$message.error('存在不是护士核对的医嘱')
1227
                       this.$message.error('存在不是护士核对的医嘱')
1224
                     }
1228
                     }
1225
                   }
1229
                   }
1226
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1230
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1227
                   if(it.user_type == 2){
1231
                   if(it.user_type == 2){
1228
                     num++
1232
                     num++
1233
+                    this.$message.closeAll()
1229
                     this.$message.error('存在不是护士执行的医嘱')
1234
                     this.$message.error('存在不是护士执行的医嘱')
1230
                   }
1235
                   }
1231
                 }else if(it.id == item.checker && item.checker > 0){
1236
                 }else if(it.id == item.checker && item.checker > 0){
1232
                   if(it.user_type == 2){
1237
                   if(it.user_type == 2){
1233
                     num++
1238
                     num++
1239
+                    this.$message.closeAll()
1234
                     this.$message.error('存在不是护士核对的医嘱')
1240
                     this.$message.error('存在不是护士核对的医嘱')
1235
                   }
1241
                   }
1236
                 }
1242
                 }

+ 12 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
       
6
       
1763
           this.$message.error('计划治疗时间未填')
1763
           this.$message.error('计划治疗时间未填')
1764
         }else if(this.prescription.target_ultrafiltration == 0){
1764
         }else if(this.prescription.target_ultrafiltration == 0){
1765
           this.$message.error('计划超滤总量未填')
1765
           this.$message.error('计划超滤总量未填')
1766
-        }else if(this.prescription.replacement_total == ""){
1766
+        }else if(this.prescription.replacement_total == "" && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
1767
           this.$message.error('置换量未填')
1767
           this.$message.error('置换量未填')
1768
         }else if(this.prescription.mode_id == ""){
1768
         }else if(this.prescription.mode_id == ""){
1769
           this.$message.error('透析方式未填')
1769
           this.$message.error('透析方式未填')
1803
           this.$message.error('去向未填')
1803
           this.$message.error('去向未填')
1804
         }else if(this.prescription.prescription_doctor == 0){
1804
         }else if(this.prescription.prescription_doctor == 0){
1805
           this.$message.error('医生未填')
1805
           this.$message.error('医生未填')
1806
-        }else if(this.dialysisOrder.start_nurse == 0){
1806
+        }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1807
           this.$message.error('责任护士未填')
1807
           this.$message.error('责任护士未填')
1808
         }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1808
         }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1809
           this.$message.error('穿刺护士未填')
1809
           this.$message.error('穿刺护士未填')
1810
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1811
+          this.$message.error('核对护士未填')
1812
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1813
+          this.$message.error('核对护士未填')
1810
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1814
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1811
           this.$message.error('核对护士未填')
1815
           this.$message.error('核对护士未填')
1812
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1816
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1820
                   if(it.id == item.advice_doctor){
1824
                   if(it.id == item.advice_doctor){
1821
                     if(it.user_type == 3){
1825
                     if(it.user_type == 3){
1822
                       num++
1826
                       num++
1827
+                      this.$message.closeAll()
1823
                       this.$message.error('存在不是医生保存的医嘱')
1828
                       this.$message.error('存在不是医生保存的医嘱')
1824
                     }else if(it.id == item.execution_staff && item.execution_staff > 0){
1829
                     }else if(it.id == item.execution_staff && item.execution_staff > 0){
1825
                       if(it.user_type == 2){
1830
                       if(it.user_type == 2){
1826
                         num++
1831
                         num++
1832
+                        this.$message.closeAll()
1827
                         this.$message.error('存在不是护士执行的医嘱')
1833
                         this.$message.error('存在不是护士执行的医嘱')
1828
                       }
1834
                       }
1829
                     }else if(it.id == item.checker && item.checker > 0){
1835
                     }else if(it.id == item.checker && item.checker > 0){
1830
                       if(it.user_type == 2){
1836
                       if(it.user_type == 2){
1831
                         num++
1837
                         num++
1838
+                        this.$message.closeAll()
1832
                         this.$message.error('存在不是护士核对的医嘱')
1839
                         this.$message.error('存在不是护士核对的医嘱')
1833
                       }
1840
                       }
1834
                     }
1841
                     }
1835
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1842
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1836
                     if(it.user_type == 2){
1843
                     if(it.user_type == 2){
1837
                       num++
1844
                       num++
1845
+                      this.$message.closeAll()
1838
                       this.$message.error('存在不是护士执行的医嘱')
1846
                       this.$message.error('存在不是护士执行的医嘱')
1839
                     }
1847
                     }
1840
                   }else if(it.id == item.checker && item.checker > 0){
1848
                   }else if(it.id == item.checker && item.checker > 0){
1841
                     if(it.user_type == 2){
1849
                     if(it.user_type == 2){
1842
                       num++
1850
                       num++
1851
+                      this.$message.closeAll()
1843
                       this.$message.error('存在不是护士核对的医嘱')
1852
                       this.$message.error('存在不是护士核对的医嘱')
1844
                     }
1853
                     }
1845
                   }
1854
                   }

+ 27 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <!-- <div class="order-yy-name">{{ orgname }}</div> -->
6
         <!-- <div class="order-yy-name">{{ orgname }}</div> -->
1214
           this.$message.error('医生签名未填')
1214
           this.$message.error('医生签名未填')
1215
         }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1215
         }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1216
           this.$message.error('穿刺护士未填')
1216
           this.$message.error('穿刺护士未填')
1217
+        }else if (this.dialysisOrder == null && this.check.creater == 0) {
1218
+          this.$message.error('核对护士未填')
1219
+        }else if (this.dialysisOrder != null && this.check.creater == 0) {
1220
+          this.$message.error('核对护士未填')
1217
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1221
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1218
           this.$message.error('核对护士未填')
1222
           this.$message.error('核对护士未填')
1219
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1223
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1220
           this.$message.error('核对护士未填')
1224
           this.$message.error('核对护士未填')
1221
-        }else if(this.dialysisOrder.start_nurse == 0){
1225
+        }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1222
           this.$message.error('看机护士未填')
1226
           this.$message.error('看机护士未填')
1223
         }else if(this.dialysisOrder.finish_nurse == 0){
1227
         }else if(this.dialysisOrder.finish_nurse == 0){
1224
           this.$message.error('下机护士未填')
1228
           this.$message.error('下机护士未填')
1225
-        }else if(this.tableAdvice.length > 0){
1229
+        }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1226
           let num = 0
1230
           let num = 0
1231
+          if(this.monitors.length > 0){
1232
+            this.monitors.map(item => {
1233
+              if(item.id > 0 && item.operate_time){
1234
+                this.users.map(it => {
1235
+                  if(it.id == item.monitoring_nurse){
1236
+                    if(it.user_type == 2){
1237
+                      num++
1238
+                      this.$message.closeAll()
1239
+                      this.$message.error('存在不是护士保存的监测')
1240
+                    }
1241
+                  }
1242
+                })
1243
+              }
1244
+            })
1245
+          }
1227
           if(this.tableAdvice.length > 0){
1246
           if(this.tableAdvice.length > 0){
1228
             this.tableAdvice.map(item => {
1247
             this.tableAdvice.map(item => {
1229
               if(item.id > 0 && (item.created_time || item.start_time)){
1248
               if(item.id > 0 && (item.created_time || item.start_time)){
1231
                   if(it.id == item.advice_doctor){
1250
                   if(it.id == item.advice_doctor){
1232
                     if(it.user_type == 3){
1251
                     if(it.user_type == 3){
1233
                       num++
1252
                       num++
1253
+                      this.$message.closeAll()
1234
                       this.$message.error('存在不是医生保存的医嘱')
1254
                       this.$message.error('存在不是医生保存的医嘱')
1235
                     }else if(it.id == item.execution_staff && item.execution_staff > 0){
1255
                     }else if(it.id == item.execution_staff && item.execution_staff > 0){
1236
                       if(it.user_type == 2){
1256
                       if(it.user_type == 2){
1237
                         num++
1257
                         num++
1258
+                        this.$message.closeAll()
1238
                         this.$message.error('存在不是护士执行的医嘱')
1259
                         this.$message.error('存在不是护士执行的医嘱')
1239
                       }
1260
                       }
1240
                     }else if(it.id == item.checker && item.checker > 0){
1261
                     }else if(it.id == item.checker && item.checker > 0){
1241
                       if(it.user_type == 2){
1262
                       if(it.user_type == 2){
1242
                         num++
1263
                         num++
1264
+                        this.$message.closeAll()
1243
                         this.$message.error('存在不是护士核对的医嘱')
1265
                         this.$message.error('存在不是护士核对的医嘱')
1244
                       }
1266
                       }
1245
                     }
1267
                     }
1246
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1268
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1247
                     if(it.user_type == 2){
1269
                     if(it.user_type == 2){
1248
                       num++
1270
                       num++
1271
+                      this.$message.closeAll()
1249
                       this.$message.error('存在不是护士执行的医嘱')
1272
                       this.$message.error('存在不是护士执行的医嘱')
1250
                     }
1273
                     }
1251
                   }else if(it.id == item.checker && item.checker > 0){
1274
                   }else if(it.id == item.checker && item.checker > 0){
1252
                     if(it.user_type == 2){
1275
                     if(it.user_type == 2){
1253
                       num++
1276
                       num++
1277
+                      this.$message.closeAll()
1254
                       this.$message.error('存在不是护士核对的医嘱')
1278
                       this.$message.error('存在不是护士核对的医嘱')
1255
                     }
1279
                     }
1256
                   }
1280
                   }

+ 8 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div id='new-dialysis-1' class="dialysis-print-order">
5
       <div id='new-dialysis-1' class="dialysis-print-order">
6
         <div class="order-yy-name" style="font-size:28px;font-weight:bold;">{{ orgname }}</div>
6
         <div class="order-yy-name" style="font-size:28px;font-weight:bold;">{{ orgname }}</div>
1750
         this.$message.error('冲管护士未填')
1750
         this.$message.error('冲管护士未填')
1751
       }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1751
       }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1752
         this.$message.error('穿刺护士未填')
1752
         this.$message.error('穿刺护士未填')
1753
-      }else if(this.dialysisOrder.start_nurse == 0){
1753
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1754
         this.$message.error('责任护士未填')
1754
         this.$message.error('责任护士未填')
1755
       }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1755
       }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1756
         let num = 0
1756
         let num = 0
1761
                 if(it.id == item.monitoring_nurse){
1761
                 if(it.id == item.monitoring_nurse){
1762
                   if(it.user_type == 2){
1762
                   if(it.user_type == 2){
1763
                     num++
1763
                     num++
1764
+                    this.$message.closeAll()
1764
                     this.$message.error('存在不是护士保存的监测')
1765
                     this.$message.error('存在不是护士保存的监测')
1765
                   }
1766
                   }
1766
                 }
1767
                 }
1775
                 if(it.id == item.advice_doctor){
1776
                 if(it.id == item.advice_doctor){
1776
                   if(it.user_type == 3){
1777
                   if(it.user_type == 3){
1777
                     num++
1778
                     num++
1779
+                    this.$message.closeAll()
1778
                     this.$message.error('存在不是医生保存的医嘱')
1780
                     this.$message.error('存在不是医生保存的医嘱')
1779
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1781
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1780
                     if(it.user_type == 2){
1782
                     if(it.user_type == 2){
1781
                       num++
1783
                       num++
1784
+                      this.$message.closeAll()
1782
                       this.$message.error('存在不是护士执行的医嘱')
1785
                       this.$message.error('存在不是护士执行的医嘱')
1783
                     }
1786
                     }
1784
                   }else if(it.id == item.checker && item.checker > 0){
1787
                   }else if(it.id == item.checker && item.checker > 0){
1785
                     if(it.user_type == 2){
1788
                     if(it.user_type == 2){
1786
                       num++
1789
                       num++
1790
+                      this.$message.closeAll()
1787
                       this.$message.error('存在不是护士核对的医嘱')
1791
                       this.$message.error('存在不是护士核对的医嘱')
1788
                     }
1792
                     }
1789
                   }
1793
                   }
1790
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1794
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1791
                   if(it.user_type == 2){
1795
                   if(it.user_type == 2){
1792
                     num++
1796
                     num++
1797
+                    this.$message.closeAll()
1793
                     this.$message.error('存在不是护士执行的医嘱')
1798
                     this.$message.error('存在不是护士执行的医嘱')
1794
                   }
1799
                   }
1795
                 }else if(it.id == item.checker && item.checker > 0){
1800
                 }else if(it.id == item.checker && item.checker > 0){
1796
                   if(it.user_type == 2){
1801
                   if(it.user_type == 2){
1797
                     num++
1802
                     num++
1803
+                    this.$message.closeAll()
1798
                     this.$message.error('存在不是护士核对的医嘱')
1804
                     this.$message.error('存在不是护士核对的医嘱')
1799
                   }
1805
                   }
1800
                 }
1806
                 }

+ 10 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div id='new-dialysis-1' class="dialysis-print-order" style="position:relative;">
5
       <div id='new-dialysis-1' class="dialysis-print-order" style="position:relative;">
6
         <img src="../../../assets/img/xuanwei.jpg" style="position: absolute;" alt="">
6
         <img src="../../../assets/img/xuanwei.jpg" style="position: absolute;" alt="">
734
   },
734
   },
735
   methods: {
735
   methods: {
736
     checkData(){
736
     checkData(){
737
-      if(this.predialysis.is_hemorrhage == 0){
737
+      if(this.receiverTreatmentAccess.condition == 0){
738
+        this.$message.error('病室未填')
739
+      }else if(this.predialysis.is_hemorrhage == 0){
738
         this.$message.error('出血未填')
740
         this.$message.error('出血未填')
739
       }else if(this.predialysis.is_hemorrhage == 1 && this.predialysis.hemorrhage == ""){
741
       }else if(this.predialysis.is_hemorrhage == 1 && this.predialysis.hemorrhage == ""){
740
         this.$message.error('出血未填')
742
         this.$message.error('出血未填')
791
                 if(it.id == item.monitoring_nurse){
793
                 if(it.id == item.monitoring_nurse){
792
                   if(it.user_type == 2){
794
                   if(it.user_type == 2){
793
                     num++
795
                     num++
796
+                    this.$message.closeAll()
794
                     this.$message.error('存在不是护士保存的监测')
797
                     this.$message.error('存在不是护士保存的监测')
795
                   }
798
                   }
796
                 }
799
                 }
805
                 if(it.id == item.advice_doctor){
808
                 if(it.id == item.advice_doctor){
806
                   if(it.user_type == 3){
809
                   if(it.user_type == 3){
807
                     num++
810
                     num++
811
+                    this.$message.closeAll()
808
                     this.$message.error('存在不是医生保存的医嘱')
812
                     this.$message.error('存在不是医生保存的医嘱')
809
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
813
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
810
                     if(it.user_type == 2){
814
                     if(it.user_type == 2){
811
                       num++
815
                       num++
816
+                      this.$message.closeAll()
812
                       this.$message.error('存在不是护士执行的医嘱')
817
                       this.$message.error('存在不是护士执行的医嘱')
813
                     }
818
                     }
814
                   }else if(it.id == item.checker && item.checker > 0){
819
                   }else if(it.id == item.checker && item.checker > 0){
815
                     if(it.user_type == 2){
820
                     if(it.user_type == 2){
816
                       num++
821
                       num++
822
+                      this.$message.closeAll()
817
                       this.$message.error('存在不是护士核对的医嘱')
823
                       this.$message.error('存在不是护士核对的医嘱')
818
                     }
824
                     }
819
                   }
825
                   }
820
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
826
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
821
                   if(it.user_type == 2){
827
                   if(it.user_type == 2){
822
                     num++
828
                     num++
829
+                    this.$message.closeAll()
823
                     this.$message.error('存在不是护士执行的医嘱')
830
                     this.$message.error('存在不是护士执行的医嘱')
824
                   }
831
                   }
825
                 }else if(it.id == item.checker && item.checker > 0){
832
                 }else if(it.id == item.checker && item.checker > 0){
826
                   if(it.user_type == 2){
833
                   if(it.user_type == 2){
827
                     num++
834
                     num++
835
+                    this.$message.closeAll()
828
                     this.$message.error('存在不是护士核对的医嘱')
836
                     this.$message.error('存在不是护士核对的医嘱')
829
                   }
837
                   }
830
                 }
838
                 }

+ 7 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div id='new-dialysis-1' class="dialysis-print-order">
5
       <div id='new-dialysis-1' class="dialysis-print-order">
6
         <div class="order-yy-name"></div>
6
         <div class="order-yy-name"></div>
1424
         this.$message.error('透后并发症未填')
1424
         this.$message.error('透后并发症未填')
1425
       }else if(this.summary.special_record == ""){
1425
       }else if(this.summary.special_record == ""){
1426
         this.$message.error('特殊记录未填')
1426
         this.$message.error('特殊记录未填')
1427
-      }else if(this.dialysisOrder.start_nurse == 0){
1427
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1428
         this.$message.error('当班责任护士未填')
1428
         this.$message.error('当班责任护士未填')
1429
       }else if(this.dialysisOrder.finish_nurse == 0){
1429
       }else if(this.dialysisOrder.finish_nurse == 0){
1430
         this.$message.error('下机护士未填')
1430
         this.$message.error('下机护士未填')
1437
                 if(it.id == item.advice_doctor){
1437
                 if(it.id == item.advice_doctor){
1438
                   if(it.user_type == 3){
1438
                   if(it.user_type == 3){
1439
                     num++
1439
                     num++
1440
+                    this.$message.closeAll()
1440
                     this.$message.error('存在不是医生保存的医嘱')
1441
                     this.$message.error('存在不是医生保存的医嘱')
1441
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1442
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1442
                     if(it.user_type == 2){
1443
                     if(it.user_type == 2){
1443
                       num++
1444
                       num++
1445
+                      this.$message.closeAll()
1444
                       this.$message.error('存在不是护士执行的医嘱')
1446
                       this.$message.error('存在不是护士执行的医嘱')
1445
                     }
1447
                     }
1446
                   }else if(it.id == item.checker && item.checker > 0){
1448
                   }else if(it.id == item.checker && item.checker > 0){
1447
                     if(it.user_type == 2){
1449
                     if(it.user_type == 2){
1448
                       num++
1450
                       num++
1451
+                      this.$message.closeAll()
1449
                       this.$message.error('存在不是护士核对的医嘱')
1452
                       this.$message.error('存在不是护士核对的医嘱')
1450
                     }
1453
                     }
1451
                   }
1454
                   }
1452
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1455
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1453
                   if(it.user_type == 2){
1456
                   if(it.user_type == 2){
1454
                     num++
1457
                     num++
1458
+                    this.$message.closeAll()
1455
                     this.$message.error('存在不是护士执行的医嘱')
1459
                     this.$message.error('存在不是护士执行的医嘱')
1456
                   }
1460
                   }
1457
                 }else if(it.id == item.checker && item.checker > 0){
1461
                 }else if(it.id == item.checker && item.checker > 0){
1458
                   if(it.user_type == 2){
1462
                   if(it.user_type == 2){
1459
                     num++
1463
                     num++
1464
+                    this.$message.closeAll()
1460
                     this.$message.error('存在不是护士核对的医嘱')
1465
                     this.$message.error('存在不是护士核对的医嘱')
1461
                   }
1466
                   }
1462
                 }
1467
                 }

+ 29 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
1261
         this.$message.error('透前脉搏未填')
1261
         this.$message.error('透前脉搏未填')
1262
       }else if(this.predialysis.breathing_rate == ""){
1262
       }else if(this.predialysis.breathing_rate == ""){
1263
         this.$message.error('透前呼吸频率未填')
1263
         this.$message.error('透前呼吸频率未填')
1264
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1264
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1265
         this.$message.error('透前血压未填完整')
1265
         this.$message.error('透前血压未填完整')
1266
       }else if(this.predialysis.symptom_before_dialysis == ""){
1266
       }else if(this.predialysis.symptom_before_dialysis == ""){
1267
         this.$message.error('上机前病情未填')
1267
         this.$message.error('上机前病情未填')
1295
         this.$message.error('碳酸氢根未填')
1295
         this.$message.error('碳酸氢根未填')
1296
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1296
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1297
         this.$message.error('血管通路未填')
1297
         this.$message.error('血管通路未填')
1298
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1298
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1299
         this.$message.error('穿刺者未填')
1299
         this.$message.error('穿刺者未填')
1300
       }else if(this.predialysis.weight_before == 0){
1300
       }else if(this.predialysis.weight_before == 0){
1301
         this.$message.error('透前体重未填')
1301
         this.$message.error('透前体重未填')
1313
         this.$message.error('透后导管未填')
1313
         this.$message.error('透后导管未填')
1314
       }else if(this.summary.dialysis_summary == ""){
1314
       }else if(this.summary.dialysis_summary == ""){
1315
         this.$message.error('治疗小结未填')
1315
         this.$message.error('治疗小结未填')
1316
-      }else if(this.dialysisOrder.start_nurse == 0){
1316
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1317
         this.$message.error('护士签名未填')
1317
         this.$message.error('护士签名未填')
1318
+      }else if (this.dialysisOrder == null && this.check.creater == 0) {
1319
+        this.$message.error('核对护士未填')
1320
+      }else if (this.dialysisOrder != null && this.check.creater == 0) {
1321
+        this.$message.error('核对护士未填')
1318
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1322
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1319
         this.$message.error('核对护士未填')
1323
         this.$message.error('核对护士未填')
1320
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1324
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1321
         this.$message.error('核对护士未填')
1325
         this.$message.error('核对护士未填')
1322
-      }else if(this.tableAdvice.length > 0){
1326
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1323
         let num = 0
1327
         let num = 0
1328
+        if(this.monitors.length > 0){
1329
+          this.monitors.map(item => {
1330
+            if(item.id > 0 && item.operate_time){
1331
+              this.users.map(it => {
1332
+                if(it.id == item.monitoring_nurse){
1333
+                  if(it.user_type == 2){
1334
+                    num++
1335
+                    this.$message.closeAll()
1336
+                    this.$message.error('存在不是护士保存的监测')
1337
+                  }
1338
+                }
1339
+              })
1340
+            }
1341
+          })
1342
+        }
1324
         if(this.tableAdvice.length > 0){
1343
         if(this.tableAdvice.length > 0){
1325
           this.tableAdvice.map(item => {
1344
           this.tableAdvice.map(item => {
1326
             if(item.id > 0 && (item.created_time || item.start_time)){
1345
             if(item.id > 0 && (item.created_time || item.start_time)){
1328
                 if(it.id == item.advice_doctor){
1347
                 if(it.id == item.advice_doctor){
1329
                   if(it.user_type == 3){
1348
                   if(it.user_type == 3){
1330
                     num++
1349
                     num++
1350
+                    this.$message.closeAll()
1331
                     this.$message.error('存在不是医生保存的医嘱')
1351
                     this.$message.error('存在不是医生保存的医嘱')
1332
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1352
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1333
                     if(it.user_type == 2){
1353
                     if(it.user_type == 2){
1334
                       num++
1354
                       num++
1355
+                      this.$message.closeAll()
1335
                       this.$message.error('存在不是护士执行的医嘱')
1356
                       this.$message.error('存在不是护士执行的医嘱')
1336
                     }
1357
                     }
1337
                   }else if(it.id == item.checker && item.checker > 0){
1358
                   }else if(it.id == item.checker && item.checker > 0){
1338
                     if(it.user_type == 2){
1359
                     if(it.user_type == 2){
1339
                       num++
1360
                       num++
1361
+                      this.$message.closeAll()
1340
                       this.$message.error('存在不是护士核对的医嘱')
1362
                       this.$message.error('存在不是护士核对的医嘱')
1341
                     }
1363
                     }
1342
                   }
1364
                   }
1343
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1365
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1344
                   if(it.user_type == 2){
1366
                   if(it.user_type == 2){
1345
                     num++
1367
                     num++
1368
+                    this.$message.closeAll()
1346
                     this.$message.error('存在不是护士执行的医嘱')
1369
                     this.$message.error('存在不是护士执行的医嘱')
1347
                   }
1370
                   }
1348
                 }else if(it.id == item.checker && item.checker > 0){
1371
                 }else if(it.id == item.checker && item.checker > 0){
1349
                   if(it.user_type == 2){
1372
                   if(it.user_type == 2){
1350
                     num++
1373
                     num++
1374
+                    this.$message.closeAll()
1351
                     this.$message.error('存在不是护士核对的医嘱')
1375
                     this.$message.error('存在不是护士核对的医嘱')
1352
                   }
1376
                   }
1353
                 }
1377
                 }

+ 11 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
5
       <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
1343
       }else if(this.predialysis.puncture_way == ""){
1343
       }else if(this.predialysis.puncture_way == ""){
1344
         this.$message.error('穿刺方式未填')
1344
         this.$message.error('穿刺方式未填')
1345
       }else if(this.predialysis.venous_catheterization == 0){
1345
       }else if(this.predialysis.venous_catheterization == 0){
1346
-        this.$message.error('中心静脉管未填')
1346
+        this.$message.error('中心静脉管未填')
1347
       }else if(this.predialysis.blood_access_part_id == ''){
1347
       }else if(this.predialysis.blood_access_part_id == ''){
1348
         this.$message.error('中心静脉导管位置未填')
1348
         this.$message.error('中心静脉导管位置未填')
1349
       }else if(this.predialysis.catheter == ''){
1349
       }else if(this.predialysis.catheter == ''){
1384
         this.$message.error('透析器凝血未填')
1384
         this.$message.error('透析器凝血未填')
1385
       }else if(this.afterdialysis.patient_gose == 0){
1385
       }else if(this.afterdialysis.patient_gose == 0){
1386
         this.$message.error('患者去向未填')
1386
         this.$message.error('患者去向未填')
1387
-      }else if(this.dialysisOrder.start_nurse == 0){
1387
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1388
         this.$message.error('责任护士未填')
1388
         this.$message.error('责任护士未填')
1389
       }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1389
       }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1390
         this.$message.error('穿刺者未填')
1390
         this.$message.error('穿刺者未填')
1398
         this.$message.error('核对人未填')
1398
         this.$message.error('核对人未填')
1399
       }else if(this.dialysisOrder.finish_nurse == 0){
1399
       }else if(this.dialysisOrder.finish_nurse == 0){
1400
         this.$message.error('收针者未填')
1400
         this.$message.error('收针者未填')
1401
-      }else if(this.dialysisOrder.start_nurse == 0){
1401
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1402
         this.$message.error('血透室护士签名未填')
1402
         this.$message.error('血透室护士签名未填')
1403
       }else if(this.prescription.mode_id == ""){
1403
       }else if(this.prescription.mode_id == ""){
1404
         this.$message.error('治疗方式未填')
1404
         this.$message.error('治疗方式未填')
1416
         this.$message.error('钠未填')
1416
         this.$message.error('钠未填')
1417
       }else if(this.prescription.kalium == 0){
1417
       }else if(this.prescription.kalium == 0){
1418
         this.$message.error('钾未填')
1418
         this.$message.error('钾未填')
1419
-      }else if(this.prescription.displace_liqui_value == 0){
1419
+      }else if(this.prescription.displace_liqui_value == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
1420
         this.$message.error('置换液后/前稀释未填')
1420
         this.$message.error('置换液后/前稀释未填')
1421
       }else if(this.prescription.blood_access == 0){
1421
       }else if(this.prescription.blood_access == 0){
1422
         this.$message.error('血管通路未填')
1422
         this.$message.error('血管通路未填')
1441
                 if(it.id == item.monitoring_nurse){
1441
                 if(it.id == item.monitoring_nurse){
1442
                   if(it.user_type == 2){
1442
                   if(it.user_type == 2){
1443
                     num++
1443
                     num++
1444
+                    this.$message.closeAll()
1444
                     this.$message.error('存在不是护士保存的监测')
1445
                     this.$message.error('存在不是护士保存的监测')
1445
                   }
1446
                   }
1446
                 }
1447
                 }
1455
                 if(it.id == item.advice_doctor){
1456
                 if(it.id == item.advice_doctor){
1456
                   if(it.user_type == 3){
1457
                   if(it.user_type == 3){
1457
                     num++
1458
                     num++
1459
+                    this.$message.closeAll()
1458
                     this.$message.error('存在不是医生保存的医嘱')
1460
                     this.$message.error('存在不是医生保存的医嘱')
1459
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1461
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1460
                     if(it.user_type == 2){
1462
                     if(it.user_type == 2){
1461
                       num++
1463
                       num++
1464
+                      this.$message.closeAll()
1462
                       this.$message.error('存在不是护士执行的医嘱')
1465
                       this.$message.error('存在不是护士执行的医嘱')
1463
                     }
1466
                     }
1464
                   }else if(it.id == item.checker && item.checker > 0){
1467
                   }else if(it.id == item.checker && item.checker > 0){
1465
                     if(it.user_type == 2){
1468
                     if(it.user_type == 2){
1466
                       num++
1469
                       num++
1470
+                      this.$message.closeAll()
1467
                       this.$message.error('存在不是护士核对的医嘱')
1471
                       this.$message.error('存在不是护士核对的医嘱')
1468
                     }
1472
                     }
1469
                   }
1473
                   }
1470
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1474
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1471
                   if(it.user_type == 2){
1475
                   if(it.user_type == 2){
1472
                     num++
1476
                     num++
1477
+                    this.$message.closeAll()
1473
                     this.$message.error('存在不是护士执行的医嘱')
1478
                     this.$message.error('存在不是护士执行的医嘱')
1474
                   }
1479
                   }
1475
                 }else if(it.id == item.checker && item.checker > 0){
1480
                 }else if(it.id == item.checker && item.checker > 0){
1476
                   if(it.user_type == 2){
1481
                   if(it.user_type == 2){
1477
                     num++
1482
                     num++
1483
+                    this.$message.closeAll()
1478
                     this.$message.error('存在不是护士核对的医嘱')
1484
                     this.$message.error('存在不是护士核对的医嘱')
1479
                   }
1485
                   }
1480
                 }
1486
                 }

+ 5 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box">
4
     <div id="dialysis-print-box">
5
       <div class="dialysis-print-order">
5
       <div class="dialysis-print-order">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
1311
                 if(it.id == item.monitoring_nurse){
1311
                 if(it.id == item.monitoring_nurse){
1312
                   if(it.user_type == 2){
1312
                   if(it.user_type == 2){
1313
                     num++
1313
                     num++
1314
+                    this.$message.closeAll()
1314
                     this.$message.error('存在不是护士保存的监测')
1315
                     this.$message.error('存在不是护士保存的监测')
1315
                   }
1316
                   }
1316
                 }
1317
                 }
1325
                 if(it.id == item.advice_doctor){
1326
                 if(it.id == item.advice_doctor){
1326
                   if(it.user_type == 3){
1327
                   if(it.user_type == 3){
1327
                     num++
1328
                     num++
1329
+                    this.$message.closeAll()
1328
                     this.$message.error('存在不是医生保存的医嘱')
1330
                     this.$message.error('存在不是医生保存的医嘱')
1329
                   }
1331
                   }
1330
                   else if(it.id == item.execution_staff && item.execution_staff > 0){
1332
                   else if(it.id == item.execution_staff && item.execution_staff > 0){
1331
                     if(it.user_type == 2){
1333
                     if(it.user_type == 2){
1332
                       num++
1334
                       num++
1335
+                      this.$message.closeAll()
1333
                       this.$message.error('存在不是护士执行的医嘱')
1336
                       this.$message.error('存在不是护士执行的医嘱')
1334
                     }
1337
                     }
1335
                   }
1338
                   }
1336
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1339
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1337
                   if(it.user_type == 2){
1340
                   if(it.user_type == 2){
1338
                     num++
1341
                     num++
1342
+                    this.$message.closeAll()
1339
                     this.$message.error('存在不是护士执行的医嘱')
1343
                     this.$message.error('存在不是护士执行的医嘱')
1340
                   }
1344
                   }
1341
                 }
1345
                 }

+ 7 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
+    <el-button type="primary" @click="checkData">一键核对</el-button>
4
     <div id="dialysis-print-box-1">
4
     <div id="dialysis-print-box-1">
5
       <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
5
       <div id="dialysis-print-box-1-1" :class="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9) ? 'margin-bottom-900 dialysis-print-order print-template-two print_page_main_content' : 'margin-bottom-50 dialysis-print-order print-template-two print_page_main_content'">
6
         <div class="order-yy-name">{{ orgname }}</div>
6
         <div class="order-yy-name">{{ orgname }}</div>
1445
                 if(it.id == item.monitoring_nurse){
1445
                 if(it.id == item.monitoring_nurse){
1446
                   if(it.user_type == 2){
1446
                   if(it.user_type == 2){
1447
                     num++
1447
                     num++
1448
+                    this.$message.closeAll()
1448
                     this.$message.error('存在不是护士保存的监测')
1449
                     this.$message.error('存在不是护士保存的监测')
1449
                   }
1450
                   }
1450
                 }
1451
                 }
1459
                 if(it.id == item.advice_doctor){
1460
                 if(it.id == item.advice_doctor){
1460
                   if(it.user_type == 3){
1461
                   if(it.user_type == 3){
1461
                     num++
1462
                     num++
1463
+                    this.$message.closeAll()
1462
                     this.$message.error('存在不是医生保存的医嘱')
1464
                     this.$message.error('存在不是医生保存的医嘱')
1463
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1465
                   }else if(it.id == item.execution_staff && item.execution_staff > 0){
1464
                     if(it.user_type == 2){
1466
                     if(it.user_type == 2){
1465
                       num++
1467
                       num++
1468
+                      this.$message.closeAll()
1466
                       this.$message.error('存在不是护士执行的医嘱')
1469
                       this.$message.error('存在不是护士执行的医嘱')
1467
                     }
1470
                     }
1468
                   }else if(it.id == item.checker && item.checker > 0){
1471
                   }else if(it.id == item.checker && item.checker > 0){
1469
                     if(it.user_type == 2){
1472
                     if(it.user_type == 2){
1470
                       num++
1473
                       num++
1474
+                      this.$message.closeAll()
1471
                       this.$message.error('存在不是护士核对的医嘱')
1475
                       this.$message.error('存在不是护士核对的医嘱')
1472
                     }
1476
                     }
1473
                   }
1477
                   }
1474
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1478
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1475
                   if(it.user_type == 2){
1479
                   if(it.user_type == 2){
1476
                     num++
1480
                     num++
1481
+                    this.$message.closeAll()
1477
                     this.$message.error('存在不是护士执行的医嘱')
1482
                     this.$message.error('存在不是护士执行的医嘱')
1478
                   }
1483
                   }
1479
                 }else if(it.id == item.checker && item.checker > 0){
1484
                 }else if(it.id == item.checker && item.checker > 0){
1480
                   if(it.user_type == 2){
1485
                   if(it.user_type == 2){
1481
                     num++
1486
                     num++
1487
+                    this.$message.closeAll()
1482
                     this.$message.error('存在不是护士核对的医嘱')
1488
                     this.$message.error('存在不是护士核对的医嘱')
1483
                   }
1489
                   }
1484
                 }
1490
                 }

+ 73 - 22
src/xt_pages/workforce/remind_print_setting.vue Dosyayı Görüntüle

19
         <div class="print_main_content">
19
         <div class="print_main_content">
20
           <div class="table_panel">
20
           <div class="table_panel">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22
-              <div class="signPrint">
22
+              <div class="signPrint" v-if="org_id != 10188">
23
                 <div>
23
                 <div>
24
                  <span v-if="printObj.zone == 1">分区/</span>
24
                  <span v-if="printObj.zone == 1">分区/</span>
25
                  <span v-if="printObj.number == 1">床位号:</span>
25
                  <span v-if="printObj.number == 1">床位号:</span>
33
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
33
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
34
                   <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
34
                   <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
35
                   <span v-else >
35
                   <span v-else >
36
-                   <span>{{getAnticoagulant(main_collection.solution,main_collection.mode_id)}}</span>
36
+                   <span>{{getAnticoagulant(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)}}</span>
37
                   </span>
37
                   </span>
38
                 </div>
38
                 </div>
39
                <div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
39
                <div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
41
                 <div v-if="printObj.anticoagulant_zongliang == 1">
41
                 <div v-if="printObj.anticoagulant_zongliang == 1">
42
                   用量:
42
                   用量:
43
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
43
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
44
-                  {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
44
+                  {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
45
                   </span>
45
                   </span>
46
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
46
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
47
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
47
+                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
48
                   </span>
48
                   </span>
49
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">
49
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">
50
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
50
+                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
51
                   </span>
51
                   </span>
52
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">
52
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">
53
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
53
+                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
54
                   </span>
54
                   </span>
55
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">
55
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">
56
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
56
+                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'mg'}}
57
                    </span>
57
                    </span>
58
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">
58
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">
59
-                   {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
59
+                   {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
60
                   </span>
60
                   </span>
61
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">
61
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">
62
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
62
+                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
63
                    </span>
63
                    </span>
64
                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">
64
                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">
65
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
65
+                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
66
                   </span>
66
                   </span>
67
                   <span v-if="main_collection.dialysissolution.anticoagulant == 9">
67
                   <span v-if="main_collection.dialysissolution.anticoagulant == 9">
68
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
68
+                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
69
                   </span>
69
                   </span>
70
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">
70
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">
71
-                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
71
+                     {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
72
                     </span>
72
                     </span>
73
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
73
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
74
-                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
74
+                    {{getAnticoagulantZonliang(main_collection.solution ? main_collection.solution : [],main_collection.mode_id)+'iu'}}
75
                    </span>
75
                    </span>
76
                 </div>
76
                 </div>
77
                 <div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
77
                 <div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
80
                 <div>用法:静脉注射</div>
80
                 <div>用法:静脉注射</div>
81
                 <div>打印时间:{{currentDate}}</div>
81
                 <div>打印时间:{{currentDate}}</div>
82
               </div>
82
               </div>
83
+              <div class="signPrint" style="font-size:16px;" v-else>
84
+                <div style="margin-left:50px;">姓名:
85
+                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
86
+                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
87
+                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
88
+                </div>
89
+                <div class="printCell">
90
+                  <span>
91
+                    床号:{{ main_collection.number.number }}
92
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
93
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
94
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
95
+                  </span>
96
+                  <span>{{ printDate }}</span>
97
+                </div>
98
+                <div class="printCell">
99
+                  <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
100
+                  <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
101
+                </div>
102
+                <div class="printCell">
103
+                  <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
104
+                  <span>首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</span>
105
+                </div>
106
+                <div class="printCell">
107
+                  <span>体重增加:{{ main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after }}Kg</span>
108
+                  <span>维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</span>
109
+                </div>
110
+                <div class="printCell">
111
+                  <span>处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}</span>
112
+                  <span>总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}</span>
113
+                </div>
114
+              </div>
83
            </div>
115
            </div>
84
           </div>
116
           </div>
85
         </div>
117
         </div>
121
         pre_status:0,
153
         pre_status:0,
122
         printObj:{},
154
         printObj:{},
123
         type:1,
155
         type:1,
156
+        printDate:''
124
       }
157
       }
125
     },
158
     },
126
     components: {
159
     components: {
133
      console.log("机构ID",this.org_id)
166
      console.log("机构ID",this.org_id)
134
      this.currentDate = this.getCurrentDate()
167
      this.currentDate = this.getCurrentDate()
135
 
168
 
169
+    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
136
     this.modeOptions = this.$store.getters.treatment_mode
170
     this.modeOptions = this.$store.getters.treatment_mode
137
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
171
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
138
     this.week_type = this.$route.query.week_type
172
     this.week_type = this.$route.query.week_type
258
 
292
 
259
       },
293
       },
260
       printAction: function() {
294
       printAction: function() {
261
-        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } @page {margin-top:10px;}}'
262
-
263
-        printJS({
264
-          printable: 'print_content',
265
-          type: 'html',
266
-          documentTitle: '  ',
267
-          style: style,
268
-          scanStyles: false
269
-        })
295
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
296
+        const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
297
+        if(this.org_id == 10188){
298
+          printJS({
299
+            printable: 'print_content',
300
+            type: 'html',
301
+            documentTitle: '  ',
302
+            style: style1,
303
+            scanStyles: false
304
+          })
305
+        }else{
306
+          printJS({
307
+            printable: 'print_content',
308
+            type: 'html',
309
+            documentTitle: '  ',
310
+            style: style,
311
+            scanStyles: false
312
+          })
313
+        }
314
+        
270
       }, getSchedulesType: function(type) {
315
       }, getSchedulesType: function(type) {
271
         let type_name = ''
316
         let type_name = ''
272
         switch (type) {
317
         switch (type) {
537
   margin-bottom: 20px;
582
   margin-bottom: 20px;
538
   padding: 20px 10px;
583
   padding: 20px 10px;
539
 }
584
 }
585
+.printCell{
586
+  span{
587
+    display: inline-block;
588
+    width: 180px;
589
+  }
590
+}
540
 </style>
591
 </style>