Browse Source

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

杨青 2 years ago
parent
commit
7f101da7cf

+ 451 - 0
src/xt_pages/outpatientCharges/statementTemplate/printTen.vue View File

@@ -0,0 +1,451 @@
1
+<template>
2
+  <div>
3
+    <div  id='prescription-print' class="prescription-print"
4
+         style="position: relative;">
5
+      <div class="print-content">
6
+        <div class="print-title">
7
+          <h1>江西省医疗保障定点机构医疗费用结算单</h1>
8
+        </div>
9
+
10
+        <div class="print-tab">
11
+          <!-- <div class="hospital"> -->
12
+          <span class="yiliao">
13
+                        <span>医疗机构名称:</span>
14
+                        <span>{{}}</span>
15
+                    </span>
16
+          <span class="yiliao">
17
+                        <span>医疗机构编码:</span>
18
+                        <span>{{}}</span>
19
+                    </span>
20
+          <span class="yiliao">
21
+                        <span>医院等级:</span>
22
+                        <span>{{}}</span>
23
+                    </span>
24
+          <!-- </div> -->
25
+          <table class="jiesuan">
26
+            <tr>
27
+              <td>姓名</td>
28
+              <td>{{}}</td>
29
+              <td>性别</td>
30
+              <td>{{}}</td>
31
+              <td>人员类别</td>
32
+              <td>{{}}</td>
33
+            </tr>
34
+            <tr>
35
+              <td>身份证号码</td>
36
+              <td>{{}}</td>
37
+              <td>参保险种</td>
38
+              <td>{{}}</td>
39
+              <td>医疗类别</td>
40
+              <td>{{}}</td>
41
+            </tr>
42
+            <tr>
43
+              <td>结算ID</td>
44
+              <td>{{}}</td>
45
+              <td>住院号</td>
46
+              <td>{{}}</td>
47
+              <td>住院天数</td>
48
+              <td>{{}}</td>
49
+            </tr>
50
+            <tr>
51
+              <td>科室</td>
52
+              <td>{{}}</td>
53
+              <td>床号</td>
54
+              <td>{{}}</td>
55
+              <td>参保区划</td>
56
+              <td>{{}}</td>
57
+            </tr>
58
+            <tr>
59
+              <td>入院日期</td>
60
+              <td>{{}}</td>
61
+              <td>出院日期</td>
62
+              <td>{{}}</td>
63
+              <td>结算日期</td>
64
+              <td>{{}}</td>
65
+            </tr>
66
+            <tr>
67
+              <td colspan="6"> 费用分类情况</td>
68
+            </tr>
69
+            <tr>
70
+              <td>项目名称</td>
71
+              <td>总金额</td>
72
+              <td>符合行政范围</td>
73
+              <td>先行自付</td>
74
+              <td>超限价</td>
75
+              <td>自费</td>
76
+            </tr>
77
+            <tr>
78
+              <td>检查费</td>
79
+              <td>{{}}</td>
80
+              <td>{{}}</td>
81
+              <td>{{}}</td>
82
+              <td>{{}}</td>
83
+              <td>{{}}</td>
84
+            </tr>
85
+            <tr>
86
+              <td>金额合计</td>
87
+              <td>{{}}</td>
88
+              <td>{{}}</td>
89
+              <td>{{}}</td>
90
+              <td>{{}}</td>
91
+              <td>{{}}</td>
92
+            </tr>
93
+            <tr>
94
+              <td colspan="6"> 费用结算情况</td>
95
+            </tr>
96
+            <tr>
97
+              <td>费用总额</td>
98
+              <td>{{}}</td>
99
+              <td>统筹基金支付</td>
100
+              <td>{{}}</td>
101
+              <td>大病保险支付</td>
102
+              <td>{{}}</td>
103
+            </tr>
104
+            <tr>
105
+              <td>医疗救助支付</td>
106
+              <td>{{}}</td>
107
+              <td>公务员补充支付</td>
108
+              <td>{{}}</td>
109
+              <td>离休保健专项</td>
110
+              <td>{{}}</td>
111
+            </tr>
112
+            <tr>
113
+              <td>个人账户支付</td>
114
+              <td>{{}}</td>
115
+              <td>个人现金支付</td>
116
+              <td>{{}}</td>
117
+              <td>其他基金支付</td>
118
+              <td>{{}}</td>
119
+            </tr>
120
+            <tr>
121
+              <td>起付线</td>
122
+              <td colspan="2">{{}}</td>
123
+              <td>医院垫付金额</td>
124
+              <td colspan="2">{{}}</td>
125
+            </tr>
126
+          </table>
127
+          <span style="display: inline-block; margin: 5px 0px;">备注:其它包含军转、财政、慈善、其他商报等支付来源</span>
128
+        </div>
129
+      </div>
130
+
131
+    </div>
132
+  </div>
133
+
134
+</template>
135
+<script>
136
+import { getChargePrint } from '@/api/project/project'
137
+import { uParseTime } from '@/utils/tools'
138
+
139
+export default {
140
+  data() {
141
+    return {
142
+      list: {},
143
+      prescription: [],
144
+      patient: {},
145
+      orgname: '',
146
+
147
+      result: {},
148
+      org_code: '',
149
+      patient_name: '',
150
+      doctor_code: '',
151
+      doctor_name: '',
152
+
153
+      name_arr: [],
154
+      spec_arr: [],
155
+      count_arr: [],
156
+      price_arr: [],
157
+      total_arr: []
158
+
159
+    }
160
+  },
161
+  props: {
162
+    paramsObj: Object,
163
+    info: Object,
164
+    balanceAccounts: Object
165
+  },
166
+  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
+        }
173
+      }
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
+
234
+      }
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
+      })
373
+    },
374
+    getTime(value, temp) {
375
+      if (value != undefined) {
376
+        return uParseTime(value, temp)
377
+      }
378
+      return ''
379
+    }
380
+  },
381
+  mounted() {
382
+    this.org_id = this.$store.getters.xt_user.org_id
383
+
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
+
393
+  },
394
+  watch: {
395
+    paramsObj: {//深度监听,可监听到对象、数组的变化
396
+      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
403
+
404
+      },
405
+      deep: true
406
+    }
407
+  }
408
+}
409
+</script>
410
+
411
+
412
+<style lang="scss" scoped>
413
+.prescription-print {
414
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
415
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
416
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
417
+  margin-bottom: 20px;
418
+  padding: 20px 10px;
419
+}
420
+*{
421
+  padding:0;
422
+  margin: 0;
423
+  border: 0;
424
+}
425
+.print-content{
426
+  display: flex;
427
+  justify-content: center;
428
+  flex-direction:column
429
+}
430
+h1{
431
+  text-align: center;
432
+}
433
+.yiliao{
434
+  display: inline-block;
435
+  margin: 10px 80px 10px 0px ;
436
+}
437
+.print-tab{
438
+  margin: 0px auto;
439
+}
440
+.jiesuan{
441
+  border-collapse: collapse;
442
+  text-align: center;
443
+}
444
+.jiesuan tr td{
445
+  border: 1px solid gray;
446
+  width: 150px;
447
+  height: 30px;
448
+}
449
+
450
+
451
+</style>

