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
<template>
<div style="height:70vh;overflow:auto" class="app-content from-table font-line-space">
<a-spin :spinning="loading" style="width: 100%;height: 100%;">
<economy-info v-model="formData" v-if="formData.expertType == 2" />
<div v-else>
<technology-info v-if="formData.applyFunding >= 50" v-model="formData" />
<div v-else>
<a-row type="flex">
<a-col :span="4" class="bg-gray">
<div class="special-middle">
<div>意见与建议</div>
</div>
</a-col>
<a-col :span="20">
<div class="special-middle">
<div v-html="toTextarea(formData.remark)"></div>
</div>
</a-col>
</a-row>
<a-row type="flex">
<a-col :span="4" class="bg-gray">
<div class="special-middle">
<div>评审结果</div>
</div>
</a-col>
<a-col :span="20">
<div class="special-middle">
<div>
<a-tag :color="'#87d068'" v-if="formData.evaluationType==1">A类(通过)</a-tag>
<a-tag :color="'#2db7f5'" v-if="formData.evaluationType==2">B类(建议修改)</a-tag>
<a-tag :color="'#f50'" v-if="formData.evaluationType==3">C类(不通过)</a-tag>
</div>
</div>
</a-col>
</a-row>
</div>
</div>
</a-spin>
</div>
</template>
<script>
import economyInfo from '@/views/evaluation/components/economyInfo'
import technologyInfo from '@/views/evaluation/components/technologyInfo'
import { toTextarea } from '@/views/utils/common'
export default {
name: "scoreView",
components: {
economyInfo, technologyInfo
},
props: {
value: {
type: String,
default: () => {
return null;
},
},
},
data () {
return {
formData: { id: null, projId: null, expertId: null, expertName: null, projectBasis: null, academicValue: null, innovation: null, researchPlan: null, expectedResults: null, totalScore: null, remark: null, projName: null, projNo: null, },
loading: false,
};
},
created () {
this.getAssignExpertById()
},
methods: {
getAssignExpertById () {
if (!!this.value) {
this.loading = true
this.$api.projectAssign.getAssignExpertById({ id: this.value }).then(({ data = {} }) => {
if (data) {
this.formData = data
this.loading = false
} else
this.$emit('close', 'error')
}).catch(() => {
this.$message.warn('500 Internal Server Error!')
this.$emit('close', 'error')
})
}
},
toTextarea,
},
};
</script>