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
<template>
<div class="report-detail">
<div style="margin-top: 16px;">
<check-info v-model="checkInfo" />
</div>
</div>
</template>
<script>
import moment from 'moment'
import CheckInfo from '@/views/report/check/components/checkInfo'
import AuditList from '@/views/audit/components/auditInfo'
export default {
name: "projectView",
components: {
CheckInfo, AuditList
},
data () {
return {
checkInfo: {
id: '',
projId: '',
checkYear: null,
// 工作进展
workProgress: '',
// 其他(请做说明)
otherResults: '',
// 项目批准经费
applyMoney: 0,
// 已使用经费
usingMoney: 0,
// 现结余经费
surplusMoney: 0,
// 经费具体使用情况说明
moneyInstructions: '',
checkState: null,
projName: '',
projNo: '',
appPersonName: '',
appUnitName: '',
startDate: '',
endDate: '',
// 成果
results: [],
auditList: [{ result: '', unit: '', time: '' }],
},
};
},
props: {
value: {
type: String,
default: () => {
return null
}
},
},
created () {
this.getCheckInfoById()
},
methods: {
moment,
getCheckInfoById () {
let pars = { id: this.value }
this.$api.checkReport.getCheckInfoById(pars).then(({ data = {} }) => {
if (data) {
this.checkInfo = data
this.checkInfo.startDate = moment(this.checkInfo.startDate).format('YYYY年MM月DD日')
this.checkInfo.endDate = moment(this.checkInfo.endDate).format('YYYY年MM月DD日')
}
}).catch(() => {
})
},
},
}
</script>
<style lang="less" scoped>
.report-detail {
height: 70vh;
overflow: auto;
border-left: 1px solid #f0f0f0;
border-top: 1px solid #f0f0f0;
}
</style>