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
<template>
<div>
<van-nav-bar title='新增通用随访' left-text='' left-arrow>
</van-nav-bar>
<div class='p-4'>
<base-info :info="resident"></base-info>
</div>
</div>
</template>
<script>
import BaseInfo from '@/doctor/followUp/generalFU/form/BaseInfo'
import { fetchCurrencyById, getChronicResidentsId } from '@/api/doctor/generalFU'
export default {
name: 'Index',
components: { BaseInfo },
data() {
return {
info: {},
resident: {}
}
},
created() {
// this.init()
},
computed: {
routerDetail() {
return this.$route.query
}
},
methods: {
async init() {
const res = await getChronicResidentsId(this.routerDetail.residentId)
this.resident = {
...res.data,
residentInfoId: this.routerDetail.residentId
}
this.info = {}
this.info.residentInfoId = this.routerDetail.residentId
this.info.gender = this.resident.gender;
this.info.currentAge = this.resident.currentAge;
this.info.genderName = this.resident.genderName;
this.info.diseaseType = this.routerDetail.diseaseType
if (this.routerDetail.id) {
const res = await fetchCurrencyById({ id: this.routerDetail.id })
let result = res.data || {}
this.info = {
...result
}
}
}
}
}
</script>
<style scoped lang='less'>
:deep(.van-nav-bar .van-icon) {
color: #000000;
}
</style>