ce5e1a2a
wuxw
系统模块开发中
|
1
2
|
<template>
<div class="fee-detail-his">
|
27dcfde5
wuxw
系统全面测试完成
|
3
4
|
<el-table :data="feeDetailHisInfo.fees" border style="width: 100%" v-loading="loading">
<el-table-column :label="$t('feeDetailHis.feeName')" align="center">
|
ce5e1a2a
wuxw
系统模块开发中
|
5
6
7
8
9
|
<template slot-scope="scope">
{{ scope.row.feeName }}
<span v-if="scope.row.payerObjName">({{ scope.row.payerObjName }})</span>
</template>
</el-table-column>
|
27dcfde5
wuxw
系统全面测试完成
|
10
|
<el-table-column :label="$t('feeDetailHis.startTime')" align="center">
|
ce5e1a2a
wuxw
系统模块开发中
|
11
12
13
14
|
<template slot-scope="scope">
{{ scope.row.startTime || '-' }}
</template>
</el-table-column>
|
27dcfde5
wuxw
系统全面测试完成
|
15
|
<el-table-column :label="$t('feeDetailHis.endTime')" align="center">
|
ce5e1a2a
wuxw
系统模块开发中
|
16
17
18
19
|
<template slot-scope="scope">
{{ scope.row.endTime || '-' }}
</template>
</el-table-column>
|
27dcfde5
wuxw
系统全面测试完成
|
20
|
<el-table-column :label="$t('feeDetailHis.operate')" align="center">
|
ce5e1a2a
wuxw
系统模块开发中
|
21
22
23
24
|
<template slot-scope="scope">
{{ _getFeeHisOperate(scope.row) }}
</template>
</el-table-column>
|
27dcfde5
wuxw
系统全面测试完成
|
25
|
<el-table-column :label="$t('feeDetailHis.userName')" align="center">
|
ce5e1a2a
wuxw
系统模块开发中
|
26
27
28
29
|
<template slot-scope="scope">
{{ scope.row.userName || '-' }}
</template>
</el-table-column>
|
27dcfde5
wuxw
系统全面测试完成
|
30
|
<el-table-column :label="$t('feeDetailHis.createTime')" align="center">
|
ce5e1a2a
wuxw
系统模块开发中
|
31
32
33
34
35
36
|
<template slot-scope="scope">
{{ scope.row.createTime }}
</template>
</el-table-column>
</el-table>
|
27dcfde5
wuxw
系统全面测试完成
|
37
38
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.current"
:page-sizes="[10, 20, 30, 50]" :page-size="page.size" layout="total, sizes, prev, pager, next, jumper"
|
ce5e1a2a
wuxw
系统模块开发中
|
39
40
41
42
43
44
45
|
:total="page.total">
</el-pagination>
</div>
</template>
<script>
import { queryHisFee } from '@/api/system/operateDataLogApi'
|
27dcfde5
wuxw
系统全面测试完成
|
46
|
import { getCommunityId } from '@/api/community/communityApi'
|
ce5e1a2a
wuxw
系统模块开发中
|
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
|
export default {
name: 'FeeDetailHis',
data() {
return {
loading: false,
feeDetailHisInfo: {
fees: [],
feeId: '',
staffNameLike: '',
feeNameLike: '',
payerObjName: '',
logStartTime: '',
logEndTime: ''
},
page: {
current: 1,
size: 10,
total: 0
}
}
},
methods: {
open(conditions) {
this.feeDetailHisInfo = {
...this.feeDetailHisInfo,
...conditions
}
this._loadFeeDetailHisData()
},
async _loadFeeDetailHisData() {
try {
this.loading = true
const params = {
page: this.page.current,
row: this.page.size,
feeId: this.feeDetailHisInfo.feeId,
staffNameLike: this.feeDetailHisInfo.staffNameLike,
feeNameLike: this.feeDetailHisInfo.feeNameLike,
payerObjName: this.feeDetailHisInfo.payerObjName,
logStartTime: this.feeDetailHisInfo.logStartTime,
|
27dcfde5
wuxw
系统全面测试完成
|
88
89
|
logEndTime: this.feeDetailHisInfo.logEndTime,
communityId: getCommunityId()
|
ce5e1a2a
wuxw
系统模块开发中
|
90
|
}
|
27dcfde5
wuxw
系统全面测试完成
|
91
|
|
ce5e1a2a
wuxw
系统模块开发中
|
92
93
94
95
96
97
98
99
100
101
102
|
const { data, total } = await queryHisFee(params)
this.feeDetailHisInfo.fees = data
this.page.total = total
} catch (error) {
console.error('Failed to load fee history:', error)
} finally {
this.loading = false
}
},
_getFeeHisOperate(fee) {
const feeCount = this.feeDetailHisInfo.fees.filter(item => item.bId === fee.bId).length
|
27dcfde5
wuxw
系统全面测试完成
|
103
|
|
ce5e1a2a
wuxw
系统模块开发中
|
104
105
106
107
108
|
if (feeCount <= 1) {
if (fee.operate === 'ADD') return this.$t('feeDetailHis.add')
if (fee.operate === 'DEL') return this.$t('feeDetailHis.delete')
return '-'
}
|
27dcfde5
wuxw
系统全面测试完成
|
109
|
|
ce5e1a2a
wuxw
系统模块开发中
|
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
if (fee.operate === 'ADD') return this.$t('feeDetailHis.modifyNew')
if (fee.operate === 'DEL') return this.$t('feeDetailHis.modifyOld')
return '-'
},
handleSizeChange(size) {
this.page.size = size
this._loadFeeDetailHisData()
},
handleCurrentChange(current) {
this.page.current = current
this._loadFeeDetailHisData()
}
}
}
</script>
<style scoped>
.fee-detail-his {
padding: 20px;
}
.el-pagination {
margin-top: 20px;
text-align: right;
}
</style>
|