see999 před 3 roky
rodič
revize
1d7f65f608

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Zobrazit soubor

@@ -60,7 +60,7 @@
60 60
         prescription_id:0,
61 61
         ids:'',
62 62
         info:null,
63
-        org_id:this.$store.getters.xt_user.org_id
63
+        org_id:''
64 64
       };
65 65
     },
66 66
     methods:{

+ 10 - 10
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue Zobrazit soubor

@@ -4,17 +4,17 @@
4 4
             <img style="width:100%;" src="../../../assets/img/bailinTop.jpg" alt="">
5 5
             <div class="printTitle">门诊收费清单</div>
6 6
             <div style="display:flex;">
7
-                <div>单据号:<span style="display:inline-block;width:200px;">{{info.order_number}}</span></div>
8
-                <div>透析号:<span style="display:inline-block;width:200px;">{{info.dialysis_no}}</span></div>
7
+                <div>单据号:<span style="display:inline-block;width:200px;">{{info.order_number ? info.order_number : ''}}</span></div>
8
+                <div>透析号:<span style="display:inline-block;width:200px;">{{info.dialysis_no ? info.dialysis_no : ''}}</span></div>
9 9
             </div>
10 10
             <div style="display:flex;">
11
-                <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient_name}}</span></div>
11
+                <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient_name ? info.patient_name : ''}}</span></div>
12 12
                 <div>性别:<span style="display:inline-block;width:30px;">{{info.patient_info.transBody.aac004 == '1' ? '男' : '女'}}</span></div>
13
-                <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient_info.transBody.bae093}}岁</span></div>
14
-                <div>费别:<span style="display:inline-block;width:80px;">{{getName(info.patient_info.transBody.outputlist1)}}</span>
13
+                <div>年龄:<span style="display:inline-block;width:50px;">{{info.patient_info.transBody.bae093 ? info.patient_info.transBody.bae093 : ''}}岁</span></div>
14
+                <div>费别:<span style="display:inline-block;width:80px;">{{info.patient_info.transBody.outputlist1 ? getName(info.patient_info.transBody.outputlist1) : ''}}</span>
15 15
                 </div>
16
-                <div>电脑号:<span style="display:inline-block;width:80px;">{{info.patient_info.transBody.aac999}}</span></div>
17
-                <div>收费日期:<span style="display:inline-block;width:80px;">{{info.record_date}}</span></div>
16
+                <div>电脑号:<span style="display:inline-block;width:80px;">{{info.patient_info.transBody.aac999 ? info.patient_info.transBody.aac999 : ''}}</span></div>
17
+                <div>收费日期:<span style="display:inline-block;width:80px;">{{info.record_date ? info.record_date : ''}}</span></div>
18 18
                 <div style="float:right">金额单位:元</div>
19 19
             </div>
20 20
             <table border='1' style="width:100%;" cellspacing="0">
@@ -312,9 +312,9 @@
312 312
         })
313 313
       }
314 314
     },
315
-    created() {
316
-
317
-      if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
315
+    mounted() {
316
+      this.org_id = this.$store.getters.xt_user.org_id
317
+      if (this.org_id == 9504 || this.org_id == 10028 || this.org_id == 10138) {
318 318
         this.orgname = xtuser.org.org_name
319 319
         var form = {
320 320
           'order_id': this.paramsObj.order_id,