Browse Source

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

csx 2 years ago
parent
commit
ef44aa16a3

+ 31 - 0
src/xt_pages/hospitalStation/components/chargeDialog.vue View File

@@ -46,6 +46,12 @@
46 46
       </el-form-item>
47 47
 
48 48
 
49
+
50
+      <el-form-item  v-if="form.pay_way == 5">
51
+          <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>
52
+      </el-form-item>
53
+
54
+
49 55
       <el-form-item label="付款金额:" prop="id_card" :validate-event="is_Name">
50 56
         <el-input style="color: black"  type="number" v-model="form.pay_price" :disabled="true"></el-input>
51 57
       </el-form-item>
@@ -101,6 +107,7 @@
101 107
 
102 108
 <script>
103 109
   import { uParseTime } from '@/utils/tools'
110
+  import axios from "axios";
104 111
   const moment = require('moment')
105 112
   export default {
106 113
     name: 'chargeDialog',
@@ -109,6 +116,7 @@
109 116
 
110 117
       return {
111 118
         record_date:'',
119
+        org_id:this.$store.getters.xt_user.org_id,
112 120
         form: {
113 121
           medical_insurance_price:0,
114 122
           private_price:'',
@@ -181,6 +189,29 @@
181 189
       }
182 190
     },
183 191
     methods: {
192
+      reading() {
193
+        var that = this
194
+        let params = {
195
+          'id_card_type': 1,
196
+          'admin_user_id': this.$store.getters.xt_user.user.id,
197
+          'certificates':1,
198
+        }
199
+        axios.get('http://127.0.0.1:9532/zh/api/readcard', {
200
+          params: params
201
+        })
202
+            .then(function(response) {
203
+              if (response.data.state == 0) {
204
+                that.$message.error(response.data.msg)
205
+                return false
206
+              } else {
207
+                that.form.medicalInsuranceCard = response.data.data.number
208
+                that.$message({ message: '读卡成功', type: 'success' })
209
+              }
210
+            })
211
+            .catch(function(error) {
212
+
213
+            })
214
+      },
184 215
       show: function (total,order) {
185 216
         this.record_date = moment(new Date()).add('year',0).format("YYYY-MM-DD HH:mm")
186 217
         this.form.total = total

+ 35 - 29
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue View File

@@ -7,7 +7,7 @@
7 7
                 <!-- 发票代码 -->
8 8
 
9 9
             </div>
10
-                
10
+
11 11
             <div  style="position: absolute;top:40px;left:300px"></div>
12 12
 
13 13
             <div style="position: absolute;top:40px;left:560px"></div>
@@ -23,10 +23,15 @@
23 23
             <!-- <div  style="position: absolute;left:560px;top:70px;">
24 24
 
25 25
             </div> -->
26
-             <div  style="position: absolute;left:650px;top:70px;">
27
-            <!-- 类别(改成城乡医保或者职工医保,具体对应住院的挂号选的那个医保) -->
26
+          <div  style="position: absolute;left:650px;top:70px;" v-if="insutype == '390'">
27
+            类别:城乡居民基本医疗保险
28
+          </div>
29
+          <div  style="position: absolute;left:650px;top:70px;" v-if="insutype == '310'">
30
+            类别:职工基本医疗保险
31
+          </div>
32
+          <div  style="position: absolute;left:650px;top:70px;" v-else>
28 33
             类别:
29
-            </div>
34
+          </div>
30 35
         </div>
31 36
 
32 37
         <div style="display:flex;justify-content: space-between;">
@@ -60,43 +65,43 @@
60 65
 
61 66
         <div style="display:flex;justify-content: space-between;">
62 67
             <div style="position: absolute;top:160px;left:40px">西药费</div>
63
-            <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>
68
+            <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal?list.westernMedicineCostTotal:'0.00' }}</div>
64 69
             <div style="position: absolute;top:160px;left:220px">检查费</div>
65
-            <div style="position: absolute;top:160px;left:290px">{{ list.checkCostTotal }}</div>
70
+            <div style="position: absolute;top:160px;left:290px">{{ list.checkCostTotal?list.checkCostTotal:'0.00' }}</div>
66 71
             <div style="position: absolute;top:160px;left:400px">材料费</div>
67
-            <div style="position: absolute;top:160px;left:470px">0</div>
72
+            <div style="position: absolute;top:160px;left:470px">0.00</div>
68 73
             <div style="position: absolute;top:160px;left:580px">麻醉费</div>
69
-            <div style="position: absolute;top:160px;left:650px">0</div>
74
+            <div style="position: absolute;top:160px;left:650px">0.00</div>
70 75
         </div>
71 76
         <div style="display:flex;justify-content: space-between;">
72 77
             <div style="position: absolute;top:190px;left:40px">中成药费</div>
73
-            <div style="position: absolute;top:190px;left:110px">0</div>
78
+            <div style="position: absolute;top:190px;left:110px">0.00</div>
74 79
             <div style="position: absolute;top:190px;left:220px">治疗费</div>
75
-            <div style="position: absolute;top:190px;left:290px">{{list.treatCostTotal}}</div>
80
+            <div style="position: absolute;top:190px;left:290px">{{list.treatCostTotal?list.treatCostTotal:'0.00'}}</div>
76 81
             <div style="position: absolute;top:190px;left:400px">护理费</div>
77
-            <div style="position: absolute;top:190px;left:470px">0</div>
82
+            <div style="position: absolute;top:190px;left:470px">0.00</div>
78 83
             <div style="position: absolute;top:190px;left:580px">床位费</div>
79
-            <div style="position: absolute;top:190px;left:650px">0</div>
84
+            <div style="position: absolute;top:190px;left:650px">0.00</div>
80 85
         </div>
81 86
         <div style="display:flex;justify-content: space-between;">
82 87
             <div style="position: absolute;top:220px;left:40px">中草药费</div>
83
-            <div style="position: absolute;top:220px;left:110px">0</div>
88
+            <div style="position: absolute;top:220px;left:110px">0.00</div>
84 89
             <div style="position: absolute;top:220px;left:220px">手术费</div>
85
-            <div style="position: absolute;top:220px;left:290px">{{ list.operationCostTotal }}</div>
90
+            <div style="position: absolute;top:220px;left:290px">{{ list.operationCostTotal?list.operationCostTotal:'0.00' }}</div>
86 91
             <div style="position: absolute;top:220px;left:400px">输血费</div>
87
-            <div style="position: absolute;top:220px;left:470px">0</div>
92
+            <div style="position: absolute;top:220px;left:470px">0.00</div>
88 93
             <div style="position: absolute;top:220px;left:580px">取暖费</div>
89
-            <div style="position: absolute;top:220px;left:650px">0</div>
94
+            <div style="position: absolute;top:220px;left:650px">0.00</div>
90 95
         </div>
91 96
         <div style="display:flex;justify-content: space-between;">
92 97
             <div style="position: absolute;top:250px;left:40px">高压氧费</div>
93
-            <div style="position: absolute;top:250px;left:110px">0</div>
98
+            <div style="position: absolute;top:250px;left:110px">0.00</div>
94 99
             <div style="position: absolute;top:250px;left:220px">化验费</div>
95
-            <div style="position: absolute;top:250px;left:290px">{{ list.laboratoryCostTotal }}</div>
100
+            <div style="position: absolute;top:250px;left:290px">{{ list.laboratoryCostTotal?list.laboratoryCostTotal:'0.00' }}</div>
96 101
             <div style="position: absolute;top:250px;left:400px">氧气费</div>
97
-            <div style="position: absolute;top:250px;left:470px">0</div>
102
+            <div style="position: absolute;top:250px;left:470px">0.00</div>
98 103
             <div style="position: absolute;top:250px;left:580px">其他费</div>
99
-            <div style="position: absolute;top:250px;left:650px">{{ list.otherCostTotal }}</div>
104
+            <div style="position: absolute;top:250px;left:650px">{{ list.otherCostTotal?list.otherCostTotal:'0.00' }}</div>
100 105
         </div>
101 106
 
102 107
         <div>
@@ -159,22 +164,22 @@
159 164
 
160 165
         <div style="position: absolute;top:310px;left:40px">
161 166
             <!-- 个人账户支付 -->
162
-          个人账户支付:{{list.order.acct_pay?list.order.acct_pay:'0'}}
167
+          个人账户支付:{{list.order.acct_pay?list.order.acct_pay:'0.00'}}
163 168
         </div>
164 169
         <div style="position: absolute;top:310px;left:250px">
165 170
             <!-- 统筹支付 -->
166
-          统筹支付:{{list.order.hifp_pay?list.order.hifp_pay:'0'}}
171
+          统筹支付:{{list.order.hifp_pay?list.order.hifp_pay:'0.00'}}
167 172
         </div>
168 173
         <div style="position: absolute;top:310px;left:480px">
169
-          现金支付:{{list.order.psn_cash_pay?list.order.psn_cash_pay:'0'}}
174
+          现金支付:{{list.order.psn_cash_pay?list.order.psn_cash_pay:'0.00'}}
170 175
           <!-- 现金支付 -->
171 176
         </div>
172 177
         <div style="position: absolute;top:340px;left:40px">
173
-          公务员补助:{{list.order.cvlserv_pay?list.order.cvlserv_pay:'0'}}
178
+          公务员补助:{{list.order.cvlserv_pay?list.order.cvlserv_pay:'0.00'}}
174 179
           <!-- 公务员补助 -->
175 180
         </div>
176 181
         <div style="position: absolute;top:340px;left:250px">
177
-          医疗救助:{{list.order.maf_pay?list.order.maf_pay:'0'}}
182
+          医疗救助:{{list.order.maf_pay?list.order.maf_pay:'0.00'}}
178 183
           <!-- 医疗救助 -->
179 184
         </div>
180 185
         <!-- 大病 -->
@@ -189,15 +194,15 @@
189 194
         </div> -->
190 195
         <div style="position: absolute;top:370px;left:40px">
191 196
             <!-- 预交款合计 -->
192
-            预交款合计:0
197
+            预交款合计:
193 198
         </div>
194 199
         <div style="position: absolute;top:370px;left:250px">
195 200
             <!-- 补交款 -->
196
-            补交款:0
201
+            补交款:
197 202
         </div>
198 203
         <div style="position: absolute;top:370px;left:480px">
199 204
             <!-- 应退款 -->
200
-            应退款:0
205
+            应退款:
201 206
         </div>
202 207
         <div>
203 208
             <div style="position: absolute;top:400px;left:40px">
@@ -241,6 +246,7 @@ export default {
241 246
           in_hosptial_time:'',
242 247
           out_hosptial_time:'',
243 248
           number:'',
249
+          insutype:'',
244 250
         }
245 251
     },
