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
<template>
<!-- 随访调查录入 -->
<div style="positon: relative">
<div class="goback" v-if="formType == 1">
<el-button icon="el-icon-back" @click="backInfoce">返 回</el-button>
</div>
<ConfigForms
v-if="refreshFlag"
:form-type="formType"
form-class="follow-form"
:disabled="disabled"
:tab-disabled="tabDisabled"
:get-data="getData"
:contrast="formType == 1 ? false : true"
:patient-id="patientId"
:screenList="screenList"
@refreshData="refreshData"
></ConfigForms>
</div>
</template>
<script>
import ConfigForms from "@/views/screening/components/ConfigForms.vue"
import { getFollowList } from "@/api/patient"
export default {
name: "FollowupEntry",
components: {
ConfigForms,
},
data() {
return {
disabled: false,
tabDisabled: true,
refreshFlag: true,
screenList: [
// {
// create_time: "2020-12-12 11:11:11",
// create_user_name: "",
// title: "修改第一次随访计划",
// },
],
}
},
provide() {
return {
tabFollowId: () => this.followId,
}
},
computed: {
patientId() {
return this.$route.query.patientId
},
model() {
return this.$route.query.model
},
followId() {
return this.$route.query.followId
},
formType() {
return this.$route.query.formType
},
getData() {
return Boolean(this.$route.query.getData - 0)
},
},
mounted() {
if (this.model == "view") {
this.disabled = true
this.tabDisabled = false
} else {
this.disabled = false
this.tabDisabled = true
}
this.$nextTick(() => {
if (this.formType == 2) {
this.getFollowList()
}
})
},
methods: {
refreshData(data) {
// this.refreshFlag = false
// this.$nextTick(() => {
// this.refreshFlag = true
// })
},
backInfoce() {
this.$router.push({ path: "/followupquery", query: {} })
},
getFollowList() {
getFollowList({
patientId: this.patientId,
}).then((res) => {
// console.log(res)
if (res.code == 1) {
this.screenList = res.data || []
}
})
},
},
}
</script>
<style lang="scss" scoped>
.goback {
position: absolute;
right: 24px;
top: 24px;
z-index: 99;
}
</style>