|
@@ -6,13 +6,13 @@
|
6
|
6
|
<span>血管通路列表</span>
|
7
|
7
|
<el-button size="medium" type="primary" @click="dialogVisible =true" style="margin-left:800px" >新增</el-button>
|
8
|
8
|
</div>
|
9
|
|
- <el-table :data="tableData" border style="width:100%">
|
|
9
|
+ <el-table :data="tableData" border style="width:100%" @row-click="rowClick">
|
10
|
10
|
<el-table-column prop="start_time" label="建立日期" width="150" align="center">
|
11
|
11
|
<template slot-scope="scope">
|
12
|
12
|
<span>{{ getTime(scope.row.start_time, "{y}-{m}-{d}")}}</span>
|
13
|
13
|
</template>
|
14
|
14
|
</el-table-column>
|
15
|
|
- <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center">
|
|
15
|
+ <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="200">
|
16
|
16
|
<template slot-scope="scope">
|
17
|
17
|
<span>{{scope.row.blood_access_part_opera_id}}</span>
|
18
|
18
|
</template>
|
|
@@ -22,7 +22,7 @@
|
22
|
22
|
<span>{{scope.row.inflow_pass}}</span>
|
23
|
23
|
</template>
|
24
|
24
|
</el-table-column>
|
25
|
|
- <el-table-column prop="date" label="首次启用日期" width="200" align="center">
|
|
25
|
+ <el-table-column prop="date" label="首次启用日期" width="120" align="center">
|
26
|
26
|
<template slot-scope="scope">
|
27
|
27
|
<span>{{ getTime(scope.row.first_start_time, "{y}-{m}-{d}")}}</span>
|
28
|
28
|
</template>
|
|
@@ -35,33 +35,53 @@
|
35
|
35
|
</el-table-column>
|
36
|
36
|
<el-table-column prop="date" label="停用日期" align="center">
|
37
|
37
|
<template slot-scope="scope">
|
38
|
|
-
|
|
38
|
+ <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time, "{y}-{m}-{d}")}}</span>
|
|
39
|
+ <span v-if="scope.row.stop_time<0"></span>
|
39
|
40
|
</template>
|
40
|
41
|
</el-table-column>
|
41
|
42
|
<el-table-column prop="date" label="停用原因" align="center">
|
42
|
43
|
<template slot-scope="scope">
|
43
|
|
-
|
|
44
|
+ <span>{{scope.row.stop_reason}}</span>
|
44
|
45
|
</template>
|
45
|
46
|
</el-table-column>
|
46
|
47
|
<el-table-column prop="date" label="使用寿命(天)" align="center">
|
47
|
48
|
<template slot-scope="scope">
|
48
|
|
-
|
|
49
|
+ <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 == 0"></span>
|
|
50
|
+ <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 != 0">{{(scope.row.stop_time - scope.row.start_time)/86400}}</span>
|
49
|
51
|
</template>
|
50
|
52
|
</el-table-column>
|
51
|
|
- <el-table-column prop="date" label="备注" align="center">
|
|
53
|
+ <el-table-column prop="date" label="备注" align="center">
|
52
|
54
|
<template slot-scope="scope">
|
53
|
|
-
|
|
55
|
+ <span>{{scope.row.remark}}</span>
|
54
|
56
|
</template>
|
55
|
57
|
</el-table-column>
|
56
|
58
|
<el-table-column prop="date" label="创始人" align="center">
|
57
|
59
|
<template slot-scope="scope">
|
58
|
|
-
|
|
60
|
+ <span>{{getDoctor(scope.row.creator)}}</span>
|
59
|
61
|
</template>
|
60
|
62
|
</el-table-column>
|
61
|
|
- <el-table-column prop="date" label="操作" align="center">
|
|
63
|
+ <el-table-column prop="date" label="操作" width="140" align="center">
|
62
|
64
|
<template slot-scope="scope">
|
63
|
|
-
|
64
|
|
- </template>
|
|
65
|
+ <el-tooltip class="item" effect="dark" content="编辑" placement="top">
|
|
66
|
+ <el-button
|
|
67
|
+ type="primary"
|
|
68
|
+ size="small"
|
|
69
|
+ icon="el-icon-edit-outline"
|
|
70
|
+
|
|
71
|
+ @click="handleUpdateAdviceTemplate(scope.row.id)"
|
|
72
|
+ >
|
|
73
|
+ </el-button>
|
|
74
|
+ </el-tooltip>
|
|
75
|
+ <el-tooltip class="item" effect="dark" content="删除" placement="top">
|
|
76
|
+ <el-button
|
|
77
|
+ size="small"
|
|
78
|
+ type="danger"
|
|
79
|
+ icon="el-icon-delete"
|
|
80
|
+ @click="handleDeleteAdviceTemplate(scope.row.id, scope.$index)"
|
|
81
|
+ >
|
|
82
|
+ </el-button>
|
|
83
|
+ </el-tooltip>
|
|
84
|
+ </template>
|
65
|
85
|
</el-table-column>
|
66
|
86
|
</el-table>
|
67
|
87
|
<el-pagination
|
|
@@ -98,7 +118,7 @@
|
98
|
118
|
value-format="yyyy-MM-dd"
|
99
|
119
|
placeholder="选择时间"
|
100
|
120
|
v-model="form.start_time"
|
101
|
|
- style="width:150px">
|
|
121
|
+ style="width:130px">
|
102
|
122
|
</el-date-picker>
|
103
|
123
|
</el-form-item>
|
104
|
124
|
</el-col>
|
|
@@ -149,7 +169,7 @@
|
149
|
169
|
value-format="yyyy-MM-dd"
|
150
|
170
|
placeholder="选择时间"
|
151
|
171
|
v-model="form.first_start_time"
|
152
|
|
- style="width:150px">
|
|
172
|
+ style="width:130px">
|
153
|
173
|
</el-date-picker>
|
154
|
174
|
</el-form-item>
|
155
|
175
|
</el-col>
|
|
@@ -166,6 +186,20 @@
|
166
|
186
|
</el-form-item>
|
167
|
187
|
</el-col>
|
168
|
188
|
</el-row>
|
|
189
|
+ <el-row v-show="show">
|
|
190
|
+ <el-col :span="8">
|
|
191
|
+ <el-form-item label="停用日期:">
|
|
192
|
+ <el-date-picker
|
|
193
|
+ type="datetime"
|
|
194
|
+ format="yyyy-MM-dd"
|
|
195
|
+ value-format="yyyy-MM-dd"
|
|
196
|
+ placeholder="选择时间"
|
|
197
|
+ v-model="form.stop_time"
|
|
198
|
+ style="width:150px">
|
|
199
|
+ </el-date-picker>
|
|
200
|
+ </el-form-item>
|
|
201
|
+ </el-col>
|
|
202
|
+ </el-row>
|
169
|
203
|
<el-row v-show="show">
|
170
|
204
|
<el-col>
|
171
|
205
|
<el-form-item label="停用原因:">
|
|
@@ -188,6 +222,135 @@
|
188
|
222
|
</span>
|
189
|
223
|
</el-dialog>
|
190
|
224
|
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+ <el-dialog
|
|
228
|
+ title="编辑通路"
|
|
229
|
+ :visible.sync="editDialogVisible"
|
|
230
|
+ width="60%"
|
|
231
|
+ center>
|
|
232
|
+ <el-form label-width="120px" :model="form" ref="form" :rules="rules" >
|
|
233
|
+ <el-row :gutter="24">
|
|
234
|
+ <el-col :span="24">
|
|
235
|
+ <el-form-item label="通路项目:" :required="true" prop="access_project">
|
|
236
|
+ <el-radio v-model="form.access_project" label="1">内瘘</el-radio>
|
|
237
|
+ <el-radio v-model="form.access_project" label="2">导管</el-radio>
|
|
238
|
+ </el-form-item>
|
|
239
|
+ </el-col>
|
|
240
|
+ </el-row>
|
|
241
|
+ <el-row :gutter="24">
|
|
242
|
+ <el-col :span="8">
|
|
243
|
+ <el-form-item label="建立日期:" :required="true" prop="start_time">
|
|
244
|
+ <el-date-picker
|
|
245
|
+ type="datetime"
|
|
246
|
+ format="yyyy-MM-dd"
|
|
247
|
+ value-format="yyyy-MM-dd"
|
|
248
|
+ placeholder="选择时间"
|
|
249
|
+ v-model="form.start_time"
|
|
250
|
+ style="width:150px">
|
|
251
|
+ </el-date-picker>
|
|
252
|
+ </el-form-item>
|
|
253
|
+ </el-col>
|
|
254
|
+ <el-col :span="8">
|
|
255
|
+ <el-form-item label="血管通路类型:" :required="true" prop="blood_access_part_opera_id">
|
|
256
|
+ <el-select v-model="form.blood_access_part_opera_id" placeholder="请选择" style="width:150px">
|
|
257
|
+ <el-option
|
|
258
|
+ v-for="item in blood_access_part_opera"
|
|
259
|
+ :key="item.id"
|
|
260
|
+ :label="item.name"
|
|
261
|
+ :value="item.id"
|
|
262
|
+ >
|
|
263
|
+ </el-option>
|
|
264
|
+ </el-select>
|
|
265
|
+ </el-form-item>
|
|
266
|
+ </el-col>
|
|
267
|
+ <el-col :span="8">
|
|
268
|
+ <el-form-item label="血管通路部位:" :required="true" prop="blood_access_part_id">
|
|
269
|
+ <el-select v-model="form.blood_access_part_id" placeholder="请选择" style="width:150px">
|
|
270
|
+ <el-option
|
|
271
|
+ v-for="item in blood_access_part"
|
|
272
|
+ :key="item.id"
|
|
273
|
+ :label="item.name"
|
|
274
|
+ :value="item.id">
|
|
275
|
+ </el-option>
|
|
276
|
+ </el-select>
|
|
277
|
+ </el-form-item>
|
|
278
|
+ </el-col>
|
|
279
|
+ </el-row>
|
|
280
|
+ <el-row :gutter="24">
|
|
281
|
+ <el-col :span="8">
|
|
282
|
+ <el-form-item label="流入-流出道:" :required="true" prop="inflow_pass">
|
|
283
|
+ <el-select v-model="form.inflow_pass" placeholder="请选择" style="width:150px">
|
|
284
|
+ <el-option
|
|
285
|
+ v-for="item in optionsPass"
|
|
286
|
+ :key="item.id"
|
|
287
|
+ :label="item.name"
|
|
288
|
+ :value="item.id">
|
|
289
|
+ </el-option>
|
|
290
|
+ </el-select>
|
|
291
|
+ </el-form-item>
|
|
292
|
+ </el-col>
|
|
293
|
+ <el-col :span="8">
|
|
294
|
+ <el-form-item label="首次启用日期:" :required="true" prop="first_start_time">
|
|
295
|
+ <el-date-picker
|
|
296
|
+ type="datetime"
|
|
297
|
+ format="yyyy-MM-dd"
|
|
298
|
+ value-format="yyyy-MM-dd"
|
|
299
|
+ placeholder="选择时间"
|
|
300
|
+ v-model="form.first_start_time"
|
|
301
|
+ style="width:150px">
|
|
302
|
+ </el-date-picker>
|
|
303
|
+ </el-form-item>
|
|
304
|
+ </el-col>
|
|
305
|
+ <el-col :span="8">
|
|
306
|
+ <el-form-item label="使用状态:" :required="true" prop="user_status">
|
|
307
|
+ <el-select v-model="form.user_status" placeholder="请选择" style="width:150px" @change="changeStatus">
|
|
308
|
+ <el-option
|
|
309
|
+ v-for="item in options"
|
|
310
|
+ :key="item.id"
|
|
311
|
+ :label="item.name"
|
|
312
|
+ :value="item.id">
|
|
313
|
+ </el-option>
|
|
314
|
+ </el-select>
|
|
315
|
+ </el-form-item>
|
|
316
|
+ </el-col>
|
|
317
|
+ </el-row>
|
|
318
|
+ <el-row v-show="show">
|
|
319
|
+ <el-col :span="8">
|
|
320
|
+ <el-form-item label="停用日期:">
|
|
321
|
+ <el-date-picker
|
|
322
|
+ type="datetime"
|
|
323
|
+ format="yyyy-MM-dd"
|
|
324
|
+ value-format="yyyy-MM-dd"
|
|
325
|
+ placeholder="选择时间"
|
|
326
|
+ v-model="form.stop_time"
|
|
327
|
+ style="width:150px">
|
|
328
|
+ </el-date-picker>
|
|
329
|
+ </el-form-item>
|
|
330
|
+ </el-col>
|
|
331
|
+ </el-row>
|
|
332
|
+ <el-row v-show="show">
|
|
333
|
+ <el-col>
|
|
334
|
+ <el-form-item label="停用原因:">
|
|
335
|
+ <el-input v-model="form.stop_reason"></el-input>
|
|
336
|
+ </el-form-item>
|
|
337
|
+ </el-col>
|
|
338
|
+ </el-row>
|
|
339
|
+ <el-row>
|
|
340
|
+ <el-col>
|
|
341
|
+ <el-form-item label="备注:">
|
|
342
|
+ <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
|
|
343
|
+ </el-form-item>
|
|
344
|
+ </el-col>
|
|
345
|
+ </el-row>
|
|
346
|
+ </el-form>
|
|
347
|
+
|
|
348
|
+ <span slot="footer" class="dialog-footer">
|
|
349
|
+ <el-button @click="editDialogVisible= false">取 消</el-button>
|
|
350
|
+ <el-button type="primary" @click="updatedVasularAccess('form')">保存</el-button>
|
|
351
|
+ </span>
|
|
352
|
+ </el-dialog>
|
|
353
|
+
|
191
|
354
|
</div>
|
192
|
355
|
</div>
|
193
|
356
|
</template>
|
|
@@ -195,7 +358,7 @@
|
195
|
358
|
const moment = require('moment')
|
196
|
359
|
import PatientSidebar from './components/PatientSidebar'
|
197
|
360
|
import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
|
198
|
|
- import { saveVasularAccess,getAllVascularAccessList } from '@/api/patient'
|
|
361
|
+ import { saveVasularAccess,getAllVascularAccessList,getVascularAccessByDetail,updatedVasularAccess,DeleteVascularAccess } from '@/api/patient'
|
199
|
362
|
|
200
|
363
|
import { jsGetAge, uParseTime } from '@/utils/tools'
|
201
|
364
|
import { getDataConfig } from '@/utils/data'
|
|
@@ -221,16 +384,19 @@
|
221
|
384
|
user_status:[{required:true,message:"请选择使用状态"}]
|
222
|
385
|
},
|
223
|
386
|
dialogVisible:false,
|
|
387
|
+ editDialogVisible:false,
|
224
|
388
|
form:{
|
|
389
|
+ id:0,
|
225
|
390
|
access_project:"1",
|
226
|
391
|
blood_access_part_id:"",
|
227
|
392
|
blood_access_part_opera_id:"",
|
228
|
393
|
inflow_pass:"",
|
229
|
|
- start_time:"",
|
230
|
|
- first_start_time:"",
|
|
394
|
+ start_time:moment(new Date()).format('YYYY-MM-DD'),
|
|
395
|
+ first_start_time:moment(new Date()).format('YYYY-MM-DD'),
|
231
|
396
|
stop_reason:"",
|
232
|
397
|
user_status:"",
|
233
|
|
- remark:""
|
|
398
|
+ remark:"",
|
|
399
|
+ stop_time:"",
|
234
|
400
|
},
|
235
|
401
|
options:[
|
236
|
402
|
{id:1,name:"启用"},
|
|
@@ -242,7 +408,8 @@
|
242
|
408
|
],
|
243
|
409
|
blood_access_part_opera:[],
|
244
|
410
|
blood_access_part:[],
|
245
|
|
- show:false
|
|
411
|
+ show:false,
|
|
412
|
+ doctorList:[]
|
246
|
413
|
}
|
247
|
414
|
},
|
248
|
415
|
methods: {
|
|
@@ -260,13 +427,12 @@
|
260
|
427
|
|
261
|
428
|
handleSizeChange(limit) {
|
262
|
429
|
this.limit = limit
|
263
|
|
- const id = this.$route.params && this.$route.params.id
|
264
|
|
-
|
|
430
|
+ this.getlist()
|
265
|
431
|
},
|
266
|
432
|
handleCurrentChange(page) {
|
267
|
433
|
this.page = page
|
268
|
|
- const id = this.$route.params && this.$route.params.id
|
269
|
|
-
|
|
434
|
+
|
|
435
|
+ this.getlist()
|
270
|
436
|
},
|
271
|
437
|
changeStatus(val){
|
272
|
438
|
if(val == 1 ){
|
|
@@ -298,6 +464,7 @@
|
298
|
464
|
}
|
299
|
465
|
}
|
300
|
466
|
var params = {
|
|
467
|
+ patient_id:this.patientID,
|
301
|
468
|
access_project:parseInt(this.form.access_project),
|
302
|
469
|
start_time:this.form.start_time,
|
303
|
470
|
blood_access_part_opera_id:blood_name,
|
|
@@ -307,6 +474,7 @@
|
307
|
474
|
user_status:this.form.user_status,
|
308
|
475
|
stop_reason:this.form.stop_reason,
|
309
|
476
|
remark:this.form.remark,
|
|
477
|
+ stop_time:this.form.stop_time
|
310
|
478
|
}
|
311
|
479
|
console.log("params",params)
|
312
|
480
|
saveVasularAccess(params).then(response=>{
|
|
@@ -315,7 +483,13 @@
|
315
|
483
|
console.log("access",access)
|
316
|
484
|
this.$message.success("保存成功")
|
317
|
485
|
this.dialogVisible = false
|
318
|
|
-
|
|
486
|
+ this.getlist()
|
|
487
|
+ this.form.blood_access_part_opera_id=""
|
|
488
|
+ this.form.blood_access_part_id = ""
|
|
489
|
+ this.inflow_pass = ""
|
|
490
|
+ this.user_status = ""
|
|
491
|
+ this.stop_reason = ""
|
|
492
|
+ this.remark = ""
|
319
|
493
|
}
|
320
|
494
|
})
|
321
|
495
|
}
|
|
@@ -325,6 +499,7 @@
|
325
|
499
|
var params = {
|
326
|
500
|
page:this.page,
|
327
|
501
|
limit:this.limit,
|
|
502
|
+ patient_id:this.patientID,
|
328
|
503
|
}
|
329
|
504
|
getAllVascularAccessList(params).then(response=>{
|
330
|
505
|
if(response.data.state == 1){
|
|
@@ -334,6 +509,9 @@
|
334
|
509
|
var total = response.data.data.total
|
335
|
510
|
console.log("total",total)
|
336
|
511
|
this.total = total
|
|
512
|
+ var doctor = response.data.data.doctor
|
|
513
|
+ console.log("doctor",doctor)
|
|
514
|
+ this.doctorList = doctor
|
337
|
515
|
}
|
338
|
516
|
})
|
339
|
517
|
},
|
|
@@ -343,6 +521,136 @@
|
343
|
521
|
}
|
344
|
522
|
return "";
|
345
|
523
|
},
|
|
524
|
+ handleUpdateAdviceTemplate(id){
|
|
525
|
+ getVascularAccessByDetail(id).then(response=>{
|
|
526
|
+ if(response.data.state ==1){
|
|
527
|
+ var accessDetail = response.data.data.accessDetail
|
|
528
|
+ console.log("accessDetail",accessDetail)
|
|
529
|
+ this.form.id = accessDetail.id
|
|
530
|
+ this.form.access_project = accessDetail.access_project.toString()
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+ var blood_name = 0
|
|
535
|
+ for(let i=0;i<this.blood_access_part_opera.length;i++){
|
|
536
|
+ if(this.blood_access_part_opera[i].name == accessDetail.blood_access_part_opera_id){
|
|
537
|
+ blood_name = this.blood_access_part_opera[i].id
|
|
538
|
+ }
|
|
539
|
+ }
|
|
540
|
+ this.form.blood_access_part_id = blood_name
|
|
541
|
+
|
|
542
|
+ var blood_part = 0
|
|
543
|
+ for(let i=0;i<this.blood_access_part.length;i++){
|
|
544
|
+ if(accessDetail.blood_access_part_id == this.blood_access_part[i].name){
|
|
545
|
+ blood_part = this.blood_access_part[i].id
|
|
546
|
+ }
|
|
547
|
+ }
|
|
548
|
+ this.form.blood_access_part_opera_id = blood_part
|
|
549
|
+ this.form.first_start_time = this.getTime(accessDetail.first_start_time,"{y}-{m}-{d}")
|
|
550
|
+
|
|
551
|
+ var inflow_id = 0
|
|
552
|
+ for(let i=0;i<this.optionsPass.length;i++){
|
|
553
|
+ if(this.optionsPass[i].name == accessDetail.inflow_pass){
|
|
554
|
+ inflow_id = this.optionsPass[i].id
|
|
555
|
+ }
|
|
556
|
+ }
|
|
557
|
+ this.form.inflow_pass = inflow_id
|
|
558
|
+ this.form.remark = accessDetail.remark
|
|
559
|
+ this.form.start_time = this.getTime(accessDetail.start_time,"{y}-{m}-{d}")
|
|
560
|
+ this.form.stop_reason = accessDetail.stop_reason
|
|
561
|
+ this.form.stop_time = this.getTime(accessDetail.stop_time,"{y}-{m}-{d}")
|
|
562
|
+
|
|
563
|
+ this.form.user_status = accessDetail.user_status
|
|
564
|
+ if(accessDetail.user_status == 1){
|
|
565
|
+ this.show = false
|
|
566
|
+ }
|
|
567
|
+ if(accessDetail.user_status == 2){
|
|
568
|
+ this.show = true
|
|
569
|
+ }
|
|
570
|
+ this.editDialogVisible = true
|
|
571
|
+ }
|
|
572
|
+ })
|
|
573
|
+ },
|
|
574
|
+ getDoctor(id){
|
|
575
|
+ var name = ""
|
|
576
|
+ for(let i=0;i<this.doctorList.length;i++){
|
|
577
|
+ if(id == this.doctorList[i].admin_user_id){
|
|
578
|
+ name = this.doctorList[i].user_name
|
|
579
|
+ }
|
|
580
|
+ }
|
|
581
|
+ return name
|
|
582
|
+ },
|
|
583
|
+ handleDeleteAdviceTemplate(id,index){
|
|
584
|
+ this.$confirm("确认删除吗?", "删除", {
|
|
585
|
+ confirmButtonText: "确 定",
|
|
586
|
+ cancelButtonText: "取 消",
|
|
587
|
+ type: "warning"
|
|
588
|
+ })
|
|
589
|
+ .then(() => {
|
|
590
|
+ DeleteVascularAccess(id).then(response => {
|
|
591
|
+ if(response.data.state == 1){
|
|
592
|
+ var msg = response.data.data.msg
|
|
593
|
+ this.tableData.splice(index, 1);
|
|
594
|
+ this.$message.success("删除成功!")
|
|
595
|
+ }
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+ });
|
|
599
|
+ })
|
|
600
|
+ .catch(() => {});
|
|
601
|
+ },
|
|
602
|
+ updatedVasularAccess(formName){
|
|
603
|
+ this.$refs[formName].validate((valid)=>{
|
|
604
|
+ if(valid){
|
|
605
|
+ var blood_name = ""
|
|
606
|
+ for(let i=0;i<this.blood_access_part_opera.length;i++){
|
|
607
|
+ if(this.blood_access_part_opera[i].id == this.form.blood_access_part_opera_id){
|
|
608
|
+ blood_name = this.blood_access_part_opera[i].name
|
|
609
|
+ }
|
|
610
|
+ }
|
|
611
|
+ var blood_part = ""
|
|
612
|
+ for(let i=0;i<this.blood_access_part.length;i++){
|
|
613
|
+ if(this.form.blood_access_part_id == this.blood_access_part[i].id){
|
|
614
|
+ blood_part = this.blood_access_part[i].name
|
|
615
|
+ }
|
|
616
|
+ }
|
|
617
|
+ var inflow_pass = ""
|
|
618
|
+ for(let i=0;i<this.optionsPass.length;i++){
|
|
619
|
+ if(this.optionsPass[i].id == this.form.inflow_pass){
|
|
620
|
+ inflow_pass = this.optionsPass[i].name
|
|
621
|
+ }
|
|
622
|
+ }
|
|
623
|
+ var params = {
|
|
624
|
+ id:this.form.id,
|
|
625
|
+ patient_id:this.patientID,
|
|
626
|
+ access_project:parseInt(this.form.access_project),
|
|
627
|
+ start_time:this.form.start_time,
|
|
628
|
+ blood_access_part_opera_id:blood_name,
|
|
629
|
+ blood_access_part_id:blood_part,
|
|
630
|
+ inflow_pass:inflow_pass,
|
|
631
|
+ first_start_time:this.form.first_start_time,
|
|
632
|
+ user_status:this.form.user_status,
|
|
633
|
+ stop_reason:this.form.stop_reason,
|
|
634
|
+ remark:this.form.remark,
|
|
635
|
+ stop_time:this.form.stop_time
|
|
636
|
+ }
|
|
637
|
+ console.log("编辑",params)
|
|
638
|
+ updatedVasularAccess(params).then(response=>{
|
|
639
|
+ if(response.data.state == 1){
|
|
640
|
+ var access = response.data.data.access
|
|
641
|
+ console.log("access",access)
|
|
642
|
+ this.$message.success("保存成功")
|
|
643
|
+ this.editDialogVisible = false
|
|
644
|
+ this.getlist()
|
|
645
|
+ }
|
|
646
|
+ })
|
|
647
|
+ }
|
|
648
|
+ })
|
|
649
|
+ },
|
|
650
|
+ rowClick(row){
|
|
651
|
+ console.log("row",row)
|
|
652
|
+ this.$router.push({path:'/patients/patient/'+this.patientID+'/vascularAccessDetail/'+row.id})
|
|
653
|
+ }
|
346
|
654
|
},
|
347
|
655
|
created() {
|
348
|
656
|
const id = this.$route.params && this.$route.params.id
|