test_user před 2 roky
rodič
revize
df3a3ee5d2

+ 9 - 0
src/api/his/his.js Zobrazit soubor

@@ -725,3 +725,12 @@ export function exportOrderInfo() {
725 725
   });
726 726
 }
727 727
 
728
+
729
+export function getPrivateExpensesTwo(params) {
730
+  return request({
731
+    url: "/api/test/get",
732
+    method: "get",
733
+    params:params,
734
+  });
735
+}
736
+

+ 1 - 0
src/api/schedule_template/sch_template.js Zobrazit soubor

@@ -23,6 +23,7 @@ export function setTemplateMode(mode,week_time) {
23 23
     week_time:week_time,
24 24
 
25 25
   }
26
+  console.log(params)
26 27
   return request({
27 28
     url: '/api/schtemp/p/setmode',
28 29
     method: 'post',

Diff nebyl zobrazen, protože je příliš veliký
+ 691 - 609
src/xt_pages/outpatientCharges/statementPrint.vue


+ 220 - 263
src/xt_pages/outpatientCharges/statementTemplate/printTen.vue Zobrazit soubor

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <div  id='prescription-print' class="prescription-print"
3
+    <div  id="statement-print" class="statement-print"
4 4
          style="position: relative;">
5 5
       <div class="print-content">
6 6
         <div class="print-title">
@@ -11,57 +11,106 @@
11 11
           <!-- <div class="hospital"> -->
12 12
           <span class="yiliao">
13 13
                         <span>医疗机构名称:</span>
14
-                        <span>{{}}</span>
14
+                        <span>{{info.fixmedins_name}}</span>
15 15
                     </span>
16 16
           <span class="yiliao">
17 17
                         <span>医疗机构编码:</span>
18
-                        <span>{{}}</span>
18
+                        <span>{{info.fixmedins_code}}</span>
19 19
                     </span>
20 20
           <span class="yiliao">
21 21
                         <span>医院等级:</span>
22
-                        <span>{{}}</span>
23
-                    </span>
22
+                        <span  v-if="info.hosp_lv == '1'">三级特等</span>
23
+                        <span  v-else-if="info.hosp_lv == '2'">三级甲等</span>
24
+                        <span v-else-if="info.hosp_lv == '3'">三级乙等</span>
25
+                        <span v-else-if="info.hosp_lv == '4'">三级丙等</span>
26
+                        <span v-else-if="info.hosp_lv == '5'">二级甲等</span>
27
+                        <span v-else-if="info.hosp_lv == '6'">二级乙等</span>
28
+                        <span v-else-if="info.hosp_lv == '7'">二级丙等</span>
29
+                        <span  v-else-if="info.hosp_lv == '8'">一级甲等</span>
30
+                        <span v-else-if="info.hosp_lv == '9'">一级乙等</span>
31
+                        <span v-else-if="info.hosp_lv == '10'">一级丙等</span>
32
+                        <span  v-else-if="info.hosp_lv == '11'">无等级</span>
33
+                        <span  v-else></span>
34
+          </span>
24 35
           <!-- </div> -->
25 36
           <table class="jiesuan">
26 37
             <tr>
27 38
               <td>姓名</td>
28
-              <td>{{}}</td>
39
+              <td>{{info.psn_name}}</td>
29 40
               <td>性别</td>
30
-              <td>{{}}</td>
41
+              <td v-if="info.gend == '1'">男</td>
42
+              <td v-if="info.gend == '2'">女</td>
31 43
               <td>人员类别</td>
32
-              <td>{{}}</td>
44
+              <td  v-if="info.psn_type == '11'">在职</td>
45
+              <td  v-else-if="info.psn_type == '1101'">职工在职</td>
46
+              <td  v-else-if="info.psn_type == '1102'">公务员在职</td>
47
+              <td  v-else-if="info.psn_type == '1103'">灵活就业人员在职</td>
48
+              <td  v-else-if="info.psn_type == '1160'">地方其他扩展人员</td>
49
+              <td  v-else-if="info.psn_type == '12'">退休人员</td>
50
+              <td  v-else-if="info.psn_type == '1201'">职工退休</td>
51
+              <td  v-else-if="info.psn_type == '1202'">公务员退休</td>
52
+              <td  v-else-if="info.psn_type == '1203'">灵活就业人员退休</td>
53
+              <td  v-else-if="info.psn_type == '1260'">地方其他扩展人员</td>
54
+              <td  v-else-if="info.psn_type == '13'">离休</td>
55
+              <td  v-else-if="info.psn_type == '1300'">离休人员</td>
56
+              <td  v-else-if="info.psn_type == '1360'">地方其他扩展人员</td>
57
+              <td  v-else-if="info.psn_type == '14'">居民(未成年)</td>
58
+              <td  v-else-if="info.psn_type == '1401'">新生儿</td>
59
+              <td  v-else-if="info.psn_type == '1402'">学龄前儿童</td>
60
+              <td  v-else-if="info.psn_type == '1403'">中小学生</td>
61
+              <td  v-else-if="info.psn_type == '1404'">大学生</td>
62
+              <td  v-else-if="info.psn_type == '1405'">未成年(未入学)</td>
63
+              <td v-else-if="info.psn_type == '15'">居民(成年)</td>
64
+              <td  v-else-if="info.psn_type == '1501'">普通居民(成年)</td>
65
+              <td v-else-if="info.psn_type == '1560'">地方其他扩展身份</td>
66
+              <td  v-else-if="info.psn_type == '16'">居民(老年)</td>
67
+              <td  v-else></td>
33 68
             </tr>
34 69
             <tr>
35 70
               <td>身份证号码</td>
36
-              <td>{{}}</td>
71
+              <td>{{info.certno}}</td>
37 72
               <td>参保险种</td>
38
-              <td>{{}}</td>
73
+              <td  v-if="info.insutype == '310'">职工基本医疗保险</td>
74
+              <td  v-if="info.insutype == '320'">公务员医疗补助</td>
75
+              <td  v-if="info.insutype == '330'">大额医疗费用补助</td>
76
+              <td  v-if="info.insutype == '340'">离休人员医疗保障</td>
77
+              <td  v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
78
+              <td  v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
79
+              <td  v-if="info.insutype == '510'">生育保险</td>
80
+
39 81
               <td>医疗类别</td>
40
-              <td>{{}}</td>
82
+              <td  v-if="info.med_type == '11'">普通门诊</td>
83
+              <td  v-if="info.med_type == '12'">门诊挂号</td>
84
+              <td  v-if="info.med_type == '13'">急诊</td>
85
+              <td  v-if="info.med_type == '14'">门诊特殊病</td>
86
+              <td  v-if="info.med_type == '15'">门诊统筹</td>
87
+              <td  v-if="info.med_type == '16'">门诊慢性病</td>
88
+              <td  v-if="info.med_type == '21'">普通住院</td>
89
+
41 90
             </tr>
42 91
             <tr>
43 92
               <td>结算ID</td>
44
-              <td>{{}}</td>
93
+              <td>{{info.setl_id}}</td>
45 94
               <td>住院号</td>
46
-              <td>{{}}</td>
95
+              <td>{{info.number}}</td>
47 96
               <td>住院天数</td>
48
-              <td>{{}}</td>
97
+              <td>{{getDay(info.begndate,info.enddate)}}</td>
49 98
             </tr>
50 99
             <tr>
51 100
               <td>科室</td>
52
-              <td>{{}}</td>
101
+              <td>{{'血透'}}</td>
53 102
               <td>床号</td>
54
-              <td>{{}}</td>
103
+              <td></td>
55 104
               <td>参保区划</td>
56
-              <td>{{}}</td>
105
+              <td>{{info.insu_optins}}</td>
57 106
             </tr>
58 107
             <tr>
59 108
               <td>入院日期</td>
60
-              <td>{{}}</td>
109
+              <td>{{info.begndate ? info.begndate.split(' ')[0] : ''}}</td>
61 110
               <td>出院日期</td>
62
-              <td>{{}}</td>
111
+              <td>{{info.enddate ? info.enddate.split(' ')[0] : ''}}</td>
63 112
               <td>结算日期</td>
64
-              <td>{{}}</td>
113
+              <td>{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
65 114
             </tr>
66 115
             <tr>
67 116
               <td colspan="6"> 费用分类情况</td>
@@ -74,54 +123,167 @@
74 123
               <td>超限价</td>
75 124
               <td>自费</td>
76 125
             </tr>
77
-            <tr>
126
+            <tr v-if="info.bed_cost_total > 0">
127
+              <td>床位费</td>
128
+              <td>{{info.bed_cost_total}}</td>
129
+              <td>{{info.bedInscpTotal}}</td>
130
+              <td>{{info.bed_cost_part_self_total}}</td>
131
+              <td>{{info.bed_cost_self_total}}</td>
132
+              <td>{{info.bedSelfTotal}}</td>
133
+
134
+            </tr>
135
+
136
+            <tr v-if="info.operation_cost_total > 0">
137
+              <td>手术费</td>
138
+              <td>{{info.operation_cost_total}}</td>
139
+              <td>{{info.operationInscpTotal}}</td>
140
+              <td>{{info.operation_cost_part_self_total}}</td>
141
+              <td>{{info.operation_cost_self_total}}</td>
142
+              <td>{{info.operationSelfTotal}}</td>
143
+
144
+            </tr>
145
+
146
+            <tr v-if="info.check_cost_total > 0">
78 147
               <td>检查费</td>
79
-              <td>{{}}</td>
80
-              <td>{{}}</td>
81
-              <td>{{}}</td>
82
-              <td>{{}}</td>
83
-              <td>{{}}</td>
148
+              <td>{{info.check_cost_total}}</td>
149
+              <td>{{info.checkInscpTotal}}</td>
150
+              <td>{{info.check_cost_part_self_total}}</td>
151
+              <td>{{info.check_cost_self_total}}</td>
152
+              <td>{{info.checkSelfTotal}}</td>
153
+
154
+            </tr>
155
+
156
+            <tr v-if="info.treat_cost_total > 0">
157
+              <td>治疗费</td>
158
+              <td>{{info.treat_cost_total}}</td>
159
+              <td>{{info.treatInscpTotal}}</td>
160
+              <td>{{info.treat_cost_part_self_total}}</td>
161
+              <td>{{info.treat_cost_self_total}}</td>
162
+              <td>{{info.treatSelfTotal}}</td>
163
+
164
+            </tr>
165
+
166
+
167
+            <tr v-if="info.treat_cost_total > 0">
168
+              <td>化验费</td>
169
+              <td>{{info.laboratory_cost_total}}</td>
170
+              <td>{{info.laboratoryInscpTotal}}</td>
171
+              <td>{{info.laboratory_cost_part_self_total}}</td>
172
+              <td>{{info.laboratory_cost_self_total}}</td>
173
+              <td>{{info.laboratorySelfTotal}}</td>
174
+
175
+            </tr>
176
+
177
+
178
+            <tr v-if="info.western_medicine_cost_total > 0">
179
+              <td>西药费</td>
180
+              <td>{{info.western_medicine_cost_total}}</td>
181
+              <td>{{info.westernMedicineInscpTotal}}</td>
182
+              <td>{{info.western_medicine_cost_part_self_total}}</td>
183
+              <td>{{info.western_medicine_cost_self_total}}</td>
184
+              <td>{{info.westernMedicineSelfTotal}}</td>
185
+
186
+            </tr>
187
+
188
+            <tr v-if="info.material_cost_total > 0">
189
+              <td>材料费</td>
190
+              <td>{{info.material_cost_total}}</td>
191
+              <td>{{info.materialInscpTotal}}</td>
192
+              <td>{{info.material_cost_part_self_total}}</td>
193
+              <td>{{info.material_cost_self_total}}</td>
194
+              <td>{{info.materialSelfTotal}}</td>
195
+
196
+            </tr>
197
+            <tr v-if="info.other_cost_total > 0">
198
+              <td>其他费</td>
199
+              <td>{{info.other_cost_total}}</td>
200
+              <td>{{info.otherInscpTotal}}</td>
201
+              <td>{{info.other_cost_part_self_total}}</td>
202
+              <td>{{info.other_cost_self_total}}</td>
203
+              <td>{{info.otherSelfTotal}}</td>
204
+            </tr>
205
+
206
+
207
+            <tr v-if="info.chinese_traditional_medicine_cost_total > 0">
208
+              <td>中成药</td>
209
+              <td>{{info.chinese_traditional_medicine_cost_total}}</td>
210
+              <td>{{info.chineseTraditionalInscpTotal}}</td>
211
+              <td>{{info.chinese_traditional_medicine_cost_part_self_total}}</td>
212
+              <td>{{info.chinese_traditional_medicine_cost_self_total}}</td>
213
+              <td>{{info.chineseTraditionalSelfTotal}}</td>
84 214
             </tr>
215
+
85 216
             <tr>
86 217
               <td>金额合计</td>
87
-              <td>{{}}</td>
88
-              <td>{{}}</td>
89
-              <td>{{}}</td>
90
-              <td>{{}}</td>
91
-              <td>{{}}</td>
218
+              <td >{{(parseFloat(info.bed_cost_total) +
219
+                parseFloat(info.operation_cost_total) + parseFloat(info.other_cost_total) +
220
+                parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
221
+                parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
222
+                parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
223
+              </td>
224
+              <td >{{(parseFloat(info.bedInscpTotal) +
225
+                parseFloat(info.operationInscpTotal) + parseFloat(info.checkInscpTotal) +
226
+                parseFloat(info.treatInscpTotal) + parseFloat(info.laboratoryInscpTotal) +
227
+                parseFloat(info.westernMedicineInscpTotal) + parseFloat(info.materialInscpTotal) +
228
+                parseFloat(info.otherInscpTotal) + parseFloat(info.chineseTraditionalInscpTotal)).toFixed(2) }}
229
+              </td>
230
+
231
+              <td >{{(parseFloat(info.bed_cost_part_self_total) +
232
+                parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
233
+                parseFloat(info.material_cost_part_self_total) + parseFloat(info.western_medicine_cost_part_self_total) +
234
+                parseFloat(info.chinese_traditional_medicine_cost_part_self_total) +
235
+                parseFloat(info.check_cost_part_self_total) + parseFloat(info.laboratory_cost_part_self_total) +
236
+                parseFloat(info.treat_cost_part_self_total)).toFixed(2)}}
237
+              </td>
238
+
239
+              <td >{{(parseFloat(info.bed_cost_self_total )+
240
+                parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
241
+                parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
242
+                parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
243
+                parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
244
+              </td>
245
+
246
+              <td >{{(parseFloat(info.bedSelfTotal) +
247
+                parseFloat(info.operationSelfTotal) + parseFloat(info.checkSelfTotal) +
248
+                parseFloat(info.treatSelfTotal) + parseFloat(info.laboratorySelfTotal) +
249
+                parseFloat(info.westernMedicineSelfTotal) + parseFloat(info.materialSelfTotal) +
250
+                parseFloat(info.otherSelfTotal) + parseFloat(info.chineseTraditionalSelfTotal)).toFixed(2) }}
251
+              </td>
252
+
92 253
             </tr>
254
+
93 255
             <tr>
94 256
               <td colspan="6"> 费用结算情况</td>
95 257
             </tr>
96 258
             <tr>
97 259
               <td>费用总额</td>
98
-              <td>{{}}</td>
260
+              <td>{{info.medfee_sumamt}}</td>
99 261
               <td>统筹基金支付</td>
100
-              <td>{{}}</td>
262
+              <td>{{info.hifp_pay}}</td>
101 263
               <td>大病保险支付</td>
102
-              <td>{{}}</td>
264
+              <td>{{info.hifmi_pay}}</td>
103 265
             </tr>
104 266
             <tr>
105 267
               <td>医疗救助支付</td>
106
-              <td>{{}}</td>
268
+              <td>{{info.maf_pay}}</td>
107 269
               <td>公务员补充支付</td>
108
-              <td>{{}}</td>
270
+              <td>{{info.cvlserv_pay}}</td>
109 271
               <td>离休保健专项</td>
110
-              <td>{{}}</td>
272
+              <td></td>
111 273
             </tr>
112 274
             <tr>
113 275
               <td>个人账户支付</td>
114
-              <td>{{}}</td>
276
+              <td>{{info.acct_pay}}</td>
115 277
               <td>个人现金支付</td>
116
-              <td>{{}}</td>
278
+              <td>{{info.psn_cash_pay}}</td>
117 279
               <td>其他基金支付</td>
118
-              <td>{{}}</td>
280
+              <td>{{info.oth_pay}}</td>
119 281
             </tr>
120 282
             <tr>
121 283
               <td>起付线</td>
122
-              <td colspan="2">{{}}</td>
284
+              <td colspan="2">{{info.act_pay_dedc}}</td>
123 285
               <td>医院垫付金额</td>
124
-              <td colspan="2">{{}}</td>
286
+              <td colspan="2">{{info.hosp_part_amt}}</td>
125 287
             </tr>
126 288
           </table>
127 289
           <span style="display: inline-block; margin: 5px 0px;">备注:其它包含军转、财政、慈善、其他商报等支付来源</span>
@@ -130,7 +292,6 @@
130 292
 
131 293
     </div>
132 294
   </div>
133
-
134 295
 </template>
135 296
 <script>
136 297
 import { getChargePrint } from '@/api/project/project'
@@ -160,216 +321,26 @@ export default {
160 321
   },
161 322
   props: {
162 323
     paramsObj: Object,
163
-    info: Object,
324
+    info: {
325
+      type: Object,
326
+      default: function() {
327
+        return {}
328
+      }
329
+    },
164 330
     balanceAccounts: Object
165 331
   },
166 332
   methods: {
167
-    getName(list) {
168
-      let new_list = []
169
-      for (let i = 0; i < list.length; i++) {
170
-        if (list[i].aac031 == '1') {
171
-          new_list.push(list[i])
172
-        }
333
+    getDay(dateString1,dateString2){
334
+      var  startDate = Date.parse(dateString1);
335
+      var  endDate = Date.parse(dateString2);
336
+      if (startDate>endDate){
337
+        return 0;
173 338
       }
174
-
175
-      switch (new_list[0].bcc334) {
176
-        case 'A31001':
177
-          return '深圳医保1档'
178
-          break
179
-        case 'A31002':
180
-          return '深圳医保2档'
181
-
182
-          break
183
-        case 'A31003':
184
-          return '深圳医保3档'
185
-
186
-          break
187
-        case 'A31004':
188
-          return '二档(少儿)'
189
-
190
-          break
191
-        case 'A31005':
192
-          return '学生二档'
193
-
194
-          break
195
-        case 'A31006':
196
-          return '大学生二档'
197
-
198
-          break
199
-        case 'A32001':
200
-          return '在职公务员'
201
-          break
202
-        case 'A32002':
203
-          return '在职驻深公务员'
204
-
205
-          break
206
-        case 'A39301':
207
-          return '家属统筹医疗'
208
-
209
-          break
210
-        case 'A41001':
211
-          return '工伤在职'
212
-
213
-          break
214
-        case 'A51001':
215
-          return '生育在职'
216
-
217
-          break
218
-        case 'A52001':
219
-          return '生育医疗一档'
220
-
221
-          break
222
-        case 'A52002':
223
-          return '生育医疗一档'
224
-
225
-          break
226
-        case 'C31001':
227
-          return '一档医疗退休'
228
-
229
-          break
230
-        case 'C31002':
231
-          return '二档医疗退休'
232
-          break
233
-
339
+      if (startDate==endDate){
340
+        return 1;
234 341
       }
235
-
236
-    },
237
-    getValue(item) {
238
-      return this.getItemName(item.aka111) + ': ' + item.bka058 + '元'
239
-    },
240
-    getItemName(number) {
241
-      switch (number) {
242
-        case '01':
243
-          return '床位费'
244
-          break
245
-        case '02':
246
-          return '西药费'
247
-
248
-          break
249
-        case '03':
250
-          return '中药费'
251
-
252
-          break
253
-        case '04':
254
-          return '中成药费'
255
-
256
-          break
257
-        case '05':
258
-          return '中草药费'
259
-
260
-          break
261
-        case '06':
262
-          return '检查费'
263
-
264
-          break
265
-        case '07':
266
-          return '治疗费'
267
-
268
-          break
269
-        case '08':
270
-          return '放射费'
271
-
272
-          break
273
-        case '09':
274
-          return '手术费'
275
-
276
-          break
277
-        case '10':
278
-          return '化验费'
279
-
280
-          break
281
-        case '11':
282
-          return '输血费'
283
-
284
-          break
285
-        case '12':
286
-          return '输氧费'
287
-
288
-          break
289
-        case '13':
290
-          return '其它费'
291
-
292
-          break
293
-        case '14':
294
-          return '麻醉费'
295
-
296
-          break
297
-        case '15':
298
-          return '材料费'
299
-
300
-          break
301
-        case '16':
302
-          return '特殊检查费'
303
-
304
-          break
305
-        case '17':
306
-          return '特殊治疗费'
307
-
308
-          break
309
-        case '18':
310
-          return '诊疗费(诊查费)'
311
-
312
-          break
313
-        case '19':
314
-          return '护理费'
315
-
316
-          break
317
-        case '20':
318
-          return '诊金'
319
-
320
-          break
321
-        case '21':
322
-          return '检查费(CT)'
323
-
324
-          break
325
-        case '22':
326
-          return '检查费(MRT)'
327
-
328
-          break
329
-        case '23':
330
-          return '检查费(其他)'
331
-
332
-          break
333
-        case '24':
334
-          return '特需服务费'
335
-
336
-          break
337
-        case '25':
338
-          return '杂费'
339
-
340
-          break
341
-        case '26':
342
-          return '挂号费'
343
-          break
344
-        case '99':
345
-          return '诊疗费'
346
-          break
347
-
348
-      }
349
-
350
-    },
351
-    getChargePrint(record_date, patient_id, prescription_id) {
352
-      var params = {
353
-        record_date: record_date,
354
-        patient_id: patient_id,
355
-        prescription_id: prescription_id
356
-      }
357
-      console.log('params', params)
358
-      getChargePrint(params).then(response => {
359
-        if (response.data.state == 1) {
360
-          var list = response.data.data.list
361
-          console.log('list9999999999', list)
362
-          this.list = list
363
-          var prescription = response.data.data.prescription
364
-          console.log('prescription', prescription)
365
-          this.prescription = prescription
366
-          var patient = response.data.data.patient
367
-          console.log('patient', patient)
368
-          this.patient = patient
369
-          var histpatient = response.data.data.hisPatient
370
-          console.log('hispatient', histpatient)
371
-        }
372
-      })
342
+      var days=(endDate - startDate)/(1*24*60*60*1000);
343
+      return  days;
373 344
     },
374 345
     getTime(value, temp) {
375 346
       if (value != undefined) {
@@ -379,27 +350,13 @@ export default {
379 350
     }
380 351
   },
381 352
   mounted() {
382
-    this.org_id = this.$store.getters.xt_user.org_id
383 353
 
384
-    var record_date = this.paramsObj.record_date
385
-    console.log('record_date', record_date)
386
-    var patient_id = this.paramsObj.patient_id
387
-    console.log('patient_id', patient_id)
388
-    var prescription_id = this.paramsObj.prescription_id
389
-    this.getChargePrint(record_date, patient_id, prescription_id)
390
-    var xtuser = this.$store.getters.xt_user
391
-    this.orgname = xtuser.org.org_name
392 354
 
393 355
   },
394 356
   watch: {
395 357
     paramsObj: {//深度监听,可监听到对象、数组的变化
396 358
       handler(val, oldVal) {
397
-        this.paramsObj = val
398
-        this.patient_id = this.paramsObj.patient_id
399
-        var record_date = this.paramsObj.record
400
-        this.record_date = record_date
401
-        var prescription_id = this.paramsObj.prescription_id
402
-        this.prescription_id = prescription_id
359
+
403 360
 
404 361
       },
405 362
       deep: true