|
@@ -746,26 +746,9 @@ import MsgTip from './subMenu/MsgTip'
|
746
|
746
|
},
|
747
|
747
|
|
748
|
748
|
menuComfirmThree: function (targetAdvices) {
|
749
|
|
- if (targetAdvices.length > 0) {
|
750
|
|
- let params = {
|
751
|
|
- advices: targetAdvices,
|
752
|
|
- advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
753
|
|
- advice_doctor: targetAdvices[0].advice_doctor,
|
754
|
|
- advice_type: targetAdvices[0].advice_type,
|
755
|
|
- parent_id: this.patient_id,
|
756
|
|
- start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
757
|
|
- remark: '',
|
758
|
|
- }
|
759
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
760
|
|
- var resp = rs.data
|
761
|
|
- if (resp.state == 1) {
|
762
|
|
- this.doctorAdvices = resp.data.advices
|
763
|
|
-
|
764
|
|
- } else {
|
765
|
749
|
|
766
|
|
- }
|
767
|
|
- })
|
768
|
750
|
|
|
751
|
+ if (targetAdvices.length > 0) {
|
769
|
752
|
if (this.is_pre == 1) {
|
770
|
753
|
Toast.loading({forbidClick: true, duration: 0})
|
771
|
754
|
let ParamsQuery = this.dialysisPrescription
|
|
@@ -776,10 +759,29 @@ import MsgTip from './subMenu/MsgTip'
|
776
|
759
|
Toast.fail(response.data.msg)
|
777
|
760
|
return false
|
778
|
761
|
} else {
|
779
|
|
- Toast.success('提交成功')
|
|
762
|
+ let params = {
|
|
763
|
+ advices: targetAdvices,
|
|
764
|
+ advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
765
|
+ advice_doctor: targetAdvices[0].advice_doctor,
|
|
766
|
+ advice_type: targetAdvices[0].advice_type,
|
|
767
|
+ parent_id: this.patient_id,
|
|
768
|
+ start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
769
|
+ remark: '',
|
|
770
|
+ }
|
|
771
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
772
|
+ var resp = rs.data
|
|
773
|
+ if (resp.state == 1) {
|
|
774
|
+ this.doctorAdvices = resp.data.advices
|
|
775
|
+ Toast.success('提交成功')
|
|
776
|
+
|
|
777
|
+ this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
|
|
778
|
+ this.finish()
|
|
779
|
+
|
|
780
|
+ } else {
|
|
781
|
+
|
|
782
|
+ }
|
|
783
|
+ })
|
780
|
784
|
|
781
|
|
- this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
|
782
|
|
- this.finish()
|
783
|
785
|
}
|
784
|
786
|
})
|
785
|
787
|
|
|
@@ -976,8 +978,8 @@ import MsgTip from './subMenu/MsgTip'
|
976
|
978
|
},
|
977
|
979
|
commitInfo: function () {
|
978
|
980
|
this.is_pre = 1
|
979
|
|
- if (this.prescription_prop.id == '') {
|
980
|
981
|
|
|
982
|
+ if (this.prescription_prop.id == '') {
|
981
|
983
|
if (this.is_open == 0) {
|
982
|
984
|
Toast.loading({forbidClick: true, duration: 0})
|
983
|
985
|
let ParamsQuery = this.dialysisPrescription
|
|
@@ -1007,8 +1009,7 @@ import MsgTip from './subMenu/MsgTip'
|
1007
|
1009
|
this.advicePropForm.result.push(this.advicePropForm.list[i].id)
|
1008
|
1010
|
}
|
1009
|
1011
|
}
|
1010
|
|
- }
|
1011
|
|
- else {
|
|
1012
|
+ } else {
|
1012
|
1013
|
Toast.loading({forbidClick: true, duration: 0})
|
1013
|
1014
|
let ParamsQuery = this.dialysisPrescription
|
1014
|
1015
|
ParamsQuery['patient'] = this.$route.query.patient_id
|
|
@@ -1029,25 +1030,7 @@ import MsgTip from './subMenu/MsgTip'
|
1029
|
1030
|
|
1030
|
1031
|
} else if (this.is_open == 2) {
|
1031
|
1032
|
if (this.waitUploadAdvices.length > 0) {
|
1032
|
|
- this.advice_visibility = false
|
1033
|
|
- let params = {
|
1034
|
|
- advices: this.waitUploadAdvices,
|
1035
|
|
- advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1036
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1037
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1038
|
|
- parent_id: this.patient_id,
|
1039
|
|
- start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1040
|
|
- remark: '',
|
1041
|
|
- }
|
1042
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1043
|
|
- var resp = rs.data
|
1044
|
|
- if (resp.state == 1) {
|
1045
|
|
- this.doctorAdvices = resp.data.advices
|
1046
|
1033
|
|
1047
|
|
- } else {
|
1048
|
|
-
|
1049
|
|
- }
|
1050
|
|
- })
|
1051
|
1034
|
Toast.loading({forbidClick: true, duration: 0})
|
1052
|
1035
|
let ParamsQuery = this.dialysisPrescription
|
1053
|
1036
|
ParamsQuery['patient'] = this.$route.query.patient_id
|
|
@@ -1073,10 +1056,29 @@ import MsgTip from './subMenu/MsgTip'
|
1073
|
1056
|
Toast.fail(response.data.msg)
|
1074
|
1057
|
return false
|
1075
|
1058
|
} else {
|
1076
|
|
- Toast.success('提交成功')
|
|
1059
|
+ this.advice_visibility = false
|
|
1060
|
+ let params = {
|
|
1061
|
+ advices: this.waitUploadAdvices,
|
|
1062
|
+ advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1063
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1064
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1065
|
+ parent_id: this.patient_id,
|
|
1066
|
+ start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1067
|
+ remark: '',
|
|
1068
|
+ }
|
|
1069
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1070
|
+ var resp = rs.data
|
|
1071
|
+ if (resp.state == 1) {
|
|
1072
|
+ this.doctorAdvices = resp.data.advices
|
|
1073
|
+ Toast.success('提交成功')
|
|
1074
|
+ this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
|
|
1075
|
+ this.finish()
|
|
1076
|
+ } else {
|
|
1077
|
+
|
|
1078
|
+ }
|
|
1079
|
+ })
|
|
1080
|
+
|
1077
|
1081
|
|
1078
|
|
- this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
|
1079
|
|
- this.finish()
|
1080
|
1082
|
}
|
1081
|
1083
|
})
|
1082
|
1084
|
}
|
|
@@ -1141,25 +1143,7 @@ import MsgTip from './subMenu/MsgTip'
|
1141
|
1143
|
} else if (this.is_open == 2) {
|
1142
|
1144
|
if (this.waitUploadAdvices.length > 0) {
|
1143
|
1145
|
|
1144
|
|
- this.advice_visibility = false
|
1145
|
|
- let params = {
|
1146
|
|
- advices: this.waitUploadAdvices,
|
1147
|
|
- advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1148
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1149
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1150
|
|
- parent_id: this.patient_id,
|
1151
|
|
- start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1152
|
|
- remark: '',
|
1153
|
|
- }
|
1154
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1155
|
|
- var resp = rs.data
|
1156
|
|
- if (resp.state == 1) {
|
1157
|
|
- this.doctorAdvices = resp.data.advices
|
1158
|
|
-
|
1159
|
|
- } else {
|
1160
|
1146
|
|
1161
|
|
- }
|
1162
|
|
- })
|
1163
|
1147
|
Toast.loading({forbidClick: true, duration: 0})
|
1164
|
1148
|
let ParamsQuery = this.dialysisPrescription
|
1165
|
1149
|
ParamsQuery['patient'] = this.$route.query.patient_id
|
|
@@ -1186,9 +1170,28 @@ import MsgTip from './subMenu/MsgTip'
|
1186
|
1170
|
Toast.fail(response.data.msg)
|
1187
|
1171
|
return false
|
1188
|
1172
|
} else {
|
1189
|
|
- Toast.success('提交成功')
|
1190
|
|
- this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
|
1191
|
|
- this.finish()
|
|
1173
|
+ this.advice_visibility = false
|
|
1174
|
+ let params = {
|
|
1175
|
+ advices: this.waitUploadAdvices,
|
|
1176
|
+ advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1177
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1178
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1179
|
+ parent_id: this.patient_id,
|
|
1180
|
+ start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1181
|
+ remark: '',
|
|
1182
|
+ }
|
|
1183
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1184
|
+ var resp = rs.data
|
|
1185
|
+ if (resp.state == 1) {
|
|
1186
|
+ this.doctorAdvices = resp.data.advices
|
|
1187
|
+ Toast.success('提交成功')
|
|
1188
|
+ this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
|
|
1189
|
+ this.finish()
|
|
1190
|
+
|
|
1191
|
+ } else {
|
|
1192
|
+
|
|
1193
|
+ }
|
|
1194
|
+ })
|
1192
|
1195
|
|
1193
|
1196
|
}
|
1194
|
1197
|
})
|
|
@@ -1279,26 +1282,7 @@ import MsgTip from './subMenu/MsgTip'
|
1279
|
1282
|
|
1280
|
1283
|
} else if (this.is_open == 2) {
|
1281
|
1284
|
if (this.waitUploadAdvices.length > 0) {
|
1282
|
|
- this.advice_visibility = false
|
1283
|
|
- let params = {
|
1284
|
|
- advices: this.waitUploadAdvices,
|
1285
|
|
- advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1286
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1287
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1288
|
|
- parent_id: this.patient_id,
|
1289
|
|
- start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1290
|
|
- remark: '',
|
1291
|
|
- }
|
1292
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1293
|
|
- var resp = rs.data
|
1294
|
|
- if (resp.state == 1) {
|
1295
|
|
- this.doctorAdvices = resp.data.advices
|
1296
|
|
-
|
1297
|
1285
|
|
1298
|
|
- } else {
|
1299
|
|
-
|
1300
|
|
- }
|
1301
|
|
- })
|
1302
|
1286
|
Toast.loading({forbidClick: true, duration: 0})
|
1303
|
1287
|
let ParamsQuery = this.dialysisPrescription
|
1304
|
1288
|
ParamsQuery['patient'] = this.$route.query.patient_id
|
|
@@ -1327,6 +1311,26 @@ import MsgTip from './subMenu/MsgTip'
|
1327
|
1311
|
Toast.fail(response.data.msg)
|
1328
|
1312
|
return false
|
1329
|
1313
|
} else {
|
|
1314
|
+ this.advice_visibility = false
|
|
1315
|
+ let params = {
|
|
1316
|
+ advices: this.waitUploadAdvices,
|
|
1317
|
+ advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1318
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1319
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1320
|
+ parent_id: this.patient_id,
|
|
1321
|
+ start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1322
|
+ remark: '',
|
|
1323
|
+ }
|
|
1324
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1325
|
+ var resp = rs.data
|
|
1326
|
+ if (resp.state == 1) {
|
|
1327
|
+ this.doctorAdvices = resp.data.advices
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+ } else {
|
|
1331
|
+
|
|
1332
|
+ }
|
|
1333
|
+ })
|
1330
|
1334
|
Toast.success('提交成功')
|
1331
|
1335
|
|
1332
|
1336
|
this.$emit('advice')
|
|
@@ -1401,26 +1405,7 @@ import MsgTip from './subMenu/MsgTip'
|
1401
|
1405
|
|
1402
|
1406
|
} else if (this.is_open == 2) {
|
1403
|
1407
|
if (this.waitUploadAdvices.length > 0) {
|
1404
|
|
- this.advice_visibility = false
|
1405
|
|
- let params = {
|
1406
|
|
- advices: this.waitUploadAdvices,
|
1407
|
|
- advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1408
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1409
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1410
|
|
- parent_id: this.patient_id,
|
1411
|
|
- start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1412
|
|
- remark: '',
|
1413
|
|
- }
|
1414
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1415
|
|
- var resp = rs.data
|
1416
|
|
- if (resp.state == 1) {
|
1417
|
|
- this.doctorAdvices = resp.data.advices
|
1418
|
|
-
|
1419
|
|
-
|
1420
|
|
- } else {
|
1421
|
1408
|
|
1422
|
|
- }
|
1423
|
|
- })
|
1424
|
1409
|
Toast.loading({forbidClick: true, duration: 0})
|
1425
|
1410
|
let ParamsQuery = this.dialysisPrescription
|
1426
|
1411
|
ParamsQuery['patient'] = this.$route.query.patient_id
|
|
@@ -1430,12 +1415,30 @@ import MsgTip from './subMenu/MsgTip'
|
1430
|
1415
|
Toast.fail(response.data.msg)
|
1431
|
1416
|
return false
|
1432
|
1417
|
} else {
|
1433
|
|
- Toast.success('提交成功')
|
|
1418
|
+ this.advice_visibility = false
|
|
1419
|
+ let params = {
|
|
1420
|
+ advices: this.waitUploadAdvices,
|
|
1421
|
+ advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1422
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1423
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1424
|
+ parent_id: this.patient_id,
|
|
1425
|
+ start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1426
|
+ remark: '',
|
|
1427
|
+ }
|
|
1428
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1429
|
+ var resp = rs.data
|
|
1430
|
+ if (resp.state == 1) {
|
|
1431
|
+ this.doctorAdvices = resp.data.advices
|
|
1432
|
+ Toast.success('提交成功')
|
|
1433
|
+ this.$emit('advice')
|
|
1434
|
+ this.$emit('longSolution', response.data.data.solution)
|
|
1435
|
+ this.$emit('prescription', response.data.data.prescription)
|
|
1436
|
+ this.finish()
|
|
1437
|
+ } else {
|
|
1438
|
+
|
|
1439
|
+ }
|
|
1440
|
+ })
|
1434
|
1441
|
|
1435
|
|
- this.$emit('advice')
|
1436
|
|
- this.$emit('longSolution', response.data.data.solution)
|
1437
|
|
- this.$emit('prescription', response.data.data.prescription)
|
1438
|
|
- this.finish()
|
1439
|
1442
|
|
1440
|
1443
|
}
|
1441
|
1444
|
})
|