|
@@ -1,23 +1,25 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="patient-container">
|
3
|
|
- <patient-sidebar :id="patientID" defaultActive="1-12" v-on:tran-patient="onTranPatient"></patient-sidebar>
|
|
3
|
+ <patient-sidebar :id="patientID" defaultActive="7" v-on:tran-patient="onTranPatient"></patient-sidebar>
|
4
|
4
|
<div class="patient-app-container advice-container app-container">
|
5
|
5
|
<div style="display:flex;justify-content: space-between;align-items: center;margin-bottom: 12px;">
|
6
|
6
|
<span style="font-weight:bold;">转归记录列表</span>
|
7
|
7
|
<el-button size="medium" type="primary" @click="dialogVisible =true">新增</el-button>
|
8
|
8
|
</div>
|
9
|
9
|
<el-table class="oictable" :data="tableData" border style="width:100%">
|
10
|
|
- <el-table-column prop="start_time" label="转出日期" align="center">
|
|
10
|
+ <el-table-column prop="start_time" label="日期" align="center">
|
11
|
11
|
<template slot-scope="scope">
|
12
|
12
|
<span>{{ getTime(scope.row.record_date)}}</span>
|
13
|
13
|
</template>
|
14
|
14
|
</el-table-column>
|
15
|
15
|
<el-table-column prop="blood_access_part_opera_id" label="转归类型" align="center">
|
16
|
16
|
<template slot-scope="scope">
|
17
|
|
- <span v-if="scope.row.lapse_type == 1">转出</span>
|
18
|
|
- <span v-if="scope.row.lapse_type == 2">院内转诊</span>
|
|
17
|
+ <span v-if="scope.row.lapse_type == 1">转入</span>
|
|
18
|
+ <span v-if="scope.row.lapse_type == 2">转出</span>
|
|
19
|
+ <span v-if="scope.row.lapse_type == 3">死亡</span>
|
|
20
|
+ <span v-if="scope.row.lapse_type == 4">院内转诊</span>
|
19
|
21
|
</template>
|
20
|
|
- </el-table-column>
|
|
22
|
+ </el-table-column>
|
21
|
23
|
<el-table-column prop="blood_access_part_id" label="转归分类" align="center">
|
22
|
24
|
<template slot-scope="scope">
|
23
|
25
|
<span v-if="scope.row.lapse_class == 1">终止透析</span>
|
|
@@ -29,7 +31,7 @@
|
29
|
31
|
<span v-if="scope.row.lapse_class == 7">变更透析医院</span>
|
30
|
32
|
</template>
|
31
|
33
|
</el-table-column>
|
32
|
|
- <el-table-column prop="inflow_pass" label="转归原因" align="center">
|
|
34
|
+ <el-table-column prop="inflow_pass" label="原因" align="center">
|
33
|
35
|
<template slot-scope="scope">
|
34
|
36
|
{{ scope.row.lapse_reason }}
|
35
|
37
|
</template>
|
|
@@ -78,7 +80,7 @@
|
78
|
80
|
:total="total"></el-pagination>
|
79
|
81
|
|
80
|
82
|
<el-dialog
|
81
|
|
- title="新增"
|
|
83
|
+ title="新增转归记录"
|
82
|
84
|
:visible.sync="dialogVisible"
|
83
|
85
|
width="65%"
|
84
|
86
|
center>
|
|
@@ -98,17 +100,56 @@
|
98
|
100
|
</el-form-item>
|
99
|
101
|
</el-col>
|
100
|
102
|
</el-row>
|
101
|
|
- <el-row :gutter="24">
|
|
103
|
+ <el-row :gutter="24" v-if="lapseto == 1">
|
|
104
|
+ <el-col :span="24">
|
|
105
|
+ <el-form-item label="转归类型:">
|
|
106
|
+ <el-radio-group style="padding: 10px;" v-model="lapse_type">
|
|
107
|
+ <el-radio label="2">转出</el-radio>
|
|
108
|
+ <el-radio label="3">死亡</el-radio>
|
|
109
|
+ <el-radio label="4">院内转诊</el-radio>
|
|
110
|
+ </el-radio-group>
|
|
111
|
+ </el-form-item>
|
|
112
|
+ </el-col>
|
|
113
|
+ </el-row>
|
|
114
|
+ <el-row :gutter="24" v-if="lapseto == 2">
|
102
|
115
|
<el-col :span="24">
|
103
|
116
|
<el-form-item label="转归类型:">
|
104
|
117
|
<el-radio-group style="padding: 10px;" v-model="lapse_type">
|
105
|
|
- <el-radio label="1">转出</el-radio>
|
106
|
|
- <el-radio label="2">院内转诊</el-radio>
|
|
118
|
+ <el-radio label="1">转入</el-radio>
|
|
119
|
+ </el-radio-group>
|
|
120
|
+ </el-form-item>
|
|
121
|
+ </el-col>
|
|
122
|
+ </el-row>
|
|
123
|
+
|
|
124
|
+ <el-row :gutter="24" v-if="lapse_type == 3">
|
|
125
|
+ <el-col :span="24">
|
|
126
|
+ <el-form-item label="住院/门诊:">
|
|
127
|
+ <el-radio-group style="padding: 10px;" v-model="his_type">
|
|
128
|
+ <el-radio label="1">门诊</el-radio>
|
|
129
|
+ <el-radio label="2">住院</el-radio>
|
107
|
130
|
</el-radio-group>
|
108
|
131
|
</el-form-item>
|
109
|
132
|
</el-col>
|
110
|
133
|
</el-row>
|
111
|
134
|
|
|
135
|
+
|
|
136
|
+ <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
|
|
137
|
+ <el-col :span="24">
|
|
138
|
+ <el-form-item label="病区:">
|
|
139
|
+ <el-input style="width: 200px" v-model="his_zone"></el-input>
|
|
140
|
+ </el-form-item>
|
|
141
|
+ </el-col>
|
|
142
|
+ </el-row>
|
|
143
|
+
|
|
144
|
+ <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
|
|
145
|
+ <el-col :span="24">
|
|
146
|
+ <el-form-item label="床号:">
|
|
147
|
+ <el-input style="width: 200px" v-model="his_bed"></el-input>
|
|
148
|
+ </el-form-item>
|
|
149
|
+ </el-col>
|
|
150
|
+ </el-row>
|
|
151
|
+
|
|
152
|
+
|
112
|
153
|
<el-row :gutter="24">
|
113
|
154
|
<el-col :span="24">
|
114
|
155
|
<el-form-item label="转归分类:">
|
|
@@ -120,22 +161,26 @@
|
120
|
161
|
<el-radio label="5">转腹膜透析</el-radio>
|
121
|
162
|
<el-radio label="6">其他</el-radio>
|
122
|
163
|
<el-radio label="7">变更透析医院</el-radio>
|
|
164
|
+ <el-radio label="8">住院</el-radio>
|
|
165
|
+ <el-radio label="9">转血透科</el-radio>
|
123
|
166
|
</el-radio-group>
|
124
|
167
|
</el-form-item>
|
125
|
168
|
</el-col>
|
126
|
169
|
</el-row>
|
127
|
170
|
|
|
171
|
+
|
|
172
|
+
|
128
|
173
|
<el-row :gutter="24">
|
129
|
174
|
<el-col :span="24">
|
130
|
|
- <el-form-item label="转出原因:">
|
131
|
|
- <el-input style="width: 300px;height: 50px;" type="textarea" v-model="lapse_reason"></el-input>
|
|
175
|
+ <el-form-item label="原因:">
|
|
176
|
+ <el-input style="width: 300px;height: 100px;" type="textarea" v-model="lapse_reason"></el-input>
|
132
|
177
|
</el-form-item>
|
133
|
178
|
</el-col>
|
134
|
179
|
</el-row>
|
135
|
180
|
|
136
|
181
|
<el-row :gutter="24">
|
137
|
182
|
<el-col :span="24">
|
138
|
|
- <el-form-item label="转出日期:">
|
|
183
|
+ <el-form-item label="日期:">
|
139
|
184
|
<el-date-picker
|
140
|
185
|
v-model="record_date"
|
141
|
186
|
type="date"
|
|
@@ -180,7 +225,7 @@
|
180
|
225
|
|
181
|
226
|
|
182
|
227
|
<el-dialog
|
183
|
|
- title="编辑"
|
|
228
|
+ title="编辑转归记录"
|
184
|
229
|
:visible.sync="editDialogVisible"
|
185
|
230
|
width="65%"
|
186
|
231
|
center>
|
|
@@ -204,13 +249,42 @@
|
204
|
249
|
<el-col :span="24">
|
205
|
250
|
<el-form-item label="转归类型:">
|
206
|
251
|
<el-radio-group style="padding: 10px;" v-model="lapse_type">
|
207
|
|
- <el-radio label="1">转出</el-radio>
|
208
|
|
- <el-radio label="2">院内转诊</el-radio>
|
|
252
|
+ <el-radio label="2">转出</el-radio>
|
|
253
|
+ <el-radio label="3">死亡</el-radio>
|
|
254
|
+ <el-radio label="4">院内转诊</el-radio>
|
|
255
|
+
|
209
|
256
|
</el-radio-group>
|
210
|
257
|
</el-form-item>
|
211
|
258
|
</el-col>
|
212
|
259
|
</el-row>
|
213
|
260
|
|
|
261
|
+ <el-row :gutter="24" v-if="lapse_type == 3">
|
|
262
|
+ <el-col :span="24">
|
|
263
|
+ <el-form-item label="住院/门诊:">
|
|
264
|
+ <el-radio-group style="padding: 10px;" v-model="his_type">
|
|
265
|
+ <el-radio label="1">门诊</el-radio>
|
|
266
|
+ <el-radio label="2">住院</el-radio>
|
|
267
|
+ </el-radio-group>
|
|
268
|
+ </el-form-item>
|
|
269
|
+ </el-col>
|
|
270
|
+ </el-row>
|
|
271
|
+
|
|
272
|
+ <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
|
|
273
|
+ <el-col :span="24">
|
|
274
|
+ <el-form-item label="病区:">
|
|
275
|
+ <el-input style="width: 200px" v-model="his_zone"></el-input>
|
|
276
|
+ </el-form-item>
|
|
277
|
+ </el-col>
|
|
278
|
+ </el-row>
|
|
279
|
+
|
|
280
|
+ <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
|
|
281
|
+ <el-col :span="24">
|
|
282
|
+ <el-form-item label="床号:">
|
|
283
|
+ <el-input style="width: 200px" v-model="his_bed"></el-input>
|
|
284
|
+ </el-form-item>
|
|
285
|
+ </el-col>
|
|
286
|
+ </el-row>
|
|
287
|
+
|
214
|
288
|
<el-row :gutter="24">
|
215
|
289
|
<el-col :span="24">
|
216
|
290
|
<el-form-item label="转归分类:">
|
|
@@ -222,22 +296,26 @@
|
222
|
296
|
<el-radio label="5">转腹膜透析</el-radio>
|
223
|
297
|
<el-radio label="6">其他</el-radio>
|
224
|
298
|
<el-radio label="7">变更透析医院</el-radio>
|
|
299
|
+ <el-radio label="8">住院</el-radio>
|
|
300
|
+ <el-radio label="9">转血透科</el-radio>
|
225
|
301
|
</el-radio-group>
|
226
|
302
|
</el-form-item>
|
227
|
303
|
</el-col>
|
228
|
304
|
</el-row>
|
229
|
305
|
|
|
306
|
+
|
|
307
|
+
|
230
|
308
|
<el-row :gutter="24">
|
231
|
309
|
<el-col :span="24">
|
232
|
|
- <el-form-item label="转出原因:">
|
233
|
|
- <el-input style="width: 300px;height: 50px;" type="textarea" v-model="lapse_reason"></el-input>
|
|
310
|
+ <el-form-item label="原因:">
|
|
311
|
+ <el-input style="width: 300px;height: 100px;" type="textarea" v-model="lapse_reason"></el-input>
|
234
|
312
|
</el-form-item>
|
235
|
313
|
</el-col>
|
236
|
314
|
</el-row>
|
237
|
315
|
|
238
|
316
|
<el-row :gutter="24">
|
239
|
317
|
<el-col :span="24">
|
240
|
|
- <el-form-item label="转出日期:">
|
|
318
|
+ <el-form-item label="日期:">
|
241
|
319
|
<el-date-picker
|
242
|
320
|
v-model="record_date"
|
243
|
321
|
type="date"
|
|
@@ -392,7 +470,11 @@
|
392
|
470
|
page:1,
|
393
|
471
|
total:0,
|
394
|
472
|
id:0,
|
395
|
|
- admin_user_id:this.$store.getters.xt_user.user.id
|
|
473
|
+ admin_user_id:this.$store.getters.xt_user.user.id,
|
|
474
|
+ lapseto:0,
|
|
475
|
+ his_type:"1",
|
|
476
|
+ his_zone:"",
|
|
477
|
+ his_bed:"",
|
396
|
478
|
}
|
397
|
479
|
},
|
398
|
480
|
methods: {
|
|
@@ -445,7 +527,13 @@
|
445
|
527
|
getPatientById(id).then(response=>{
|
446
|
528
|
if(response.data.state ==1){
|
447
|
529
|
var patient = response.data.data.patients
|
448
|
|
-
|
|
530
|
+ if(patient.lapseto == 1){
|
|
531
|
+ this.lapse_type="2"
|
|
532
|
+ }
|
|
533
|
+ if(patient.lapseto == 2){
|
|
534
|
+ this.lapse_type="1"
|
|
535
|
+ }
|
|
536
|
+ this.lapseto = patient.lapseto
|
449
|
537
|
this.dialysis_no = patient.dialysis_no
|
450
|
538
|
this.name = patient.name
|
451
|
539
|
|
|
@@ -460,7 +548,44 @@
|
460
|
548
|
}
|
461
|
549
|
})
|
462
|
550
|
},
|
|
551
|
+ getLapseType(id){
|
|
552
|
+ var name = ""
|
|
553
|
+ if(id == 1){
|
|
554
|
+ name = "终止透析"
|
|
555
|
+ }
|
|
556
|
+ if(id == 2){
|
|
557
|
+ name = "转出院外"
|
|
558
|
+ }
|
|
559
|
+ if(id == 3){
|
|
560
|
+ name = "回居住地透析"
|
|
561
|
+ }
|
|
562
|
+ if(id == 4){
|
|
563
|
+ name = "临时透析"
|
|
564
|
+ }
|
|
565
|
+ if(id == 5){
|
|
566
|
+ name = "转腹膜透析"
|
|
567
|
+ }
|
|
568
|
+ if(id == 6){
|
|
569
|
+ name = "其他"
|
|
570
|
+ }
|
|
571
|
+ if(id == 7){
|
|
572
|
+ name = "变更透析医院"
|
|
573
|
+ }
|
|
574
|
+ if(id == 8){
|
|
575
|
+ name = "住院"
|
|
576
|
+ }
|
|
577
|
+ if(id == 9){
|
|
578
|
+ name = "转血透科"
|
|
579
|
+ }
|
|
580
|
+
|
|
581
|
+ return name
|
|
582
|
+
|
|
583
|
+ },
|
463
|
584
|
savePatientLapse(){
|
|
585
|
+ if(this.lapse_type!=1 && this.lapse_reason == ""){
|
|
586
|
+ this.$message.error("转出或者死亡原因不能为空!")
|
|
587
|
+ return false
|
|
588
|
+ }
|
464
|
589
|
var params = {
|
465
|
590
|
patient_id:this.patientID,
|
466
|
591
|
lapse_type:parseInt(this.lapse_type),
|
|
@@ -469,6 +594,10 @@
|
469
|
594
|
record_date:this.record_date,
|
470
|
595
|
admin_user_id:this.admin_user_id,
|
471
|
596
|
remark:this.remark,
|
|
597
|
+ lapse_type_name:this.getLapseType(this.lapse_type),
|
|
598
|
+ his_bed:this.his_bed,
|
|
599
|
+ his_type: parseInt(this.his_type),
|
|
600
|
+ his_zone:this.his_zone,
|
472
|
601
|
}
|
473
|
602
|
console.log("params=====",params)
|
474
|
603
|
savePatientLapse(params).then(response=>{
|
|
@@ -509,6 +638,9 @@
|
509
|
638
|
this.record_date = this.getTime(lapsorecord.record_date)
|
510
|
639
|
this.remark = lapsorecord.remark
|
511
|
640
|
this.admin_user_id = lapsorecord.admin_user_id
|
|
641
|
+ this.his_bed = lapsorecord.his_bed
|
|
642
|
+ this.his_zone = lapsorecord.his_zone
|
|
643
|
+ this.his_type = lapsorecord.his_type
|
512
|
644
|
this.id = lapsorecord.id
|
513
|
645
|
this.editDialogVisible = true
|
514
|
646
|
|
|
@@ -517,16 +649,25 @@
|
517
|
649
|
|
518
|
650
|
},
|
519
|
651
|
updatePatientLapse(){
|
|
652
|
+ if (this.lapse_type !=1 &&this.lapse_reason == ""){
|
|
653
|
+ this.$message.error("转出或者死亡原因不能为空!")
|
|
654
|
+ return false
|
|
655
|
+ }
|
520
|
656
|
var params = {
|
521
|
657
|
patient_id:this.patientID,
|
522
|
658
|
lapse_type:parseInt(this.lapse_type),
|
523
|
659
|
lapse_class:parseInt(this.lapse_class),
|
|
660
|
+ lapse_type_name:this.getLapseType(this.lapse_type),
|
524
|
661
|
lapse_reason:this.lapse_reason,
|
525
|
662
|
record_date:this.record_date,
|
526
|
663
|
admin_user_id:this.admin_user_id,
|
527
|
664
|
remark:this.remark,
|
528
|
665
|
id:this.id,
|
|
666
|
+ his_bed:this.his_bed,
|
|
667
|
+ his_type:parseInt(this.his_type),
|
|
668
|
+ his_zone:this.his_zone,
|
529
|
669
|
}
|
|
670
|
+
|
530
|
671
|
updatePatientLapseRecord(params).then(response=>{
|
531
|
672
|
if(response.data.state== 1){
|
532
|
673
|
var record = response.data.data.record
|