|
@@ -8,6 +8,12 @@
|
8
|
8
|
{{scope.row.name?scope.row.name:""}}
|
9
|
9
|
</template>
|
10
|
10
|
</el-table-column>
|
|
11
|
+ <el-table-column prop="date" fixed label="床位号" width="80" align="center">
|
|
12
|
+ <template slot-scope="scope">
|
|
13
|
+
|
|
14
|
+ {{scope.row.number?scope.row.number:""}}
|
|
15
|
+ </template>
|
|
16
|
+ </el-table-column>
|
11
|
17
|
<el-table-column prop="name" label="透析模式" width="90" align="center">
|
12
|
18
|
<template slot-scope="scope">
|
13
|
19
|
{{scope.row.mode_id}}
|
|
@@ -228,6 +234,8 @@ export default {
|
228
|
234
|
getMobileDialysisParameters(params).then(response => {
|
229
|
235
|
if (response.data.state == 1) {
|
230
|
236
|
var schedule = response.data.data.schedule
|
|
237
|
+
|
|
238
|
+ console.log("schedule=================",schedule)
|
231
|
239
|
this.loading = false
|
232
|
240
|
// var total = response.data.data.total
|
233
|
241
|
var prescription = response.data.data.prescription
|
|
@@ -237,15 +245,18 @@ export default {
|
237
|
245
|
this.dialysisbefor = dialysbefor
|
238
|
246
|
this.dialysisBefor = dialysbefor
|
239
|
247
|
var patient = response.data.data.patient
|
|
248
|
+ console.log("patient---------------------",patient)
|
240
|
249
|
|
241
|
250
|
if(schedule!=null && schedule.length>0){
|
242
|
251
|
|
243
|
252
|
for(let j=0;j<patient.length;j++){
|
244
|
253
|
patient[j].sort = 0
|
|
254
|
+ patient[j].number= ""
|
245
|
255
|
for(let i=0;i<schedule.length;i++){
|
246
|
256
|
|
247
|
257
|
if(patient[j].patient_id == schedule[i].patient_id){
|
248
|
258
|
patient[j].sort = schedule[i].device_number.sort
|
|
259
|
+ patient[j].number = schedule[i].device_number.number
|
249
|
260
|
}
|
250
|
261
|
}
|
251
|
262
|
}
|
|
@@ -381,11 +392,15 @@ export default {
|
381
|
392
|
if (patient[i].mode_id == 44) {
|
382
|
393
|
patient[i].mode_id = '导管溶栓'
|
383
|
394
|
}
|
|
395
|
+
|
384
|
396
|
}
|
385
|
397
|
this.datalist = []
|
386
|
398
|
this.datalist = patient.sort((a, b) => a.sort - b.sort)
|
|
399
|
+
|
387
|
400
|
this.tableData = []
|
388
|
401
|
this.tableData = patient.sort((a, b) => a.sort - b.sort)
|
|
402
|
+
|
|
403
|
+ console.log("patinet====================",this.tableData)
|
389
|
404
|
this.$nextTick(() => {
|
390
|
405
|
this.$refs.tab.doLayout()
|
391
|
406
|
})
|
|
@@ -609,7 +624,7 @@ export default {
|
609
|
624
|
}
|
610
|
625
|
getMobileDialysisParameters(params).then(response => {
|
611
|
626
|
if (response.data.state == 1) {
|
612
|
|
- // var schedule = response.data.data.schedule
|
|
627
|
+ var schedule = response.data.data.schedule
|
613
|
628
|
this.loading = false
|
614
|
629
|
// var total = response.data.data.total
|
615
|
630
|
var prescription = response.data.data.prescription
|
|
@@ -633,6 +648,22 @@ export default {
|
633
|
648
|
}
|
634
|
649
|
// this.dialysisBefor = dialysbefor
|
635
|
650
|
var patient = response.data.data.patient
|
|
651
|
+
|
|
652
|
+ if(schedule!=null && schedule.length>0){
|
|
653
|
+
|
|
654
|
+ for(let j=0;j<patient.length;j++){
|
|
655
|
+ patient[j].sort = 0
|
|
656
|
+ patient[j].number= ""
|
|
657
|
+ for(let i=0;i<schedule.length;i++){
|
|
658
|
+
|
|
659
|
+ if(patient[j].patient_id == schedule[i].patient_id){
|
|
660
|
+ patient[j].sort = schedule[i].device_number.sort
|
|
661
|
+ patient[j].number = schedule[i].device_number.number
|
|
662
|
+ }
|
|
663
|
+ }
|
|
664
|
+ }
|
|
665
|
+ }
|
|
666
|
+
|
636
|
667
|
if (response.data.data.patient.length <= 0) {
|
637
|
668
|
this.isStop = true
|
638
|
669
|
} else {
|
|
@@ -699,10 +730,73 @@ export default {
|
699
|
730
|
if (patient[i].mode_id == 21) {
|
700
|
731
|
patient[i].mode_id = 'HD+'
|
701
|
732
|
}
|
|
733
|
+ if (patient[i].mode_id == 24) {
|
|
734
|
+ patient[i].mode_id = 'I-HDF'
|
|
735
|
+ }
|
|
736
|
+ if (patient[i].mode_id == 25) {
|
|
737
|
+ patient[i].mode_id = 'HD高通'
|
|
738
|
+ }
|
|
739
|
+ if (patient[i].mode_id == 26) {
|
|
740
|
+ patient[i].mode_id = 'CVVH'
|
|
741
|
+ }
|
|
742
|
+ if (patient[i].mode_id == 27) {
|
|
743
|
+ patient[i].mode_id = 'CVVHD'
|
|
744
|
+ }
|
|
745
|
+ if (patient[i].mode_id == 28) {
|
|
746
|
+ patient[i].mode_id = 'CVVHDF'
|
|
747
|
+ }
|
|
748
|
+ if (patient[i].mode_id == 29) {
|
|
749
|
+ patient[i].mode_id = 'PE'
|
|
750
|
+ }
|
|
751
|
+ if (patient[i].mode_id == 30) {
|
|
752
|
+ patient[i].mode_id = '血浆胆红素吸附+HP'
|
|
753
|
+ }
|
|
754
|
+ if (patient[i].mode_id == 31) {
|
|
755
|
+ patient[i].mode_id = 'HPD'
|
|
756
|
+ }
|
|
757
|
+ if (patient[i].mode_id == 32) {
|
|
758
|
+ patient[i].mode_id = 'HDP'
|
|
759
|
+ }
|
|
760
|
+ if (patient[i].mode_id == 33) {
|
|
761
|
+ patient[i].mode_id = 'HFD'
|
|
762
|
+ }
|
|
763
|
+ if (patient[i].mode_id == 34) {
|
|
764
|
+ patient[i].mode_id = 'HDF100'
|
|
765
|
+ }
|
|
766
|
+ if (patient[i].mode_id == 35) {
|
|
767
|
+ patient[i].mode_id = 'HDF600'
|
|
768
|
+ }
|
|
769
|
+ if (patient[i].mode_id == 36) {
|
|
770
|
+ patient[i].mode_id = 'HDF800'
|
|
771
|
+ }
|
|
772
|
+ if (patient[i].mode_id == 37) {
|
|
773
|
+ patient[i].mode_id = 'HDF1000'
|
|
774
|
+ }
|
|
775
|
+ if (patient[i].mode_id == 38) {
|
|
776
|
+ patient[i].mode_id = 'HDF80'
|
|
777
|
+ }
|
|
778
|
+ if (patient[i].mode_id == 39) {
|
|
779
|
+ patient[i].mode_id = 'HF16'
|
|
780
|
+ }
|
|
781
|
+ if (patient[i].mode_id == 40) {
|
|
782
|
+ patient[i].mode_id = 'HD(无肝素)'
|
|
783
|
+ }
|
|
784
|
+ if (patient[i].mode_id == 41) {
|
|
785
|
+ patient[i].mode_id = 'HDF17H'
|
|
786
|
+ }
|
|
787
|
+ if (patient[i].mode_id == 42) {
|
|
788
|
+ patient[i].mode_id = 'HD.'
|
|
789
|
+ }
|
|
790
|
+ if (patient[i].mode_id == 43) {
|
|
791
|
+ patient[i].mode_id = 'HD(2)'
|
|
792
|
+ }
|
|
793
|
+ if (patient[i].mode_id == 44) {
|
|
794
|
+ patient[i].mode_id = '导管溶栓'
|
|
795
|
+ }
|
702
|
796
|
this.datalist.push(...patient)
|
703
|
797
|
var arr = this.unique(this.datalist)
|
704
|
798
|
|
705
|
|
- this.tableData = arr
|
|
799
|
+ this.tableData = arr.sort((a, b) => a.sort - b.sort)
|
706
|
800
|
this.$nextTick(() => {
|
707
|
801
|
this.$refs.tab.doLayout()
|
708
|
802
|
})
|