|
@@ -569,12 +569,13 @@
|
569
|
569
|
<td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
|
570
|
570
|
<span v-if="advice.parent_id > 0">---></span>
|
571
|
571
|
<span>{{ advice.advice_name }}</span>
|
|
572
|
+ <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
|
572
|
573
|
<span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
|
573
|
574
|
<span v-if="advice.prescribing_number"> {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
|
574
|
575
|
<span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
|
575
|
576
|
<span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
|
576
|
577
|
<span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
|
577
|
|
- <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
|
|
578
|
+
|
578
|
579
|
</td>
|
579
|
580
|
<!-- <td colspan="2" height="60px" style="text-align: center" v-else >
|
580
|
581
|
<span>{{advice.delivery_way}}</span>
|
|
@@ -1027,38 +1028,62 @@ export default {
|
1027
|
1028
|
this.$message.error('下机护士未填')
|
1028
|
1029
|
}else if(this.prescription.creater == 0){
|
1029
|
1030
|
this.$message.error('医生签名未填')
|
1030
|
|
- }else if(this.monitors.length > 0){
|
1031
|
|
- this.monitors.map(item => {
|
1032
|
|
- if(item.id > 0 && item.operate_time){
|
1033
|
|
- this.users.map(it => {
|
1034
|
|
- if(it.id == item.monitoring_nurse){
|
1035
|
|
- if(it.type != 3){
|
1036
|
|
- this.$message.error('存在不是护士保存的监测')
|
1037
|
|
- }
|
1038
|
|
- }
|
1039
|
|
- })
|
1040
|
|
- }
|
1041
|
|
- })
|
1042
|
|
- }else if(this.tableAdvice.length > 0){
|
1043
|
|
- this.tableAdvice.map(item => {
|
1044
|
|
- if(item.id > 0 && item.created_time){
|
1045
|
|
- this.users.map(it => {
|
1046
|
|
- if(it.id == item.advice_doctor){
|
1047
|
|
- if(it.type != 2){
|
1048
|
|
- this.$message.error('存在不是医生保存的医嘱')
|
|
1031
|
+ }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
|
|
1032
|
+ let num = 0
|
|
1033
|
+ if(this.monitors.length > 0){
|
|
1034
|
+ this.monitors.map(item => {
|
|
1035
|
+ if(item.id > 0 && item.operate_time){
|
|
1036
|
+ this.users.map(it => {
|
|
1037
|
+ if(it.id == item.monitoring_nurse){
|
|
1038
|
+ if(it.user_type == 2){
|
|
1039
|
+ num++
|
|
1040
|
+ this.$message.error('存在不是护士保存的监测')
|
|
1041
|
+ }
|
1049
|
1042
|
}
|
1050
|
|
- }else if(it.id == item.execution_staff && item.execution_staff > 0){
|
1051
|
|
- if(it.type != 3){
|
1052
|
|
- this.$message.error('存在不是护士执行的医嘱')
|
1053
|
|
- }
|
1054
|
|
- }else if(it.id == item.checker && item.checker > 0){
|
1055
|
|
- if(it.type != 3){
|
1056
|
|
- this.$message.error('存在不是护士核对的医嘱')
|
|
1043
|
+ })
|
|
1044
|
+ }
|
|
1045
|
+ })
|
|
1046
|
+ }
|
|
1047
|
+ if(this.tableAdvice.length > 0){
|
|
1048
|
+ this.tableAdvice.map(item => {
|
|
1049
|
+ if(item.id > 0 && (item.created_time || item.start_time)){
|
|
1050
|
+ this.users.map(it => {
|
|
1051
|
+ if(it.id == item.advice_doctor){
|
|
1052
|
+ if(it.user_type == 3){
|
|
1053
|
+ num++
|
|
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.error('存在不是护士执行的医嘱')
|
|
1059
|
+ }
|
|
1060
|
+ }else if(it.id == item.checker && item.checker > 0){
|
|
1061
|
+ if(it.user_type == 2){
|
|
1062
|
+ num++
|
|
1063
|
+ this.$message.error('存在不是护士核对的医嘱')
|
|
1064
|
+ }
|
|
1065
|
+ }
|
|
1066
|
+ }else if(it.id == item.execution_staff && item.execution_staff > 0){
|
|
1067
|
+ if(it.user_type == 2){
|
|
1068
|
+ num++
|
|
1069
|
+ this.$message.error('存在不是护士执行的医嘱')
|
|
1070
|
+ }
|
|
1071
|
+ }else if(it.id == item.checker && item.checker > 0){
|
|
1072
|
+ if(it.user_type == 2){
|
|
1073
|
+ num++
|
|
1074
|
+ this.$message.error('存在不是护士核对的医嘱')
|
|
1075
|
+ }
|
1057
|
1076
|
}
|
1058
|
|
- }
|
1059
|
|
- })
|
1060
|
|
- }
|
|
1077
|
+ })
|
|
1078
|
+ }
|
1061
|
1079
|
})
|
|
1080
|
+ }
|
|
1081
|
+
|
|
1082
|
+ if(num == 0){
|
|
1083
|
+ this.$message.success('核对完成')
|
|
1084
|
+ }
|
|
1085
|
+ }else{
|
|
1086
|
+ this.$message.success('核对完成')
|
1062
|
1087
|
}
|
1063
|
1088
|
},
|
1064
|
1089
|
getDisplaceLiquiPart: function(val) {
|