|
@@ -31,13 +31,25 @@
|
31
|
31
|
</van-tab>
|
32
|
32
|
</van-tabs>
|
33
|
33
|
<van-popup v-model="show" position="top" :style="{ height: '100%' }">
|
34
|
|
- <div style="padding:10px;font-size:1.25rem;text-align:right" @click="show = false">
|
|
34
|
+ <div
|
|
35
|
+ style="padding:10px;font-size:1.25rem;text-align:right"
|
|
36
|
+ @click="show = false"
|
|
37
|
+ >
|
35
|
38
|
<van-icon name="cross" />
|
36
|
39
|
</div>
|
37
|
|
- <van-search v-model="value" placeholder="请输入病人名字" @cancel="onCancel" @search="onSearch" />
|
|
40
|
+ <van-search
|
|
41
|
+ v-model="value"
|
|
42
|
+ placeholder="请输入病人名字"
|
|
43
|
+ @cancel="onCancel"
|
|
44
|
+ @search="onSearch"
|
|
45
|
+ />
|
38
|
46
|
|
39
|
47
|
<van-index-bar class="indexBar" :sticky="false" highlight-color="#fb6463">
|
40
|
|
- <van-index-anchor v-for="(item, index) in firstNameTwo" :key="index" :index="index">
|
|
48
|
+ <van-index-anchor
|
|
49
|
+ v-for="(item, index) in firstNameTwo"
|
|
50
|
+ :key="index"
|
|
51
|
+ :index="index"
|
|
52
|
+ >
|
41
|
53
|
<span class="indexWord">{{ index }}</span>
|
42
|
54
|
<van-cell
|
43
|
55
|
@click="chooseCity(citem)"
|
|
@@ -50,7 +62,10 @@
|
50
|
62
|
</van-popup>
|
51
|
63
|
|
52
|
64
|
<van-popup v-model="show1" position="top" :style="{ height: '40%' }">
|
53
|
|
- <div style="padding:10px;font-size:1.25rem;text-align:right" @click="show1 = false">
|
|
65
|
+ <div
|
|
66
|
+ style="padding:10px;font-size:1.25rem;text-align:right"
|
|
67
|
+ @click="show1 = false"
|
|
68
|
+ >
|
54
|
69
|
<van-icon name="cross" />
|
55
|
70
|
</div>
|
56
|
71
|
<div class="titleBox">
|
|
@@ -59,36 +74,38 @@
|
59
|
74
|
v-for="(item, index) in title"
|
60
|
75
|
:key="index"
|
61
|
76
|
@click="changeActive(index)"
|
62
|
|
- >{{ item }}</div>
|
|
77
|
+ >
|
|
78
|
+ {{ item }}
|
|
79
|
+ </div>
|
63
|
80
|
</div>
|
64
|
81
|
</van-popup>
|
65
|
82
|
</div>
|
66
|
83
|
</template>
|
67
|
84
|
|
68
|
85
|
<script>
|
69
|
|
-import "../../styles/resetStyle.scss";
|
70
|
|
-import DoctorManagement from "@/pages/doctorAdvice/components/DoctorManagement";
|
71
|
|
-import DryWeight from "@/pages/doctorAdvice/components/DryWeight";
|
72
|
|
-import CourseManagement from "@/pages/doctorAdvice/components/CourseManagement";
|
73
|
|
-import RescueRecord from "@/pages/doctorAdvice/components/RescueRecord";
|
74
|
|
-import Inspection from "@/pages/doctorAdvice/components/Inspection";
|
75
|
|
-import LongDialysis from "@/pages/doctorAdvice/components/LongDialysis";
|
76
|
|
-import DialysisRecord from "@/pages/doctorAdvice/components/DialysisRecord";
|
77
|
|
-import Scheduling from "@/pages/doctorAdvice/components/Scheduling";
|
78
|
|
-import Education from "@/pages/doctorAdvice/components/Education";
|
79
|
|
-import signsRecord from "@/pages/doctorAdvice/components/signsRecord";
|
80
|
|
-import recoverNotes from "@/pages/doctorAdvice/components/recoverNotes";
|
81
|
|
-import medicationPlan from "@/pages/doctorAdvice/components/medicationPlan";
|
82
|
|
-import deviceManagement from "@/pages/doctorAdvice/components/deviceManagement";
|
83
|
|
-import { uParseTime } from "@/utils/tools";
|
|
86
|
+import '../../styles/resetStyle.scss'
|
|
87
|
+import DoctorManagement from '@/pages/doctorAdvice/components/DoctorManagement'
|
|
88
|
+import DryWeight from '@/pages/doctorAdvice/components/DryWeight'
|
|
89
|
+import CourseManagement from '@/pages/doctorAdvice/components/CourseManagement'
|
|
90
|
+import RescueRecord from '@/pages/doctorAdvice/components/RescueRecord'
|
|
91
|
+import Inspection from '@/pages/doctorAdvice/components/Inspection'
|
|
92
|
+import LongDialysis from '@/pages/doctorAdvice/components/LongDialysis'
|
|
93
|
+import DialysisRecord from '@/pages/doctorAdvice/components/DialysisRecord'
|
|
94
|
+import Scheduling from '@/pages/doctorAdvice/components/Scheduling'
|
|
95
|
+import Education from '@/pages/doctorAdvice/components/Education'
|
|
96
|
+import signsRecord from '@/pages/doctorAdvice/components/signsRecord'
|
|
97
|
+import recoverNotes from '@/pages/doctorAdvice/components/recoverNotes'
|
|
98
|
+import medicationPlan from '@/pages/doctorAdvice/components/medicationPlan'
|
|
99
|
+import deviceManagement from '@/pages/doctorAdvice/components/deviceManagement'
|
|
100
|
+import { uParseTime } from '@/utils/tools'
|
84
|
101
|
import {
|
85
|
102
|
getPatientDetail,
|
86
|
103
|
getBloodDialysisPatientTwo,
|
87
|
104
|
ToSearch
|
88
|
|
-} from "@/api/patient/patient";
|
89
|
|
-const moment = require("moment");
|
90
|
|
-let pinyin = require("js-pinyin");
|
91
|
|
-pinyin.setOptions({ checkPolyphone: false, charCase: 0 });
|
|
105
|
+} from '@/api/patient/patient'
|
|
106
|
+const moment = require('moment')
|
|
107
|
+let pinyin = require('js-pinyin')
|
|
108
|
+pinyin.setOptions({ checkPolyphone: false, charCase: 0 })
|
92
|
109
|
export default {
|
93
|
110
|
components: {
|
94
|
111
|
DoctorManagement,
|
|
@@ -105,142 +122,142 @@ export default {
|
105
|
122
|
medicationPlan,
|
106
|
123
|
deviceManagement
|
107
|
124
|
},
|
108
|
|
- data() {
|
|
125
|
+ data () {
|
109
|
126
|
return {
|
110
|
127
|
show: false,
|
111
|
128
|
show1: false,
|
112
|
129
|
active: 0,
|
113
|
130
|
title: [
|
114
|
|
- "医嘱",
|
115
|
|
- "长期透析处方",
|
116
|
|
- "透析记录",
|
117
|
|
- "干体重",
|
118
|
|
- "检验检查",
|
119
|
|
- "病程记录",
|
120
|
|
- "抢救记录",
|
121
|
|
- "排班信息",
|
122
|
|
- "宣教信息",
|
123
|
|
- "体征记录",
|
124
|
|
- "康复笔记",
|
125
|
|
- "用药管理",
|
126
|
|
- "设备管理"
|
|
131
|
+ '医嘱',
|
|
132
|
+ '长期透析处方',
|
|
133
|
+ '透析记录',
|
|
134
|
+ '干体重',
|
|
135
|
+ '检验检查',
|
|
136
|
+ '病程记录',
|
|
137
|
+ '抢救记录',
|
|
138
|
+ '排班信息',
|
|
139
|
+ '宣教信息',
|
|
140
|
+ '体征记录',
|
|
141
|
+ '康复笔记',
|
|
142
|
+ '用药管理',
|
|
143
|
+ '设备管理'
|
127
|
144
|
],
|
128
|
145
|
|
129
|
|
- searchVal: "",
|
130
|
|
- startTime: moment(new Date()).format("YYYY-MM-DD"),
|
131
|
|
- endTime: moment(new Date()).format("YYYY-MM-DD"),
|
|
146
|
+ searchVal: '',
|
|
147
|
+ startTime: moment(new Date()).format('YYYY-MM-DD'),
|
|
148
|
+ endTime: moment(new Date()).format('YYYY-MM-DD'),
|
132
|
149
|
show1: false,
|
133
|
150
|
show2: false,
|
134
|
151
|
currentDate1: new Date(),
|
135
|
152
|
currentDate2: new Date(),
|
136
|
153
|
show3: false,
|
137
|
|
- actions: [{ name: "编辑" }, { name: "删除" }],
|
138
|
|
- time: "2016-10-2",
|
|
154
|
+ actions: [{ name: '编辑' }, { name: '删除' }],
|
|
155
|
+ time: '2016-10-2',
|
139
|
156
|
patientForm: {
|
140
|
|
- name: "",
|
141
|
|
- sex: "",
|
142
|
|
- age: "",
|
143
|
|
- dialysis_no: "",
|
144
|
|
- avatar: ""
|
|
157
|
+ name: '',
|
|
158
|
+ sex: '',
|
|
159
|
+ age: '',
|
|
160
|
+ dialysis_no: '',
|
|
161
|
+ avatar: ''
|
145
|
162
|
},
|
146
|
163
|
doctorAdvice: [],
|
147
|
164
|
yiShow: false,
|
148
|
165
|
meiShow: false,
|
149
|
166
|
bingShow: false,
|
150
|
167
|
aiShow: false,
|
151
|
|
- doctor_name: "",
|
152
|
|
- value: "",
|
153
|
|
- patientName: "",
|
|
168
|
+ doctor_name: '',
|
|
169
|
+ value: '',
|
|
170
|
+ patientName: '',
|
154
|
171
|
cityNameList: [
|
155
|
172
|
{
|
156
|
173
|
id: 101,
|
157
|
|
- name: "北京市",
|
|
174
|
+ name: '北京市',
|
158
|
175
|
pid: 1,
|
159
|
176
|
code: 0
|
160
|
177
|
},
|
161
|
178
|
{
|
162
|
179
|
id: 10101,
|
163
|
|
- name: "天津市",
|
|
180
|
+ name: '天津市',
|
164
|
181
|
pid: 10001,
|
165
|
182
|
code: 0
|
166
|
183
|
},
|
167
|
184
|
{
|
168
|
185
|
id: 20101,
|
169
|
|
- name: "石家庄市",
|
|
186
|
+ name: '石家庄市',
|
170
|
187
|
pid: 20001,
|
171
|
188
|
code: 130100
|
172
|
189
|
}
|
173
|
190
|
],
|
174
|
191
|
FirstPin: [
|
175
|
|
- "A",
|
176
|
|
- "B",
|
177
|
|
- "C",
|
178
|
|
- "D",
|
179
|
|
- "E",
|
180
|
|
- "F",
|
181
|
|
- "G",
|
182
|
|
- "H",
|
183
|
|
- "J",
|
184
|
|
- "K",
|
185
|
|
- "L",
|
186
|
|
- "M",
|
187
|
|
- "N",
|
188
|
|
- "P",
|
189
|
|
- "Q",
|
190
|
|
- "R",
|
191
|
|
- "S",
|
192
|
|
- "T",
|
193
|
|
- "W",
|
194
|
|
- "X",
|
195
|
|
- "Y",
|
196
|
|
- "Z"
|
|
192
|
+ 'A',
|
|
193
|
+ 'B',
|
|
194
|
+ 'C',
|
|
195
|
+ 'D',
|
|
196
|
+ 'E',
|
|
197
|
+ 'F',
|
|
198
|
+ 'G',
|
|
199
|
+ 'H',
|
|
200
|
+ 'J',
|
|
201
|
+ 'K',
|
|
202
|
+ 'L',
|
|
203
|
+ 'M',
|
|
204
|
+ 'N',
|
|
205
|
+ 'P',
|
|
206
|
+ 'Q',
|
|
207
|
+ 'R',
|
|
208
|
+ 'S',
|
|
209
|
+ 'T',
|
|
210
|
+ 'W',
|
|
211
|
+ 'X',
|
|
212
|
+ 'Y',
|
|
213
|
+ 'Z'
|
197
|
214
|
],
|
198
|
215
|
firstNameTwo: {},
|
199
|
216
|
limit: 10,
|
200
|
217
|
page: 1,
|
201
|
218
|
patient: []
|
202
|
|
- };
|
|
219
|
+ }
|
203
|
220
|
},
|
204
|
221
|
methods: {
|
205
|
|
- changeActive(index) {
|
206
|
|
- this.active = index;
|
207
|
|
- this.show1 = false;
|
|
222
|
+ changeActive (index) {
|
|
223
|
+ this.active = index
|
|
224
|
+ this.show1 = false
|
208
|
225
|
},
|
209
|
226
|
|
210
|
227
|
// sadas
|
211
|
|
- showPopup(index) {
|
|
228
|
+ showPopup (index) {
|
212
|
229
|
if (index === 1) {
|
213
|
|
- this.show1 = true;
|
|
230
|
+ this.show1 = true
|
214
|
231
|
} else if (index === 2) {
|
215
|
|
- this.show2 = true;
|
|
232
|
+ this.show2 = true
|
216
|
233
|
}
|
217
|
234
|
},
|
218
|
|
- chooseStartTime(value) {
|
219
|
|
- this.startTime = moment(value).format("YYYY-MM-DD");
|
220
|
|
- var patientid = this.$route.query.patientid;
|
221
|
|
- var orgid = this.$route.query.orgid;
|
222
|
|
- this.GetDoctroAdvice(patientid, orgid, this.startTime);
|
223
|
|
- this.show1 = false;
|
|
235
|
+ chooseStartTime (value) {
|
|
236
|
+ this.startTime = moment(value).format('YYYY-MM-DD')
|
|
237
|
+ var patientid = this.$route.query.patientid
|
|
238
|
+ var orgid = this.$route.query.orgid
|
|
239
|
+ this.GetDoctroAdvice(patientid, orgid, this.startTime)
|
|
240
|
+ this.show1 = false
|
224
|
241
|
},
|
225
|
|
- chooseEndTime(value) {
|
226
|
|
- this.endTime = moment(value).format("YYYY-MM-DD");
|
227
|
|
- var patientid = this.$route.query.patientid;
|
228
|
|
- var orgid = this.$route.query.orgid;
|
229
|
|
- this.GetDoctroAdvice(patientid, orgid, this.endTime);
|
230
|
|
- this.show2 = false;
|
|
242
|
+ chooseEndTime (value) {
|
|
243
|
+ this.endTime = moment(value).format('YYYY-MM-DD')
|
|
244
|
+ var patientid = this.$route.query.patientid
|
|
245
|
+ var orgid = this.$route.query.orgid
|
|
246
|
+ this.GetDoctroAdvice(patientid, orgid, this.endTime)
|
|
247
|
+ this.show2 = false
|
231
|
248
|
},
|
232
|
|
- onClick(index) {
|
|
249
|
+ onClick (index) {
|
233
|
250
|
if (index === 1) {
|
234
|
|
- this.show3 = true;
|
|
251
|
+ this.show3 = true
|
235
|
252
|
} else if (index === 2) {
|
236
|
|
- this.show3 = true;
|
|
253
|
+ this.show3 = true
|
237
|
254
|
}
|
238
|
255
|
},
|
239
|
|
- RecordTime(time) {
|
|
256
|
+ RecordTime (time) {
|
240
|
257
|
// return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
|
241
|
|
- return uParseTime(time, "{y}-{m}-{d}");
|
|
258
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
242
|
259
|
},
|
243
|
|
- GetDoctroAdvice(patientid, orgid) {
|
|
260
|
+ GetDoctroAdvice (patientid, orgid) {
|
244
|
261
|
GetDoctroAdvice(
|
245
|
262
|
patientid,
|
246
|
263
|
orgid,
|
|
@@ -249,149 +266,150 @@ export default {
|
249
|
266
|
this.searchVal
|
250
|
267
|
).then(response => {
|
251
|
268
|
if (response.data.state === 1) {
|
252
|
|
- var doctoradvice = response.data.data.doctoradvice;
|
253
|
|
- this.doctorAdvice = doctoradvice;
|
254
|
|
- var patients = response.data.data.patients;
|
255
|
|
- this.patientForm.name = patients.name;
|
256
|
|
- this.patientForm.age = patients.age;
|
257
|
|
- this.patientForm.avatar = patients.avatar;
|
258
|
|
- var diseases = response.data.data.diseases;
|
|
269
|
+ var doctoradvice = response.data.data.doctoradvice
|
|
270
|
+ this.doctorAdvice = doctoradvice
|
|
271
|
+ var patients = response.data.data.patients
|
|
272
|
+ this.patientForm.name = patients.name
|
|
273
|
+ this.patientForm.age = patients.age
|
|
274
|
+ this.patientForm.avatar = patients.avatar
|
|
275
|
+ var diseases = response.data.data.diseases
|
259
|
276
|
for (let index = 0; index < diseases.length; index++) {
|
260
|
277
|
if (diseases[index].disease_id === 2) {
|
261
|
|
- this.yiShow = true;
|
|
278
|
+ this.yiShow = true
|
262
|
279
|
}
|
263
|
280
|
if (diseases[index].disease_id === 3) {
|
264
|
|
- this.bingShow = true;
|
|
281
|
+ this.bingShow = true
|
265
|
282
|
}
|
266
|
283
|
if (diseases[index].disease_id === 4) {
|
267
|
|
- this.aiShow = true;
|
|
284
|
+ this.aiShow = true
|
268
|
285
|
}
|
269
|
286
|
|
270
|
287
|
if (diseases[index].disease_id === 6) {
|
271
|
|
- this.meiShow = true;
|
|
288
|
+ this.meiShow = true
|
272
|
289
|
}
|
273
|
290
|
}
|
274
|
291
|
if (patients.gender === 1) {
|
275
|
|
- this.patientForm.sex = "男";
|
|
292
|
+ this.patientForm.sex = '男'
|
276
|
293
|
}
|
277
|
294
|
if (patients.gender === 2) {
|
278
|
|
- this.patientForm.sex = "女";
|
|
295
|
+ this.patientForm.sex = '女'
|
279
|
296
|
}
|
280
|
|
- this.patientForm.dialysis_no = patients.dialysis_no;
|
281
|
|
- var role = response.data.data.role;
|
282
|
|
- this.doctor_name = role.user_name;
|
|
297
|
+ this.patientForm.dialysis_no = patients.dialysis_no
|
|
298
|
+ var role = response.data.data.role
|
|
299
|
+ this.doctor_name = role.user_name
|
283
|
300
|
}
|
284
|
|
- });
|
|
301
|
+ })
|
285
|
302
|
},
|
286
|
|
- watchNum() {
|
287
|
|
- var patientid = this.$route.query.patientid;
|
288
|
|
- var orgid = this.$route.query.orgid;
|
|
303
|
+ watchNum () {
|
|
304
|
+ var patientid = this.$route.query.patientid
|
|
305
|
+ var orgid = this.$route.query.orgid
|
289
|
306
|
toSeacherDoctorAdvice(patientid, orgid, this.searchVal).then(response => {
|
290
|
307
|
if (response.data.state === 1) {
|
291
|
|
- var doctorAdvice = response.data.data.doctoradvice;
|
292
|
|
- this.doctorAdvice = doctoradvice;
|
|
308
|
+ var doctorAdvice = response.data.data.doctoradvice
|
|
309
|
+ this.doctorAdvice = doctoradvice
|
293
|
310
|
}
|
294
|
|
- });
|
|
311
|
+ })
|
295
|
312
|
},
|
296
|
|
- deleteDoctorAdvice(id, index) {
|
|
313
|
+ deleteDoctorAdvice (id, index) {
|
297
|
314
|
deleteDoctorAdvice(id, index).then(response => {
|
298
|
315
|
if (response.data.state === 1) {
|
299
|
|
- var msg = response.data.data.msg;
|
300
|
|
- this.doctorAdvice.splice(index, 1);
|
|
316
|
+ var msg = response.data.data.msg
|
|
317
|
+ this.doctorAdvice.splice(index, 1)
|
301
|
318
|
}
|
302
|
|
- });
|
|
319
|
+ })
|
303
|
320
|
},
|
304
|
|
- toReturn() {
|
305
|
|
- this.$router.push("/patients");
|
|
321
|
+ toReturn () {
|
|
322
|
+ this.$router.push('/patients')
|
306
|
323
|
},
|
307
|
|
- getPatientDetail(patientid) {
|
|
324
|
+ getPatientDetail (patientid) {
|
308
|
325
|
getPatientDetail(patientid).then(response => {
|
309
|
326
|
if (response.data.state === 1) {
|
310
|
|
- var patientDetail = response.data.data.patientDetail;
|
311
|
|
- this.patientName = patientDetail.name;
|
|
327
|
+ var patientDetail = response.data.data.patientDetail
|
|
328
|
+ console.log('病人详情', patientDetail)
|
|
329
|
+ this.patientName = patientDetail.name
|
312
|
330
|
}
|
313
|
|
- });
|
|
331
|
+ })
|
314
|
332
|
},
|
315
|
|
- getBloodDialysisPatientTwo() {
|
|
333
|
+ getBloodDialysisPatientTwo () {
|
316
|
334
|
getBloodDialysisPatientTwo(this.page, this.limit).then(response => {
|
317
|
|
- var patient = response.data.data.patient;
|
318
|
|
- this.patient = patient;
|
319
|
|
- let cityNameList = [];
|
|
335
|
+ var patient = response.data.data.patient
|
|
336
|
+ this.patient = patient
|
|
337
|
+ let cityNameList = []
|
320
|
338
|
for (let p in patient) {
|
321
|
|
- cityNameList.push(patient[p].name);
|
|
339
|
+ cityNameList.push(patient[p].name)
|
322
|
340
|
}
|
323
|
|
- let firstName = {};
|
|
341
|
+ let firstName = {}
|
324
|
342
|
this.FirstPin.forEach(item => {
|
325
|
|
- firstName[item] = [];
|
|
343
|
+ firstName[item] = []
|
326
|
344
|
cityNameList.forEach(el => {
|
327
|
|
- let first = pinyin.getFullChars(el).substring(0, 1);
|
|
345
|
+ let first = pinyin.getFullChars(el).substring(0, 1)
|
328
|
346
|
if (first == item) {
|
329
|
|
- firstName[item].push(el);
|
|
347
|
+ firstName[item].push(el)
|
330
|
348
|
}
|
331
|
|
- });
|
332
|
|
- this.firstNameTwo = firstName;
|
|
349
|
+ })
|
|
350
|
+ this.firstNameTwo = firstName
|
333
|
351
|
// 判断非空
|
334
|
|
- let newObj = {};
|
|
352
|
+ let newObj = {}
|
335
|
353
|
Object.keys(this.firstNameTwo).map((item, index) => {
|
336
|
354
|
if (this.firstNameTwo[item].length != 0) {
|
337
|
|
- newObj[item] = this.firstNameTwo[item];
|
|
355
|
+ newObj[item] = this.firstNameTwo[item]
|
338
|
356
|
}
|
339
|
|
- });
|
340
|
|
- this.firstNameTwo = newObj;
|
341
|
|
- });
|
342
|
|
- });
|
|
357
|
+ })
|
|
358
|
+ this.firstNameTwo = newObj
|
|
359
|
+ })
|
|
360
|
+ })
|
343
|
361
|
},
|
344
|
|
- onSearch(val) {
|
|
362
|
+ onSearch (val) {
|
345
|
363
|
ToSearch(val).then(response => {
|
346
|
364
|
if (response.data.state === 1) {
|
347
|
|
- var search = response.data.data.search;
|
348
|
|
- console.log("search", search);
|
349
|
|
- let cityNameList = [];
|
|
365
|
+ var search = response.data.data.search
|
|
366
|
+ console.log('search', search)
|
|
367
|
+ let cityNameList = []
|
350
|
368
|
for (let p in search) {
|
351
|
|
- cityNameList.push(search[p].name);
|
|
369
|
+ cityNameList.push(search[p].name)
|
352
|
370
|
}
|
353
|
|
- let firstName = {};
|
|
371
|
+ let firstName = {}
|
354
|
372
|
this.FirstPin.forEach(item => {
|
355
|
|
- firstName[item] = [];
|
|
373
|
+ firstName[item] = []
|
356
|
374
|
cityNameList.forEach(el => {
|
357
|
|
- let first = pinyin.getFullChars(el).substring(0, 1);
|
|
375
|
+ let first = pinyin.getFullChars(el).substring(0, 1)
|
358
|
376
|
if (first == item) {
|
359
|
|
- firstName[item].push(el);
|
|
377
|
+ firstName[item].push(el)
|
360
|
378
|
}
|
361
|
|
- });
|
362
|
|
- this.firstNameTwo = firstName;
|
|
379
|
+ })
|
|
380
|
+ this.firstNameTwo = firstName
|
363
|
381
|
// 判断非空
|
364
|
|
- let newObj = {};
|
|
382
|
+ let newObj = {}
|
365
|
383
|
Object.keys(this.firstNameTwo).map((item, index) => {
|
366
|
384
|
if (this.firstNameTwo[item].length != 0) {
|
367
|
|
- newObj[item] = this.firstNameTwo[item];
|
|
385
|
+ newObj[item] = this.firstNameTwo[item]
|
368
|
386
|
}
|
369
|
|
- });
|
370
|
|
- this.firstNameTwo = newObj;
|
371
|
|
- });
|
|
387
|
+ })
|
|
388
|
+ this.firstNameTwo = newObj
|
|
389
|
+ })
|
372
|
390
|
}
|
373
|
|
- });
|
|
391
|
+ })
|
374
|
392
|
},
|
375
|
|
- onCancel() {},
|
376
|
|
- chooseCity(val) {
|
377
|
|
- this.value = val;
|
|
393
|
+ onCancel () {},
|
|
394
|
+ chooseCity (val) {
|
|
395
|
+ this.value = val
|
378
|
396
|
for (let i = 0; i < this.patient.length; i++) {
|
379
|
397
|
if (this.value === this.patient[i].name) {
|
380
|
|
- var id = this.patient[i].id;
|
381
|
|
- this.show = false;
|
382
|
|
- this.$router.push("/patientdetail?patientid=" + id);
|
383
|
|
- this.patientName = this.value;
|
|
398
|
+ var id = this.patient[i].id
|
|
399
|
+ this.show = false
|
|
400
|
+ this.$router.push('/patientdetail?patientid=' + id)
|
|
401
|
+ this.patientName = this.value
|
384
|
402
|
}
|
385
|
403
|
}
|
386
|
404
|
}
|
387
|
405
|
},
|
388
|
|
- created() {
|
389
|
|
- var patientid = this.$route.query.patientid;
|
390
|
|
- console.log("patientid", patientid);
|
391
|
|
- this.getPatientDetail(patientid);
|
392
|
|
- this.getBloodDialysisPatientTwo();
|
|
406
|
+ created () {
|
|
407
|
+ var patientid = this.$route.query.patientid
|
|
408
|
+ console.log('patientid', patientid)
|
|
409
|
+ this.getPatientDetail(patientid)
|
|
410
|
+ this.getBloodDialysisPatientTwo()
|
393
|
411
|
}
|
394
|
|
-};
|
|
412
|
+}
|
395
|
413
|
</script>
|
396
|
414
|
|
397
|
415
|
<style lang="scss" scoped>
|