246 252
     mounted(){
@@ -295,7 +301,7 @@ export default {
295 301
                 this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
296 302
                 this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
297 303
               }
298
-
304
+              this.insutype = this.list.order.insutype
299 305
               this.id_card_no = this.list.his_hospital_record.id_card_no
300 306
               this.number = this.list.his_hospital_record.number
301 307
               this.psn_no = this.list.his_hospital_record.psn_no

+ 23 - 23
src/xt_pages/hospitalStation/shouJuTemplate/shouJuPrintOne.vue View File

@@ -43,43 +43,43 @@
43 43
 
44 44
     <div style="display:flex;justify-content: space-between;">
45 45
       <div style="position: absolute;top:160px;left:40px">西药</div>
46
-      <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>
46
+      <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal?list.westernMedicineCostTotal:"0.00" }}</div>
47 47
       <div style="position: absolute;top:160px;left:180px">检查费</div>
48
-      <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
48
+      <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal?list.checkCostTotal:"0.00" }}</div>
49 49
       <div style="position: absolute;top:160px;left:340px">护理费</div>
50
-      <div style="position: absolute;top:160px;left:420px"></div>
50
+      <div style="position: absolute;top:160px;left:420px">0.00</div>
51 51
       <div style="position: absolute;top:160px;left:500px">麻醉费</div>
