浏览代码

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 3 年前
父节点
当前提交
a15bc860b6

+ 43 - 44
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

46
           <div class="inline_block" style="margin-left: 10px">
46
           <div class="inline_block" style="margin-left: 10px">
47
             年龄:
47
             年龄:
48
             <div class="under_line" style="width: 30px; text-align: center">
48
             <div class="under_line" style="width: 30px; text-align: center">
49
-              {{ getAge(patientInfo)}}
49
+              {{ getAge(patientInfo) }}
50
             </div>
50
             </div>
51
51
52
           </div>
52
           </div>
1673
             <div class="inline_block" style="margin-left: 5px">
1673
             <div class="inline_block" style="margin-left: 5px">
1674
               住院号/门诊号:
1674
               住院号/门诊号:
1675
               <div
1675
               <div
1676
-              class="under_line"
1677
-              style="width: 70px; text-align: left"
1678
-              v-if="receiverTreatmentAccess.admission_number"
1679
-            >
1680
-              {{ receiverTreatmentAccess.admission_number }}
1681
-            </div>
1682
-            <div
1683
-              class="under_line"
1684
-              style="width: 70px; text-align: left"
1685
-              v-else
1686
-            >
1687
-              {{ "/" }}
1688
-            </div>
1676
+                class="under_line"
1677
+                style="width: 70px; text-align: left"
1678
+                v-if="receiverTreatmentAccess.admission_number"
1679
+              >
1680
+                {{ receiverTreatmentAccess.admission_number }}
1681
+              </div>
1682
+              <div
1683
+                class="under_line"
1684
+                style="width: 70px; text-align: left"
1685
+                v-else
1686
+              >
1687
+                {{ "/" }}
1688
+              </div>
1689
             </div>
1689
             </div>
1690
           </div>
1690
           </div>
1691
           <div class="row" style="margin-bottom: 10px">
1691
           <div class="row" style="margin-bottom: 10px">
2695
   },
2695
   },
