b25b036d
wuxw
v1.9 优化日期
|
1
|
<template>
|
24d3590f
wuxw
房屋收费页面开发完成
|
2
3
4
|
<div>
<el-row class="margin-top">
<el-col :span="24" class="text-right">
|
257e836f
wuxw
v1.9 优化排版英文bug
|
5
6
|
<el-button type="primary" size="small" v-if="simplifyCallableInfo.roomId"
@click="_openWritePrintOweFeeCallableModal">
|
24d3590f
wuxw
房屋收费页面开发完成
|
7
8
9
|
<i class="el-icon-plus"></i>
{{ $t('simplifyCallable.register') }}
</el-button>
|
257e836f
wuxw
v1.9 优化排版英文bug
|
10
|
<el-button type="primary" size="small" v-if="simplifyCallableInfo.roomId" @click="_openAddOweFeeCallableModal">
|
24d3590f
wuxw
房屋收费页面开发完成
|
11
12
13
|
<i class="el-icon-plus"></i>
{{ $t('simplifyCallable.callable') }}
</el-button>
|
257e836f
wuxw
v1.9 优化排版英文bug
|
14
|
<el-button type="primary" size="small" v-if="simplifyCallableInfo.roomId" @click="_printOwnOrder">
|
24d3590f
wuxw
房屋收费页面开发完成
|
15
16
17
18
19
20
|
<i class="el-icon-plus"></i>
{{ $t('simplifyCallable.callableOrder') }}
</el-button>
</el-col>
</el-row>
<div>
|
257e836f
wuxw
v1.9 优化排版英文bug
|
21
|
<el-table :data="simplifyCallableInfo.callables" style="margin-top:10px" border stripe>
|
24d3590f
wuxw
房屋收费页面开发完成
|
22
23
|
<el-table-column prop="ofcId" :label="$t('simplifyCallable.id')" align="center"></el-table-column>
<el-table-column prop="ownerName" :label="$t('simplifyCallable.ownerName')" align="center"></el-table-column>
|
257e836f
wuxw
v1.9 优化排版英文bug
|
24
25
|
<el-table-column prop="payerObjName" :label="$t('simplifyCallable.payerObjName')"
align="center"></el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
26
27
28
29
|
<el-table-column prop="feeName" :label="$t('simplifyCallable.feeName')" align="center"></el-table-column>
<el-table-column prop="amountdOwed" :label="$t('simplifyCallable.amount')" align="center"></el-table-column>
<el-table-column :label="$t('simplifyCallable.timePeriod')" align="center">
<template slot-scope="scope">
|
257e836f
wuxw
v1.9 优化排版英文bug
|
30
|
{{ scope.row.startTime }}<br>~{{ scope.row.endTime }}
|
24d3590f
wuxw
房屋收费页面开发完成
|
31
32
|
</template>
</el-table-column>
|
257e836f
wuxw
v1.9 优化排版英文bug
|
33
34
|
<el-table-column prop="callableWayName" :label="$t('simplifyCallable.callableWay')"
align="center"></el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
35
36
37
38
|
<el-table-column prop="staffName" :label="$t('simplifyCallable.staffName')" align="center"></el-table-column>
<el-table-column prop="stateName" :label="$t('simplifyCallable.status')" align="center"></el-table-column>
<el-table-column prop="remark" :label="$t('simplifyCallable.remark')" align="center">
<template slot-scope="scope">
|
257e836f
wuxw
v1.9 优化排版英文bug
|
39
|
<div class="textAuto" style="max-width: 200px;">{{ scope.row.remark }}</div>
|
24d3590f
wuxw
房屋收费页面开发完成
|
40
41
42
43
44
45
46
47
48
49
50
51
52
|
</template>
</el-table-column>
<el-table-column prop="createTime" :label="$t('simplifyCallable.createTime')" align="center"></el-table-column>
<el-table-column :label="$t('simplifyCallable.actions')" align="center">
<template slot-scope="scope">
<el-button-group>
<el-button size="mini" @click="_openDeleteOweFeeCallableModel(scope.row)">
{{ $t('simplifyCallable.delete') }}
</el-button>
</el-button-group>
</template>
</el-table-column>
</el-table>
|
257e836f
wuxw
v1.9 优化排版英文bug
|
53
54
|
<el-pagination @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize"
layout="total, prev, pager, next" :total="total">
|
24d3590f
wuxw
房屋收费页面开发完成
|
55
56
|
</el-pagination>
</div>
|
257e836f
wuxw
v1.9 优化排版英文bug
|
57
58
|
<write-owe-fee-callable ref="writeOweFeeCallable" @success="handleSuccess" ></write-owe-fee-callable>
<delete-owe-fee-callable ref="deleteOweFeeCallable" @success="handleSuccess"></delete-owe-fee-callable>
|
24d3590f
wuxw
房屋收费页面开发完成
|
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
112
113
114
115
116
117
118
|
</div>
</template>
<script>
import { getCommunityId } from '@/api/community/communityApi'
import { listOweFeeCallable } from '@/api/fee/simplifyCallableApi'
import WriteOweFeeCallable from './writeOweFeeCallable'
import DeleteOweFeeCallable from './deleteOweFeeCallable'
export default {
name: 'SimplifyCallable',
components: {
WriteOweFeeCallable,
DeleteOweFeeCallable
},
data() {
return {
DEFAULT_PAGE: 1,
DEFAULT_ROWS: 10,
simplifyCallableInfo: {
callables: [],
ownerId: '',
roomId: '',
roomName: '',
total: 0,
records: 0
},
currentPage: 1,
pageSize: 10,
total: 0
}
},
created() {
this._initEvent()
},
methods: {
_initEvent() {
this.$on('switch', this.handleSwitch)
this.$on('listOwnerData', this._listSimplifyCallable)
},
handleSwitch(param) {
if (!param.roomId) return
this.clearSimplifyCallableInfo()
Object.assign(this.simplifyCallableInfo, param)
this._listSimplifyCallable(this.DEFAULT_PAGE, this.DEFAULT_ROWS)
},
handleCurrentChange(val) {
this._listSimplifyCallable(val, this.DEFAULT_ROWS)
},
async _listSimplifyCallable(page, row) {
try {
const res = await listOweFeeCallable({
page,
row,
payerObjId: this.simplifyCallableInfo.roomId,
communityId: getCommunityId()
})
this.simplifyCallableInfo.total = res.total
this.simplifyCallableInfo.records = res.records
this.simplifyCallableInfo.callables = res.data
|
f9f29297
wuxw
v1.9 分页 record 传给...
|
119
|
this.total = res.total
|
24d3590f
wuxw
房屋收费页面开发完成
|
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
} catch (error) {
console.error('Request failed:', error)
}
},
clearSimplifyCallableInfo() {
this.simplifyCallableInfo = {
callables: [],
ownerId: '',
roomId: '',
roomName: '',
total: 0,
records: 0
}
},
_printOwnOrder() {
|
92c405db
wuxw
优化业务受理中部分选项打不开bug
|
135
|
window.open(`/#/views/fee/printOweFee?payObjId=${this.simplifyCallableInfo.roomId}&payObjType=3333&payObjName=${this.simplifyCallableInfo.roomName}`)
|
24d3590f
wuxw
房屋收费页面开发完成
|
136
137
138
139
140
141
142
143
144
145
146
147
|
},
_openWritePrintOweFeeCallableModal() {
if (!this.simplifyCallableInfo.roomId) {
this.$message.warning(this.$t('simplifyCallable.noRoomSelected'))
return
}
this.$refs.writeOweFeeCallable.open({
roomId: this.simplifyCallableInfo.roomId,
roomName: this.simplifyCallableInfo.roomName
})
},
_openAddOweFeeCallableModal() {
|
92c405db
wuxw
优化业务受理中部分选项打不开bug
|
148
|
this.$router.push(`/views/fee/roomOweFeeCallable?roomId=${this.simplifyCallableInfo.roomId}`)
|
24d3590f
wuxw
房屋收费页面开发完成
|
149
150
151
152
|
},
_openDeleteOweFeeCallableModel(oweFeeCallable) {
this.$refs.deleteOweFeeCallable.open(oweFeeCallable)
},
|
257e836f
wuxw
v1.9 优化排版英文bug
|
153
154
155
|
handleSuccess() {
this._listSimplifyCallable(this.DEFAULT_PAGE, this.DEFAULT_ROWS)
},
|
24d3590f
wuxw
房屋收费页面开发完成
|
156
157
158
159
160
161
162
163
164
165
166
|
open(params) {
this.handleSwitch(params)
}
}
}
</script>
<style scoped>
.margin-top {
margin-top: 15px;
}
|
257e836f
wuxw
v1.9 优化排版英文bug
|
167
|
|
24d3590f
wuxw
房屋收费页面开发完成
|
168
169
170
|
.text-right {
text-align: right;
}
|
257e836f
wuxw
v1.9 优化排版英文bug
|
171
|
|
24d3590f
wuxw
房屋收费页面开发完成
|
172
173
174
175
176
177
|
.textAuto {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
|