|
@@ -2698,14 +2698,14 @@ export default {
|
2698
|
2698
|
getoldAge(){
|
2699
|
2699
|
let date = new Date()
|
2700
|
2700
|
let year = date.getFullYear()
|
2701
|
|
- let year_d = year-this.patientInfo.birth.split('-')[0]
|
|
2701
|
+ let year_d = this.xtdate.split('-')[0]-this.patientInfo.birth.split('-')[0]
|
2702
|
2702
|
let year_m = this.xtdate.split('-')[1]
|
2703
|
2703
|
let birth_m = this.patientInfo.birth.split('-')[1]
|
2704
|
2704
|
let year_date = this.xtdate.split('-')[2]
|
2705
|
2705
|
let birth_date = this.patientInfo.birth.split('-')[2]
|
2706
|
2706
|
// console.log(year,'今年年月')
|
2707
|
2707
|
// console.log(this.xtdate.split('-'),'病人就诊年月')
|
2708
|
|
- // console.log(this.patientInfo.birth,'病人生日')
|
|
2708
|
+ console.log(this.patientInfo.birth,'病人生日')
|
2709
|
2709
|
// console.log(year_d,'year_d')
|
2710
|
2710
|
if(year_m < birth_m){
|
2711
|
2711
|
return year_d - 1
|
|
@@ -3093,6 +3093,7 @@ export default {
|
3093
|
3093
|
this.patientInfo.birthday,
|
3094
|
3094
|
"{y}-{m}-{d}"
|
3095
|
3095
|
);
|
|
3096
|
+ // console.log(this.patientInfo.birth,'测试生日')
|
3096
|
3097
|
// this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
|
3097
|
3098
|
if (response.data.data.patientInfo.first_dialysis_date != 0) {
|
3098
|
3099
|
this.patientInfo.first_dialysis_date = uParseTime(
|
|
@@ -3113,14 +3114,14 @@ export default {
|
3113
|
3114
|
this.afterdialysis = response.data.data.AssessmentAfterDislysis;
|
3114
|
3115
|
// console.log('透后体重', this.afterdialysis)
|
3115
|
3116
|
this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
|
3116
|
|
- console.log("上次透后体重", this.lastafterdialysis.weight_after);
|
|
3117
|
+ // console.log("上次透后体重", this.lastafterdialysis.weight_after);
|
3117
|
3118
|
this.operators = response.data.data.operators;
|
3118
|
|
- console.log("operators", this.operators);
|
|
3119
|
+ // console.log("operators", this.operators);
|
3119
|
3120
|
this.dialysisOrder =
|
3120
|
3121
|
response.data.data.dialysisOrder === null
|
3121
|
3122
|
? null
|
3122
|
3123
|
: response.data.data.dialysisOrder;
|
3123
|
|
- console.log("上机233232323232", this.dialysisOrder);
|
|
3124
|
+ // console.log("上机233232323232", this.dialysisOrder);
|
3124
|
3125
|
if (this.operators.length > 0) {
|
3125
|
3126
|
var operatorsLen = this.operators.length;
|
3126
|
3127
|
for (var index = 0; index < operatorsLen; index++) {
|
|
@@ -3177,7 +3178,7 @@ export default {
|
3177
|
3178
|
this.afterdialysis.complications_other.join(",");
|
3178
|
3179
|
|
3179
|
3180
|
this.prescription = response.data.data.dialysisPrescription;
|
3180
|
|
- console.log("透析处方", this.prescription);
|
|
3181
|
+ // console.log("透析处方", this.prescription);
|
3181
|
3182
|
this.receiverTreatmentAccess =
|
3182
|
3183
|
response.data.data.receiverTreatmentAccess;
|
3183
|
3184
|
this.prescription.mode = this.modeName(this.prescription.mode_id);
|
|
@@ -3225,7 +3226,7 @@ export default {
|
3225
|
3226
|
|
3226
|
3227
|
this.advices = response.data.data.advices;
|
3227
|
3228
|
this.tableAdvice = response.data.data.advices;
|
3228
|
|
- console.log("医嘱数据2222222222", this.advices);
|
|
3229
|
+ // console.log("医嘱数据2222222222", this.advices);
|
3229
|
3230
|
this.monitors = response.data.data.monitors;
|
3230
|
3231
|
this.summary = response.data.data.summary;
|
3231
|
3232
|
this.org_template_info = response.data.data.org_template_info;
|
|
@@ -3437,7 +3438,7 @@ export default {
|
3437
|
3438
|
this.doctor_advices = doctor_advices_1;
|
3438
|
3439
|
this.doctor_advices_2 = doctor_advices_2;
|
3439
|
3440
|
}
|
3440
|
|
- console.log(this.advice_groups);
|
|
3441
|
+ // console.log(this.advice_groups);
|
3441
|
3442
|
} else {
|
3442
|
3443
|
this.loading = false;
|
3443
|
3444
|
this.$message.error("请求数据失败");
|
|
@@ -3580,9 +3581,9 @@ export default {
|
3580
|
3581
|
}
|
3581
|
3582
|
|
3582
|
3583
|
const xtdate = this.$route.query && this.$route.query.xtdate;
|
3583
|
|
- console.log("xtdate", xtdate);
|
|
3584
|
+ // console.log("xtdate", xtdate);
|
3584
|
3585
|
const xtno = this.$route.query && this.$route.query.xtno;
|
3585
|
|
- console.log("xtno", xtno);
|
|
3586
|
+ // console.log("xtno", xtno);
|
3586
|
3587
|
if (
|
3587
|
3588
|
typeof xtdate === "string" &&
|
3588
|
3589
|
xtdate.length > 0 &&
|