|
@@ -7,126 +7,144 @@
|
7
|
7
|
<div class="row">
|
8
|
8
|
<div class="rowOne">
|
9
|
9
|
<p class="rowName">首次诊治时间:</p>
|
10
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
10
|
+ <el-input placeholder="请输入内容" v-model="form.first_treatment_date" :disabled="true">
|
11
|
11
|
</el-input>
|
12
|
|
- <div class="btn">复制</div>
|
|
12
|
+ <div class="btn" v-clipboard:copy="form.first_treatment_date"
|
|
13
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
13
|
14
|
</div>
|
14
|
15
|
<div class="rowOne">
|
15
|
16
|
<p class="rowName1">
|
16
|
17
|
首次肾脏替代治疗时间 :
|
17
|
18
|
</p>
|
18
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
19
|
+ <el-input placeholder="请输入内容" v-model="form.firstDialysisDate" :disabled="true">
|
19
|
20
|
</el-input>
|
20
|
|
- <div class="btn">复制</div>
|
|
21
|
+ <div class="btn" v-clipboard:copy="form.firstDialysisDate"
|
|
22
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
21
|
23
|
</div>
|
22
|
24
|
<div class="rowOne">
|
23
|
25
|
<p class="rowName">创建者:</p>
|
24
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
26
|
+ <el-input placeholder="请输入内容" v-model="form.registrars" :disabled="true">
|
25
|
27
|
</el-input>
|
26
|
|
- <div class="btn">复制</div>
|
|
28
|
+ <div class="btn" v-clipboard:copy="form.registrars"
|
|
29
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
27
|
30
|
</div>
|
28
|
31
|
<div class="rowOne">
|
29
|
32
|
<p class="rowName">创建日期:</p>
|
30
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
33
|
+ <el-input placeholder="请输入内容" v-model="form.create_time" :disabled="true">
|
31
|
34
|
</el-input>
|
32
|
|
- <div class="btn">复制</div>
|
|
35
|
+ <div class="btn" v-clipboard:copy="form.create_time"
|
|
36
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
33
|
37
|
</div>
|
34
|
38
|
</div>
|
35
|
39
|
<div class="row">
|
36
|
40
|
<div class="rowOne">
|
37
|
41
|
<p class="rowName">姓名:</p>
|
38
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
42
|
+ <el-input placeholder="请输入内容" v-model="form.name" :disabled="true">
|
39
|
43
|
</el-input>
|
40
|
|
- <div class="btn">复制</div>
|
|
44
|
+ <div class="btn" v-clipboard:copy="form.name"
|
|
45
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
41
|
46
|
</div>
|
42
|
47
|
<div class="rowOne">
|
43
|
48
|
<p class="rowName">性别:</p>
|
44
|
49
|
<div class="radioOne">
|
45
|
50
|
<template>
|
46
|
|
- <el-radio v-model="radio" label="1">男</el-radio>
|
47
|
|
- <el-radio v-model="radio" label="2">女</el-radio>
|
|
51
|
+ <el-radio v-model="form.gender" label="1">男</el-radio>
|
|
52
|
+ <el-radio v-model="form.gender" label="2">女</el-radio>
|
48
|
53
|
</template>
|
49
|
54
|
</div>
|
50
|
55
|
</div>
|
51
|
56
|
<div class="rowOne">
|
52
|
57
|
<p class="rowName">证件类型:</p>
|
53
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
58
|
+ <el-input placeholder="请输入内容" :disabled="true" v-model="form.id_type">
|
54
|
59
|
</el-input>
|
55
|
|
- <div class="btn">复制</div>
|
|
60
|
+ <div class="btn" v-clipboard:copy="form.id_type"
|
|
61
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
56
|
62
|
</div>
|
57
|
63
|
</div>
|
58
|
64
|
<div class="row">
|
59
|
65
|
<div class="rowOne">
|
60
|
66
|
<p class="rowName">身份证号:</p>
|
61
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
67
|
+ <el-input placeholder="请输入内容" style="width: 200px;" v-model="form.idCardNo" :disabled="true">
|
62
|
68
|
</el-input>
|
63
|
|
- <div class="btn">复制</div>
|
|
69
|
+ <div class="btn" v-clipboard:copy="form.idCardNo"
|
|
70
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
64
|
71
|
</div>
|
65
|
72
|
</div>
|
66
|
73
|
<div class="row">
|
67
|
74
|
<div class="rowOne">
|
68
|
|
- <p class="rowName">名族:</p>
|
69
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
75
|
+ <p class="rowName">民族:</p>
|
|
76
|
+ <el-input placeholder="请输入内容" v-model="form.nation" :disabled="true">
|
70
|
77
|
</el-input>
|
71
|
78
|
</div>
|
72
|
79
|
<div class="rowOne">
|
73
|
80
|
<p class="rowName">
|
74
|
81
|
婚姻状况:
|
75
|
82
|
</p>
|
76
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
83
|
+ <el-input placeholder="请输入内容" :disabled="true" v-model="form.maritalStatus">
|
77
|
84
|
</el-input>
|
|
85
|
+
|
78
|
86
|
</div>
|
79
|
87
|
<div class="rowOne">
|
80
|
88
|
<p class="rowName">年龄:</p>
|
81
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
89
|
+ <el-input placeholder="请输入内容" v-model="form.age" :disabled="true">
|
82
|
90
|
</el-input>
|
83
|
|
- <div class="btn">复制</div>
|
|
91
|
+ <div class="btn" v-clipboard:copy="form.age"
|
|
92
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
84
|
93
|
</div>
|
85
|
94
|
<div class="rowOne">
|
86
|
95
|
<p class="rowName">出生日期:</p>
|
87
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
96
|
+ <el-input placeholder="请输入内容" v-model="form.birth" :disabled="true">
|
88
|
97
|
</el-input>
|
89
|
98
|
</div>
|
90
|
99
|
</div>
|
91
|
100
|
<div class="row">
|
92
|
101
|
<div class="rowOne">
|
93
|
102
|
<p class="rowName">教育程度:</p>
|
94
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
103
|
+ <el-input placeholder="请输入内容" style="width: 270px;" v-model="form.education" :disabled="true">
|
95
|
104
|
</el-input>
|
96
|
105
|
</div>
|
97
|
106
|
<div class="rowOne">
|
98
|
107
|
<p class="rowName">
|
99
|
108
|
职业:
|
100
|
109
|
</p>
|
101
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
110
|
+ <el-input placeholder="请输入内容" style="width: 270px;" v-model="form.profession" :disabled="true">
|
102
|
111
|
</el-input>
|
103
|
112
|
</div>
|
104
|
113
|
</div>
|
105
|
114
|
<div class="row">
|
106
|
115
|
<div class="rowOne">
|
107
|
116
|
<p class="rowName">门诊号:</p>
|
108
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
117
|
+ <el-input placeholder="请输入内容" v-if="form.source == 1" v-model="form.admissionNumber" :disabled="true">
|
|
118
|
+ </el-input>
|
|
119
|
+ <el-input placeholder="请输入内容" v-if="form.source == 2" :disabled="true">
|
109
|
120
|
</el-input>
|
110
|
|
- <div class="btn">复制</div>
|
|
121
|
+ <div class="btn" v-clipboard:copy="form.admissionNumber"
|
|
122
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
111
|
123
|
</div>
|
112
|
124
|
<div class="rowOne">
|
113
|
125
|
<p class="rowName">
|
114
|
126
|
住院号:
|
115
|
127
|
</p>
|
116
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
128
|
+ <el-input placeholder="请输入内容" v-if="form.source == 2" v-model="form.admissionNumber" :disabled="true">
|
|
129
|
+ </el-input>
|
|
130
|
+ <el-input placeholder="请输入内容" v-if="form.source == 1" :disabled="true">
|
117
|
131
|
</el-input>
|
|
132
|
+ <div class="btn" v-clipboard:copy="form.admissionNumber"
|
|
133
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
118
|
134
|
</div>
|
119
|
135
|
<div class="rowOne">
|
120
|
136
|
<p class="rowName">透析病案号:</p>
|
121
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
137
|
+ <el-input placeholder="请输入内容" v-model="form.dialysisNo" :disabled="true">
|
122
|
138
|
</el-input>
|
123
|
|
- <div class="btn">复制</div>
|
|
139
|
+ <div class="btn" v-clipboard:copy="form.dialysisNo"
|
|
140
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
124
|
141
|
</div>
|
125
|
142
|
<div class="rowOne">
|
126
|
143
|
<p class="rowName">透析龄(月):</p>
|
127
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
144
|
+ <el-input placeholder="请输入内容" v-model="form.dialysis_age" :disabled="true">
|
128
|
145
|
</el-input>
|
129
|
|
- <div class="btn">复制</div>
|
|
146
|
+ <div class="btn" v-clipboard:copy="form.dialysis_age"
|
|
147
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
130
|
148
|
</div>
|
131
|
149
|
</div>
|
132
|
150
|
<div class="row1">
|
|
@@ -134,13 +152,13 @@
|
134
|
152
|
<p class="rowName">费别:</p>
|
135
|
153
|
<div class="radioOne">
|
136
|
154
|
<template>
|
137
|
|
- <el-radio v-model="radio" label="1">基本医保</el-radio>
|
138
|
|
- <el-radio v-model="radio" label="2">新农合</el-radio>
|
139
|
|
- <el-radio v-model="radio" label="2">自费医疗</el-radio>
|
140
|
|
- <el-radio v-model="radio" label="2">公费医疗</el-radio>
|
141
|
|
- <el-radio v-model="radio" label="2">商业保险</el-radio>
|
142
|
|
- <el-radio v-model="radio" label="2">军队医疗</el-radio>
|
143
|
|
- <el-radio v-model="radio" label="2">其他</el-radio>
|
|
155
|
+ <el-radio v-model="form.expense_kind" label="1">基本医保</el-radio>
|
|
156
|
+ <el-radio v-model="form.expense_kind" label="2">新农合</el-radio>
|
|
157
|
+ <el-radio v-model="form.expense_kind" label="3">自费医疗</el-radio>
|
|
158
|
+ <el-radio v-model="form.expense_kind" label="4">公费医疗</el-radio>
|
|
159
|
+ <el-radio v-model="form.expense_kind" label="5">商业保险</el-radio>
|
|
160
|
+ <el-radio v-model="form.expense_kind" label="6">军队医疗</el-radio>
|
|
161
|
+ <el-radio v-model="form.expense_kind" label="7">其他</el-radio>
|
144
|
162
|
</template>
|
145
|
163
|
</div>
|
146
|
164
|
</div>
|
|
@@ -148,45 +166,46 @@
|
148
|
166
|
<div class="row1">
|
149
|
167
|
<div class="line">
|
150
|
168
|
<p class="rowName">通信地址:</p>
|
151
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
169
|
+ <el-input placeholder="请输入内容" :disabled="true">
|
152
|
170
|
</el-input
|
153
|
|
- ><el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
171
|
+ ><el-input placeholder="请输入内容" :disabled="true">
|
154
|
172
|
</el-input
|
155
|
|
- ><el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
173
|
+ ><el-input placeholder="请输入内容" :disabled="true">
|
156
|
174
|
</el-input>
|
157
|
175
|
</div>
|
158
|
176
|
<div class="rowOne">
|
159
|
|
- <p class="rowName">门诊号:</p>
|
160
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
177
|
+ <p class="rowName">具体地址:</p>
|
|
178
|
+ <el-input placeholder="请输入内容" v-model="form.homeAddress" :disabled="true">
|
161
|
179
|
</el-input>
|
162
|
|
- <div class="btn">复制</div>
|
|
180
|
+ <div class="btn" v-clipboard:copy="form.homeAddress"
|
|
181
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
163
|
182
|
</div>
|
164
|
183
|
</div>
|
165
|
184
|
<div class="row">
|
166
|
185
|
<div class="rowOne">
|
167
|
186
|
<p class="rowName">联系人姓名:</p>
|
168
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
187
|
+ <el-input placeholder="请输入内容" v-model="form.contact_name" :disabled="true">
|
169
|
188
|
</el-input>
|
170
|
|
- <div class="btn">复制</div>
|
|
189
|
+ <div class="btn" v-clipboard:copy="form.contact_name"
|
|
190
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
171
|
191
|
</div>
|
172
|
192
|
<div class="rowTwo">
|
173
|
193
|
<p class="rowName1">
|
174
|
194
|
固定电话     (电话):
|
175
|
195
|
</p>
|
176
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
177
|
|
- </el-input>
|
178
|
|
- <div class="btn">复制</div>
|
179
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
196
|
+ <el-input placeholder="请输入内容" v-model="form.tell_phone" :disabled="true">
|
180
|
197
|
</el-input>
|
181
|
|
- <div class="btn">复制</div>
|
|
198
|
+ <div class="btn" v-clipboard:copy="form.tell_phone"
|
|
199
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
182
|
200
|
</div>
|
183
|
201
|
<div class="rowOne">
|
184
|
202
|
<p class="rowName1">
|
185
|
203
|
联系电话     (电话):
|
186
|
204
|
</p>
|
187
|
|
- <el-input placeholder="请输入内容" v-model="input" :disabled="true">
|
|
205
|
+ <el-input placeholder="请输入内容" v-model="form.homeTelephone" :disabled="true">
|
188
|
206
|
</el-input>
|
189
|
|
- <div class="btn">复制</div>
|
|
207
|
+ <div class="btn" v-clipboard:copy="form.homeTelephone"
|
|
208
|
+ v-clipboard:success="onCopy" v-clipboard:error="onError">复制</div>
|
190
|
209
|
</div>
|
191
|
210
|
</div>
|
192
|
211
|
</div>
|
|
@@ -194,6 +213,306 @@
|
194
|
213
|
</div>
|
195
|
214
|
|
196
|
215
|
</template>
|
|
216
|
+<script>
|
|
217
|
+ import { getDataConfig } from '@/utils/data'
|
|
218
|
+ import {
|
|
219
|
+ uParseTime
|
|
220
|
+ } from '@/utils/tools'
|
|
221
|
+ import {
|
|
222
|
+ fetchPatient
|
|
223
|
+ } from '@/api/patient'
|
|
224
|
+ import { fetchAllAdminUsers } from '@/api/doctor'
|
|
225
|
+ const defaultForm = {
|
|
226
|
+ avatar: '',
|
|
227
|
+ patientType: '',
|
|
228
|
+ dialysisNo: '',
|
|
229
|
+ admissionNumber: '',
|
|
230
|
+ source: '',
|
|
231
|
+ lapseto: '',
|
|
232
|
+ partition: '',
|
|
233
|
+ bed: '',
|
|
234
|
+ name: '',
|
|
235
|
+ gender: '',
|
|
236
|
+ nation: '',
|
|
237
|
+ native_place: '',
|
|
238
|
+ maritalStatus: '',
|
|
239
|
+ idCardNo: '',
|
|
240
|
+ birth: '',
|
|
241
|
+ age: '',
|
|
242
|
+ reimbursementWayID: '',
|
|
243
|
+ healthCareNo: '',
|
|
244
|
+ healthCareDueDate: '',
|
|
245
|
+ height: '',
|
|
246
|
+ blood: '',
|
|
247
|
+ rh: '',
|
|
248
|
+ healthCareDueAlertDate: '',
|
|
249
|
+ education: '',
|
|
250
|
+ profession: '',
|
|
251
|
+ phone: '',
|
|
252
|
+ homeTelephone: '',
|
|
253
|
+ homeAddress: '',
|
|
254
|
+ work: '',
|
|
255
|
+ receivingDate: '',
|
|
256
|
+ firstDialysisDate: '',
|
|
257
|
+ dialysisAge: '',
|
|
258
|
+ induction: '',
|
|
259
|
+ initial: '',
|
|
260
|
+ dialysisTotal: '',
|
|
261
|
+ contagions: [],
|
|
262
|
+ doctor: '',
|
|
263
|
+ nurse: '',
|
|
264
|
+ assessment: '',
|
|
265
|
+ diseases: [],
|
|
266
|
+ diagnose: '',
|
|
267
|
+ registrars: '',
|
|
268
|
+ patient_complains: '',
|
|
269
|
+ present_history: '',
|
|
270
|
+ past_history: '',
|
|
271
|
+ temperature: '',
|
|
272
|
+ pulse: '',
|
|
273
|
+ respiratory: '',
|
|
274
|
+ sbp: '',
|
|
275
|
+ dbp: '',
|
|
276
|
+ record_date: '',
|
|
277
|
+ response_result: '',
|
|
278
|
+ is_infectious: '',
|
|
279
|
+ formItem: [],
|
|
280
|
+ tell_phone:'',
|
|
281
|
+ first_treatment_date:'',
|
|
282
|
+ dialysis_age:'',
|
|
283
|
+ expense_kind:'',
|
|
284
|
+ contact_name:'',
|
|
285
|
+ create_time:'',
|
|
286
|
+ id_type:"身份证"
|
|
287
|
+ }
|
|
288
|
+
|
|
289
|
+ export default {
|
|
290
|
+ name: 'One',
|
|
291
|
+ components: { },
|
|
292
|
+
|
|
293
|
+ data() {
|
|
294
|
+ return {
|
|
295
|
+ expenseOptions:[
|
|
296
|
+ {id:1,name:"基本医保"},
|
|
297
|
+ {id:2,name:"新农合"},
|
|
298
|
+ {id:3,name:"自费医疗"},
|
|
299
|
+ {id:4,name:"公费医疗"},
|
|
300
|
+ {id:5,name:"商业保险"},
|
|
301
|
+ {id:6,name:"军队医疗"},
|
|
302
|
+ {id:7,name:"其他"},
|
|
303
|
+ ],
|
|
304
|
+ form: Object.assign({}, defaultForm),
|
|
305
|
+ adminUserOptions:[],
|
|
306
|
+ maritalOptions:[],
|
|
307
|
+ educationOptions: [],
|
|
308
|
+ professionOptions:[],
|
|
309
|
+
|
|
310
|
+ }
|
|
311
|
+ },
|
|
312
|
+ created() {
|
|
313
|
+ this.maritalOptions = getDataConfig('patient', 'marital_options')
|
|
314
|
+ this.educationOptions = getDataConfig('patient', 'education_types')
|
|
315
|
+ this.professionOptions = getDataConfig('patient', 'profession_options')
|
|
316
|
+ this.fetchAllAdminUsers()
|
|
317
|
+ },
|
|
318
|
+ methods: {
|
|
319
|
+ getTime(val){
|
|
320
|
+ return uParseTime(val, '{y}年{m}月{d}日')
|
|
321
|
+ },
|
|
322
|
+
|
|
323
|
+ getZones() {
|
|
324
|
+ getZones().then(response => {
|
|
325
|
+ if (response.data.state === 1) {
|
|
326
|
+ this.partitionOptions = response.data.data.zones
|
|
327
|
+ }
|
|
328
|
+ })
|
|
329
|
+ },
|
|
330
|
+ fetchPatient(id) {
|
|
331
|
+ fetchPatient(id)
|
|
332
|
+ .then(response => {
|
|
333
|
+ if (response.data.state === 1) {
|
|
334
|
+ var patietInfo = response.data.data.patient
|
|
335
|
+ this.form.avatar = patietInfo.avatar
|
|
336
|
+ this.form.name = patietInfo.name
|
|
337
|
+ this.form.alias = patietInfo.alias
|
|
338
|
+ this.form.lapseto = patietInfo.lapseto
|
|
339
|
+ this.form.idCardNo = patietInfo.id_card_no
|
|
340
|
+ this.form.dialysisNo = patietInfo.dialysis_no
|
|
341
|
+ this.form.gender = patietInfo.gender
|
|
342
|
+ this.form.is_infectious = patietInfo.is_infectious
|
|
343
|
+ // this.form.record_date = patietInfo.is_infectious
|
|
344
|
+ this.form.response_result = patietInfo.response_result
|
|
345
|
+ this.form.remind_cycle = patietInfo.remind_cycle
|
|
346
|
+ this.infections = response.data.data.infections
|
|
347
|
+ this.form.formItem = this.infections
|
|
348
|
+ if (patietInfo.gender === 1 || patietInfo.gender === 2) {
|
|
349
|
+ this.form.gender = patietInfo.gender.toString()
|
|
350
|
+ }
|
|
351
|
+ this.form.nation = patietInfo.nation
|
|
352
|
+ this.form.native_place = patietInfo.native_place
|
|
353
|
+ this.form.birth = uParseTime(patietInfo.birthday, '{y}-{m}-{d}')
|
|
354
|
+ this.form.create_time = uParseTime(patietInfo.created_time, '{y}-{m}-{d}')
|
|
355
|
+
|
|
356
|
+ this.form.firstDialysisDate = uParseTime(patietInfo.first_dialysis_date, '{y}-{m}-{d}')
|
|
357
|
+ this.form.height = patietInfo.height + ''
|
|
358
|
+ if (patietInfo.marital_status > 0) {
|
|
359
|
+ this.form.maritalStatus = patietInfo.marital_status
|
|
360
|
+ }
|
|
361
|
+ this.form.children = patietInfo.children
|
|
362
|
+ this.form.admissionNumber = patietInfo.admission_number
|
|
363
|
+ if (patietInfo.reimbursement_way_id > 0) {
|
|
364
|
+ this.form.reimbursementWayID = patietInfo.reimbursement_way_id
|
|
365
|
+ }
|
|
366
|
+ this.form.healthCareNo = patietInfo.health_care_no
|
|
367
|
+ this.form.phone = patietInfo.phone
|
|
368
|
+ this.form.homeTelephone = patietInfo.home_telephone
|
|
369
|
+ this.form.relative_phone = patietInfo.relative_phone
|
|
370
|
+ this.form.relative_relations = patietInfo.relative_relations
|
|
371
|
+ this.form.homeAddress = patietInfo.home_address
|
|
372
|
+ this.form.work = patietInfo.work_unit
|
|
373
|
+ this.form.unit_address = patietInfo.unit_address
|
|
374
|
+
|
|
375
|
+ if (patietInfo.age == 0) {
|
|
376
|
+ this.form.age = jsGetAge(this.form.birth, '-')
|
|
377
|
+ } else {
|
|
378
|
+ this.form.age = patietInfo.age
|
|
379
|
+ }
|
|
380
|
+
|
|
381
|
+ if (patietInfo.profession > 0) {
|
|
382
|
+ this.form.profession = patietInfo.profession
|
|
383
|
+ }
|
|
384
|
+ if (patietInfo.education_level > 0) {
|
|
385
|
+ this.form.education = patietInfo.education_level
|
|
386
|
+ }
|
|
387
|
+ if (patietInfo.source === 1 || patietInfo.source === 2) {
|
|
388
|
+ this.form.source = patietInfo.source
|
|
389
|
+ }
|
|
390
|
+ console.log("source:"+this.form.source)
|
|
391
|
+ if (patietInfo.lapseto === 1 || patietInfo.lapseto === 2) {
|
|
392
|
+ this.form.lapseto = patietInfo.lapseto
|
|
393
|
+ }
|
|
394
|
+ if (patietInfo.is_hospital_first_dialysis === 1 || patietInfo.is_hospital_first_dialysis === 2) {
|
|
395
|
+ this.form.is_hospital_first_dialysis = patietInfo.is_hospital_first_dialysis
|
|
396
|
+ }
|
|
397
|
+ if (patietInfo.first_dialysis_date !== 0) {
|
|
398
|
+ this.form.firstDialysisDate = uParseTime(
|
|
399
|
+ patietInfo.first_dialysis_date,
|
|
400
|
+ '{y}-{m}-{d}'
|
|
401
|
+ )
|
|
402
|
+ }
|
|
403
|
+ this.form.first_dialysis_hospital = patietInfo.first_dialysis_hospital
|
|
404
|
+ if (patietInfo.predialysis_condition.length > 0) {
|
|
405
|
+ this.form.predialysis_condition = patietInfo.predialysis_condition.split(',')
|
|
406
|
+ }
|
|
407
|
+ this.form.pre_hospital_dialysis_frequency = patietInfo.pre_hospital_dialysis_frequency
|
|
408
|
+ this.form.pre_hospital_dialysis_times = patietInfo.pre_hospital_dialysis_times
|
|
409
|
+ if (patietInfo.hospital_first_dialysis_date !== 0) {
|
|
410
|
+ this.form.hospital_first_dialysis_date = uParseTime(
|
|
411
|
+ patietInfo.hospital_first_dialysis_date,
|
|
412
|
+ '{y}-{m}-{d}'
|
|
413
|
+ )
|
|
414
|
+ }
|
|
415
|
+ this.form.contagions = response.data.data.contagions
|
|
416
|
+ this.form.diseases = response.data.data.diseases
|
|
417
|
+ this.form.remark = patietInfo.remark
|
|
418
|
+ this.form.diagnose = patietInfo.diagnose
|
|
419
|
+
|
|
420
|
+ this.form.patient_complains = patietInfo.patient_complains
|
|
421
|
+ this.form.present_history = patietInfo.present_history
|
|
422
|
+ this.form.past_history = patietInfo.past_history
|
|
423
|
+ this.form.temperature = patietInfo.temperature
|
|
424
|
+ this.form.pulse = patietInfo.pulse
|
|
425
|
+ this.form.respiratory = patietInfo.respiratory
|
|
426
|
+ this.form.sbp = patietInfo.sbp
|
|
427
|
+ this.form.dbp = patietInfo.dbp
|
|
428
|
+
|
|
429
|
+ this.form.contact_name = patietInfo.contact_name
|
|
430
|
+ this.form.tell_phone = patietInfo.tell_phone
|
|
431
|
+ this.form.dialysis_age = patietInfo.dialysis_age
|
|
432
|
+ if( patietInfo.expense_kind == 0){
|
|
433
|
+ this.form.expense_kind = ""
|
|
434
|
+ }else{
|
|
435
|
+ this.form.expense_kind = patietInfo.expense_kind.toString()
|
|
436
|
+ }
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+ this.form.first_treatment_date = uParseTime(
|
|
441
|
+ patietInfo.first_treatment_date,
|
|
442
|
+ '{y}-{m}-{d}'
|
|
443
|
+ )
|
|
444
|
+
|
|
445
|
+ if (patietInfo.registrars_id > 0) {
|
|
446
|
+ var eLen = this.adminUserOptions.length
|
|
447
|
+ for (let index = 0; index < eLen; index++) {
|
|
448
|
+ if (this.adminUserOptions[index].id === patietInfo.registrars_id) {
|
|
449
|
+ this.form.registrars = this.adminUserOptions[index].name
|
|
450
|
+ break
|
|
451
|
+ }
|
|
452
|
+ }
|
|
453
|
+ } else {
|
|
454
|
+ this.form.registrars = ''
|
|
455
|
+ }
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+ this.form.maritalStatus = this.getMaritalType(patietInfo.marital_status)
|
|
459
|
+ this.form.education = this.getEducationType(patietInfo.education_level)
|
|
460
|
+ this.form.profession = this.getProfessionType(patietInfo.profession)
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+ } else {
|
|
468
|
+ console.log('patient get err state')
|
|
469
|
+ this.$notify.error({
|
|
470
|
+ title: '错误',
|
|
471
|
+ message: '网络异常'
|
|
472
|
+ })
|
|
473
|
+ }
|
|
474
|
+ }).catch(err => {
|
|
475
|
+ this.$notify.error({
|
|
476
|
+ title: '错误',
|
|
477
|
+ message: '网络异常'
|
|
478
|
+ })
|
|
479
|
+ })
|
|
480
|
+ },
|
|
481
|
+ fetchAllAdminUsers() {
|
|
482
|
+ fetchAllAdminUsers().then(response => {
|
|
483
|
+ if (response.data.state === 1) {
|
|
484
|
+ this.adminUserOptions = response.data.data.users
|
|
485
|
+ }
|
|
486
|
+ })
|
|
487
|
+ },getMaritalType(id){
|
|
488
|
+ for(let i = 0; i < this.maritalOptions.length; i++){
|
|
489
|
+ if(this.maritalOptions[i].id == id){
|
|
490
|
+ return this.maritalOptions[i].name
|
|
491
|
+ }
|
|
492
|
+ }
|
|
493
|
+ },getEducationType(id){
|
|
494
|
+ for(let i = 0; i < this.educationOptions.length; i++){
|
|
495
|
+ if(this.educationOptions[i].id == id){
|
|
496
|
+ return this.educationOptions[i].name
|
|
497
|
+ }
|
|
498
|
+ }
|
|
499
|
+ },getProfessionType(id){
|
|
500
|
+ for(let i = 0; i < this.professionOptions.length; i++){
|
|
501
|
+ if(this.professionOptions[i].id == id){
|
|
502
|
+ return this.professionOptions[i].name
|
|
503
|
+ }
|
|
504
|
+ }
|
|
505
|
+ },onCopy(){
|
|
506
|
+ this.$message.success('复制成功')
|
|
507
|
+
|
|
508
|
+ },onError(){
|
|
509
|
+ this.$message.success('复制失败,请重试')
|
|
510
|
+ },
|
|
511
|
+
|
|
512
|
+ }
|
|
513
|
+ }
|
|
514
|
+</script>
|
|
515
|
+
|
197
|
516
|
|
198
|
517
|
<style lang="scss">
|
199
|
518
|
.basicInfo {
|
|
@@ -216,7 +535,7 @@
|
216
|
535
|
.rowOne {
|
217
|
536
|
float: left;
|
218
|
537
|
height: 36px;
|
219
|
|
- width: 262px;
|
|
538
|
+ width: 350px;
|
220
|
539
|
// line-height: 36px;
|
221
|
540
|
margin-right: 12px;
|
222
|
541
|
margin-bottom: 20px;
|