瀏覽代碼

赤峰发票

huangyw 2 年之前
父節點
當前提交
7b0a03dd65
共有 1 個文件被更改,包括 15 次插入13 次删除
  1. 15 13
      src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue

+ 15 - 13
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue 查看文件

@@ -3,7 +3,9 @@
3 3
 
4 4
         <div style="display:flex;justify-content: space-between;">
5 5
             
6
-            <div style="position: absolute;top:40px;left:40px"></div>
6
+            <div style="position: absolute;top:5px;left:30px">
7
+                <!-- 发票代码 -->
8
+            </div>
7 9
             
8 10
             <div  style="position: absolute;top:40px;left:300px"></div>
9 11
 
@@ -61,37 +63,37 @@
61 63
             <div style="position: absolute;top:160px;left:220px">检查费</div>
62 64
             <div style="position: absolute;top:160px;left:290px">{{ list.checkCostTotal }}</div>
63 65
             <div style="position: absolute;top:160px;left:400px">材料费</div>
64
-            <div style="position: absolute;top:160px;left:470px"></div>
66
+            <div style="position: absolute;top:160px;left:470px">0</div>
65 67
             <div style="position: absolute;top:160px;left:580px">麻醉费</div>
66
-            <div style="position: absolute;top:160px;left:650px"></div>
68
+            <div style="position: absolute;top:160px;left:650px">0</div>
67 69
         </div>
68 70
         <div style="display:flex;justify-content: space-between;">
69 71
             <div style="position: absolute;top:190px;left:40px">中成药费</div>
70
-            <div style="position: absolute;top:190px;left:110px"></div>
72
+            <div style="position: absolute;top:190px;left:110px">0</div>
71 73
             <div style="position: absolute;top:190px;left:220px">治疗费</div>
72 74
             <div style="position: absolute;top:190px;left:290px">{{list.treatCostTotal}}</div>
73 75
             <div style="position: absolute;top:190px;left:400px">护理费</div>
74
-            <div style="position: absolute;top:190px;left:470px"></div>
76
+            <div style="position: absolute;top:190px;left:470px">0</div>
75 77
             <div style="position: absolute;top:190px;left:580px">床位费</div>
76
-            <div style="position: absolute;top:190px;left:650px"></div>
78
+            <div style="position: absolute;top:190px;left:650px">0</div>
77 79
         </div>
78 80
         <div style="display:flex;justify-content: space-between;">
79 81
             <div style="position: absolute;top:220px;left:40px">中草药费</div>
80
-            <div style="position: absolute;top:220px;left:110px"></div>
82
+            <div style="position: absolute;top:220px;left:110px">0</div>
81 83
             <div style="position: absolute;top:220px;left:220px">手术费</div>
82 84
             <div style="position: absolute;top:220px;left:290px">{{ list.operationCostTotal }}</div>
83 85
             <div style="position: absolute;top:220px;left:400px">输血费</div>
84
-            <div style="position: absolute;top:220px;left:470px"></div>
86
+            <div style="position: absolute;top:220px;left:470px">0</div>
85 87
             <div style="position: absolute;top:220px;left:580px">取暖费</div>
86
-            <div style="position: absolute;top:220px;left:650px"></div>
88
+            <div style="position: absolute;top:220px;left:650px">0</div>
87 89
         </div>
88 90
         <div style="display:flex;justify-content: space-between;">
89 91
             <div style="position: absolute;top:250px;left:40px">高压氧费</div>
90
-            <div style="position: absolute;top:250px;left:110px"></div>
92
+            <div style="position: absolute;top:250px;left:110px">0</div>
91 93
             <div style="position: absolute;top:250px;left:220px">化验费</div>
92 94
             <div style="position: absolute;top:250px;left:290px">{{ list.laboratoryCostTotal }}</div>
93 95
             <div style="position: absolute;top:250px;left:400px">氧气费</div>
94
-            <div style="position: absolute;top:250px;left:470px"></div>
96
+            <div style="position: absolute;top:250px;left:470px">0</div>
95 97
             <div style="position: absolute;top:250px;left:580px">其他费</div>
96 98
             <div style="position: absolute;top:250px;left:650px">{{ list.otherCostTotal }}</div>
97 99
         </div>
@@ -124,8 +126,8 @@
124 126
                 <span v-else>零佰</span>
125 127
             </span>
126 128
             <span style="position: absolute;top:280px;left:350px">
127
-                <span v-if="zhongwen.indexOf('拾') > -1">
128
-                    {{ zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}拾
129
+                 <span v-if="zhongwen.indexOf('拾') > -1">
130
+                    {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}拾
129 131
                 </span>
130 132
                 <span v-else>零拾</span>
131 133
             </span>