+ 69 - 70
src/xt_pages/workforce/components/tableData.vue View File

@@ -73,7 +73,7 @@
73 73
         </el-switch>
74 74
       </div>
75 75
     </div>
76
-   
76
+
77 77
     <el-dialog :visible.sync="searchTableVisible" width="80%">
78 78
       <el-table
79 79
         :data="schedulePatients"
@@ -166,7 +166,7 @@
166 166
         ref="table"
167 167
         style="table-layout: fixed;"
168 168
       >
169
-      
169
+
170 170
         <el-table-column
171 171
           prop="area"
172 172
           label="分区"
@@ -525,7 +525,7 @@
525 525
           </el-form-item>
526 526
           <el-form-item label="透析机: " prop="bed_id">
527 527
             <el-select
528
-                v-model="device_id"
528
+                v-model="changeSchedule.bed_id"
529 529
                 placeholder="请选择"
530 530
                 style="width: 100%"
531 531
                
@@ -879,14 +879,14 @@ export default {
879 879
 
880 880
     },
881 881
     weekTime: function() {
882
-      // 
882
+      //
883 883
       if(this.weekTime != 'historyWeek'){
884 884
         console.log('12343455',this.weekTime);
885 885
         var theType = this.weekType(this.weekTime);
886 886
         this.theType = theType
887 887
         this.getSchedules();
888 888
       }
889
-      
889
+
890 890
     },
