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
<template>
<div class="disease-list" ref="list">
<van-pull-refresh v-model='loadingRefresh' @refresh='onRefresh'
:disabled='isRefreshDisable'>
<div v-for="item in diagnoseRecord" :key="item.id"
class="card-back-1 mb-3">
<div class="title px-4 py-1">诊断列表</div>
<div class="py-3 px-4 doc-list-card">
<div class="flex flex-col" style="row-gap: .04rem;line-height: 1.5;"
@click="toDetail(item)">
<div class="flex">
<span class="label shrink-0">诊断名称</span>
<span class="grow text-wrap">{{ item.diseaseName }}({{item.icdCode}})</span>
</div>
<div class="flex">
<span class="label shrink-0">诊断评估</span>
<span class="grow" >{{ item.diagnoseResultValue || '-' }}</span>
</div>
<div>
<span class="label">诊断单位</span>
<span>{{ item.diseaseUnitName }}</span>
</div>
<div>
<span class="label">诊断科室</span>
<span>{{ item.diseaseOfficeName }}</span>
</div>
<div>
<span class="label">诊断医生</span>
<span>{{ item.diseaseDoctorName }}</span>
</div>
<div>
<span class="label">数据来源</span>
<span>{{ item.sourceName || '-' }}</span>
</div>
<div>
<span class="label">诊断日期</span>
<span>{{ item.diseaseDate }}</span>
</div>
<div>
<span class="label">纳入管理日期</span>
<span>{{ item.manageDate }}</span>
</div>
</div>
<div class="divider my-3"></div>
<div class="bt-group">
<van-button round size="small" class="doc-btn-primary" @click="toDetail(item)">详情</van-button>
<van-button round size="small" class="doc-btn-primary" @click='editBtn(item)'
v-if="item.allowUpdate == 1">修改</van-button>
<van-button round size="small" class="doc-btn-red" @click="delBtn(item)"
v-if="item.allowDelete ==1">删除</van-button>
</div>
</div>
</div>
<div v-for="item in treatmentRecord" :key="item.id"
class="card-back-2 mb-3">
<div class="title px-4 py-1">治疗方案</div>
<div class="flex flex-col py-3 px-4 doc-list-card" style="row-gap: .04rem;line-height: 1.5;">
<div class="text-ellipsis">
<span class="label">慢病标签</span>
<span>{{ item.diseaseTypeName }}</span>
</div>
<div class="text-ellipsis">
<span class="label">治疗方式</span>
<span>{{ item.therapyMethodName || '-' }}</span>
</div>
<div>
<span class="label">创建单位</span>
<span>{{ item.createUnitName }}</span>
</div>
<div>
<span class="label">创建科室</span>
<span>{{ item.createOfficeName }}</span>
</div>
<div>
<span class="label">创建医生</span>
<span>{{ item.createDoctorName }}</span>
</div>
<!-- <div class="divider"></div>
<div class="bt-group">
<van-button round size="small" class="doc-btn-primary" @click="toDetail(item)">详情</van-button>
<van-button round size="small" class="doc-btn-primary" @click='editBtn(item)'
v-if="item.allowUpdate == 1">修改</van-button>
<van-button round size="small" class="doc-btn-red" @click="delBtn(item)"
v-if="item.allowDelete ==1">删除</van-button>
</div> -->
</div>
</div>
<div v-for="item in followUpRecord" :key="item.id"
class="card-back-3 mb-3">
<div class="title px-4 py-1">随访方案</div>
<div class="flex flex-col py-3 px-4 doc-list-card" style="row-gap: .04rem;line-height: 1.5;">
<div class="text-ellipsis">
<span class="label">随访方案</span>
<span>
<span v-if="item.visitScheme">{{item.visitSchemeOther}}</span>
<span>{{item.visitSchemeName}}</span>
</span>
</div>
<div class="text-ellipsis">
<span class="label">预计随访地点</span>
<span>{{ item.visitPlace || '-' }}</span>
</div>
<div>
<span class="label">创建单位</span>
<span>{{ item.createUnitName }}</span>
</div>
<div>
<span class="label">创建科室</span>
<span>{{ item.createOfficeName }}</span>
</div>
<div>
<span class="label">创建医生</span>
<span>{{ item.createDoctorName }}</span>
</div>
<div>
<span class="label">下次随访日期</span>
<span>{{ item.nextVisitDate ? item.nextVisitDate.split(' ')[0] : '-' }}</span>
</div>
<!-- <div class="divider"></div>
<div class="bt-group">
<van-button round size="small" class="doc-btn-primary" @click="toDetail(item)">详情</van-button>
<van-button round size="small" class="doc-btn-primary" @click='editBtn(item)'
v-if="item.allowUpdate == 1">修改</van-button>
<van-button round size="small" class="doc-btn-red" @click="delBtn(item)"
v-if="item.allowDelete ==1">删除</van-button>
</div> -->
</div>
</div>
</van-pull-refresh>
<div class='text-center shrink-0 empty'
v-if='!diagnoseRecord.length && !treatmentRecord.length && !followUpRecord.length'>
<img src='@/assets/image/doctor/empty.png' alt='' style='width: 1.2rem;'>
<p>暂无数据</p>
</div>
</div>
</template>
<script>
import { fetchDiseaseTypeList } from '@/api/doctor/disease.js'
import { useStore } from '@/doctor/store'
export default {
inject: ['residentInfo'],
props: {
diseaseType: Number
},
data() {
return {
store: useStore(),
loadingRefresh: false,
isRefreshDisable: false,
diagnoseRecord: [],
treatmentRecord: [],
followUpRecord: []
}
},
computed: {
residentInfoId() {
return this.residentInfo().residentInfoId
}
},
created() {
this.load()
},
mounted() {
const list = this.$refs.list
list.addEventListener('scroll', () => {
if (list.scrollTop > 0) {
this.isRefreshDisable = true
} else {
this.isRefreshDisable = false
}
})
},
methods: {
load(loading = true) {
const query = {
residentInfoId: this.residentInfoId,
diseaseType: this.diseaseType
}
fetchDiseaseTypeList(query, loading).then(res => {
const result = res.data || {}
this.diagnoseRecord = result.chronicDiagnoseList || []
this.treatmentRecord = result.chronicTreatmentRecordList || []
this.followUpRecord = result.chronicVisitSchemeRecordList || []
}).finally(() => {
this.loadingRefresh = false
})
},
onRefresh() {
this.load(false)
},
toDetail(record) {
this.$router.push({
path: '/doctor/diagnose/detail',
query: {
residentInfoId: this.residentInfoId,
diseaseType: this.diseaseType,
id: record.id
}
})
},
editBtn(record) {
this.$router.push({
path: '/doctor/diagnose/form',
query: {
residentInfoId: this.residentInfoId,
diseaseType: this.diseaseType,
id: record.id
}
})
},
delBtn() {
}
},
watch: {
diseaseType() {
this.load()
},
'store.refreshMark'() {
this.onRefresh()
}
}
}
</script>
<style lang="less" scoped>
</style>