2696
   methods: {
2696
   methods: {
2697
     // 获取当前年份,用于年龄计算
2697
     // 获取当前年份,用于年龄计算
2698
-    getoldAge(){
2699
-      let date = new Date()
2700
-      let year = date.getFullYear()
2701
-      let year_d = year-this.patientInfo.birth.split('-')[0]
2702
-      let year_m = this.xtdate.split('-')[1]
2703
-      let birth_m = this.patientInfo.birth.split('-')[1]
2704
-      let year_date = this.xtdate.split('-')[2]
2705
-      let birth_date = this.patientInfo.birth.split('-')[2]
2698
+    getoldAge() {
2699
+      let date = new Date();
2700
+      let year = date.getFullYear();
2701
+      let year_d =
2702
+        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
2703
+      let year_m = this.xtdate.split("-")[1];
2704
+      let birth_m = this.patientInfo.birth.split("-")[1];
2705
+      let year_date = this.xtdate.split("-")[2];
2706
+      let birth_date = this.patientInfo.birth.split("-")[2];
2706
       // console.log(year,'今年年月')
2707
       // console.log(year,'今年年月')
2707
       // console.log(this.xtdate.split('-'),'病人就诊年月')
2708
       // console.log(this.xtdate.split('-'),'病人就诊年月')
2708
-      // console.log(this.patientInfo.birth,'病人生日')
2709
+      console.log(this.patientInfo.birth, "病人生日");
2709
       // console.log(year_d,'year_d')
2710
       // console.log(year_d,'year_d')
2710
-      if(year_m < birth_m){
2711
-        return year_d - 1
2712
-      }else if(year_m = birth_m){
2713
-        if(year_date < birth_date){
2714
-          return year_d - 1
2715
-        }else{
2716
-          return year_d
2711
+      if (year_m < birth_m) {
2712
+        return year_d - 1;
2713
+      } else if (year_m == birth_m) {
2714
+        if (year_date < birth_date) {
2715
+          return year_d - 1;
2716
+        } else {
2717
+          return year_d;
2717
         }
2718
         }
2718
-      }else{
2719
-        return year_d
2719
+      } else {
2720
+        return year_d;
2720
       }
2721
       }
2721
     },
2722
     },
2722
 
2723
 
2723
-
2724
-
2725
-
2726
     checkData() {
2724
     checkData() {
2727
       if (this.receiverTreatmentAccess.way == 0) {
2725
       if (this.receiverTreatmentAccess.way == 0) {
2728
         this.$message.error("入科方式未填");
2726
         this.$message.error("入科方式未填");
3093
           this.patientInfo.birthday,
3091
           this.patientInfo.birthday,
3094
           "{y}-{m}-{d}"
3092
           "{y}-{m}-{d}"
3095
         );
3093
         );
3094
+        // console.log(this.patientInfo.birth,'测试生日')
3096
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
3095
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
3097
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
3096
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
3098
           this.patientInfo.first_dialysis_date = uParseTime(
3097
           this.patientInfo.first_dialysis_date = uParseTime(
3113
         this.afterdialysis = response.data.data.AssessmentAfterDislysis;
3112
         this.afterdialysis = response.data.data.AssessmentAfterDislysis;
3114
         // console.log('透后体重', this.afterdialysis)
3113
         // console.log('透后体重', this.afterdialysis)
3115
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
3114
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
3116
-        console.log("上次透后体重", this.lastafterdialysis.weight_after);
3115
+        // console.log("上次透后体重", this.lastafterdialysis.weight_after);
3117
         this.operators = response.data.data.operators;
3116
         this.operators = response.data.data.operators;
3118
-        console.log("operators", this.operators);
3117
+        // console.log("operators", this.operators);
3119
         this.dialysisOrder =
3118
         this.dialysisOrder =
3120
           response.data.data.dialysisOrder === null
3119
           response.data.data.dialysisOrder === null
3121
             ? null
3120
             ? null
3122
             : response.data.data.dialysisOrder;
3121
             : response.data.data.dialysisOrder;
3123
-        console.log("上机233232323232", this.dialysisOrder);
3122
+        // console.log("上机233232323232", this.dialysisOrder);
3124
         if (this.operators.length > 0) {
3123
         if (this.operators.length > 0) {
3125
           var operatorsLen = this.operators.length;
3124
           var operatorsLen = this.operators.length;
3126
           for (var index = 0; index < operatorsLen; index++) {
3125
           for (var index = 0; index < operatorsLen; index++) {
3177
           this.afterdialysis.complications_other.join(",");
3176
           this.afterdialysis.complications_other.join(",");
3178
 
3177
 
3179
         this.prescription = response.data.data.dialysisPrescription;
3178
         this.prescription = response.data.data.dialysisPrescription;
3180
-        console.log("透析处方", this.prescription);
3179
+        // console.log("透析处方", this.prescription);
3181
         this.receiverTreatmentAccess =
3180
         this.receiverTreatmentAccess =
3182
           response.data.data.receiverTreatmentAccess;
3181
           response.data.data.receiverTreatmentAccess;
3183
         this.prescription.mode = this.modeName(this.prescription.mode_id);
3182
         this.prescription.mode = this.modeName(this.prescription.mode_id);
3225
 
3224
 
3226
         this.advices = response.data.data.advices;
3225
         this.advices = response.data.data.advices;
3227
         this.tableAdvice = response.data.data.advices;
3226
         this.tableAdvice = response.data.data.advices;
3228
-        console.log("医嘱数据2222222222", this.advices);
3227
+        // console.log("医嘱数据2222222222", this.advices);
3229
         this.monitors = response.data.data.monitors;
3228
         this.monitors = response.data.data.monitors;
3230
         this.summary = response.data.data.summary;
3229
         this.summary = response.data.data.summary;
3231
         this.org_template_info = response.data.data.org_template_info;
3230
         this.org_template_info = response.data.data.org_template_info;
3437
           this.doctor_advices = doctor_advices_1;
3436
           this.doctor_advices = doctor_advices_1;
3438
           this.doctor_advices_2 = doctor_advices_2;
3437
           this.doctor_advices_2 = doctor_advices_2;
3439
         }
3438
         }
3440
-        console.log(this.advice_groups);
3439
+        // console.log(this.advice_groups);
3441
       } else {
3440
       } else {
3442
         this.loading = false;
3441
         this.loading = false;
3443
         this.$message.error("请求数据失败");
3442
         this.$message.error("请求数据失败");
3469
           return val.age;
3468
           return val.age;
3470
         }
3469
         }
3471
       } else {
3470
       } else {
3472
-        return this.getoldAge()
3471
+        return this.getoldAge();
3473
       }
3472
       }
3474
     },
3473
     },
3475
     newAdviceGroupObject: function () {
3474
     newAdviceGroupObject: function () {
3580
     }
3579
     }
3581
 
3580
 
3582
     const xtdate = this.$route.query && this.$route.query.xtdate;
3581
     const xtdate = this.$route.query && this.$route.query.xtdate;
3583
-    console.log("xtdate", xtdate);
3582
+    // console.log("xtdate", xtdate);
3584
     const xtno = this.$route.query && this.$route.query.xtno;
3583
     const xtno = this.$route.query && this.$route.query.xtno;
3585
-    console.log("xtno", xtno);
3584
+    // console.log("xtno", xtno);
3586
     if (
3585
     if (
3587
       typeof xtdate === "string" &&
3586
       typeof xtdate === "string" &&
3588
       xtdate.length > 0 &&
3587
       xtdate.length > 0 &&

+ 6 - 7
src/xt_pages/outpatientDoctorStation/recordPrint.vue 查看文件

14
     <div class="dialysisPage" style="padding-top: 40px">
14
     <div class="dialysisPage" style="padding-top: 40px">
15
       <printOne
15
       <printOne
16
         v-if="
16
         v-if="
17
-          org_id != 10217 &&
17
+          org_id != 10217 && org_id != 10188 &&org_id != 10318&&
18
           org_id != 9675 &&
18
           org_id != 9675 &&
19
           org_id != 9671 &&
19
           org_id != 9671 &&
20
           org_id != 0 &&
20
           org_id != 0 &&
21
-          org_id != 10164 &&
22
-          org_id != 10188 &&
23
-          org_id != 10318
21
+          org_id != 10164 
24
         "
22
         "
25
         ref="printOne"
23
         ref="printOne"
26
         v-bind:childResponse="childResponse"
24
         v-bind:childResponse="childResponse"
32
       <printTwo
30
       <printTwo
33
         v-if="
31
         v-if="
34
           org_id == 10217 ||
32
           org_id == 10217 ||
33
+           org_id == 10188 ||
35
           org_id == 9675 ||
34
           org_id == 9675 ||
36
           org_id == 9671 ||
35
           org_id == 9671 ||
37
-          org_id == 10164 ||
38
-          org_id == 10188
36
+          org_id == 10164
37
+         
39
         "
38
         "
40
         ref="printTwo"
39
         ref="printTwo"
41
         v-bind:childResponse="childResponse"
40
         v-bind:childResponse="childResponse"
101
   methods: {
100
   methods: {
102
     show(val, id) {
101
     show(val, id) {
103
       this.org_id = id;
102
       this.org_id = id;
104
-      if (id == 10217 || id == 9675 || id == 9671 ) {
103
+      if (id == 10217 || id == 9675 || id == 9671|| id == 10188 ) {
105
         this.$refs.printTwo.show(val);
104
         this.$refs.printTwo.show(val);
106
       } else if (id == 10318|| id == 0) {
105
       } else if (id == 10318|| id == 0) {
107
         this.$refs.printThree.show(val);
106
         this.$refs.printThree.show(val);