|
@@ -63,58 +63,60 @@
|
63
|
63
|
</el-table-column>
|
64
|
64
|
<el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
|
65
|
65
|
<template slot-scope="scope">
|
66
|
|
- {{getCount(scope.row.patient.id,item.good_id)}}
|
|
66
|
+ {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}}
|
67
|
67
|
</template>
|
68
|
68
|
</el-table-column>
|
69
|
69
|
<el-table-column align="center" prop="address" label="抗凝剂(首剂)(维持)(总量)">
|
70
|
|
- <template slot-scope="scope">
|
71
|
|
- <span v-if="scope.row.prescription.anticoagulant == 0"></span>
|
72
|
|
- <span v-if="scope.row.prescription.anticoagulant == 1">无肝素</span>
|
73
|
|
- <span v-if="scope.row.prescription.anticoagulant == 2">普通肝素</span>
|
74
|
|
- <span v-if="scope.row.prescription.anticoagulant == 3">低分子肝素</span>
|
75
|
|
- <span v-if="scope.row.prescription.anticoagulant == 4">阿加曲班</span>
|
76
|
|
- <span v-if="scope.row.prescription.anticoagulant == 5">枸橼酸钠</span>
|
77
|
|
- <span v-if="scope.row.prescription.anticoagulant == 6">低分子肝素钙</span>
|
78
|
|
- <span v-if="scope.row.prescription.anticoagulant == 7">低分子肝素钠</span>
|
79
|
|
- <span v-if="scope.row.prescription.anticoagulant == 8">依诺肝素</span>
|
80
|
|
- <span v-if="scope.row.prescription.anticoagulant == 9">达肝素</span>
|
81
|
|
- <span v-if="scope.row.prescription.anticoagulant == 10">体外抗凝</span>
|
|
70
|
+ <template slot-scope="scope">
|
|
71
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 0"></span>
|
|
72
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 1">无肝素</span>
|
|
73
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 2">普通肝素</span>
|
|
74
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 3">低分子肝素</span>
|
|
75
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 4">阿加曲班</span>
|
|
76
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 5">枸橼酸钠</span>
|
|
77
|
+ <span v-if="getAnticoagulant(scope.row.patient_id)== 6">低分子肝素钙</span>
|
|
78
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 7">低分子肝素钠</span>
|
|
79
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 8">依诺肝素</span>
|
|
80
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 9">达肝素</span>
|
|
81
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 10">体外抗凝</span>
|
82
|
82
|
<span>
|
83
|
|
- {{scope.row.prescription.anticoagulant_shouji?scope.row.prescription.anticoagulant_shouji:""}}
|
84
|
|
- <span v-if="scope.row.prescription.anticoagulant == 1 && scope.row.prescription.anticoagulant_shouji !=''">mg</span>
|
85
|
|
- <span v-if="scope.row.prescription.anticoagulant == 2 && scope.row.prescription.anticoagulant_shouji !=''">iu/h</span>
|
86
|
|
- <span v-if="scope.row.prescription.anticoagulant == 3 && scope.row.prescription.anticoagulant_shouji !=''">iu</span>
|
87
|
|
- <span v-if="scope.row.prescription.anticoagulant == 4 && scope.row.prescription.anticoagulant_shouji !=''">mg</span>
|
88
|
|
- <span v-if="scope.row.prescription.anticoagulant == 5 && scope.row.prescription.anticoagulant_shouji !=''">mg</span>
|
89
|
|
- <span v-if="scope.row.prescription.anticoagulant == 6 && scope.row.prescription.anticoagulant_shouji !=''">iu</span>
|
90
|
|
- <span v-if="scope.row.prescription.anticoagulant == 7 && scope.row.prescription.anticoagulant_shouji !=''">iu</span>
|
91
|
|
- <span v-if="scope.row.prescription.anticoagulant == 8 && scope.row.prescription.anticoagulant_shouji !=''">iu</span>
|
92
|
|
- <span v-if="scope.row.prescription.anticoagulant == 9 && scope.row.prescription.anticoagulant_shouji !=''">iu</span>
|
93
|
|
- <span v-if="scope.row.prescription.anticoagulant == 10 && scope.row.prescription.anticoagulant_shouji !=''">mg</span>
|
|
83
|
+ {{getAnticoagulantShouji(scope.row.patient_id)?getAnticoagulantShouji(scope.row.patient_id):''}}
|
|
84
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) ==1 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
|
|
85
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu/h</span>
|
|
86
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
|
|
87
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
|
|
88
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
|
|
89
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
|
|
90
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
|
|
91
|
+ <span v-if="getAnticoagulant(scope.row.patient_id)== 8 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
|
|
92
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
|
|
93
|
+ <span v-if="getAnticoagulant(scope.row.patient_id)== 10 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
|
94
|
94
|
</span>
|
95
|
|
- <span>{{scope.row.prescription.anticoagulant_weichi?scope.row.prescription.anticoagulant_weichi:""}}
|
96
|
|
- <span v-if="scope.row.prescription.anticoagulant == 1 && scope.row.prescription.anticoagulant_weichi!=''">mg/h</span>
|
97
|
|
- <span v-if="scope.row.prescription.anticoagulant == 2 && scope.row.prescription.anticoagulant_weichi!=''">iu/h</span>
|
98
|
|
- <span v-if="scope.row.prescription.anticoagulant == 3 && scope.row.prescription.anticoagulant_weichi!=''">iu/h</span>
|
99
|
|
- <span v-if="scope.row.prescription.anticoagulant == 4 && scope.row.prescription.anticoagulant_weichi!=''">mg/h</span>
|
100
|
|
- <span v-if="scope.row.prescription.anticoagulant == 5 && scope.row.prescription.anticoagulant_weichi!=''">ml/h</span>
|
101
|
|
- <span v-if="scope.row.prescription.anticoagulant == 6 && scope.row.prescription.anticoagulant_weichi!=''">iu/h</span>
|
102
|
|
- <span v-if="scope.row.prescription.anticoagulant == 7 && scope.row.prescription.anticoagulant_weichi!=''">iu/h</span>
|
103
|
|
- <span v-if="scope.row.prescription.anticoagulant == 8 && scope.row.prescription.anticoagulant_weichi!=''">iu/h</span>
|
104
|
|
- <span v-if="scope.row.prescription.anticoagulant == 9 && scope.row.prescription.anticoagulant_weichi!=''">iu/h</span>
|
105
|
|
- <span v-if="scope.row.prescription.anticoagulant == 10 && scope.row.prescription.anticoagulant_weichi!=''">mg</span>
|
|
95
|
+ <span>
|
|
96
|
+ {{getAnticoagulantWeichi(scope.row.patient_id)?getAnticoagulantWeichi(scope.row.patient_id):''}}
|
|
97
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h</span>
|
|
98
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
|
|
99
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
|
|
100
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h</span>
|
|
101
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantWeichi(scope.row.patient_id)!=''">ml/h</span>
|
|
102
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
|
|
103
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
|
|
104
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
|
|
105
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
|
|
106
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg</span>
|
106
|
107
|
</span>
|
107
|
|
- <span>{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang:""}}
|
108
|
|
- <span v-if="scope.row.prescription.anticoagulant == 1 && scope.row.prescription.anticoagulant_zongliang!=''">mg</span>
|
109
|
|
- <span v-if="scope.row.prescription.anticoagulant == 2 && scope.row.prescription.anticoagulant_zongliang!=''">iu</span>
|
110
|
|
- <span v-if="scope.row.prescription.anticoagulant == 3 && scope.row.prescription.anticoagulant_zongliang!=''">iu</span>
|
111
|
|
- <span v-if="scope.row.prescription.anticoagulant == 4 && scope.row.prescription.anticoagulant_zongliang!=''">mg</span>
|
112
|
|
- <span v-if="scope.row.prescription.anticoagulant == 5 && scope.row.prescription.anticoagulant_zongliang!=''">mg</span>
|
113
|
|
- <span v-if="scope.row.prescription.anticoagulant == 6 && scope.row.prescription.anticoagulant_zongliang!=''">iu/h</span>
|
114
|
|
- <span v-if="scope.row.prescription.anticoagulant == 7 && scope.row.prescription.anticoagulant_zongliang!=''">iu</span>
|
115
|
|
- <span v-if="scope.row.prescription.anticoagulant == 8 && scope.row.prescription.anticoagulant_zongliang!=''">iu</span>
|
116
|
|
- <span v-if="scope.row.prescription.anticoagulant == 9 && scope.row.prescription.anticoagulant_zongliang!=''">iu/h</span>
|
117
|
|
- <span v-if="scope.row.prescription.anticoagulant == 10 && scope.row.prescription.anticoagulant_zongliang!=''">mg</span>
|
|
108
|
+ <span>
|
|
109
|
+ {{getAnticoagulantZongliang(scope.row.patient_id)?getAnticoagulantZongliang(scope.row.patient_id):''}}
|
|
110
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
|
|
111
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
|
|
112
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
|
|
113
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
|
|
114
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
|
|
115
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h</span>
|
|
116
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
|
|
117
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
|
|
118
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h</span>
|
|
119
|
+ <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
|
118
|
120
|
</span>
|
119
|
121
|
</template>
|
120
|
122
|
</el-table-column>
|
|
@@ -142,6 +144,7 @@ import { GetAllZone } from "@/api/dialysis";
|
142
|
144
|
import allSummaryDialog from './allSummaryDialog'
|
143
|
145
|
import { getAllMaterial,getCollectList } from "@/api/consumable"
|
144
|
146
|
import { parseTime } from "@/utils";
|
|
147
|
+const moment = require('moment')
|
145
|
148
|
export default {
|
146
|
149
|
components:{
|
147
|
150
|
allSummaryDialog
|
|
@@ -167,7 +170,8 @@ export default {
|
167
|
170
|
consuMables:[],
|
168
|
171
|
total:0,
|
169
|
172
|
selecting_schs: [],
|
170
|
|
- prescriptionList:[]
|
|
173
|
+ prescriptionList:[],
|
|
174
|
+ reduceList:[]
|
171
|
175
|
}
|
172
|
176
|
},
|
173
|
177
|
created(){
|
|
@@ -205,6 +209,7 @@ export default {
|
205
|
209
|
var startime = parseTime(this.selected_date,'{y}-{m}-{d}')
|
206
|
210
|
this.start_time = startime
|
207
|
211
|
this.getlist()
|
|
212
|
+ this.getAllMaterial()
|
208
|
213
|
},
|
209
|
214
|
search(){
|
210
|
215
|
if(this.selected_date==""){
|
|
@@ -224,14 +229,15 @@ export default {
|
224
|
229
|
getCollectList(params).then(response=>{
|
225
|
230
|
if(response.data.state == 1){
|
226
|
231
|
var schedule = response.data.data.schedule
|
227
|
|
- console.log("打印schedule",schedule)
|
228
|
232
|
this.tableData = schedule
|
229
|
233
|
var total = response.data.data.total
|
230
|
|
- console.log("total",total)
|
231
|
234
|
this.total = total
|
232
|
235
|
var consumables = response.data.data.consumables
|
233
|
|
- console.log("consumables",consumables)
|
234
|
236
|
this.consuMables = consumables
|
|
237
|
+ var prescription = response.data.data.prescription
|
|
238
|
+ this.prescriptionList = prescription
|
|
239
|
+ var reducelist = response.data.data.reducelist
|
|
240
|
+ this.reduceList = reducelist
|
235
|
241
|
}
|
236
|
242
|
})
|
237
|
243
|
},
|
|
@@ -248,7 +254,6 @@ export default {
|
248
|
254
|
getAllMaterial(params).then(response=>{
|
249
|
255
|
if(response.data.state == 1){
|
250
|
256
|
var material = response.data.data.material
|
251
|
|
- console.log("material",material)
|
252
|
257
|
this.tableName = material
|
253
|
258
|
}
|
254
|
259
|
})
|
|
@@ -278,25 +283,24 @@ export default {
|
278
|
283
|
}
|
279
|
284
|
getCollectList(params).then(response=>{
|
280
|
285
|
if(response.data.state == 1){
|
281
|
|
- var schedule = response.data.data.schedule
|
282
|
|
- console.log("打印schedule",schedule)
|
|
286
|
+ var schedule = response.data.data.schedule
|
283
|
287
|
this.tableData = schedule
|
284
|
|
- var total = response.data.data.total
|
285
|
|
- console.log("total",total)
|
|
288
|
+ var total = response.data.data.total
|
286
|
289
|
this.total = total
|
287
|
|
- var consumables = response.data.data.consumables
|
288
|
|
- console.log("consumables",consumables)
|
|
290
|
+ var consumables = response.data.data.consumables
|
289
|
291
|
this.consuMables = consumables
|
290
|
|
- var prescription = response.data.data.prescription
|
|
292
|
+ var prescription = response.data.data.prescription
|
291
|
293
|
this.prescriptionList = prescription
|
|
294
|
+ var reducelist = response.data.data.reducelist
|
|
295
|
+ this.reduceList = reducelist
|
292
|
296
|
}
|
293
|
297
|
})
|
294
|
298
|
},
|
295
|
299
|
getCount(patientid,goodid){
|
296
|
300
|
var count = 0
|
297
|
|
- for(let i=0;i<this.consuMables.length;i++){
|
298
|
|
- if(patientid == this.consuMables[i].patient_id && goodid == this.consuMables[i].good_id){
|
299
|
|
- count = this.consuMables[i].count
|
|
301
|
+ for(let i=0;i<this.reduceList.length;i++){
|
|
302
|
+ if(patientid == this.reduceList[i].patient_id && goodid == this.reduceList[i].good_id){
|
|
303
|
+ count = this.reduceList[i].count
|
300
|
304
|
}
|
301
|
305
|
}
|
302
|
306
|
return count
|
|
@@ -314,9 +318,44 @@ export default {
|
314
|
318
|
sch_ids.push(this.selecting_schs[index].id);
|
315
|
319
|
}
|
316
|
320
|
this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
|
317
|
|
- this.$router.push("/dialysis/allSummary_print")
|
|
321
|
+ this.$router.push("/dialysis/allSummary_print?start="+this.start_time)
|
318
|
322
|
},
|
319
|
|
-
|
|
323
|
+ getAnticoagulant(id){
|
|
324
|
+ var anticoagulant = ""
|
|
325
|
+ for(let i=0;i<this.prescriptionList.length;i++){
|
|
326
|
+ if(this.prescriptionList[i].patient_id == id){
|
|
327
|
+ anticoagulant = this.prescriptionList[i].anticoagulant
|
|
328
|
+ }
|
|
329
|
+ }
|
|
330
|
+ return anticoagulant
|
|
331
|
+ },
|
|
332
|
+ getAnticoagulantShouji(id){
|
|
333
|
+ var shouji = ""
|
|
334
|
+ for(let i=0;i<this.prescriptionList.length;i++){
|
|
335
|
+ if(this.prescriptionList[i].patient_id == id){
|
|
336
|
+ shouji = this.prescriptionList[i].anticoagulant_shouji
|
|
337
|
+ }
|
|
338
|
+ }
|
|
339
|
+ return shouji
|
|
340
|
+ },
|
|
341
|
+ getAnticoagulantWeichi(id){
|
|
342
|
+ var weichi = ""
|
|
343
|
+ for(let i=0;i<this.prescriptionList.length;i++){
|
|
344
|
+ if(this.prescriptionList[i].patient_id == id){
|
|
345
|
+ weichi = this.prescriptionList[i].anticoagulant_weichi
|
|
346
|
+ }
|
|
347
|
+ return weichi
|
|
348
|
+ }
|
|
349
|
+ },
|
|
350
|
+ getAnticoagulantZongliang(id){
|
|
351
|
+ var zongliang = ""
|
|
352
|
+ for(let i=0;i<this.prescriptionList.length;i++){
|
|
353
|
+ if(this.prescriptionList[i].patient_id == id){
|
|
354
|
+ zongliang = this.prescriptionList[i].anticoagulant_zongliang
|
|
355
|
+ }
|
|
356
|
+ }
|
|
357
|
+ return zongliang
|
|
358
|
+ }
|
320
|
359
|
}
|
321
|
360
|
}
|
322
|
361
|
</script>
|