|
@@ -267,6 +267,7 @@
|
267
|
267
|
diagnoses: [],
|
268
|
268
|
other_sick: [],
|
269
|
269
|
info: {},
|
|
270
|
+ last_info:{},
|
270
|
271
|
templatedetail: {},
|
271
|
272
|
detalid: 0,
|
272
|
273
|
prescription_id: 0,
|
|
@@ -1126,7 +1127,6 @@
|
1126
|
1127
|
'-' +
|
1127
|
1128
|
(nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
|
1128
|
1129
|
':' + (min < 10 ? '0' + min : min)
|
1129
|
|
- this.patientid = val.id
|
1130
|
1130
|
let params = {
|
1131
|
1131
|
'record_date': this.record_date,
|
1132
|
1132
|
'patient_id': val.id,
|
|
@@ -1144,6 +1144,7 @@
|
1144
|
1144
|
|
1145
|
1145
|
return false
|
1146
|
1146
|
} else {
|
|
1147
|
+ this.patientid = val.id
|
1147
|
1148
|
this.isloading = false
|
1148
|
1149
|
|
1149
|
1150
|
this.prescriptions = []
|
|
@@ -1153,6 +1154,8 @@
|
1153
|
1154
|
this.hisPatientInfo = response.data.data.his_info
|
1154
|
1155
|
this.case_history = response.data.data.case_history
|
1155
|
1156
|
this.info = response.data.data.info
|
|
1157
|
+ this.last_info = response.data.data.last_info
|
|
1158
|
+
|
1156
|
1159
|
this.doctors = response.data.data.doctors
|
1157
|
1160
|
this.department = response.data.data.department
|
1158
|
1161
|
|
|
@@ -1428,126 +1431,9 @@
|
1428
|
1431
|
this.prescriptions.push(obj)
|
1429
|
1432
|
|
1430
|
1433
|
}
|
1431
|
|
- // else{
|
1432
|
|
- //
|
1433
|
|
- // if(response.data.data.count <= 1 ){
|
1434
|
|
- // if(response.data.data.last_prescriptions.length == 0){
|
1435
|
|
- // let obj = {
|
1436
|
|
- // id: 0,
|
1437
|
|
- // name: '处方' + 1,
|
1438
|
|
- // advices: [],
|
1439
|
|
- // project: [],
|
1440
|
|
- // addition: [],
|
1441
|
|
- // order_status: 0,
|
1442
|
|
- // pre_time: nowTime,
|
1443
|
|
- //
|
1444
|
|
- // };
|
1445
|
|
- // this.prescriptions.push(obj)
|
1446
|
|
- //
|
1447
|
|
- //
|
1448
|
|
- // }else {
|
1449
|
|
- // for (let i = 0; i < response.data.data.last_prescriptions.length; i++) {
|
1450
|
|
- // var prescription = response.data.data.last_prescriptions[i];
|
1451
|
|
- // let tempAdvice = [];
|
1452
|
|
- // let tempProject = [];
|
1453
|
|
- // let tempAddition = [];
|
1454
|
|
- //
|
1455
|
|
- // //药品
|
1456
|
|
- // for (let b = 0; b < prescription.advices.length; b++) {
|
1457
|
|
- // let obj = {
|
1458
|
|
- // advice_id:0,
|
1459
|
|
- // drug_name: prescription.advices[b].advice_name,
|
1460
|
|
- // single_dose: prescription.advices[b].single_dose,
|
1461
|
|
- // delivery_way: prescription.advices[b].delivery_way,
|
1462
|
|
- // execution_frequency: prescription.advices[b].execution_frequency,
|
1463
|
|
- // retail_price: prescription.advices[b].price.toString(),
|
1464
|
|
- // remark: prescription.advices[b].remark,
|
1465
|
|
- // day: prescription.advices[b].day,
|
1466
|
|
- // prescribing_number: prescription.advices[b].prescribing_number.toString(),
|
1467
|
|
- // single_dose_unit: prescription.advices[b].single_dose_unit,
|
1468
|
|
- // prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
|
1469
|
|
- // medical_insurance_number: prescription.advices[b].med_list_codg,
|
1470
|
|
- // id: prescription.advices[b].drug_id,
|
1471
|
|
- // drug:prescription.advices[b].drug
|
1472
|
|
- //
|
1473
|
|
- // };
|
1474
|
|
- // tempAdvice.push(obj)
|
1475
|
|
- // }
|
1476
|
|
- //
|
1477
|
|
- // //项目
|
1478
|
|
- // for (let b = 0; b < prescription.project.length; b++) {
|
1479
|
|
- // let obj = {
|
1480
|
|
- // id:0,
|
1481
|
|
- // project_id: prescription.project[b].project_id,
|
1482
|
|
- // project_name: prescription.project[b].project.project_name,
|
1483
|
|
- // statistical_classification: prescription.project[b].project.statistical_classification,
|
1484
|
|
- // single_dose: prescription.project[b].single_dose,
|
1485
|
|
- // delivery_way: prescription.project[b].delivery_way,
|
1486
|
|
- // execution_frequency: prescription.project[b].execution_frequency,
|
1487
|
|
- // number_days: prescription.project[b].day,
|
1488
|
|
- // total: prescription.project[b].count.toString(),
|
1489
|
|
- // price: prescription.project[b].price,
|
1490
|
|
- // remark: prescription.project[b].remark,
|
1491
|
|
- // medical_code: prescription.project[b].project.medical_code,
|
1492
|
|
- // unit: prescription.project[b].project.unit,
|
1493
|
|
- // type: prescription.project[b].type
|
1494
|
|
- // };
|
1495
|
|
- //
|
1496
|
|
- // if (prescription.project[b].type == 2) {
|
1497
|
|
- // obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
1498
|
|
- // obj['medical_code'] = prescription.project[b].project.medical_code
|
1499
|
|
- // obj['project_name'] = prescription.project[b].project.project_name
|
1500
|
|
- //
|
1501
|
|
- // } else if (prescription.project[b].type == 3) {
|
1502
|
|
- // obj['statistical_classification'] = ""
|
1503
|
|
- // obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
1504
|
|
- // obj['project_name'] = prescription.project[b].good_info.good_name
|
1505
|
|
- // }
|
1506
|
|
- // tempProject.push(obj)
|
1507
|
|
- // }
|
1508
|
|
- //
|
1509
|
|
- // //附加收费
|
1510
|
|
- // for (let b = 0; b < prescription.addition.length; b++) {
|
1511
|
|
- // let obj = {
|
1512
|
|
- // item_name: prescription.addition[b].item_name,
|
1513
|
|
- // price: prescription.addition[b].price,
|
1514
|
|
- // count: prescription.addition[b].count,
|
1515
|
|
- // item_id: prescription.addition[b].item_id,
|
1516
|
|
- // };
|
1517
|
|
- // tempAddition.push(obj)
|
1518
|
|
- // }
|
1519
|
|
- //
|
1520
|
|
- // var preTime = nowTime
|
1521
|
|
- //
|
1522
|
|
- // let index = i + 1;
|
1523
|
|
- // let obj = {
|
1524
|
|
- // id: 0,
|
1525
|
|
- // name: '处方' + index,
|
1526
|
|
- // advices: tempAdvice,
|
1527
|
|
- // project: tempProject,
|
1528
|
|
- // addition: tempAddition,
|
1529
|
|
- // order_status: 1,
|
1530
|
|
- // pre_time: preTime
|
1531
|
|
- // };
|
1532
|
|
- // this.prescriptions.push(obj)
|
1533
|
|
- // }
|
1534
|
|
- // }
|
1535
|
|
- // }else{
|
1536
|
|
- // let obj = {
|
1537
|
|
- // id: 0,
|
1538
|
|
- // name: '处方' + 1,
|
1539
|
|
- // advices: [],
|
1540
|
|
- // project: [],
|
1541
|
|
- // addition: [],
|
1542
|
|
- // order_status: 0,
|
1543
|
|
- // pre_time: nowTime,
|
1544
|
|
- //
|
1545
|
|
- // };
|
1546
|
|
- // this.prescriptions.push(obj)
|
1547
|
|
- // }
|
1548
|
|
- // }
|
1549
|
1434
|
}
|
1550
|
|
- this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
|
|
1435
|
+ console.log("~~~~~00000222222")
|
|
1436
|
+ this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
|
1551
|
1437
|
}
|
1552
|
1438
|
})
|
1553
|
1439
|
|
|
@@ -1590,6 +1476,8 @@
|
1590
|
1476
|
this.hisPatientInfo = response.data.data.his_info;
|
1591
|
1477
|
this.case_history = response.data.data.case_history;
|
1592
|
1478
|
this.info = response.data.data.info;
|
|
1479
|
+ this.last_info = response.data.data.last_info
|
|
1480
|
+
|
1593
|
1481
|
this.doctors = response.data.data.doctors;
|
1594
|
1482
|
this.department = response.data.data.department;
|
1595
|
1483
|
|
|
@@ -1983,7 +1871,7 @@
|
1983
|
1871
|
// }
|
1984
|
1872
|
}
|
1985
|
1873
|
}
|
1986
|
|
- this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
|
|
1874
|
+ this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
|
1987
|
1875
|
this.$refs.child.watchSign = 0
|
1988
|
1876
|
}
|
1989
|
1877
|
});
|
|
@@ -2016,6 +1904,8 @@
|
2016
|
1904
|
this.hisPatientInfo = response.data.data.his_info;
|
2017
|
1905
|
this.case_history = response.data.data.case_history;
|
2018
|
1906
|
this.info = response.data.data.info;
|
|
1907
|
+ this.last_info = response.data.data.last_info
|
|
1908
|
+
|
2019
|
1909
|
this.doctors = response.data.data.doctors;
|
2020
|
1910
|
this.department = response.data.data.department;
|
2021
|
1911
|
|
|
@@ -2402,7 +2292,7 @@
|
2402
|
2292
|
// }
|
2403
|
2293
|
}
|
2404
|
2294
|
}
|
2405
|
|
- this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
|
|
2295
|
+ this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
|
2406
|
2296
|
this.$refs.child.watchSign = 0
|
2407
|
2297
|
}
|
2408
|
2298
|
})
|
|
@@ -2436,6 +2326,8 @@
|
2436
|
2326
|
this.hisPatientInfo = response.data.data.his_info;
|
2437
|
2327
|
this.case_history = response.data.data.case_history;
|
2438
|
2328
|
this.info = response.data.data.info;
|
|
2329
|
+ this.last_info = response.data.data.last_info
|
|
2330
|
+
|
2439
|
2331
|
this.doctors = response.data.data.doctors;
|
2440
|
2332
|
this.department = response.data.data.department;
|
2441
|
2333
|
|
|
@@ -2821,7 +2713,7 @@
|
2821
|
2713
|
// }
|
2822
|
2714
|
}
|
2823
|
2715
|
}
|
2824
|
|
- this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
|
|
2716
|
+ this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
|
2825
|
2717
|
this.$refs.child.watchSign = 0
|
2826
|
2718
|
}
|
2827
|
2719
|
});
|
|
@@ -2920,6 +2812,8 @@
|
2920
|
2812
|
|
2921
|
2813
|
this.case_history = response.data.data.case_history
|
2922
|
2814
|
this.info = response.data.data.info
|
|
2815
|
+ this.last_info = response.data.data.last_info
|
|
2816
|
+
|
2923
|
2817
|
this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
|
2924
|
2818
|
if (this.case_history.breathing <= 0) {
|
2925
|
2819
|
this.case_history.breathing = ''
|
|
@@ -3297,7 +3191,7 @@
|
3297
|
3191
|
// }
|
3298
|
3192
|
}
|
3299
|
3193
|
}
|
3300
|
|
- this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
|
|
3194
|
+ this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
|
3301
|
3195
|
}
|
3302
|
3196
|
})
|
3303
|
3197
|
|
|
@@ -3330,6 +3224,8 @@
|
3330
|
3224
|
this.hisPatientInfo = response.data.data.his_info
|
3331
|
3225
|
this.case_history = response.data.data.case_history
|
3332
|
3226
|
this.info = response.data.data.info
|
|
3227
|
+ this.last_info = response.data.data.last_info
|
|
3228
|
+
|
3333
|
3229
|
this.doctors = response.data.data.doctors
|
3334
|
3230
|
this.department = response.data.data.department
|
3335
|
3231
|
|
|
@@ -3716,7 +3612,7 @@
|
3716
|
3612
|
// }
|
3717
|
3613
|
}
|
3718
|
3614
|
}
|
3719
|
|
- this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
|
|
3615
|
+ this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
|
3720
|
3616
|
}
|
3721
|
3617
|
})
|
3722
|
3618
|
|
|
@@ -3823,7 +3719,10 @@
|
3823
|
3719
|
if(this.titleType == "电子处方"){
|
3824
|
3720
|
if(this.radio == 1){
|
3825
|
3721
|
this.un_cure_data.map(item => {
|
|
3722
|
+ console.log("~~~~~~~~")
|
3826
|
3723
|
if(item.id == this.patientid){
|
|
3724
|
+ console.log("~~~~~~~~22222222")
|
|
3725
|
+
|
3827
|
3726
|
this.getPatientInfo(item)
|
3828
|
3727
|
}
|
3829
|
3728
|
})
|