|
@@ -59,7 +59,7 @@
|
59
|
59
|
<el-button size="small" @click="exportList" type="primary">导出</el-button>
|
60
|
60
|
<el-button size="small" @click="toPrint" icon="el-icon-printer" type="primary">打印</el-button>
|
61
|
61
|
<el-button size="small" type="primary" @click="statistics">统计表</el-button>
|
62
|
|
- <!-- <el-button size="small" type="primary" @click="statisticsOne">导出2</el-button> -->
|
|
62
|
+
|
63
|
63
|
</div>
|
64
|
64
|
</div>
|
65
|
65
|
|
|
@@ -120,6 +120,11 @@
|
120
|
120
|
<span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
|
121
|
121
|
<span v-if="scope.row.mode_id == 31">HPD</span>
|
122
|
122
|
<span v-if="scope.row.mode_id == 32">HDP</span>
|
|
123
|
+ <span v-if="scope.row.mode_id == 33">HFD</span>
|
|
124
|
+ <span v-if="scope.row.mode_id == 34">HDF100</span>
|
|
125
|
+ <span v-if="scope.row.mode_id == 35">HDF600</span>
|
|
126
|
+ <span v-if="scope.row.mode_id == 36">HDF800</span>
|
|
127
|
+ <span v-if="scope.row.mode_id == 37">HDF1000</span>
|
123
|
128
|
</template>
|
124
|
129
|
</el-table-column>
|
125
|
130
|
<el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
|
|
@@ -238,6 +243,17 @@
|
238
|
243
|
</template>
|
239
|
244
|
</el-table-column>
|
240
|
245
|
|
|
246
|
+ <el-table-column align="center" label="封管液" v-if="dialysisSett.blood_access==1">
|
|
247
|
+ <template slot-scope="scope">
|
|
248
|
+ <span v-if="getBloodAccessOption(scope.row.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
|
|
249
|
+ </template>
|
|
250
|
+ </el-table-column>
|
|
251
|
+
|
|
252
|
+ <el-table-column align="center" label="促红">
|
|
253
|
+ <template slot-scope="scope">
|
|
254
|
+ {{ scope.row.advice_spc }}
|
|
255
|
+ </template>
|
|
256
|
+ </el-table-column>
|
241
|
257
|
<el-table-column align="center" label="封管液" v-if="dialysisSett.sealing_fluid_dispose == 1">
|
242
|
258
|
<template slot-scope="scope">
|
243
|
259
|
<span>{{scope.row.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span>
|
|
@@ -617,8 +633,6 @@
|
617
|
633
|
|
618
|
634
|
var str = ""
|
619
|
635
|
if(this.partition_id==0){
|
620
|
|
- console.log("进阿里232332")
|
621
|
|
- console.log("wowoowowow",this.zoneList.join(","))
|
622
|
636
|
str = this.zoneList.join(",")
|
623
|
637
|
}
|
624
|
638
|
|
|
@@ -640,6 +654,17 @@
|
640
|
654
|
|
641
|
655
|
}
|
642
|
656
|
list.sort(this.compare('sort'))
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+ for(let i=0;i<list.length;i++){
|
|
660
|
+ list[i].advice_spc =""
|
|
661
|
+ for(let j=0;j<list[i].advice.length;j++){
|
|
662
|
+ if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
|
|
663
|
+ list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
|
|
664
|
+ }
|
|
665
|
+ }
|
|
666
|
+ }
|
|
667
|
+ console.log("listwowowowowowo日本",this.list)
|
643
|
668
|
this.list = list
|
644
|
669
|
this.total = response.data.data.total
|
645
|
670
|
this.dialysisSett = response.data.data.dialysisSett
|
|
@@ -922,37 +947,7 @@
|
922
|
947
|
})
|
923
|
948
|
},
|
924
|
949
|
|
925
|
|
- statisticsOne(){
|
926
|
|
- console.log("this.list233333333333333333333",this.list)
|
927
|
|
- import('@/vendor/Export2Excel').then(excel => {
|
928
|
|
- if(this.list!=null && this.list.length > 0){
|
929
|
|
- for(let i=0;i<this.list.length;i++){
|
930
|
|
- this.tableList[i].index = i+1
|
931
|
|
- this.tableList[i].name = this.tableList[i].patient.name
|
932
|
|
- this.tableList[i].mode_name = this.getModeName(this.tableList[i].mode_id)
|
933
|
|
- this.tableList[i].anticoagulant_name = this.getAnticoagulantName(this.tableList[i].anticoagulant)
|
934
|
|
- this.tableList[i].anticoagulant_shouji = this.tableList[i].dialysis_prescription.anticoagulant_shouji
|
935
|
|
- this.tableList[i].anticoagulant_weichi = this.tableList[i].dialysis_prescription.anticoagulant_weichi
|
936
|
|
- this.tableList[i].anticoagulant_zongliang = this.tableList[i].dialysis_prescription.anticoagulant_zongliang
|
937
|
|
-
|
938
|
|
- if(this.tableList[i].assessment_befor_dislysis){
|
939
|
|
-
|
940
|
|
- }
|
941
|
|
-
|
942
|
|
- }
|
943
|
|
- }
|
944
|
|
- const tHeader = ['序号','姓名','透析方式','抗凝剂','首剂','维持','总量','封管液','促红']
|
945
|
|
- const filterVal = ['index', 'name','mode_name','anticoagulant_name','anticoagulant_shouji','anticoagulant_weichi','anticoagulant_zongliang']
|
946
|
|
-
|
947
|
|
- const data = this.formatJson(filterVal, this.tableList)
|
948
|
|
- excel.export_json_to_excel({
|
949
|
|
- header: tHeader,
|
950
|
|
- data,
|
951
|
|
- filename: '透析参数统计'
|
952
|
|
- })
|
953
|
|
- this.downloadLoading = false
|
954
|
|
- })
|
955
|
|
- },
|
|
950
|
+
|
956
|
951
|
getModeName(id){
|
957
|
952
|
var mode_name =""
|
958
|
953
|
if(id == 1){
|
|
@@ -1051,9 +1046,10 @@
|
1051
|
1046
|
import('@/vendor/Export2Excel').then(excel => {
|
1052
|
1047
|
|
1053
|
1048
|
if(this.list!=null && this.list.length > 0){
|
1054
|
|
- // console.log("hhhahhah",this.list)
|
|
1049
|
+ console.log("hhhahhah",this.list)
|
1055
|
1050
|
for(let i=0;i<this.list.length;i++){
|
1056
|
1051
|
this.list[i].index = i+1
|
|
1052
|
+ this.list[i].mode_name = this.getModeName(this.list[i].mode_id)
|
1057
|
1053
|
this.list[i].device_number_one = this.list[i].device_number.zone.name + this.list[i].device_number.number
|
1058
|
1054
|
this.list[i].patient_name = this.list[i].patient.name
|
1059
|
1055
|
this.list[i].dialysis_no = this.list[i].patient.dialysis_no
|
|
@@ -1066,10 +1062,10 @@
|
1066
|
1062
|
}
|
1067
|
1063
|
this.list[i].ultrafiltration_volume = this.list[i].dialysis_solution.target_ultrafiltration?this.list[i].dialysis_solution.target_ultrafiltration:""
|
1068
|
1064
|
|
1069
|
|
- this.list[i].anticoagulant_one = this.getAnticoagualnt(this.list[i].dialysis_solution.anticoagulant) + "(" + this.list[i].dialysis_solution.anticoagulant_shouji?this.list[i].dialysis_solution.anticoagulant_shouji:"" +")" + "("+this.list[i].dialysis_solution.anticoagulant_weichi?this.list[i].dialysis_solution.anticoagulant_weichi:"" +")"+ +"("+this.list[i].dialysis_solution.anticoagulant_zongliang?this.list[i].dialysis_solution.anticoagulant_zongliang:""+")"
|
1070
|
|
- if(this.list[i].anticoagulant_one == 0){
|
1071
|
|
- this.list[i].anticoagulant_one = ""
|
1072
|
|
- }
|
|
1065
|
+
|
|
1066
|
+ this.list[i].anticoagulant_one=""
|
|
1067
|
+ this.list[i].anticoagulant_one = (this.getAnticoagualnt(this.list[i].dialysis_solution.anticoagulant)) + "(" + (this.list[i].dialysis_solution.anticoagulant_shouji) +")" + "("+(this.list[i].dialysis_solution.anticoagulant_weichi) +")"+"("+(this.list[i].dialysis_solution.anticoagulant_zongliang)+")"
|
|
1068
|
+
|
1073
|
1069
|
this.list[i].dialysis_time = this.list[i].dialysis_solution.dialysis_duration_hour?this.list[i].dialysis_solution.dialysis_duration_hour:"" + "时"+ this.list[i].dialysis_solution.dialysis_duration_minute?this.list[i].dialysis_solution.dialysis_duration_minute:"" + "分"
|
1074
|
1070
|
if(this.list[i].dialysis_time == 0){
|
1075
|
1071
|
this.list[i].dialysis_time = ""
|
|
@@ -1088,6 +1084,10 @@
|
1088
|
1084
|
this.list[i].glucose = this.list[i].dialysis_solution.glucose?this.list[i].dialysis_solution.glucose:""
|
1089
|
1085
|
this.list[i].blood_flow_volume = this.list[i].dialysis_solution.blood_flow_volume?this.list[i].dialysis_solution.blood_flow_volume:""
|
1090
|
1086
|
this.list[i].bicarbonate = this.list[i].dialysis_solution.bicarbonate? this.list[i].dialysis_solution.bicarbonate:""
|
|
1087
|
+ this.list[i].count =0
|
|
1088
|
+ if(this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access).indexOf("导管")!=-1){
|
|
1089
|
+ this.list[i].count =1
|
|
1090
|
+ }
|
1091
|
1091
|
}
|
1092
|
1092
|
}
|
1093
|
1093
|
|
|
@@ -1105,6 +1105,8 @@
|
1105
|
1105
|
arr.push("姓名")
|
1106
|
1106
|
arrTwo.push("patient_name")
|
1107
|
1107
|
}
|
|
1108
|
+ arr.push("透析模式")
|
|
1109
|
+ arrTwo.push("mode_name")
|
1108
|
1110
|
if(this.dialysisSett.dialysis_no == 1){
|
1109
|
1111
|
arr.push("透析号")
|
1110
|
1112
|
arrTwo.push("dialysis_no")
|
|
@@ -1196,10 +1198,18 @@
|
1196
|
1198
|
arrTwo.push("blood_flow_volume")
|
1197
|
1199
|
}
|
1198
|
1200
|
|
|
1201
|
+ arr.push("封管液")
|
|
1202
|
+ arrTwo.push("count")
|
|
1203
|
+
|
|
1204
|
+ arr.push("促红")
|
|
1205
|
+ arrTwo.push("advice_spc")
|
1199
|
1206
|
|
1200
|
1207
|
const tHeader = arr
|
1201
|
1208
|
const filterVal = arrTwo
|
|
1209
|
+
|
1202
|
1210
|
const data = this.formatJson(filterVal, this.list)
|
|
1211
|
+ console.log("DATWOWOWOWO",data)
|
|
1212
|
+
|
1203
|
1213
|
excel.export_json_to_excel({
|
1204
|
1214
|
header: tHeader,
|
1205
|
1215
|
data,
|