陈少旭 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
       <div style="width: 100%;border-bottom: 1px dashed black;padding-bottom: 5px;">
5
       <div style="width: 100%;border-bottom: 1px dashed black;padding-bottom: 5px;">
6
         <div style="width: 100%;display: flex;padding: 5px;">
6
         <div style="width: 100%;display: flex;padding: 5px;">
7
           <div style="flex: 1;">患者姓名:{{info.patient.name}}</div>
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
         </div>
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
       </div>
12
       </div>
13
       <div style="border-bottom: 1px dashed black;margin-bottom: 10px;">
13
       <div style="border-bottom: 1px dashed black;margin-bottom: 10px;">
14
         <div style="display: flex;padding: 5px;text-align: center;">
14
         <div style="display: flex;padding: 5px;text-align: center;">
29
         <div style="flex: 1;text-align: right;">收费员:{{info.charge_admin.user_name}}</div>
29
         <div style="flex: 1;text-align: right;">收费员:{{info.charge_admin.user_name}}</div>
30
       </div>
30
       </div>
31
       <div style="width: 100%;display: flex;padding: 5px 0;">
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
       </div>
34
       </div>
35
       <div style="width: 100%;display: flex;">
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
       </div>
38
       </div>
39
       <div style="width: 100%;display: flex;padding: 5px 0;">
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
       </div>
42
       </div>
43
       <div style="width: 100%;display: flex;">
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
       </div>
46
       </div>
47
 
47
 
48
      <!-- <div style="border: 1px solid black;width: 100%;">
48
      <!-- <div style="border: 1px solid black;width: 100%;">
122
         <span v-if="info.insutype == '510'">生育保险</span>
122
         <span v-if="info.insutype == '510'">生育保险</span>
123
       </div>
123
       </div>
124
     </div>
124
     </div>
125
-  
125
+
126
     <table class="statementTable" border="1" style="text-align: left;">
126
     <table class="statementTable" border="1" style="text-align: left;">
127
       <tr>
127
       <tr>
128
         <td>患者姓名:{{info.patient.name}}</td>
128
         <td>患者姓名:{{info.patient.name}}</td>
256
         med_typearr:[{id:11,name:'普通门诊'},{id:12,name:'门诊挂号'},{id:13,name:'急诊'},{id:14,name:'门诊特殊病'},
256
         med_typearr:[{id:11,name:'普通门诊'},{id:12,name:'门诊挂号'},{id:13,name:'急诊'},{id:14,name:'门诊特殊病'},
257
                     {id:15,name:'门诊统筹'},{id:16,name:'门诊慢性病'},{id:17,name:'普通住院'}],
257
                     {id:15,name:'门诊统筹'},{id:16,name:'门诊慢性病'},{id:17,name:'普通住院'}],
258
       }
258
       }
259
-      
259
+
260
     },
260
     },
261
     methods:{
261
     methods:{
262
       getBirth(idNo){
262
       getBirth(idNo){
302
         } else {
302
         } else {
303
           return uParseTime(val, '{y}-{m}-{d} {h}:{m}:{s}')
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
       getmoney(value){
315
       getmoney(value){
307
         // if(vlaue == ''){
316
         // if(vlaue == ''){
309
         // }else{
318
         // }else{
310
           return numToCny(value)
319
           return numToCny(value)
311
         // }
320
         // }
312
-        
321
+
313
       },
322
       },
314
       getmed_type(ids){
323
       getmed_type(ids){
315
         const options = this.med_typearr
324
         const options = this.med_typearr