1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<template>
<div>
<van-nav-bar title='随访详情' left-text='' left-arrow @click-left='toBack'></van-nav-bar>
<div class='p-4 detail-info'>
<div class='title'>居民信息</div>
<div class='detail-div mt-2'>
<div class='flex items-center justify-between'>
<div>证件类型</div>
<div>{{ residentInfo.certificateTypeName || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>证件号码</div>
<div>{{ residentInfo.idCard || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>姓名</div>
<div>{{ residentInfo.residentName || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>性别</div>
<div>{{ residentInfo.genderName || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>出生日期</div>
<div>{{ residentInfo.dataBirth || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>民族</div>
<div>{{ residentInfo.nationalName || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>年龄</div>
<div>{{ residentInfo.currentAge || '-' }} 岁</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>本人电话</div>
<div>{{ residentInfo.telephone || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>联系人姓名</div>
<div>{{ residentInfo.contactName || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>与居民关系</div>
<div>{{ residentInfo.relationName || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>联系电话</div>
<div>{{ residentInfo.contactPhone || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>现住址</div>
<div>{{ residentInfo.fullNowAddress || '-' }}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>户籍地址</div>
<div>{{ residentInfo.fullPermanentAddress || '-' }}</div>
</div>
</div>
<div class='title mt-2'>随访信息</div>
<div class='detail-div mt-2'>
<div class='flex items-center justify-between'>
<div>本次随访情况</div>
<div>{{ info.visitSituationName }}</div>
</div>
<div class='flex items-center justify-between mt-2' v-if='info.visitSituation == 2'>
<div>失访原因</div>
<div>
<span v-if='info.lossReason != 9'>{{ info.lossReasonName || '-' }}</span>
<span v-if='info.lossReason == 9'>{{ info.lossReasonOther || '-' }}</span>
</div>
</div>
<div class='flex items-center justify-between mt-2' v-if='info.lossReason == 3'>
<div>死亡原因</div>
<div>{{ info.deathReason }}</div>
</div>
<div class='flex items-center justify-between mt-2' v-if='info.visitSituation == 1'>
<div>随访方式</div>
<div>{{ info.visitWayName }}</div>
</div>
<div class='white-b mt-2' v-if='showOne && info.visitSituation == 1'>
<span>居民电话: </span><span>{{ residentInfo.telephone || '-' }}</span>
</div>
<div class='white-b mt-2' v-if='showThree && info.visitSituation == 1'>
<div>催检内容:</div>
<div>{{ info.urgentInsContent }}</div>
</div>
<div class='mt-2' v-if="showOne && info.visitSituation == 1">
<div>随访内容</div>
<div class='white-b mt-2'>
<div>{{ info.visitContent }}</div>
</div>
</div>
<div class='mt-2' v-if="showOne && info.visitSituation == 1">
<div>处置意见</div>
<div class='white-b mt-2'>
<div>{{ info.disposalOpinion }}</div>
</div>
</div>
<div class='mt-2' v-if="(showOne || showTwo) && info.visitSituation == 1 && info.isHealthGuide == 1">
<div>健康指导</div>
<div class='white-b mt-2'>
<div class='flex flex-wrap' v-for="(item, index) in healthInterventionsInfo.visitHealthGuideList" >
<div v-if="item.name != '无'">{{item.name}}:</div>
<div>{{item.templateContent || '-'}}</div>
</div>
</div>
</div>
<div class='flex items-center justify-between mt-2' v-if="info.visitSituation == 1">
<div>下次随访日期</div>
<div>{{ info.nextVisitDate || '-'}}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>随访单位</div>
<div>{{ info.visitUnitName || '-'}}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>随访科室</div>
<div>{{ info.visitOfficeName || '-'}}</div>
</div>
<div class='flex items-center justify-between mt-2'>
<div>随访医生</div>
<div>{{ info.visitDoctorName || '-'}}</div>
</div>
</div>
</div>
<div class="px-5 flex align-center justify-around">
<van-button type="primary" round plain style="width: 70%;background: #F0F3FF;border: 0px"
@click="toBack">返回</van-button>
</div>
</div>
</template>
<script>
import { fetchCurrencyById } from '@/api/doctor/generalFU'
export default {
name: 'Detail',
props: {
id: [String, Number]
},
data() {
return {
info: {},
residentInfo: {}
}
},
computed: {
routerDetail() {
return this.$route.query
},
//复检指导
showOne() {
const { visitWay } = this.info
let res = false
if (visitWay == 5 || visitWay == 6 || visitWay == 7 || visitWay == 8) {
res = true
}
return res
},
//微信、短信指导
showTwo() {
const { visitWay } = this.info
let res = false
if (visitWay == 9 || visitWay == 11) {
res = true
}
return res
},
//催检
showThree() {
const { visitWay } = this.info
let res = false
if (visitWay == 10 || visitWay == 12) {
res = true
}
return res
},
//健康指导
healthInterventionsInfo() {
const modeArray = this.$dict('DC00084')
let visitHealthGuideList = []
if (this.info.healthGuideContent) {
visitHealthGuideList = JSON.parse(this.info.healthGuideContent)
}
const res = {
visitHealthGuideList: modeArray.map(e => {
const item = visitHealthGuideList.find(i => i.templateMode === e.value)
return {
templateMode: e.value,
name: e.name,
templateContent: item ? item.templateContent : '',
id: item ? item.visitId : ''
}
})
}
return res
}
},
created() {
this.load()
},
methods: {
async load() {
if (!this.routerDetail.relationId) {
this.$message.info('未获取到信息')
return
}
let par = {
id: this.routerDetail.relationId
}
fetchCurrencyById(par).then(res => {
let result = res.data || {}
this.info = result
this.residentInfo = result.residentsRecord || {}
}).finally(() => {
})
},
toBack() {
this.$router.back()
}
}
}
</script>
<style scoped lang='less'>
.title {
font-weight: bold;
}
.detail-info {
height: calc(100vh - 110px);
overflow-y: auto;
}
.detail-div {
padding: 12px;
border: 1px solid #EEEEEE;
background: #F8FAFC;
border-radius: 8px;
}
.white-b {
background: #FFFFFF;
padding: 12px;
border: 1px solid #EEEEEE;
border-radius: 8px;
}
:deep(.van-nav-bar .van-icon) {
color: #000000;
}
</style>