Browse Source

合并带嘛

csx 2 years ago
parent
commit
0374fdc93e

+ 7 - 7
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

@@ -59,8 +59,8 @@
59 59
       <div style="display: flex; justify-content: space-between">
60 60
         <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
61 61
         <div v-if="gend == 1" style="position: absolute; top: 110px; left: 100px">√</div>
62
-        <div v-else-if="gend == ''" style="position: absolute; top: 110px; left: 100px">√</div>
63
-         <div v-else style="position: absolute; top: 110px; left: 140px">√</div>
62
+        <div v-if="gend == 2" style="position: absolute; top: 110px; left: 140px">√</div>
63
+
64 64
 
65 65
         <div style="position: absolute; top: 110px; left: 260px">
66 66
           {{ balance_accounts_type != 2 ? list.order.fund_pay_sumamt : "0.00" }}
@@ -317,7 +317,7 @@ export default {
317 317
     this.$nextTick(() => {
318 318
       this.getInvoice(params);
319 319
     })
320
-    
320
+
321 321
     this.org_id = this.$store.getters.xt_user.org_id;
322 322
     this.org_name = this.$store.getters.xt_user.org.org_name;
323 323
   },
@@ -360,11 +360,11 @@ export default {
360 360
           this.number = this.list.his_hospital_record.number;
361 361
           this.balance_accounts_type =
362 362
             this.list.his_hospital_record.balance_accounts_type;
363
-          this.gend = this.list.his_hospital_record.gend;
364
-          this.loading = false;  
365
-        })                                                                                                    
363
+          this.gend = this.list.gender;
364
+          this.loading = false;
365
+        })
366 366
       });
367
-     
367
+
368 368
     },
