|
@@ -11,8 +11,8 @@
|
11
|
11
|
<!-- <el-row :gutter="20"> -->
|
12
|
12
|
<el-row :gutter="24">
|
13
|
13
|
<el-col :span="8" v-if="isShows('透析模式')">
|
14
|
|
- <el-form-item label="透析模式: ">
|
15
|
|
- <el-select v-model="dialysisPrescription.mode_id">
|
|
14
|
+ <el-form-item label="透析模式">
|
|
15
|
+ <el-select v-model="dialysisPrescription.mode_id" @change="changePrescription(dialysisPrescription.mode_id)" >
|
16
|
16
|
<el-option :key="0" label="请选择" :value="0"></el-option>
|
17
|
17
|
<el-option v-for="item in treatment_mode" :label="item.name" :value="item.id"
|
18
|
18
|
:key="item.id"></el-option>
|
|
@@ -68,7 +68,7 @@
|
68
|
68
|
</el-col>
|
69
|
69
|
|
70
|
70
|
|
71
|
|
- <el-col :span="8" v-if="isShows('置换量')">
|
|
71
|
+ <el-col :span="8" v-if="isShows('置换量')" v-show="zhiShow">
|
72
|
72
|
<el-form-item label="置换量(L):">
|
73
|
73
|
<el-input type="number" v-model="dialysisPrescription.replacement_total"></el-input>
|
74
|
74
|
</el-form-item>
|
|
@@ -230,7 +230,7 @@
|
230
|
230
|
|
231
|
231
|
<el-row :gutter="20" > -->
|
232
|
232
|
<el-col :span="8">
|
233
|
|
- <el-form-item label="置换液:" v-if="isShows('置换液')&&this.$store.getters.xt_user.template_info.template_id != 6">
|
|
233
|
+ <el-form-item label="置换液:" v-if="isShows('置换液')&&this.$store.getters.xt_user.template_info.template_id != 6" v-show="huShow">
|
234
|
234
|
<el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
|
235
|
235
|
<el-option :key="0" label="请选择" :value="0"></el-option>
|
236
|
236
|
<el-option v-for="(option, index) in displace_liqui_part_option" :key="index"
|
|
@@ -249,7 +249,7 @@
|
249
|
249
|
|
250
|
250
|
</el-col>
|
251
|
251
|
|
252
|
|
- <el-col :span="8" v-if="isShows('置换液总量')">
|
|
252
|
+ <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
|
253
|
253
|
<el-form-item label="置换液总量(L)">
|
254
|
254
|
<el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
|
255
|
255
|
</el-form-item>
|
|
@@ -495,7 +495,7 @@
|
495
|
495
|
</template>
|
496
|
496
|
|
497
|
497
|
<script>
|
498
|
|
- import { postPrescription, postSoulution,CreateGroupAdvice} from '@/api/dialysis'
|
|
498
|
+ import { postPrescription, postSoulution, CreateGroupAdvice } from '@/api/dialysis'
|
499
|
499
|
import { getDataConfig } from '@/utils/data'
|
500
|
500
|
import { uParseTime } from '@/utils/tools'
|
501
|
501
|
import store from '@/store'
|
|
@@ -652,7 +652,10 @@
|
652
|
652
|
default: function() {
|
653
|
653
|
return new Array()
|
654
|
654
|
}
|
655
|
|
- }
|
|
655
|
+ },
|
|
656
|
+ zhiShow: false,
|
|
657
|
+ totalShow: false,
|
|
658
|
+ huShow: false
|
656
|
659
|
|
657
|
660
|
},
|
658
|
661
|
data() {
|
|
@@ -675,7 +678,7 @@
|
675
|
678
|
special_medicine_option: [],
|
676
|
679
|
displace_liqui_part_option: [],
|
677
|
680
|
blood_access_option: [],
|
678
|
|
- is_pre:0,
|
|
681
|
+ is_pre: 0,
|
679
|
682
|
dialysisPrescription: {
|
680
|
683
|
replacement_total: '',
|
681
|
684
|
mode_id: '',
|
|
@@ -751,35 +754,31 @@
|
751
|
754
|
gaijiliang_unit: ''
|
752
|
755
|
},
|
753
|
756
|
|
754
|
|
-
|
755
|
|
- doctorAdvices:[]
|
|
757
|
+ doctorAdvices: []
|
756
|
758
|
|
757
|
759
|
}
|
758
|
760
|
},
|
759
|
761
|
methods: {
|
760
|
|
- handleAdviceCommit(){
|
|
762
|
+ handleAdviceCommit() {
|
761
|
763
|
let results = []
|
762
|
|
- for (let i = 0; i < this.targetAdvices.length; i++){
|
763
|
|
- for (let a = 0; a < this.checkedCities.length; a++){
|
764
|
|
- if( this.targetAdvices[i].id == this.checkedCities[a]){
|
|
764
|
+ for (let i = 0; i < this.targetAdvices.length; i++) {
|
|
765
|
+ for (let a = 0; a < this.checkedCities.length; a++) {
|
|
766
|
+ if (this.targetAdvices[i].id == this.checkedCities[a]) {
|
765
|
767
|
results.push(this.targetAdvices[i])
|
766
|
768
|
}
|
767
|
769
|
}
|
768
|
770
|
}
|
769
|
|
- var obj5={}
|
|
771
|
+ var obj5 = {}
|
770
|
772
|
results = results.reduce((cur, next) => {
|
771
|
773
|
obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
|
772
|
774
|
return cur
|
773
|
775
|
}, [])
|
774
|
776
|
|
775
|
|
- var date = new Date();
|
776
|
|
- var hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
|
777
|
|
- var minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
|
778
|
|
-
|
|
777
|
+ var date = new Date()
|
|
778
|
+ var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
779
|
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
779
|
780
|
|
780
|
781
|
if (results.length > 0) {
|
781
|
|
-
|
782
|
|
-
|
783
|
782
|
if (this.is_pre == 1) {
|
784
|
783
|
if (this.patient.id <= 0) {
|
785
|
784
|
this.$message.error('没有选择患者')
|
|
@@ -803,23 +802,21 @@
|
803
|
802
|
duration: 2000
|
804
|
803
|
})
|
805
|
804
|
|
806
|
|
- console.log(hour+":"+minute)
|
807
|
|
- let params = {
|
|
805
|
+ console.log(hour + ':' + minute)
|
|
806
|
+ const params = {
|
808
|
807
|
advices: results,
|
809
|
808
|
advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
810
|
809
|
advice_doctor: results[0].advice_doctor,
|
811
|
810
|
advice_type: results[0].advice_type,
|
812
|
811
|
parent_id: this.patient_id,
|
813
|
|
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}')+" "+hour+":"+minute,
|
814
|
|
- remark: '',
|
|
812
|
+ start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
|
|
813
|
+ remark: ''
|
815
|
814
|
}
|
816
|
815
|
CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
817
|
816
|
var resp = rs.data
|
818
|
817
|
if (resp.state == 1) {
|
819
|
818
|
this.doctorAdvices = resp.data.advices
|
820
|
819
|
this.$emit('advice')
|
821
|
|
-
|
822
|
|
-
|
823
|
820
|
} else {
|
824
|
821
|
|
825
|
822
|
}
|
|
@@ -834,8 +831,6 @@
|
834
|
831
|
this.hide()
|
835
|
832
|
}
|
836
|
833
|
})
|
837
|
|
-
|
838
|
|
-
|
839
|
834
|
} else if (this.is_pre == 2) {
|
840
|
835
|
if (this.patient.id <= 0) {
|
841
|
836
|
this.$message.error('没有选择患者')
|
|
@@ -856,30 +851,27 @@
|
856
|
851
|
type: 'success',
|
857
|
852
|
duration: 2000
|
858
|
853
|
})
|
859
|
|
- console.log(hour+":"+minute)
|
860
|
|
-
|
|
854
|
+ console.log(hour + ':' + minute)
|
861
|
855
|
|
862
|
|
- let params = {
|
|
856
|
+ const params = {
|
863
|
857
|
advices: results,
|
864
|
858
|
advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
865
|
859
|
advice_doctor: results[0].advice_doctor,
|
866
|
860
|
advice_type: results[0].advice_type,
|
867
|
861
|
parent_id: this.patient_id,
|
868
|
|
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}')+" "+hour+":"+minute,
|
869
|
|
- remark: '',
|
|
862
|
+ start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
|
|
863
|
+ remark: ''
|
870
|
864
|
}
|
871
|
865
|
CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
872
|
866
|
var resp = rs.data
|
873
|
867
|
if (resp.state == 1) {
|
874
|
868
|
// this.doctorAdvices = resp.data.advices
|
875
|
869
|
this.$emit('advice')
|
876
|
|
-
|
877
|
870
|
} else {
|
878
|
871
|
|
879
|
872
|
}
|
880
|
873
|
})
|
881
|
874
|
|
882
|
|
-
|
883
|
875
|
const prescription_resp = response.data.data.prescription
|
884
|
876
|
const solution_resp = response.data.data.solution
|
885
|
877
|
var prescription = this.prescription
|
|
@@ -896,10 +888,8 @@
|
896
|
888
|
this.hide()
|
897
|
889
|
}
|
898
|
890
|
})
|
899
|
|
-
|
900
|
891
|
}
|
901
|
|
- }else{
|
902
|
|
-
|
|
892
|
+ } else {
|
903
|
893
|
if (this.is_pre == 1) {
|
904
|
894
|
if (this.patient.id <= 0) {
|
905
|
895
|
this.$message.error('没有选择患者')
|
|
@@ -932,7 +922,6 @@
|
932
|
922
|
this.hide()
|
933
|
923
|
}
|
934
|
924
|
})
|
935
|
|
-
|
936
|
925
|
} else if (this.is_pre == 2) {
|
937
|
926
|
if (this.patient.id <= 0) {
|
938
|
927
|
this.$message.error('没有选择患者')
|
|
@@ -969,33 +958,27 @@
|
969
|
958
|
this.hide()
|
970
|
959
|
}
|
971
|
960
|
})
|
972
|
|
-
|
973
|
|
-
|
974
|
961
|
}
|
975
|
962
|
}
|
976
|
963
|
|
977
|
964
|
this.isShowRemindAdvice = false
|
978
|
965
|
this.isVisibility = true
|
979
|
|
-
|
980
|
966
|
},
|
981
|
|
- handleAdviceCancle(){
|
|
967
|
+ handleAdviceCancle() {
|
982
|
968
|
this.isShowRemindAdvice = false
|
983
|
969
|
this.isVisibility = true
|
984
|
|
-
|
985
|
970
|
},
|
986
|
971
|
getTime(val) {
|
987
|
972
|
return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
|
988
|
|
-
|
989
|
973
|
},
|
990
|
974
|
show() {
|
991
|
975
|
this.isVisibility = true
|
992
|
976
|
this.checkedCities = []
|
993
|
|
- for (let i = 0; i < this.targetAdvices.length; i++){
|
994
|
|
- if(this.targetAdvices[i].isCheck == 1){
|
995
|
|
- this.checkedCities.push(this.targetAdvices[i].id)
|
|
977
|
+ for (let i = 0; i < this.targetAdvices.length; i++) {
|
|
978
|
+ if (this.targetAdvices[i].isCheck == 1) {
|
|
979
|
+ this.checkedCities.push(this.targetAdvices[i].id)
|
996
|
980
|
}
|
997
|
981
|
}
|
998
|
|
-
|
999
|
982
|
},
|
1000
|
983
|
hide() {
|
1001
|
984
|
this.isVisibility = false
|
|
@@ -1012,8 +995,6 @@
|
1012
|
995
|
}, handleCommit: function() {
|
1013
|
996
|
this.is_pre = 1
|
1014
|
997
|
if (this.prescription.id == 0) {
|
1015
|
|
-
|
1016
|
|
-
|
1017
|
998
|
if (this.is_open == 0) {
|
1018
|
999
|
if (this.patient.id <= 0) {
|
1019
|
1000
|
this.$message.error('没有选择患者')
|
|
@@ -1047,12 +1028,10 @@
|
1047
|
1028
|
}
|
1048
|
1029
|
})
|
1049
|
1030
|
} else if (this.is_open == 1) {
|
1050
|
|
-
|
1051
|
1031
|
if (this.targetAdvices.length > 0) {
|
1052
|
|
- //弹框推送提醒
|
|
1032
|
+ // 弹框推送提醒
|
1053
|
1033
|
this.isShowRemindAdvice = true
|
1054
|
1034
|
this.isVisibility = false
|
1055
|
|
-
|
1056
|
1035
|
} else {
|
1057
|
1036
|
if (this.patient.id <= 0) {
|
1058
|
1037
|
this.$message.error('没有选择患者')
|
|
@@ -1086,30 +1065,27 @@
|
1086
|
1065
|
}
|
1087
|
1066
|
})
|
1088
|
1067
|
}
|
1089
|
|
-
|
1090
|
1068
|
} else if (this.is_open == 2) {
|
1091
|
1069
|
if (this.waitUploadAdvices.length > 0) {
|
1092
|
|
- let params = {
|
|
1070
|
+ const params = {
|
1093
|
1071
|
advices: this.waitUploadAdvices,
|
1094
|
1072
|
advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1095
|
1073
|
advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1096
|
1074
|
advice_type: this.waitUploadAdvices[0].advice_type,
|
1097
|
1075
|
parent_id: this.patient_id,
|
1098
|
1076
|
start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1099
|
|
- remark: '',
|
|
1077
|
+ remark: ''
|
1100
|
1078
|
}
|
1101
|
1079
|
CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1102
|
1080
|
var resp = rs.data
|
1103
|
1081
|
if (resp.state == 1) {
|
1104
|
1082
|
// this.doctorAdvices = resp.data.advices
|
1105
|
1083
|
this.$emit('advice')
|
1106
|
|
-
|
1107
|
1084
|
} else {
|
1108
|
1085
|
|
1109
|
1086
|
}
|
1110
|
1087
|
})
|
1111
|
1088
|
|
1112
|
|
-
|
1113
|
1089
|
if (this.patient.id <= 0) {
|
1114
|
1090
|
this.$message.error('没有选择患者')
|
1115
|
1091
|
this.loading = false
|
|
@@ -1141,10 +1117,7 @@
|
1141
|
1117
|
this.hide()
|
1142
|
1118
|
}
|
1143
|
1119
|
})
|
1144
|
|
-
|
1145
|
|
-
|
1146
|
1120
|
} else {
|
1147
|
|
-
|
1148
|
1121
|
if (this.patient.id <= 0) {
|
1149
|
1122
|
this.$message.error('没有选择患者')
|
1150
|
1123
|
this.loading = false
|
|
@@ -1177,11 +1150,7 @@
|
1177
|
1150
|
}
|
1178
|
1151
|
})
|
1179
|
1152
|
}
|
1180
|
|
-
|
1181
|
1153
|
}
|
1182
|
|
-
|
1183
|
|
-
|
1184
|
|
-
|
1185
|
1154
|
} else {
|
1186
|
1155
|
if (this.prescription.creater == 0) {
|
1187
|
1156
|
if (this.is_open == 0) {
|
|
@@ -1217,12 +1186,10 @@
|
1217
|
1186
|
}
|
1218
|
1187
|
})
|
1219
|
1188
|
} else if (this.is_open == 1) {
|
1220
|
|
-
|
1221
|
1189
|
if (this.targetAdvices.length > 0) {
|
1222
|
|
- //弹框推送提醒
|
|
1190
|
+ // 弹框推送提醒
|
1223
|
1191
|
this.isShowRemindAdvice = true
|
1224
|
1192
|
this.isVisibility = false
|
1225
|
|
-
|
1226
|
1193
|
} else {
|
1227
|
1194
|
if (this.patient.id <= 0) {
|
1228
|
1195
|
this.$message.error('没有选择患者')
|
|
@@ -1256,24 +1223,22 @@
|
1256
|
1223
|
}
|
1257
|
1224
|
})
|
1258
|
1225
|
}
|
1259
|
|
-
|
1260
|
1226
|
} else if (this.is_open == 2) {
|
1261
|
1227
|
if (this.waitUploadAdvices.length > 0) {
|
1262
|
|
- let params = {
|
|
1228
|
+ const params = {
|
1263
|
1229
|
advices: this.waitUploadAdvices,
|
1264
|
1230
|
advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1265
|
1231
|
advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1266
|
1232
|
advice_type: this.waitUploadAdvices[0].advice_type,
|
1267
|
1233
|
parent_id: this.patient_id,
|
1268
|
1234
|
start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1269
|
|
- remark: '',
|
|
1235
|
+ remark: ''
|
1270
|
1236
|
}
|
1271
|
1237
|
CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1272
|
1238
|
var resp = rs.data
|
1273
|
1239
|
if (resp.state == 1) {
|
1274
|
1240
|
// this.doctorAdvices = resp.data.advices
|
1275
|
1241
|
this.$emit('advice')
|
1276
|
|
-
|
1277
|
1242
|
} else {
|
1278
|
1243
|
|
1279
|
1244
|
}
|
|
@@ -1310,10 +1275,7 @@
|
1310
|
1275
|
this.hide()
|
1311
|
1276
|
}
|
1312
|
1277
|
})
|
1313
|
|
-
|
1314
|
|
-
|
1315
|
1278
|
} else {
|
1316
|
|
-
|
1317
|
1279
|
if (this.patient.id <= 0) {
|
1318
|
1280
|
this.$message.error('没有选择患者')
|
1319
|
1281
|
this.loading = false
|
|
@@ -1346,12 +1308,8 @@
|
1346
|
1308
|
}
|
1347
|
1309
|
})
|
1348
|
1310
|
}
|
1349
|
|
-
|
1350
|
1311
|
}
|
1351
|
|
-
|
1352
|
|
-
|
1353
|
1312
|
} else {
|
1354
|
|
-
|
1355
|
1313
|
if (this.patient.id <= 0) {
|
1356
|
1314
|
this.$message.error('没有选择患者')
|
1357
|
1315
|
this.loading = false
|
|
@@ -1383,12 +1341,8 @@
|
1383
|
1341
|
this.hide()
|
1384
|
1342
|
}
|
1385
|
1343
|
})
|
1386
|
|
-
|
1387
|
|
-
|
1388
|
1344
|
}
|
1389
|
|
-
|
1390
|
1345
|
}
|
1391
|
|
-
|
1392
|
1346
|
}, handleCancle: function() {
|
1393
|
1347
|
this.hide()
|
1394
|
1348
|
}, handleSolution: function() {
|
|
@@ -1396,7 +1350,6 @@
|
1396
|
1350
|
|
1397
|
1351
|
if (this.prescription.id == 0) {
|
1398
|
1352
|
if (this.is_open == 0) {
|
1399
|
|
-
|
1400
|
1353
|
if (this.patient.id <= 0) {
|
1401
|
1354
|
this.$message.error('没有选择患者')
|
1402
|
1355
|
this.loading = false
|
|
@@ -1433,12 +1386,10 @@
|
1433
|
1386
|
}
|
1434
|
1387
|
})
|
1435
|
1388
|
} else if (this.is_open == 1) {
|
1436
|
|
-
|
1437
|
1389
|
if (this.targetAdvices.length > 0) {
|
1438
|
|
- //弹框推送提醒
|
|
1390
|
+ // 弹框推送提醒
|
1439
|
1391
|
this.isShowRemindAdvice = true
|
1440
|
1392
|
this.isVisibility = false
|
1441
|
|
-
|
1442
|
1393
|
} else {
|
1443
|
1394
|
if (this.patient.id <= 0) {
|
1444
|
1395
|
this.$message.error('没有选择患者')
|
|
@@ -1476,30 +1427,27 @@
|
1476
|
1427
|
}
|
1477
|
1428
|
})
|
1478
|
1429
|
}
|
1479
|
|
-
|
1480
|
1430
|
} else if (this.is_open == 2) {
|
1481
|
1431
|
if (this.waitUploadAdvices.length > 0) {
|
1482
|
|
- let params = {
|
|
1432
|
+ const params = {
|
1483
|
1433
|
advices: this.waitUploadAdvices,
|
1484
|
1434
|
advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1485
|
1435
|
advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1486
|
1436
|
advice_type: this.waitUploadAdvices[0].advice_type,
|
1487
|
1437
|
parent_id: this.patient_id,
|
1488
|
1438
|
start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1489
|
|
- remark: '',
|
|
1439
|
+ remark: ''
|
1490
|
1440
|
}
|
1491
|
1441
|
CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1492
|
1442
|
var resp = rs.data
|
1493
|
1443
|
if (resp.state == 1) {
|
1494
|
1444
|
// this.doctorAdvices = resp.data.advices
|
1495
|
1445
|
this.$emit('advice')
|
1496
|
|
-
|
1497
|
1446
|
} else {
|
1498
|
1447
|
|
1499
|
1448
|
}
|
1500
|
1449
|
})
|
1501
|
1450
|
|
1502
|
|
-
|
1503
|
1451
|
if (this.patient.id <= 0) {
|
1504
|
1452
|
this.$message.error('没有选择患者')
|
1505
|
1453
|
this.loading = false
|
|
@@ -1531,10 +1479,7 @@
|
1531
|
1479
|
this.hide()
|
1532
|
1480
|
}
|
1533
|
1481
|
})
|
1534
|
|
-
|
1535
|
|
-
|
1536
|
1482
|
} else {
|
1537
|
|
-
|
1538
|
1483
|
if (this.patient.id <= 0) {
|
1539
|
1484
|
this.$message.error('没有选择患者')
|
1540
|
1485
|
this.loading = false
|
|
@@ -1571,11 +1516,7 @@
|
1571
|
1516
|
}
|
1572
|
1517
|
})
|
1573
|
1518
|
}
|
1574
|
|
-
|
1575
|
1519
|
}
|
1576
|
|
-
|
1577
|
|
-
|
1578
|
|
-
|
1579
|
1520
|
} else {
|
1580
|
1521
|
if (this.prescription.creater == 0) {
|
1581
|
1522
|
if (this.is_open == 0) {
|
|
@@ -1615,14 +1556,11 @@
|
1615
|
1556
|
}
|
1616
|
1557
|
})
|
1617
|
1558
|
} else if (this.is_open == 1) {
|
1618
|
|
-
|
1619
|
1559
|
if (this.targetAdvices.length > 0) {
|
1620
|
|
- //弹框推送提醒
|
|
1560
|
+ // 弹框推送提醒
|
1621
|
1561
|
this.isShowRemindAdvice = true
|
1622
|
1562
|
this.isVisibility = false
|
1623
|
|
-
|
1624
|
1563
|
} else {
|
1625
|
|
-
|
1626
|
1564
|
if (this.patient.id <= 0) {
|
1627
|
1565
|
this.$message.error('没有选择患者')
|
1628
|
1566
|
this.loading = false
|
|
@@ -1659,24 +1597,22 @@
|
1659
|
1597
|
}
|
1660
|
1598
|
})
|
1661
|
1599
|
}
|
1662
|
|
-
|
1663
|
1600
|
} else if (this.is_open == 2) {
|
1664
|
1601
|
if (this.waitUploadAdvices.length > 0) {
|
1665
|
|
- let params = {
|
|
1602
|
+ const params = {
|
1666
|
1603
|
advices: this.waitUploadAdvices,
|
1667
|
1604
|
advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1668
|
1605
|
advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1669
|
1606
|
advice_type: this.waitUploadAdvices[0].advice_type,
|
1670
|
1607
|
parent_id: this.patient_id,
|
1671
|
1608
|
start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1672
|
|
- remark: '',
|
|
1609
|
+ remark: ''
|
1673
|
1610
|
}
|
1674
|
1611
|
CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1675
|
1612
|
var resp = rs.data
|
1676
|
1613
|
if (resp.state == 1) {
|
1677
|
1614
|
// this.doctorAdvices = resp.data.advices
|
1678
|
1615
|
this.$emit('advice')
|
1679
|
|
-
|
1680
|
1616
|
} else {
|
1681
|
1617
|
|
1682
|
1618
|
}
|
|
@@ -1717,10 +1653,7 @@
|
1717
|
1653
|
this.hide()
|
1718
|
1654
|
}
|
1719
|
1655
|
})
|
1720
|
|
-
|
1721
|
|
-
|
1722
|
1656
|
} else {
|
1723
|
|
-
|
1724
|
1657
|
if (this.patient.id <= 0) {
|
1725
|
1658
|
this.$message.error('没有选择患者')
|
1726
|
1659
|
this.loading = false
|
|
@@ -1757,12 +1690,8 @@
|
1757
|
1690
|
}
|
1758
|
1691
|
})
|
1759
|
1692
|
}
|
1760
|
|
-
|
1761
|
1693
|
}
|
1762
|
|
-
|
1763
|
|
-
|
1764
|
1694
|
} else {
|
1765
|
|
-
|
1766
|
1695
|
if (this.patient.id <= 0) {
|
1767
|
1696
|
this.$message.error('没有选择患者')
|
1768
|
1697
|
this.loading = false
|
|
@@ -1798,20 +1727,8 @@
|
1798
|
1727
|
this.hide()
|
1799
|
1728
|
}
|
1800
|
1729
|
})
|
1801
|
|
-
|
1802
|
1730
|
}
|
1803
|
|
-
|
1804
|
1731
|
}
|
1805
|
|
-
|
1806
|
|
-
|
1807
|
|
-
|
1808
|
|
-
|
1809
|
|
-
|
1810
|
|
-
|
1811
|
|
-
|
1812
|
|
-
|
1813
|
|
-
|
1814
|
|
-
|
1815
|
1732
|
}, isShows(name) {
|
1816
|
1733
|
var filedList = store.getters.xt_user.fileds
|
1817
|
1734
|
for (let i = 0; i < filedList.length; i++) {
|
|
@@ -1856,23 +1773,32 @@
|
1856
|
1773
|
} else {
|
1857
|
1774
|
val.child[i]['single'] = ''
|
1858
|
1775
|
}
|
1859
|
|
- name = name + '▲' + val.child[i].advice_name + ''
|
1860
|
|
- + val.child[i].advice_desc
|
1861
|
|
- + val.child[i].drug_spec_unit
|
1862
|
|
- + val.child[i].presc
|
1863
|
|
- + val.child[i].single
|
|
1776
|
+ name = name + '▲' + val.child[i].advice_name + '' +
|
|
1777
|
+ val.child[i].advice_desc +
|
|
1778
|
+ val.child[i].drug_spec_unit +
|
|
1779
|
+ val.child[i].presc +
|
|
1780
|
+ val.child[i].single
|
1864
|
1781
|
}
|
1865
|
|
- return val.advice_name + ' ' + advice_desc + ' '
|
1866
|
|
- + val.drug_spec_unit
|
1867
|
|
- + prescribing_number
|
1868
|
|
- + ' ' + single_dose + ' ' + ' ' + val.delivery_way + ' ' + val.execution_frequency + val.remark + name
|
1869
|
|
-
|
|
1782
|
+ return val.advice_name + ' ' + advice_desc + ' ' +
|
|
1783
|
+ val.drug_spec_unit +
|
|
1784
|
+ prescribing_number +
|
|
1785
|
+ ' ' + single_dose + ' ' + ' ' + val.delivery_way + ' ' + val.execution_frequency + val.remark + name
|
1870
|
1786
|
} else {
|
1871
|
|
- return val.advice_name + ' ' + advice_desc
|
1872
|
|
- + prescribing_number
|
1873
|
|
- + ' ' + single_dose + ' ' + ' ' + val.delivery_way + ' ' + val.execution_frequency + val.remark
|
|
1787
|
+ return val.advice_name + ' ' + advice_desc +
|
|
1788
|
+ prescribing_number +
|
|
1789
|
+ ' ' + single_dose + ' ' + ' ' + val.delivery_way + ' ' + val.execution_frequency + val.remark
|
|
1790
|
+ }
|
|
1791
|
+ },
|
|
1792
|
+ changePrescription(id) {
|
|
1793
|
+ if (id === 1 || id === 3 || id === 4 || id === 6 || id === 7 || id === 8 || id === 9 || id === 10 || id === 11 || id === 13 || id === 14 || id === 15 || id === 16) {
|
|
1794
|
+ this.zhiShow = false
|
|
1795
|
+ this.huShow = false
|
|
1796
|
+ this.totalShow = false
|
|
1797
|
+ } else {
|
|
1798
|
+ this.zhiShow = true
|
|
1799
|
+ this.huShow = true
|
|
1800
|
+ this.totalShow = true
|
1874
|
1801
|
}
|
1875
|
|
-
|
1876
|
1802
|
}
|
1877
|
1803
|
},
|
1878
|
1804
|
created() {
|