陈少旭 2 weeks ago
parent
commit
2eb215f713
1 changed files with 23 additions and 14 deletions
  1. 23 14
      src/xt_pages/outpatientCharges/statementTemplate/printSeventheen.vue

+ 23 - 14
src/xt_pages/outpatientCharges/statementTemplate/printSeventheen.vue View File

@@ -5,10 +5,10 @@
5 5
       <div style="width: 100%;border-bottom: 1px dashed black;padding-bottom: 5px;">
6 6
         <div style="width: 100%;display: flex;padding: 5px;">
7 7
           <div style="flex: 1;">患者姓名:{{info.patient.name}}</div>
8
-          <div style="flex: 1;text-align: right;">票据号:{{ info.id }}</div>
8
+          <div style="flex: 1;text-align: right;">票据号:{{ info.new_order.fa_piao_number }}</div>
9 9
         </div>
10
-        <div style="padding: 5px;">门诊日期:{{getTime(info.date)}}</div>
11
-        <div style="padding: 5px;">个人编码:{{ info.patient.dialysis_no }}</div>
10
+        <div style="padding: 5px;">门诊日期:{{getTime2(info.new_order.settle_accounts_date)}}</div>
11
+        <div style="padding: 5px;">个人编码:{{ info.new_order.psn_no }}</div>
12 12
       </div>
13 13
       <div style="border-bottom: 1px dashed black;margin-bottom: 10px;">
14 14
         <div style="display: flex;padding: 5px;text-align: center;">
@@ -29,20 +29,20 @@
29 29
         <div style="flex: 1;text-align: right;">收费员:{{info.charge_admin.user_name}}</div>
30 30
       </div>
31 31
       <div style="width: 100%;display: flex;padding: 5px 0;">
32
-        <div style="flex: 1;">帐户支付总额:{{ }}</div>
33
-        <div style="flex: 1;text-align: right;">现金支付:{{info.psn_cash_pay}}</div>
32
+        <div style="flex: 1;">帐户支付总额:{{info.new_order.medfee_sumamt}}</div>
33
+        <div style="flex: 1;text-align: right;">现金支付:{{info.new_order.psn_cash_pay}}</div>
34 34
       </div>
35 35
       <div style="width: 100%;display: flex;">
36
-        <div style="flex: 1;">其中共济账户支付:{{ }}</div>
37
-        <div style="flex: 1;text-align: right;">统筹支付:{{info.hifp_pay}}</div>
36
+        <div style="flex: 1;">其中共济账户支付:{{info.new_order.acct_mulaid_pay}}</div>
37
+        <div style="flex: 1;text-align: right;">统筹支付:{{info.new_order.hifp_pay}}</div>
38 38
       </div>
39 39
       <div style="width: 100%;display: flex;padding: 5px 0;">
40
-        <div style="flex: 1;">公务员补助:{{info.cvlserv_pay }}</div>
41
-        <div style="flex: 1;text-align: right;">医疗救助支付:{{info.maf_pay }}</div>
40
+        <div style="flex: 1;">公务员补助:{{info.new_order.cvlserv_pay }}</div>
41
+        <div style="flex: 1;text-align: right;">医疗救助支付:{{info.new_order.maf_pay }}</div>
42 42
       </div>
43 43
       <div style="width: 100%;display: flex;">
44
-        <div style="flex: 1;">大病保险支付:{{info.hifmi_pay}}</div>
45
-        <div style="flex: 1;text-align: right;">账户余额:{{ }}</div>
44
+        <div style="flex: 1;">大病保险支付:{{info.new_order.hifmi_pay}}</div>
45
+        <div style="flex: 1;text-align: right;">账户余额:{{info.new_order.acct_pay}}</div>
46 46
       </div>
47 47
 
48 48
      <!-- <div style="border: 1px solid black;width: 100%;">
@@ -122,7 +122,7 @@
122 122
         <span v-if="info.insutype == '510'">生育保险</span>
123 123
       </div>
124 124
     </div>
125
-  
125
+
126 126
     <table class="statementTable" border="1" style="text-align: left;">
127 127
       <tr>
128 128
         <td>患者姓名:{{info.patient.name}}</td>
@@ -256,7 +256,7 @@
256 256
         med_typearr:[{id:11,name:'普通门诊'},{id:12,name:'门诊挂号'},{id:13,name:'急诊'},{id:14,name:'门诊特殊病'},
257 257
                     {id:15,name:'门诊统筹'},{id:16,name:'门诊慢性病'},{id:17,name:'普通住院'}],
258 258
       }
259
-      
259
+
260 260
     },
261 261
     methods:{
262 262
       getBirth(idNo){
@@ -302,6 +302,15 @@
302 302
         } else {
303 303
           return uParseTime(val, '{y}-{m}-{d} {h}:{m}:{s}')
304 304
         }
305
+      },   getTime2(val) {
306
+        if (val < 0) {
307
+          return ""
308
+        }
309
+        if (val == "") {
310
+          return ""
311
+        } else {
312
+          return uParseTime(val, '{y}-{m}-{d}')
313
+        }
305 314
       },
306 315
       getmoney(value){
307 316
         // if(vlaue == ''){
@@ -309,7 +318,7 @@
309 318
         // }else{
310 319
           return numToCny(value)
311 320
         // }
312
-        
321
+
313 322
       },
314 323
       getmed_type(ids){
315 324
         const options = this.med_typearr