369 369
     smalltoBIG(n) {
370 370
       // let fraction = ['角', '分'];

+ 2 - 2
src/xt_pages/outpatientCharges/invoicePrint.vue View File

@@ -17,8 +17,8 @@
17 17
             <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
18 18
             <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
19 19
           </div>
20
-          <printTwo v-if="org_id == 10106|| org_id == 0" :paramsObj="invoiceParams"></printTwo>
21
-          <printFour v-if="org_id == 10215 || org_id == 4" :paramsObj="invoiceParams"></printFour>
20
+          <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21
+          <printFour v-if="org_id == 10215 || org_id == 4 || org_id == 0" :paramsObj="invoiceParams"></printFour>
22 22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23 23
           <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
24 24
         </div>

+ 5 - 3
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue View File

@@ -33,9 +33,9 @@
33 33
         </div>
34 34
         <div style="display:flex;justify-content: space-between;">
35 35
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
36
-            <div v-if="paramsObj.gend == 1 || paramsObj.gend == ''" style="position: absolute;top:110px;left:100px;">√</div>
37
-            <div v-if="paramsObj.gend == ''" style="position: absolute;top:110px;left:100px;">√</div>
38
-            <div v-else style="position: absolute;top:110px;left:140px;">√</div>
36
+            <div v-if="list.gender == 1" style="position: absolute;top:110px;left:100px;">√</div>
37
+            <div v-else="list.gender == 2" style="position: absolute;top:110px;left:140px;">√</div>
38
+<!--/*            <div v-else style="position: absolute;top:110px;left:140px;">√</div>*/-->
39 39
             <div style="position: absolute;top:110px;left:260px;">{{ list.number.length <= 13 ? (totalPrice - list.psn_cash_money).toFixed(2) : '0.00' }}</div>
40 40
             <div style="position: absolute;top:110px;left:420px;">{{ list.number.length <= 13 ? list.psn_cash_money.toFixed(2) : (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
41 41
             <div style="position: absolute;top:110px;left:540px;">现金</div>
@@ -151,6 +151,7 @@ export default {
151 151
     },
152 152
     data(){
153 153
         return{
154
+            gender:'',
154 155
             list:{},
155 156
             printDate:'',
156 157
             zhongwen:'',
@@ -191,6 +192,7 @@ export default {
191 192
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
192 193
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
193 194
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
195
+                this.gender = this.list.gender
194 196
             })
195 197
         },
196 198
         smalltoBIG(n) {

+ 33 - 23
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue View File

@@ -9,14 +9,14 @@
9 9
 
10 10
       <tbody>
11 11
         <tr>
12
-          <td colspan="10">日期区间:</td>
12
+          <td colspan="10">日期:{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
13 13
         </tr>
14 14
         <tr class="view_tr">
15
-          <td colspan="2">姓名:</td>
16
-          <td colspan="2">性别:</td>
17
-          <td colspan="2">医保类型:</td>
18
-          <td colspan="2">社会保障号码:</td>
19
-          <td colspan="2">账号余额:</td>
15
+          <td colspan="2">姓名:{{info.patient.name}}</td>
16
+          <td colspan="2">性别:{{info.patient.gender == 1 ? '男': '女'}}</td>
17
+          <td colspan="2">医保类型:{{info.insutype == '390'?'城乡居民基本医疗保险':'职工基本医疗保险'}}</td>
18
+          <td colspan="2">社会保障号码:{{info.certno}}</td>
19
+          <td colspan="2">账号余额:{{info.blac}}</td>
20 20
         </tr>
21 21
         <tr class="view_tr">
22 22
           <td colspan="10">明细信息</td>
@@ -26,39 +26,48 @@
26 26
         <tr>
27 27
           <td colspan="6">
28 28
             <table class="list_table">
29
-              <tr colspan="6" v-for="(item, index) in list_L" :key="index">
29
+              <template v-for="(item, index) in list" v-if='index%2==0'>
30
+              <tr colspan="6"  :key="index">
30 31
                 <td colspan="2">药名</td>
31 32
                 <td>规格</td>
32 33
                 <td>数量</td>
33 34
                 <td>价格</td>
34 35
               </tr>
36
+                <tr  v-if='index+1<list.length' >
37
+                  <td colspan="2">药名</td>
38
+                  <td>规格</td>
39
+                  <td>数量</td>
40
+                  <td>价格</td>
41
+                </tr>
42
+              </template>
35 43
             </table>
36
-          </td>
37 44
 
38
-          <td colspan="4">
39
-            <table class="list_table">
40
-              <tr colspan="4" v-for="(item, index) in list_R" :key="index">
41
-                <td colspan="2">药名</td>
42
-                <td>规格</td>
43
-                <td>数量</td>
44
-                <td>价格</td>
45
-              </tr>
46
-            </table>
47 45
           </td>
46
+
47
+<!--          <td colspan="4">-->
48
+<!--            <table class="list_table">-->
49
+<!--              <tr colspan="4" v-for="(item, index) in list_R" :key="index">-->
50
+<!--                <td colspan="2">药名</td>-->
51
+<!--                <td>规格</td>-->
52
+<!--                <td>数量</td>-->
53
+<!--                <td>价格</td>-->
54
+<!--              </tr>-->
55
+<!--            </table>-->
56
+<!--          </td>-->
48 57
         </tr>
49 58
         <tr>
50
-          <td colspan="10">共一页,第一页419.32</td>
59
+          <td colspan="10">共一页,第一页{{info.medfee_sumamt}}</td>
51 60
         </tr>
52 61
         <tr class="dashed_tr">
53 62
           <td colspan="10">结付分类</td>
54 63
         </tr>
55 64
         <tr>
56 65
           <td colspan="10">
57
-            <div>费用总计:</div>
58
-            <div>统筹支付:</div>
59
-            <div>账户支付:</div>
60
-            <div>个人现金支付:</div>
61
-            <div>其他支付:</div>
66
+            <div>费用总计:{{info.medfee_sumamt}}</div>
67
+            <div>统筹支付:{{info.fund_pay_sumamt}}</div>
68
+            <div>账户支付:{{info.acct_pay}}</div>
69
+            <div>个人现金支付:{{info.psn_cash_pay}}</div>
70
+            <div>其他支付:{{info.oth_pay}}</div>
62 71
             <div>减免金额:</div>
63 72
           </td>
64 73
         </tr>
@@ -90,6 +99,7 @@ export default {
90 99
   },
91 100
   data() {
92 101
     return {
102
+      list:[1,2],
93 103
       list_L: [1,2],
94 104
       list_R: [1,2],
95 105
     };