c85e0853
wuxw
业主详情开发完成
|
1
2
|
<template>
<div>
|
8e80e9f4
wuxw
账户补打开发完成
|
3
4
5
|
<div class="flex justify-between">
<div></div>
<div >
|
c85e0853
wuxw
业主详情开发完成
|
6
|
<el-button type="primary" size="small" @click="_printFeeAccountReceipt" style="margin-left:10px">
|
8e80e9f4
wuxw
账户补打开发完成
|
7
|
{{ $t('ownerDetailAccountReceipt.print') }}
|
c85e0853
wuxw
业主详情开发完成
|
8
9
|
</el-button>
<el-button type="primary" size="small" @click="_printFeeSmallAccountReceipt" style="margin-left:10px">
|
8e80e9f4
wuxw
账户补打开发完成
|
10
|
{{ $t('ownerDetailAccountReceipt.printSmall') }}
|
c85e0853
wuxw
业主详情开发完成
|
11
|
</el-button>
|
8e80e9f4
wuxw
账户补打开发完成
|
12
13
|
</div>
</div>
|
c85e0853
wuxw
业主详情开发完成
|
14
|
<div class="margin-top">
|
8e80e9f4
wuxw
账户补打开发完成
|
15
|
<el-table :data="ownerDetailAccountReceiptInfo.feeReceipts" style="width: 100%; margin-top: 10px" border stripe>
|
c85e0853
wuxw
业主详情开发完成
|
16
17
|
<el-table-column width="50" align="center">
<template slot-scope="scope">
|
8e80e9f4
wuxw
账户补打开发完成
|
18
|
<el-checkbox v-model="scope.row.checked" @change="handleCheckChange(scope.row)"></el-checkbox>
|
c85e0853
wuxw
业主详情开发完成
|
19
20
|
</template>
</el-table-column>
|
8e80e9f4
wuxw
账户补打开发完成
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<el-table-column prop="acctName" :label="$t('ownerDetailAccountReceipt.accountName')"
align="center"></el-table-column>
<el-table-column prop="acctTypeName" :label="$t('ownerDetailAccountReceipt.accountType')"
align="center"></el-table-column>
<el-table-column prop="ownerName" :label="$t('ownerDetailAccountReceipt.owner')"
align="center"></el-table-column>
<el-table-column prop="receivedAmount" :label="$t('ownerDetailAccountReceipt.prestoreAmount')"
align="center"></el-table-column>
<el-table-column prop="primeRateName" :label="$t('ownerDetailAccountReceipt.prestoreMethod')"
align="center"></el-table-column>
<el-table-column prop="amount" :label="$t('ownerDetailAccountReceipt.totalAmount')"
align="center"></el-table-column>
<el-table-column prop="createTime" :label="$t('ownerDetailAccountReceipt.prestoreTime')"
align="center"></el-table-column>
<el-table-column prop="arId" :label="$t('ownerDetailAccountReceipt.receiptId')"
align="center"></el-table-column>
|
c85e0853
wuxw
业主详情开发完成
|
37
|
</el-table>
|
8e80e9f4
wuxw
账户补打开发完成
|
38
39
|
<el-pagination @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize"
layout="total, prev, pager, next, jumper" :total="total">
|
c85e0853
wuxw
业主详情开发完成
|
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
|
</el-pagination>
</div>
</div>
</template>
<script>
import { listAccountReceipt } from '@/api/owner/ownerDetailAccountReceiptApi'
import { getCommunityId } from '@/api/community/communityApi'
export default {
name: 'OwnerDetailAccountReceipt',
data() {
return {
ownerDetailAccountReceiptInfo: {
feeReceipts: [],
ownerId: '',
total: 0,
records: 0,
selectReceipts: []
},
currentPage: 1,
pageSize: 10,
total: 0,
communityId: ''
}
},
created() {
this.communityId = getCommunityId()
},
methods: {
open(ownerId) {
this.ownerDetailAccountReceiptInfo.ownerId = ownerId
this._listOwnerDetailAccountReceipt(this.currentPage, this.pageSize)
},
_listOwnerDetailAccountReceipt(page, rows) {
this.ownerDetailAccountReceiptInfo.selectReceipts = []
const param = {
page: page,
row: rows,
ownerId: this.ownerDetailAccountReceiptInfo.ownerId,
communityId: this.communityId
}
listAccountReceipt(param).then(response => {
|
24d3590f
wuxw
房屋收费页面开发完成
|
84
|
this.ownerDetailAccountReceiptInfo.feeReceipts = response.data.map(item => {
|
c85e0853
wuxw
业主详情开发完成
|
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
return { ...item, checked: false }
})
this.total = response.data.total
}).catch(error => {
console.error('请求失败:', error)
})
},
_printFeeAccountReceipt() {
const selected = this.ownerDetailAccountReceiptInfo.feeReceipts.filter(item => item.checked)
if (selected.length < 1) {
this.$message.warning(this.$t('ownerDetailAccountReceipt.selectPrint'))
return
}
const arIds = selected.map(item => item.arId).join(',')
|
f5128dde
wuxw
优化打印404 问题
|
99
|
window.open(`/#/pages/property/printAccountReceipt?arIds=${arIds}&apply=N`)
|
c85e0853
wuxw
业主详情开发完成
|
100
101
102
103
104
105
106
107
|
},
_printFeeSmallAccountReceipt() {
const selected = this.ownerDetailAccountReceiptInfo.feeReceipts.filter(item => item.checked)
if (selected.length < 1) {
this.$message.warning(this.$t('ownerDetailAccountReceipt.selectPrint'))
return
}
const arIds = selected.map(item => item.arId).join(',')
|
f5128dde
wuxw
优化打印404 问题
|
108
|
window.open(`/#/pages/property/printSmallAccountReceipt?arIds=${arIds}`)
|
c85e0853
wuxw
业主详情开发完成
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
},
handleCheckChange(row) {
if (row.checked) {
this.ownerDetailAccountReceiptInfo.selectReceipts.push(row.arId)
} else {
const index = this.ownerDetailAccountReceiptInfo.selectReceipts.indexOf(row.arId)
if (index > -1) {
this.ownerDetailAccountReceiptInfo.selectReceipts.splice(index, 1)
}
}
},
handleCurrentChange(val) {
this.currentPage = val
this._listOwnerDetailAccountReceipt(val, this.pageSize)
}
}
}
</script>
|