huangyw hace 2 años
padre
commit
11e2dc2577
Se han modificado 1 ficheros con 11 adiciones y 10 borrados
  1. 11 10
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue

+ 11 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Ver fichero

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