52
-      <div style="position: absolute;top:160px;left:580px"></div>
52
+      <div style="position: absolute;top:160px;left:580px">0.00</div>
53 53
     </div>
54 54
     <div style="display:flex;justify-content: space-between;">
55 55
       <div style="position: absolute;top:190px;left:40px">中成药费</div>
56
-      <div style="position: absolute;top:190px;left:110px"></div>
56
+      <div style="position: absolute;top:190px;left:110px">0.00</div>
57 57
       <div style="position: absolute;top:190px;left:180px">治疗费</div>
58
-      <div style="position: absolute;top:190px;left:260px">{{list.treatCostTotal}}</div>
58
+      <div style="position: absolute;top:190px;left:260px">{{list.treatCostTotal?list.treatCostTotal:"0.00"}}</div>
59 59
       <div style="position: absolute;top:190px;left:340px">CT核磁</div>
60
-      <div style="position: absolute;top:190px;left:420px"></div>
60
+      <div style="position: absolute;top:190px;left:420px">0.00</div>
61 61
       <div style="position: absolute;top:190px;left:500px">床位费</div>
62
-      <div style="position: absolute;top:190px;left:580px"></div>
62
+      <div style="position: absolute;top:190px;left:580px">0.00</div>
63 63
     </div>
64 64
     <div style="display:flex;justify-content: space-between;">