891 891
     scheduleZoneRow: function() {
892 892
       var theType = this.weekType(this.weekTime);
@@ -963,7 +963,7 @@ export default {
963 963
     switchMode(flag){
964 964
       console.log(flag);
965 965
     },
966
-   
966
+
967 967
     getData(){
968 968
       return this.scheduleZone
969 969
     },
@@ -1242,7 +1242,7 @@ export default {
1242 1242
 
1243 1243
           this.scheduleZone.sort(this.compare('sort'))
1244 1244
           this.source_scheduleZone = this.scheduleZone
1245
-        
1245
+
1246 1246
           console.log("34455555566666",this.scheduleZone)
1247 1247
         })
1248 1248
      },
@@ -1944,7 +1944,7 @@ export default {
1944 1944
       sums[22]="总人数:"+ sums[22] +"\n"+result
1945 1945
 
1946 1946
       return sums;
1947
-      
1947
+
1948 1948
     },
1949 1949
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1950 1950
 
@@ -2020,7 +2020,7 @@ export default {
2020 2020
           this.schedulesGroup = schedulesGroup
2021 2021
 
2022 2022
           var that = this;
2023
-          
2023
+
2024 2024
           this.scheduleZone.forEach(function (zone, index) {
2025 2025
 
2026 2026
             that.scheduleZone[index].Mon_M = {
@@ -2216,7 +2216,7 @@ export default {
2216 2216
 
2217 2217
 
2218 2218
             that.scheduleZone[index].total = 0;
2219
-            
2219
+
2220 2220
             if (response.data.data.schdules.length > 0) {
2221 2221
               theSchedules.forEach(function (schedule, sindex) {
2222 2222
 
@@ -2251,7 +2251,7 @@ export default {
2251 2251
           });
2252 2252
 
2253 2253
           this.source_scheduleZone = this.scheduleZone
2254
-         
2254
+
2255 2255
         } else {
2256 2256
           this.$message.error("网络错误");
2257 2257
           return false;
@@ -2326,62 +2326,63 @@ export default {
2326 2326
               type: "success",
2327 2327
               message: "修改成功!"
2328 2328
             });
2329
-            var that = this;
2330
-            var schedule = response.data.data.schedule;
2331
-            this.scheduleZone.forEach(function (zone, index) {
2332
-              if (
2333
-                zone.zone_id == schedule.partition_id &&
2334
-                zone.jihao_id == schedule.bed_id
2335
-              ) {
2336
-                var weekPath = that.weekPath(
2337
-                  schedule.schedule_week,
2338
-                  schedule.schedule_type
2339
-                );
2340
-                if (weekPath.length == 2) {
2341
-                  var weekPathKey = weekPath[0] + "_" + weekPath[1];
2342
-                  that.scheduleZone[index][weekPathKey] = {
2343
-                    schedule_id: schedule.id,
2344
-                    mode_id: schedule.mode_id,
2345
-                    patient_id: schedule.patient_id,
2346
-                    patient: that.currentData.patient,
2347
-
2348
-
2349
-                    dialysis_machine_name: schedule.dialysis_machine_name,
2350
-
2351
-                    patient_contagions: that.currentData.contagions,
2352
-                    mode_name:
2353
-                      typeof that.modeOptions[schedule.mode_id] === "undefined"
2354
-                        ? ""
2355
-                        : that.modeOptions[schedule.mode_id].name
2356
-                  };
2357
-
2358
-                  that.scheduleZone[index].total += 1;
2359
-                }
2360
-              }
2361
-              if (
2362
-                zone.zone_id == that.currentData.partition_id &&
2363
-                zone.jihao_id == that.currentData.bed_id
2364
-              ) {
2365
-                var weekPath = that.weekPath(
2366
-                  that.currentData.schedule_week,
2367
-                  that.currentData.schedule_type
2368
-                );
2369
-                if (weekPath.length == 2) {
2370
-                  var weekPathKey = weekPath[0] + "_" + weekPath[1];
2371
-                  that.scheduleZone[index][weekPathKey] = {
2372
-                    schedule_id: 0,
2373
-                    mode_id: 0,
2374
-                    patient_id: 0,
2375
-                    patient: "",
2376
-                    mode_name: "",
2377
-                    dialysis_machine_name: "",
2378
-                    patient_contagions: []
2379
-                  };
2380
-
2381
-                  that.scheduleZone[index].total -= 1;
2382
-                }
2383
-              }
2384
-            });
2329
+            // var that = this;
2330
+            this.getSchedules()
2331
+            // var schedule = response.data.data.schedule;
2332
+            // this.scheduleZone.forEach(function (zone, index) {
2333
+            //   if (
2334
+            //     zone.zone_id == schedule.partition_id &&
2335
+            //     zone.jihao_id == schedule.bed_id
2336
+            //   ) {
2337
+            //     var weekPath = that.weekPath(
2338
+            //       schedule.schedule_week,
2339
+            //       schedule.schedule_type
2340
+            //     );
2341
+            //     if (weekPath.length == 2) {
2342
+            //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
2343
+            //       that.scheduleZone[index][weekPathKey] = {
2344
+            //         schedule_id: schedule.id,
2345
+            //         mode_id: schedule.mode_id,
2346
+            //         patient_id: schedule.patient_id,
2347
+            //         patient: that.currentData.patient,
2348
+            //
2349
+            //
2350
+            //         dialysis_machine_name: schedule.dialysis_machine_name,
2351
+            //
2352
+            //         patient_contagions: that.currentData.contagions,
2353
+            //         mode_name:
2354
+            //           typeof that.modeOptions[schedule.mode_id] === "undefined"
2355
+            //             ? ""
2356
+            //             : that.modeOptions[schedule.mode_id].name
2357
+            //       };
2358
+            //
2359
+            //       that.scheduleZone[index].total += 1;
2360
+            //     }
2361
+            //   }
2362
+            //   if (
2363
+            //     zone.zone_id == that.currentData.partition_id &&
2364
+            //     zone.jihao_id == that.currentData.bed_id
2365
+            //   ) {
2366
+            //     var weekPath = that.weekPath(
2367
+            //       that.currentData.schedule_week,
2368
+            //       that.currentData.schedule_type
2369
+            //     );
2370
+            //     if (weekPath.length == 2) {
2371
+            //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
2372
+            //       that.scheduleZone[index][weekPathKey] = {
2373
+            //         schedule_id: 0,
2374
+            //         mode_id: 0,
2375
+            //         patient_id: 0,
2376
+            //         patient: "",
2377
+            //         mode_name: "",
2378
+            //         dialysis_machine_name: "",
2379
+            //         patient_contagions: []
2380
+            //       };
2381
+            //
2382
+            //       that.scheduleZone[index].total -= 1;
2383
+            //     }
2384
+            //   }
2385
+            // });
2385 2386
             this.$refs[formName].resetFields();
2386 2387
             this.jhDialogVisible = false;
2387 2388
           }
@@ -2509,7 +2510,6 @@ export default {
2509 2510
             return false;
2510 2511
           }
2511 2512
 
2512
-          this.changeSchedule.bed_id = this.device_id;
2513 2513
           for (let i = 0; i < this.origin_device_numbers.length; i++) {
2514 2514
             if (this.origin_device_numbers[i].id == this.device_id) {
2515 2515
               this.changeSchedule.partition_id = this.origin_device_numbers[
@@ -2517,7 +2517,6 @@ export default {
2517 2517
               ].zone_id;
2518 2518
             }
2519 2519
           }
2520
-          this.changeSchedule.partition_id = this.zone_name
2521 2520
           this.changeSchedule.change_action = "change_device";
2522 2521
           this.changeScheduleActon(formName);
2523 2522
 
@@ -3254,7 +3253,7 @@ export default {
3254 3253
       })();
3255 3254
     };
3256 3255
   },
3257
-  
3256
+
3258 3257
 };
3259 3258
 </script>
3260 3259