Kaynağa Gözat

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

XMLWAN 2 yıl önce
ebeveyn
işleme
a15bc860b6

+ 43 - 44
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Dosyayı Görüntüle

@@ -46,7 +46,7 @@
46 46
           <div class="inline_block" style="margin-left: 10px">
47 47
             年龄:
48 48
             <div class="under_line" style="width: 30px; text-align: center">
49
-              {{ getAge(patientInfo)}}
49
+              {{ getAge(patientInfo) }}
50 50
             </div>
51 51
52 52
           </div>
@@ -1673,19 +1673,19 @@
1673 1673
             <div class="inline_block" style="margin-left: 5px">
1674 1674
               住院号/门诊号:
1675 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 1689
             </div>
1690 1690
           </div>
1691 1691
           <div class="row" style="margin-bottom: 10px">
@@ -2695,34 +2695,32 @@ export default {
2695 2695
   },
2696 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 2707
       // console.log(year,'今年年月')
2707 2708
       // console.log(this.xtdate.split('-'),'病人就诊年月')
2708
-      // console.log(this.patientInfo.birth,'病人生日')
2709
+      console.log(this.patientInfo.birth, "病人生日");
2709 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 2724
     checkData() {
2727 2725
       if (this.receiverTreatmentAccess.way == 0) {
2728 2726
         this.$message.error("入科方式未填");
@@ -3093,6 +3091,7 @@ export default {
3093 3091
           this.patientInfo.birthday,
3094 3092
           "{y}-{m}-{d}"
3095 3093
         );
3094
+        // console.log(this.patientInfo.birth,'测试生日')
3096 3095
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
3097 3096
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
3098 3097
           this.patientInfo.first_dialysis_date = uParseTime(
@@ -3113,14 +3112,14 @@ export default {
3113 3112
         this.afterdialysis = response.data.data.AssessmentAfterDislysis;
3114 3113
         // console.log('透后体重', this.afterdialysis)
3115 3114
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
3116
-        console.log("上次透后体重", this.lastafterdialysis.weight_after);
3115
+        // console.log("上次透后体重", this.lastafterdialysis.weight_after);
3117 3116
         this.operators = response.data.data.operators;
3118
-        console.log("operators", this.operators);
3117
+        // console.log("operators", this.operators);
3119 3118
         this.dialysisOrder =
3120 3119
           response.data.data.dialysisOrder === null
3121 3120
             ? null
3122 3121
             : response.data.data.dialysisOrder;
3123
-        console.log("上机233232323232", this.dialysisOrder);
3122
+        // console.log("上机233232323232", this.dialysisOrder);
3124 3123
         if (this.operators.length > 0) {
3125 3124
           var operatorsLen = this.operators.length;
3126 3125
           for (var index = 0; index < operatorsLen; index++) {
@@ -3177,7 +3176,7 @@ export default {
3177 3176
           this.afterdialysis.complications_other.join(",");
3178 3177
 
3179 3178
         this.prescription = response.data.data.dialysisPrescription;
3180
-        console.log("透析处方", this.prescription);
3179
+        // console.log("透析处方", this.prescription);
3181 3180
         this.receiverTreatmentAccess =
3182 3181
           response.data.data.receiverTreatmentAccess;
3183 3182
         this.prescription.mode = this.modeName(this.prescription.mode_id);
@@ -3225,7 +3224,7 @@ export default {
3225 3224
 
3226 3225
         this.advices = response.data.data.advices;
3227 3226
         this.tableAdvice = response.data.data.advices;
3228
-        console.log("医嘱数据2222222222", this.advices);
3227
+        // console.log("医嘱数据2222222222", this.advices);
3229 3228
         this.monitors = response.data.data.monitors;
3230 3229
         this.summary = response.data.data.summary;
3231 3230
         this.org_template_info = response.data.data.org_template_info;
@@ -3437,7 +3436,7 @@ export default {
3437 3436
           this.doctor_advices = doctor_advices_1;
3438 3437
           this.doctor_advices_2 = doctor_advices_2;
3439 3438
         }
3440
-        console.log(this.advice_groups);
3439
+        // console.log(this.advice_groups);
3441 3440
       } else {
3442 3441
         this.loading = false;
3443 3442
         this.$message.error("请求数据失败");
@@ -3469,7 +3468,7 @@ export default {
3469 3468
           return val.age;
3470 3469
         }
3471 3470
       } else {
3472
-        return this.getoldAge()
3471
+        return this.getoldAge();
3473 3472
       }
3474 3473
     },
3475 3474
     newAdviceGroupObject: function () {
@@ -3580,9 +3579,9 @@ export default {
3580 3579
     }
3581 3580
 
3582 3581
     const xtdate = this.$route.query && this.$route.query.xtdate;
3583
-    console.log("xtdate", xtdate);
3582
+    // console.log("xtdate", xtdate);
3584 3583
     const xtno = this.$route.query && this.$route.query.xtno;
3585
-    console.log("xtno", xtno);
3584
+    // console.log("xtno", xtno);
3586 3585
     if (
3587 3586
       typeof xtdate === "string" &&
3588 3587
       xtdate.length > 0 &&

+ 6 - 7
src/xt_pages/outpatientDoctorStation/recordPrint.vue Dosyayı Görüntüle

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