65 65
       <div style="position: absolute;top:220px;left:40px">中草药费</div>
66
-      <div style="position: absolute;top:220px;left:110px"></div>
66
+      <div style="position: absolute;top:220px;left:110px">0.00</div>
67 67
       <div style="position: absolute;top:220px;left:180px">手术费</div>
68
-      <div style="position: absolute;top:220px;left:260px">{{ list.operationCostTotal }}</div>
68
+      <div style="position: absolute;top:220px;left:260px">{{ list.operationCostTotal?list.operationCostTotal:'0.00' }}</div>
69 69
       <div style="position: absolute;top:220px;left:340px">输血费</div>
70
-      <div style="position: absolute;top:220px;left:420px"></div>
70
+      <div style="position: absolute;top:220px;left:420px">0.00</div>
71 71
       <div style="position: absolute;top:220px;left:500px">取暖费</div>
72
-      <div style="position: absolute;top:220px;left:580px"></div>
72
+      <div style="position: absolute;top:220px;left:580px">0.00</div>
73 73
     </div>
74 74
     <div style="display:flex;justify-content: space-between;">
75 75
       <div style="position: absolute;top:250px;left:40px">高压氧费</div>
76
-      <div style="position: absolute;top:250px;left:110px"></div>
76
+      <div style="position: absolute;top:250px;left:110px">0.00</div>
77 77
       <div style="position: absolute;top:250px;left:180px">化验费</div>
78
-      <div style="position: absolute;top:250px;left:260px">{{ list.laboratoryCostTotal }}</div>
78
+      <div style="position: absolute;top:250px;left:260px">{{ list.laboratoryCostTotal?list.laboratoryCostTotal:"0.00" }}</div>
79 79
       <div style="position: absolute;top:250px;left:340px">氧气费</div>
80
-      <div style="position: absolute;top:250px;left:420px"></div>
80
+      <div style="position: absolute;top:250px;left:420px">0.00</div>
81 81
       <div style="position: absolute;top:250px;left:500px">其他</div>
82
-      <div style="position: absolute;top:250px;left:580px">{{ list.otherCostTotal }}</div>
82
+      <div style="position: absolute;top:250px;left:580px">{{ list.otherCostTotal?list.otherCostTotal:"0.00" }}</div>
83 83
     </div>
84 84
 
85 85
     <div>
@@ -139,33 +139,33 @@
139 139
 
140 140
     <div style="position: absolute;top:310px;left:320px">
141 141
       <!-- 个人账户支付 -->
142
-      {{list.order.acct_pay?list.order.acct_pay:''}}
142
+      {{list.order.acct_pay?list.order.acct_pay:'0.00'}}
143 143
     </div>
