|
@@ -7,6 +7,8 @@
|
7
|
7
|
></patient-sidebar>
|
8
|
8
|
<div class="patient-app-container app-container">
|
9
|
9
|
<div style="clearfix">
|
|
10
|
+
|
|
11
|
+
|
10
|
12
|
<el-button
|
11
|
13
|
style="float:right;"
|
12
|
14
|
size="small"
|
|
@@ -15,6 +17,15 @@
|
15
|
17
|
icon="el-icon-printer"
|
16
|
18
|
>打印</el-button
|
17
|
19
|
>
|
|
20
|
+ <span> </span>
|
|
21
|
+ <el-button
|
|
22
|
+ style="float:right;margin-right:20px"
|
|
23
|
+ size="small"
|
|
24
|
+ @click="exportList"
|
|
25
|
+ type="primary"
|
|
26
|
+ >导出</el-button
|
|
27
|
+ >
|
|
28
|
+
|
18
|
29
|
<el-form ref="form" :model="queryParams" label-width="80px">
|
19
|
30
|
<!-- <el-form-item label="患者时间 : " >
|
20
|
31
|
<el-select v-model="form.date" >
|
|
@@ -332,7 +343,7 @@
|
332
|
343
|
<th>透前血压(mmhg)</th>
|
333
|
344
|
<th>透后血压(mmhg)</th>
|
334
|
345
|
<th>目标超滤量(L)</th>
|
335
|
|
- <th>血管通路</th>
|
|
346
|
+ <!-- <th>血管通路</th> -->
|
336
|
347
|
<th>抗凝剂种类 首剂/维持/总量</th>
|
337
|
348
|
<th>透析器型号</th>
|
338
|
349
|
<th>治疗护士</th>
|
|
@@ -363,7 +374,7 @@
|
363
|
374
|
<td>
|
364
|
375
|
{{ item.prescription.target_ultrafiltration }}
|
365
|
376
|
</td>
|
366
|
|
- <td>{{ setVascularAccess(item.prescription) }}</td>
|
|
377
|
+ <!-- <td>{{ setVascularAccess(item.prescription) }}</td> -->
|
367
|
378
|
<td>{{ setAnticoagulantsConfit(item.prescription) }}</td>
|
368
|
379
|
<td>{{ item.prescription.dialyzer_perfusion_apparatus }}</td>
|
369
|
380
|
<td>{{ getNurseName(item.start_nurse) }}</td>
|
|
@@ -422,7 +433,7 @@ export default {
|
422
|
433
|
},
|
423
|
434
|
methods: {
|
424
|
435
|
getTime(record){
|
425
|
|
- console.log("recode2332232332232332",record)
|
|
436
|
+
|
426
|
437
|
if(record != null&&record.id > 0) {
|
427
|
438
|
let actual_treatment_hour = 0
|
428
|
439
|
let actual_treatment_minute = 0
|
|
@@ -431,6 +442,16 @@ export default {
|
431
|
442
|
return (actual_treatment_hour + actual_treatment_minute).toFixed(2)
|
432
|
443
|
}
|
433
|
444
|
},
|
|
445
|
+ getTimeOne(val){
|
|
446
|
+ if(val < 0){
|
|
447
|
+ return ""
|
|
448
|
+ }
|
|
449
|
+ if(val == ""){
|
|
450
|
+ return ""
|
|
451
|
+ }else {
|
|
452
|
+ return uParseTime(val, '{y}-{m}-{d}')
|
|
453
|
+ }
|
|
454
|
+ },
|
434
|
455
|
changeSearch() {
|
435
|
456
|
this.getPatientDialysisRecords();
|
436
|
457
|
},
|
|
@@ -616,7 +637,49 @@ export default {
|
616
|
637
|
path: "/dialysis/details",
|
617
|
638
|
query: { patient_id: val.patient_id, date: val.dialysis_date }
|
618
|
639
|
});
|
619
|
|
- }
|
|
640
|
+ },
|
|
641
|
+ exportList(){
|
|
642
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
643
|
+ console.log("导出世界",this.recordData)
|
|
644
|
+ if(this.recordData!=null && this.recordData.length > 0){
|
|
645
|
+ for(let i=0;i<this.recordData.length;i++){
|
|
646
|
+ this.recordData[i].dialysis_date_one = this.getTimeOne(this.recordData[i].dialysis_date)
|
|
647
|
+ this.recordData[i].bed_class = this.scheduleType(this.recordData[i].schedule_type)
|
|
648
|
+ this.recordData[i].mode_name = this.modeName(this.recordData[i].prescription.mode_id)
|
|
649
|
+ this.recordData[i].vascularAccess_name = this.setVascularAccess(this.recordData[i].prescription)
|
|
650
|
+ this.recordData[i].AnticoagulantsConfit = this.setAnticoagulantsConfit(this.recordData[i].prescription)
|
|
651
|
+ this.recordData[i].nurse_name = this.recordData[i].role.user_name
|
|
652
|
+ this.recordData[i].doc_name = this.recordData[i].prescription.role.user_name
|
|
653
|
+ this.recordData[i].bed_number = this.recordData[i].partition_name + "-" + this.recordData[i].device_number
|
|
654
|
+ this.recordData[i].dialysis_duration = this.recordData[i].prescription.dialysis_duration
|
|
655
|
+ this.recordData[i].dry_weight = this.recordData[i].predialysis_evaluation.dry_weight
|
|
656
|
+ this.recordData[i].weight_before = this.recordData[i].predialysis_evaluation.weight_before
|
|
657
|
+ this.recordData[i].weight_after = this.recordData[i].assessment_after_dislysis.weight_after
|
|
658
|
+ this.recordData[i].befor_pressure = this.recordData[i].predialysis_evaluation.systolic_blood_pressure + "/" + this.recordData[i].predialysis_evaluation.diastolic_blood_pressure
|
|
659
|
+ this.recordData[i].after_pressure = this.recordData[i].assessment_after_dislysis.systolic_blood_pressure +"/"+this.recordData[i].assessment_after_dislysis.diastolic_blood_pressure
|
|
660
|
+ this.recordData[i].target_ultrafiltration = this.recordData[i].prescription.target_ultrafiltration
|
|
661
|
+
|
|
662
|
+ this.recordData[i].dialyzer_perfusion_apparatus = this.recordData[i].prescription.dialyzer_perfusion_apparatus
|
|
663
|
+ if(this.recordData[i].dialyzer_perfusion_apparatus == ""){
|
|
664
|
+ this.recordData[i].dialyzer_perfusion_apparatus = this.recordData[i].prescription.dialysis_dialyszers + "/" + this.recordData[i].prescription.dialysis_irrigation
|
|
665
|
+ }
|
|
666
|
+ }
|
|
667
|
+ }
|
|
668
|
+
|
|
669
|
+ const tHeader = ['透析日期','班次', '分区机号', '透析模式','透析时长','干体重','透前体重','透后体重','透前血压','透后血压','目标超滤量','抗凝剂 首剂/维持/总量','透析器型号','治疗护士','治疗医生']
|
|
670
|
+ const filterVal = ['dialysis_date_one','bed_class', 'bed_number', 'mode_name','dialysis_duration','dry_weight','weight_before','weight_after','befor_pressure','after_pressure','target_ultrafiltration','AnticoagulantsConfit','dialyzer_perfusion_apparatus','nurse_name','doc_name']
|
|
671
|
+
|
|
672
|
+ const data = this.formatJson(filterVal, this.recordData)
|
|
673
|
+ excel.export_json_to_excel({
|
|
674
|
+ header: tHeader,
|
|
675
|
+ data,
|
|
676
|
+ filename: '透析记录'
|
|
677
|
+ })
|
|
678
|
+ })
|
|
679
|
+ },
|
|
680
|
+ formatJson(filterVal, jsonData) {
|
|
681
|
+ return jsonData.map(v => filterVal.map(j => v[j]));
|
|
682
|
+ },
|
620
|
683
|
},
|
621
|
684
|
created() {
|
622
|
685
|
const id = this.$route.params && this.$route.params.id;
|