Browse Source

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

XMLWAN 2 years ago
parent
commit
21550e2ca7

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

@@ -19,9 +19,9 @@
19 19
           "
20 20
           :paramsObj="invoiceParams"
21 21
         ></printOne>
22
-        <printTwo v-if="org_id == 10215" :paramsObj="invoiceParams"></printTwo>
22
+        <printTwo v-if="org_id == 10215 ||  org_id == 0" :paramsObj="invoiceParams"></printTwo>
23 23
         <printThree
24
-          v-if="org_id == 10265 || org_id == 4 || org_id == 9675|| org_id == 0"
24
+          v-if="org_id == 10265 || org_id == 4 || org_id == 9675"
25 25
           :paramsObj="invoiceParams"
26 26
         ></printThree>
27 27
       </div>

+ 0 - 3
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue View File

@@ -29,9 +29,6 @@
29 29
           <div  style="position: absolute;left:650px;top:70px;" v-if="insutype == '310'">
30 30
             类别:职工基本医疗保险
31 31
           </div>
32
-          <div  style="position: absolute;left:400px;top:70px;" v-else>
33
-            类别:
34
-          </div>
35 32
         </div>
36 33
 
37 34
         <div style="display:flex;justify-content: space-between;">

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

@@ -36,8 +36,8 @@
36 36
             <div v-if=" gend == 1" style="position: absolute;top:110px;left:100px;">√</div>
37 37
             <div v-else style="position: absolute;top:110px;left:140px;">√</div>
38 38
 
39
-            <div style="position: absolute;top:110px;left:260px;">{{ number.length <= 13 ? (totalPrice - list.order.psn_cash_pay).toFixed(2) : '0.00' }}</div>
40
-            <div style="position: absolute;top:110px;left:420px;">{{ number.length <= 13 ? list.order.psn_cash_pay.toFixed(2) : (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
39
+            <div style="position: absolute;top:110px;left:260px;">{{balance_accounts_type != 2 ?  list.order.fund_pay_sumamt : '0.00' }}</div>
40
+            <div style="position: absolute;top:110px;left:420px;">{{balance_accounts_type != 2 ? list.order.psn_cash_pay : list.order.medfee_sumamt}}</div>
41 41
             <div style="position: absolute;top:110px;left:540px;">现金</div>
42 42
         </div>
43 43
         <div style="display:flex;justify-content: space-between;">
@@ -113,7 +113,7 @@
113 113
                     {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
114 114
                 </span>
115 115
                 <span v-else>零</span>
116
-            </span> 
116
+            </span>
117 117
             <span  style="position: absolute;top:235px;left:350px">
118 118
                 <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
119 119
                     {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}

+ 12 - 1
src/xt_pages/hospitalStation/settlementTemplate/hospitalSettlePrint.vue View File

@@ -47,7 +47,7 @@
47 47
               </div>
48 48
               <div class="inline_block">性别
49 49
                  <div style="width:80px;" class="under_line" v-if="info.gend == '1'">{{'男'}}</div>
50
-                 <div style="width:80px;" class="under_line" v-if="info.gend == '2'">{{'女'}}</div>
50
+                 <div style=" width:80px;" class="under_line" v-if="info.gend == '2'">{{'女'}}</div>
51 51
               </div>
52 52
               <div class="inline_block">出生日期
53 53
                 <div style="width:40px;" class="under_line">{{info.brdy.slice(0,4)}}</div>年
@@ -674,6 +674,7 @@
674 674
                 <td>&nbsp;{{getAllJiaTotal()}}</td>
675 675
                 <td>&nbsp;{{getAllYiTotal()}}</td>
676 676
                 <td>
677
+                  {{getAllBingTotal()}}
677 678
                 </td>
678 679
                 <td>&nbsp;</td>
679 680
               </tr>
@@ -854,6 +855,16 @@ export default {
854 855
       }
855 856
       return total.toFixed(2)
856 857
 
858
+    },getAllBingTotal(){
859
+      let total = 0.00
860
+      for(let i = 0; i  < this.list.length; i++){
861
+        total = parseFloat(total) + parseFloat(this.list[i].bingTotal)
862
+      }
863
+      if (total == 0){
864
+        return ""
865
+      }
866
+      return total.toFixed(2)
867
+
857 868
     },
858 869
 
859 870
     getJiaTotal(name){