|
@@ -1,98 +1,48 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="patient-container">
|
3
|
|
- <patient-sidebar :id="patientID" defaultActive="1-6" v-on:tran-patient="onTranPatient"></patient-sidebar>
|
|
3
|
+ <patient-sidebar :id="patientID" defaultActive="1-12" 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="建立日期" width="100" align="center">
|
|
10
|
+ <el-table-column prop="start_time" label="转出日期" align="center">
|
11
|
11
|
<template slot-scope="scope">
|
12
|
|
- <span>{{ getTime(scope.row.start_time)}}</span>
|
|
12
|
+ <span>{{ getTime(scope.row.record_date)}}</span>
|
13
|
13
|
</template>
|
14
|
14
|
</el-table-column>
|
15
|
|
- <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
|
|
15
|
+ <el-table-column prop="blood_access_part_opera_id" label="转归类型" align="center">
|
16
|
16
|
<template slot-scope="scope">
|
17
|
|
- <router-link
|
18
|
|
- :to="'/patients/patient/' + scope.row.patient_id+'/vascularAccessDetail/'+scope.row.id"
|
19
|
|
- style="color:#409eff;width:100%;display:block;"
|
20
|
|
- >{{ scope.row.blood_access_part_opera_id }}
|
21
|
|
- </router-link
|
22
|
|
- >
|
|
17
|
+ <span v-if="scope.row.lapse_type == 1">转出</span>
|
|
18
|
+ <span v-if="scope.row.lapse_type == 2">院内转诊</span>
|
23
|
19
|
</template>
|
24
|
20
|
</el-table-column>
|
25
|
|
- <el-table-column prop="blood_access_part_id" label="血管通路部位" width="200" align="center">
|
|
21
|
+ <el-table-column prop="blood_access_part_id" label="转归分类" align="center">
|
26
|
22
|
<template slot-scope="scope">
|
27
|
|
- <span>{{scope.row.blood_access_part_id}}</span>
|
|
23
|
+ <span v-if="scope.row.lapse_class == 1">终止透析</span>
|
|
24
|
+ <span v-if="scope.row.lapse_class == 2">转出院外</span>
|
|
25
|
+ <span v-if="scope.row.lapse_class == 3">回居住地透析</span>
|
|
26
|
+ <span v-if="scope.row.lapse_class == 4">临时透析</span>
|
|
27
|
+ <span v-if="scope.row.lapse_class == 5">转腹膜透析</span>
|
|
28
|
+ <span v-if="scope.row.lapse_class == 6">其他</span>
|
|
29
|
+ <span v-if="scope.row.lapse_class == 7">变更透析医院</span>
|
28
|
30
|
</template>
|
29
|
31
|
</el-table-column>
|
30
|
|
- <el-table-column prop="inflow_pass" label="血管通路部位(其他)" width="100" align="center">
|
|
32
|
+ <el-table-column prop="inflow_pass" label="转归原因" align="center">
|
31
|
33
|
<template slot-scope="scope">
|
32
|
|
- <span>{{scope.row.other_vascular}}</span>
|
|
34
|
+ {{ scope.row.lapse_reason }}
|
33
|
35
|
</template>
|
34
|
36
|
</el-table-column>
|
35
|
|
- <el-table-column prop="date" label="首次启用日期" width="120" align="center">
|
36
|
|
- <template slot-scope="scope">
|
37
|
|
- <span>{{ getTime(scope.row.first_start_time)}}</span>
|
38
|
|
- </template>
|
39
|
|
- </el-table-column>
|
40
|
37
|
|
41
|
|
- <el-table-column prop="date" label="停用日期" align="center" width="100">
|
42
|
|
- <template slot-scope="scope">
|
43
|
|
- <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time)}}</span>
|
44
|
|
- <span v-if="scope.row.stop_time<0"></span>
|
45
|
|
- </template>
|
46
|
|
- </el-table-column>
|
47
|
|
- <el-table-column prop="date" label="停用原因" align="center" width="120">
|
48
|
|
- <template slot-scope="scope">
|
49
|
|
- <span>{{scope.row.stop_reason}}</span>
|
50
|
|
- </template>
|
51
|
|
- </el-table-column>
|
52
|
|
- <el-table-column prop="date" label="使用寿命(天)" align="center" width="120">
|
53
|
|
- <template slot-scope="scope">
|
54
|
|
- <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 == 0"></span>
|
55
|
|
- <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>
|
56
|
|
- </template>
|
57
|
|
- </el-table-column>
|
58
|
|
-
|
59
|
|
- <el-table-column prop="date" label="导管感染转归" align="center" width="120">
|
60
|
|
- <template slot-scope="scope">
|
61
|
|
- <span v-if="scope.row.ci_type == 1">拔管</span>
|
62
|
|
- <span v-if="scope.row.ci_type == 2">治愈</span>
|
63
|
|
- <span v-if="scope.row.ci_type == 3">死亡</span>
|
64
|
|
- <span v-if="scope.row.ci_type == 4">放弃</span>
|
65
|
|
- <span v-if="scope.row.ci_type == 9">其它</span>
|
66
|
|
- </template>
|
67
|
|
- </el-table-column>
|
68
|
|
-
|
69
|
|
- <el-table-column prop="date" label="血培养检查结果" align="center" width="120">
|
|
38
|
+
|
|
39
|
+ <el-table-column prop="date" label="备注" align="center">
|
70
|
40
|
<template slot-scope="scope">
|
71
|
|
- <span v-if="scope.row.blood_cultupe == 0">阴性</span>
|
72
|
|
- <span v-if="scope.row.blood_cultupe == 1">阳性</span>
|
73
|
|
- <span v-if="scope.row.blood_cultupe == 9">未查</span>
|
|
41
|
+ {{ scope.row.remark }}
|
74
|
42
|
</template>
|
75
|
|
- </el-table-column>
|
|
43
|
+ </el-table-column>
|
76
|
44
|
|
77
|
|
- <el-table-column prop="date" label="患者导管转归类型" align="center" width="120">
|
78
|
|
- <template slot-scope="scope">
|
79
|
|
- <span v-if="scope.row.sequelae_type == 1">局部感染</span>
|
80
|
|
- <span v-if="scope.row.sequelae_type == 2">静脉炎</span>
|
81
|
|
- <span v-if="scope.row.sequelae_type == 3">导管细菌定植</span>
|
82
|
|
- <span v-if="scope.row.sequelae_type == 4">导管相关血型感染</span>
|
83
|
|
- </template>
|
84
|
|
- </el-table-column>
|
85
|
|
- <el-table-column prop="date" label="备注" align="center" width="180">
|
86
|
|
- <template slot-scope="scope">
|
87
|
|
- <span>{{scope.row.remark}}</span>
|
88
|
|
- </template>
|
89
|
|
- </el-table-column>
|
90
|
|
- <el-table-column prop="date" label="创始人" align="center" width="100">
|
91
|
|
- <template slot-scope="scope">
|
92
|
|
- <span>{{getDoctor(scope.row.creator)}}</span>
|
93
|
|
- </template>
|
94
|
|
- </el-table-column>
|
95
|
|
- <el-table-column prop="date" fixed="right" label="操作" width="140" align="center">
|
|
45
|
+ <el-table-column prop="date" label="操作" align="center">
|
96
|
46
|
<template slot-scope="scope">
|
97
|
47
|
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
|
98
|
48
|
<el-button
|
|
@@ -136,7 +86,7 @@
|
136
|
86
|
<el-row :gutter="24">
|
137
|
87
|
<el-col :span="24">
|
138
|
88
|
<el-form-item label="透析号:" >
|
139
|
|
- <el-input style="width:200px" v-model="dialysis_no"></el-input>
|
|
89
|
+ <el-input style="width:200px" v-model="dialysis_no" :disabled="true"></el-input>
|
140
|
90
|
</el-form-item>
|
141
|
91
|
|
142
|
92
|
</el-col>
|
|
@@ -144,13 +94,13 @@
|
144
|
94
|
<el-row :gutter="24" >
|
145
|
95
|
<el-col :span="24">
|
146
|
96
|
<el-form-item label="姓名:">
|
147
|
|
- <el-input style="width:200px" v-model="name"></el-input>
|
|
97
|
+ <el-input style="width:200px" v-model="name" :disabled="true"></el-input>
|
148
|
98
|
</el-form-item>
|
149
|
99
|
</el-col>
|
150
|
100
|
</el-row>
|
151
|
101
|
<el-row :gutter="24">
|
152
|
102
|
<el-col :span="24">
|
153
|
|
- <el-form-item label="转归类型:" prop="access_project" >
|
|
103
|
+ <el-form-item label="转归类型:">
|
154
|
104
|
<el-radio-group style="padding: 10px;" v-model="lapse_type">
|
155
|
105
|
<el-radio label="1">转出</el-radio>
|
156
|
106
|
<el-radio label="2">院内转诊</el-radio>
|
|
@@ -161,7 +111,7 @@
|
161
|
111
|
|
162
|
112
|
<el-row :gutter="24">
|
163
|
113
|
<el-col :span="24">
|
164
|
|
- <el-form-item label="转归分类:" prop="access_project" >
|
|
114
|
+ <el-form-item label="转归分类:">
|
165
|
115
|
<el-radio-group style="padding: 10px;" v-model="lapse_class">
|
166
|
116
|
<el-radio label="1">终止透析</el-radio>
|
167
|
117
|
<el-radio label="2">转出院外</el-radio>
|
|
@@ -177,7 +127,7 @@
|
177
|
127
|
|
178
|
128
|
<el-row :gutter="24">
|
179
|
129
|
<el-col :span="24">
|
180
|
|
- <el-form-item label="转出原因:" prop="access_project">
|
|
130
|
+ <el-form-item label="转出原因:">
|
181
|
131
|
<el-input style="width: 300px;height: 50px;" type="textarea" v-model="lapse_reason"></el-input>
|
182
|
132
|
</el-form-item>
|
183
|
133
|
</el-col>
|
|
@@ -185,10 +135,11 @@
|
185
|
135
|
|
186
|
136
|
<el-row :gutter="24">
|
187
|
137
|
<el-col :span="24">
|
188
|
|
- <el-form-item label="转出日期:" prop="access_project" >
|
|
138
|
+ <el-form-item label="转出日期:">
|
189
|
139
|
<el-date-picker
|
190
|
140
|
v-model="record_date"
|
191
|
141
|
type="date"
|
|
142
|
+ value-format="yyyy-MM-dd"
|
192
|
143
|
placeholder="选择日期">
|
193
|
144
|
</el-date-picker>
|
194
|
145
|
</el-form-item>
|
|
@@ -197,13 +148,13 @@
|
197
|
148
|
|
198
|
149
|
<el-row :gutter="24">
|
199
|
150
|
<el-col :span="24">
|
200
|
|
- <el-form-item label="操作人:" prop="access_project" >
|
|
151
|
+ <el-form-item label="操作人:">
|
201
|
152
|
<el-select v-model="admin_user_id" placeholder="请选择">
|
202
|
153
|
<el-option
|
203
|
|
- v-for="item in options"
|
204
|
|
- :key="item.value"
|
205
|
|
- :label="item.label"
|
206
|
|
- :value="item.value">
|
|
154
|
+ v-for="item in adminUserList"
|
|
155
|
+ :key="item.admin_user_id"
|
|
156
|
+ :label="item.user_name"
|
|
157
|
+ :value="item.admin_user_id">
|
207
|
158
|
</el-option>
|
208
|
159
|
</el-select>
|
209
|
160
|
</el-form-item>
|
|
@@ -212,7 +163,7 @@
|
212
|
163
|
|
213
|
164
|
<el-row :gutter="24">
|
214
|
165
|
<el-col :span="24">
|
215
|
|
- <el-form-item label="备注:" prop="access_project" >
|
|
166
|
+ <el-form-item label="备注:">
|
216
|
167
|
<el-input style="width: 300px;height: 50px;" type="textarea" v-model="remark"></el-input>
|
217
|
168
|
</el-form-item>
|
218
|
169
|
</el-col>
|
|
@@ -222,25 +173,120 @@
|
222
|
173
|
|
223
|
174
|
<span slot="footer" class="dialog-footer">
|
224
|
175
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
225
|
|
- <el-button type="primary" @click="saveVasularAccess('form')">保存</el-button>
|
|
176
|
+ <el-button type="primary" @click="savePatientLapse('form')">保存</el-button>
|
|
177
|
+ </span>
|
|
178
|
+ </el-dialog>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+ <el-dialog
|
|
183
|
+ title="编辑"
|
|
184
|
+ :visible.sync="editDialogVisible"
|
|
185
|
+ width="65%"
|
|
186
|
+ center>
|
|
187
|
+ <el-form label-width="150px" :model="form" ref="form" :rules="rules" >
|
|
188
|
+ <el-row :gutter="24">
|
|
189
|
+ <el-col :span="24">
|
|
190
|
+ <el-form-item label="透析号:" >
|
|
191
|
+ <el-input style="width:200px" v-model="dialysis_no" :disabled="true"></el-input>
|
|
192
|
+ </el-form-item>
|
|
193
|
+
|
|
194
|
+ </el-col>
|
|
195
|
+ </el-row>
|
|
196
|
+ <el-row :gutter="24" >
|
|
197
|
+ <el-col :span="24">
|
|
198
|
+ <el-form-item label="姓名:">
|
|
199
|
+ <el-input style="width:200px" v-model="name" :disabled="true"></el-input>
|
|
200
|
+ </el-form-item>
|
|
201
|
+ </el-col>
|
|
202
|
+ </el-row>
|
|
203
|
+ <el-row :gutter="24">
|
|
204
|
+ <el-col :span="24">
|
|
205
|
+ <el-form-item label="转归类型:">
|
|
206
|
+ <el-radio-group style="padding: 10px;" v-model="lapse_type">
|
|
207
|
+ <el-radio label="1">转出</el-radio>
|
|
208
|
+ <el-radio label="2">院内转诊</el-radio>
|
|
209
|
+ </el-radio-group>
|
|
210
|
+ </el-form-item>
|
|
211
|
+ </el-col>
|
|
212
|
+ </el-row>
|
|
213
|
+
|
|
214
|
+ <el-row :gutter="24">
|
|
215
|
+ <el-col :span="24">
|
|
216
|
+ <el-form-item label="转归分类:">
|
|
217
|
+ <el-radio-group style="padding: 10px;" v-model="lapse_class">
|
|
218
|
+ <el-radio label="1">终止透析</el-radio>
|
|
219
|
+ <el-radio label="2">转出院外</el-radio>
|
|
220
|
+ <el-radio label="3">回居住地透析</el-radio>
|
|
221
|
+ <el-radio label="4">临时透析</el-radio>
|
|
222
|
+ <el-radio label="5">转腹膜透析</el-radio>
|
|
223
|
+ <el-radio label="6">其他</el-radio>
|
|
224
|
+ <el-radio label="7">变更透析医院</el-radio>
|
|
225
|
+ </el-radio-group>
|
|
226
|
+ </el-form-item>
|
|
227
|
+ </el-col>
|
|
228
|
+ </el-row>
|
|
229
|
+
|
|
230
|
+ <el-row :gutter="24">
|
|
231
|
+ <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>
|
|
234
|
+ </el-form-item>
|
|
235
|
+ </el-col>
|
|
236
|
+ </el-row>
|
|
237
|
+
|
|
238
|
+ <el-row :gutter="24">
|
|
239
|
+ <el-col :span="24">
|
|
240
|
+ <el-form-item label="转出日期:">
|
|
241
|
+ <el-date-picker
|
|
242
|
+ v-model="record_date"
|
|
243
|
+ type="date"
|
|
244
|
+ value-format="yyyy-MM-dd"
|
|
245
|
+ placeholder="选择日期">
|
|
246
|
+ </el-date-picker>
|
|
247
|
+ </el-form-item>
|
|
248
|
+ </el-col>
|
|
249
|
+ </el-row>
|
|
250
|
+
|
|
251
|
+ <el-row :gutter="24">
|
|
252
|
+ <el-col :span="24">
|
|
253
|
+ <el-form-item label="操作人:">
|
|
254
|
+ <el-select v-model="admin_user_id" placeholder="请选择">
|
|
255
|
+ <el-option
|
|
256
|
+ v-for="item in adminUserList"
|
|
257
|
+ :key="item.admin_user_id"
|
|
258
|
+ :label="item.user_name"
|
|
259
|
+ :value="item.admin_user_id">
|
|
260
|
+ </el-option>
|
|
261
|
+ </el-select>
|
|
262
|
+ </el-form-item>
|
|
263
|
+ </el-col>
|
|
264
|
+ </el-row>
|
|
265
|
+
|
|
266
|
+ <el-row :gutter="24">
|
|
267
|
+ <el-col :span="24">
|
|
268
|
+ <el-form-item label="备注:">
|
|
269
|
+ <el-input style="width: 300px;height: 50px;" type="textarea" v-model="remark"></el-input>
|
|
270
|
+ </el-form-item>
|
|
271
|
+ </el-col>
|
|
272
|
+ </el-row>
|
|
273
|
+
|
|
274
|
+ </el-form>
|
|
275
|
+
|
|
276
|
+ <span slot="footer" class="dialog-footer">
|
|
277
|
+ <el-button @click="editDialogVisible = false">取 消</el-button>
|
|
278
|
+ <el-button type="primary" @click="updatePatientLapse('form')">保存</el-button>
|
226
|
279
|
</span>
|
227
|
280
|
</el-dialog>
|
228
|
281
|
|
229
|
282
|
</div>
|
230
|
|
-
|
231
|
|
- <!-- <multi-select-box
|
232
|
|
- :propsForm="InnerDialogProps"
|
233
|
|
- v-on:dialog-comfirm="innerDialogComfirm"
|
234
|
|
- v-on:dialog-cancle="innerDialogCancle"
|
235
|
|
- ></multi-select-box> -->
|
236
|
|
-
|
|
283
|
+
|
237
|
284
|
</div>
|
238
|
285
|
</template>
|
239
|
286
|
<script>
|
240
|
287
|
const moment = require('moment')
|
241
|
288
|
import PatientSidebar from './components/PatientSidebar'
|
242
|
|
- import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
|
243
|
|
- import { saveVasularAccess,getAllVascularAccessList,getVascularAccessByDetail,updatedVasularAccess,DeleteVascularAccess,getAccessList } from '@/api/patient'
|
|
289
|
+ import { savePatientLapse,getAllDoctor,deletePatientLapsoRrecord,getPatientById,getPatientLapseRecord,getPatientLapsoSummary,updatePatientLapseRecord} from '@/api/patient'
|
244
|
290
|
|
245
|
291
|
import { jsGetAge, uParseTime } from '@/utils/tools'
|
246
|
292
|
import { getDataConfig } from '@/utils/data'
|
|
@@ -270,6 +316,7 @@
|
270
|
316
|
},
|
271
|
317
|
dialogVisible:false,
|
272
|
318
|
editDialogVisible:false,
|
|
319
|
+
|
273
|
320
|
form:{
|
274
|
321
|
id:0,
|
275
|
322
|
access_project:"1",
|
|
@@ -335,12 +382,17 @@
|
335
|
382
|
showOne:false,
|
336
|
383
|
name:"",
|
337
|
384
|
dialysis_no:"",
|
338
|
|
- lapse_type:"",
|
339
|
|
- lapse_class:"",
|
|
385
|
+ lapse_type:"1",
|
|
386
|
+ lapse_class:"1",
|
340
|
387
|
lapse_reason:"",
|
341
|
388
|
record_date:"",
|
342
|
|
- admin_user_id:"",
|
343
|
|
- remark:""
|
|
389
|
+ remark:"",
|
|
390
|
+ adminUserList:[],
|
|
391
|
+ limit:10,
|
|
392
|
+ page:1,
|
|
393
|
+ total:0,
|
|
394
|
+ id:0,
|
|
395
|
+ admin_user_id:this.$store.getters.xt_user.user.id
|
344
|
396
|
}
|
345
|
397
|
},
|
346
|
398
|
methods: {
|
|
@@ -352,10 +404,6 @@
|
352
|
404
|
CreateTime(time) {
|
353
|
405
|
return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
|
354
|
406
|
},
|
355
|
|
-
|
356
|
|
-
|
357
|
|
-
|
358
|
|
-
|
359
|
407
|
handleSizeChange(limit) {
|
360
|
408
|
this.limit = limit
|
361
|
409
|
this.getlist()
|
|
@@ -393,37 +441,123 @@
|
393
|
441
|
}
|
394
|
442
|
return name
|
395
|
443
|
},
|
396
|
|
- handleDeleteAdviceTemplate(id,index){
|
397
|
|
- this.$confirm("确认删除吗?", "删除", {
|
398
|
|
- confirmButtonText: "确 定",
|
399
|
|
- cancelButtonText: "取 消",
|
400
|
|
- type: "warning"
|
|
444
|
+ getPatientById(id){
|
|
445
|
+ getPatientById(id).then(response=>{
|
|
446
|
+ if(response.data.state ==1){
|
|
447
|
+ var patient = response.data.data.patients
|
|
448
|
+
|
|
449
|
+ this.dialysis_no = patient.dialysis_no
|
|
450
|
+ this.name = patient.name
|
|
451
|
+
|
|
452
|
+ }
|
401
|
453
|
})
|
402
|
|
- .then(() => {
|
403
|
|
- DeleteVascularAccess(id).then(response => {
|
404
|
|
- if(response.data.state == 1){
|
405
|
|
- var msg = response.data.data.msg
|
406
|
|
- this.tableData.splice(index, 1);
|
407
|
|
- this.$message.success("删除成功!")
|
408
|
|
- }
|
409
|
|
-
|
410
|
|
-
|
411
|
|
- });
|
412
|
|
- })
|
413
|
|
- .catch(() => {});
|
414
|
454
|
},
|
415
|
|
- getlist(){
|
416
|
|
-
|
417
|
|
- }
|
|
455
|
+ getAllDoctor() {
|
|
456
|
+ getAllDoctor().then(response => {
|
|
457
|
+ if (response.data.state == 1) {
|
|
458
|
+ var appRole = response.data.data.appRole
|
|
459
|
+ this.adminUserList = appRole
|
|
460
|
+ }
|
|
461
|
+ })
|
|
462
|
+ },
|
|
463
|
+ savePatientLapse(){
|
|
464
|
+ var params = {
|
|
465
|
+ patient_id:this.patientID,
|
|
466
|
+ lapse_type:parseInt(this.lapse_type),
|
|
467
|
+ lapse_class:parseInt(this.lapse_class),
|
|
468
|
+ lapse_reason:this.lapse_reason,
|
|
469
|
+ record_date:this.record_date,
|
|
470
|
+ admin_user_id:this.admin_user_id,
|
|
471
|
+ remark:this.remark,
|
|
472
|
+ }
|
|
473
|
+ console.log("params=====",params)
|
|
474
|
+ savePatientLapse(params).then(response=>{
|
|
475
|
+ if(response.data.state==1){
|
|
476
|
+ var record = response.data.data.record
|
|
477
|
+ this.$message.success("保存成功!")
|
|
478
|
+ this.dialogVisible = false
|
|
479
|
+ this.remark = ""
|
|
480
|
+ this.lapse_reason = ""
|
|
481
|
+ this.getlist()
|
|
482
|
+
|
|
483
|
+ }
|
|
484
|
+ })
|
|
485
|
+ },
|
|
486
|
+ getlist(){
|
|
487
|
+ var params = {
|
|
488
|
+ patient_id:this.patientID,
|
|
489
|
+ limit:this.limit,
|
|
490
|
+ page:this.page,
|
|
491
|
+ }
|
|
492
|
+ getPatientLapseRecord(params).then(response=>{
|
|
493
|
+ if(response.data.state == 1){
|
|
494
|
+ var total = response.data.data.total
|
|
495
|
+ this.total = total
|
|
496
|
+ var record = response.data.data.record
|
|
497
|
+ this.tableData = record
|
|
498
|
+ }
|
|
499
|
+ })
|
|
500
|
+ },
|
|
501
|
+ handleUpdateAdviceTemplate(id){
|
|
502
|
+ getPatientLapsoSummary(id).then(response=>{
|
|
503
|
+ if(response.data.state == 1){
|
|
504
|
+ var lapsorecord = response.data.data.lapsorecord
|
|
505
|
+ console.log("lapsorecord",lapsorecord)
|
|
506
|
+ this.lapse_type = lapsorecord.lapse_type.toString()
|
|
507
|
+ this.lapse_class = lapsorecord.lapse_class.toString()
|
|
508
|
+ this.lapse_reason = lapsorecord.lapse_reason
|
|
509
|
+ this.record_date = this.getTime(lapsorecord.record_date)
|
|
510
|
+ this.remark = lapsorecord.remark
|
|
511
|
+ this.admin_user_id = lapsorecord.admin_user_id
|
|
512
|
+ this.id = lapsorecord.id
|
|
513
|
+ this.editDialogVisible = true
|
|
514
|
+
|
|
515
|
+ }
|
|
516
|
+ })
|
|
517
|
+
|
|
518
|
+ },
|
|
519
|
+ updatePatientLapse(){
|
|
520
|
+ var params = {
|
|
521
|
+ patient_id:this.patientID,
|
|
522
|
+ lapse_type:parseInt(this.lapse_type),
|
|
523
|
+ lapse_class:parseInt(this.lapse_class),
|
|
524
|
+ lapse_reason:this.lapse_reason,
|
|
525
|
+ record_date:this.record_date,
|
|
526
|
+ admin_user_id:this.admin_user_id,
|
|
527
|
+ remark:this.remark,
|
|
528
|
+ id:this.id,
|
|
529
|
+ }
|
|
530
|
+ updatePatientLapseRecord(params).then(response=>{
|
|
531
|
+ if(response.data.state== 1){
|
|
532
|
+ var record = response.data.data.record
|
|
533
|
+ this.editDialogVisible = false
|
|
534
|
+ this.$message.success("保存成功!")
|
|
535
|
+ this.getlist()
|
|
536
|
+ }
|
|
537
|
+ })
|
|
538
|
+ },
|
|
539
|
+ handleDeleteAdviceTemplate(id,index){
|
|
540
|
+ deletePatientLapsoRrecord(id).then(response=>{
|
|
541
|
+ if(response.data.state==1){
|
|
542
|
+ var msg = response.data.data.msg
|
|
543
|
+ this.$message.success("保存成功")
|
|
544
|
+ this.tableData.splice(index,1)
|
|
545
|
+ }
|
|
546
|
+ })
|
|
547
|
+ }
|
418
|
548
|
|
419
|
549
|
|
420
|
550
|
|
421
|
551
|
},
|
422
|
552
|
created() {
|
|
553
|
+ this.record_date = moment(new Date()).format('YYYY-MM-DD')
|
|
554
|
+
|
423
|
555
|
const id = this.$route.params && this.$route.params.id
|
424
|
|
- this.patientID = parseInt(id)
|
425
|
|
- this.getAllPatient()
|
426
|
|
- this.getlist()
|
|
556
|
+ console.log('id是设么', id)
|
|
557
|
+ this.patientID = parseInt(id)
|
|
558
|
+ this.getPatientById(id)
|
|
559
|
+ this.getAllDoctor()
|
|
560
|
+ this.getlist()
|
427
|
561
|
},
|
428
|
562
|
|
429
|
563
|
}
|