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
<template>
<div class='h-full'>
<!-- 公卫数据详情 -->
<!-- <GwDetail :info="detailInfo" v-if="showGw"/>-->
<!-- 通用随访详情 -->
<CurrencyFUDetail :id="detailInfo.relationId" :resident-id="residentId" v-if="showCommon"></CurrencyFUDetail>
<!-- his -->
<!-- <HisDetail :info="detailInfo" v-else-if="showHis"></HisDetail>-->
<!-- 报卡随访详情 -->
<CrsVisitDetail :relationUuid="detailInfo.relationUuid" v-else-if="showCrs"></CrsVisitDetail>
<!-- 专病随访详情 -->
<SeparateFUDetail :relationId="detailInfo.relationId" v-else-if="showFU"></SeparateFUDetail>
</div>
</template>
<script>
import { getVisitManageVByUuId } from '@/api/doctor/generalFU'
import CrsVisitDetail from '@/doctor/followUp/detail/components/CrsVisitDetail'
import CurrencyFUDetail from '@/doctor/followUp/generalFU/detail/Detail'
import IframePage from '@/components/iframePage/IframePage'
// 专病随访
import SeparateFUDetail from '@/doctor/followUp/separateFU/detail/Index.vue'
export default {
name: 'FollowUpDetail',
components: { IframePage, CurrencyFUDetail, CrsVisitDetail, SeparateFUDetail },
data() {
return {
detailInfo: {},
showCommon: false,
showFU: false,
showHis: false,
showCrs: false,
showGw: false
}
},
watch: {
id: {
handler() {
this.load()
},
immediate: true
}
},
computed: {
relationUuid() {
return this.$route.query.relationUuid
},
diseaseType() {
return this.$route.query.diseaseType
},
residentId() {
return this.$route.query.residentInfoId
}
},
methods: {
load() {
let par = {
relationUuid: this.relationUuid
}
getVisitManageVByUuId(par).then(res => {
let record = res.data
this.detailInfo = record
// this.PhlIsShow(record)
this.showFU = this.FUIsShow(record)
this.showCommon = this.GAUIsShow(record)
this.showHis = this.HisIsShow(record)
this.showCrs = this.CrsIsShow(record)
})
},
//判断是否是专病随访
FUIsShow(record) {
let res = false
if ((record.serveType == 3 || (record.serveType == 4) && record.source != 4)) {
res = true
}
return res
},
//判断是否是 通用随访
GAUIsShow(record) {
let res = false
if (record.serveType == 5) {
res = true
}
return res
},
//判断是否是his
HisIsShow(record) {
let res = false
if (record.serveType == 1 || record.serveType == 2) {
res = true
}
return res
},
//判断是否显示报卡随访
CrsIsShow(record) {
let res = false
if (record.serveType == 6) {
res = true
}
return res
},
//判断是否显示公卫随访
PhlIsShow(record) {
if (record.source == 4) {
this.$router.push({
path: `/systemIframe/doctorGWDetail`,
query: {
src: `https://www.baidu.com/`,
pageTitle: `公卫详情`
}
})
}
}
}
}
</script>
<style scoped lang='less'>
</style>