144 144
     <div style="position: absolute;top:310px;left:380px">
145 145
       <!-- 统筹支付 -->
146
-      {{list.order.hifp_pay?list.order.hifp_pay:''}}
146
+      {{list.order.hifp_pay?list.order.hifp_pay:'0.00'}}
147 147
     </div>
148 148
     <div style="position: absolute;top:310px;left:500px">
149
-      {{list.order.psn_cash_pay?list.order.psn_cash_pay:''}}
149
+      {{list.order.psn_cash_pay?list.order.psn_cash_pay:'0.00'}}
150 150
       <!-- 现金支付 -->
151 151
     </div>
152 152
     <div style="position: absolute;top:340px;left:320px">
153
-      {{list.order.cvlserv_pay?list.order.cvlserv_pay:''}}
153
+      {{list.order.cvlserv_pay?list.order.cvlserv_pay:'0.00'}}
154 154
       <!-- 公务员补助 -->
155 155
     </div>
156 156
     <div style="position: absolute;top:340px;left:380px">
157
-      {{list.order.maf_pay?list.order.maf_pay:''}}
157
+      {{list.order.maf_pay?list.order.maf_pay:'0.00'}}
158 158
       <!-- 医疗救助 -->
159 159
     </div>
160 160
     <div style="position: absolute;top:340px;left:500px">
161 161
       <!-- 大病 -->
162
-      {{list.order.hifmi_pay?list.order.hifmi_pay:''}}
162
+      {{list.order.hifmi_pay?list.order.hifmi_pay:'0.00'}}
163 163
 
164 164
 
165 165
     </div>
166 166
     <div style="position: absolute;top:340px;left:560px">
167 167
       <!-- 其他基金支付 -->
168
-      {{list.order.oth_pay?list.order.oth_pay:''}}
168
+      {{list.order.oth_pay?list.order.oth_pay:'0.00'}}
169 169
 
170 170
     </div>
171 171
     <div style="position: absolute;top:370px;left:320px">

+ 6 - 6
src/xt_pages/outpatientCharges/listTemplate/printTwo10265.vue View File

@@ -58,10 +58,10 @@
58 58
         </tr>
59 59
 
60 60
         <tr>
61
-          <td style="width: 20%;white-space: nowrap;">甲类:{{item.jiaTotal}}</td>
62
-          <td style="width: 20%;white-space: nowrap;">乙类药品:{{item.yiTotal}}</td>
61
+          <td style="width: 20%;white-space: nowrap;">甲类:{{item.jiaTotal?item.jiaTotal:"0.00"}}</td>
62
+          <td style="width: 20%;white-space: nowrap;">乙类药品:{{item.yiTotal?item.yiTotal:"0.00"}}</td>
63 63
           <td style="width: 5%;white-space: nowrap;">非药品:{{0.00}}</td>
64
-          <td style="width: 5%;white-space: nowrap;">丙类:{{item.bingTotal}}</td>
64
+          <td style="width: 5%;white-space: nowrap;">丙类:{{item.bingTotal?item.bingTotal:"0.00"}}</td>
65 65
           <td style="width: 5%;white-space: nowrap;">其他:{{0.00}}</td>
66 66
           <td></td>
67 67
           <td style="width: 20%;white-space: nowrap;">小计:{{item.total}}</td>
@@ -87,9 +87,9 @@
87 87
 
88 88
         <tr>
89 89
           <td>报销类别费用合计</td>
90
-          <td>甲类:{{getJaiTotal()}}</td>
91
-          <td>乙类药品:{{getYiTotal()}}</td>
92
-          <td>丙类:{{getBingTotal()}}</td>
90
+          <td>甲类:{{getJaiTotal()?getJaiTotal():"0.00"}}</td>
91
+          <td>乙类药品:{{getYiTotal()?getYiTotal():"0.00"}}</td>
92
+          <td>丙类:{{getBingTotal()?getBingTotal():"0.00"}}</td>
93 93
           <td>非药品:0.00</td>
94 94
           <td></td>
95 95
           <td>其他:0.00</td>