b25b036d
wuxw
v1.9 优化日期
|
1
|
<template>
|
24d3590f
wuxw
房屋收费页面开发完成
|
2
3
4
5
6
7
8
9
10
11
|
<div>
<el-row class="margin-top-lg">
<el-col :span="4" class="padding-right-xs padding-left-xl">
<el-select v-model="simplifyMeterWaterFeeInfo.meterType" size="small" @change="_listSimplifyMeterWaterFee(1, 10)">
<el-option :label="$t('simplifyMeterWaterLog.selectMeterType')" value=""></el-option>
<el-option v-for="(item, index) in simplifyMeterWaterFeeInfo.meterTypes" :key="index" :label="item.typeName"
:value="item.typeId"></el-option>
</el-select>
</el-col>
<el-col :span="20" class="text-right" v-if="simplifyMeterWaterFeeInfo.roomId">
|
92c405db
wuxw
优化业务受理中部分选项打不开bug
|
12
|
<!-- <el-button type="primary" size="small" style="margin-left:10px" @click="_openAddMeterWaterModal()">
|
24d3590f
wuxw
房屋收费页面开发完成
|
13
|
<i class="el-icon-plus"></i> {{ $t('simplifyMeterWaterLog.addMeterReading') }}
|
92c405db
wuxw
优化业务受理中部分选项打不开bug
|
14
|
</el-button> -->
|
24d3590f
wuxw
房屋收费页面开发完成
|
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
|
</el-col>
</el-row>
<div class="margin-top">
<el-table :data="simplifyMeterWaterFeeInfo.meterWaters" style="width: 100%; margin-top:10px" border>
<el-table-column prop="meterTypeName" :label="$t('simplifyMeterWaterLog.meterType')"
align="center"></el-table-column>
<el-table-column prop="objName" :label="$t('simplifyMeterWaterLog.objectName')" align="center"></el-table-column>
<el-table-column prop="preDegrees" :label="$t('simplifyMeterWaterLog.previousReading')"
align="center"></el-table-column>
<el-table-column prop="curDegrees" :label="$t('simplifyMeterWaterLog.currentReading')"
align="center"></el-table-column>
<el-table-column prop="preReadingTime" :label="$t('simplifyMeterWaterLog.previousReadingTime')"
align="center"></el-table-column>
<el-table-column prop="curReadingTime" :label="$t('simplifyMeterWaterLog.currentReadingTime')"
align="center"></el-table-column>
<el-table-column prop="createTime" :label="$t('simplifyMeterWaterLog.createTime')"
align="center"></el-table-column>
</el-table>
<el-row>
<el-col :span="12"></el-col>
<el-col :span="12" class="text-right">
<el-pagination @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize"
layout="total, prev, pager, next" :total="simplifyMeterWaterFeeInfo.total"></el-pagination>
</el-col>
</el-row>
</div>
</div>
</template>
<script>
import { listMeterWaters, listMeterTypes } from '@/api/fee/simplifyMeterWaterLogApi'
import { getCommunityId } from '@/api/community/communityApi'
export default {
name: 'SimplifyMeterWaterLog',
data() {
return {
simplifyMeterWaterFeeInfo: {
meterTypes: [],
meterWaters: [],
total: 0,
records: 1,
roomId: '',
roomName: '',
ownerName: '',
floorNum: '',
unitNum: '',
roomNum: '',
|
373313bf
wuxw
v1.9 解决房屋收费页面抄表记录...
|
65
|
meterType: "",
|
24d3590f
wuxw
房屋收费页面开发完成
|
66
67
68
69
70
71
72
73
74
|
},
currentPage: 1,
pageSize: 10
}
},
created() {
this.communityId = getCommunityId()
},
methods: {
|
373313bf
wuxw
v1.9 解决房屋收费页面抄表记录...
|
75
76
77
|
open(params) {
this.switchData(params)
},
|
24d3590f
wuxw
房屋收费页面开发完成
|
78
79
80
81
82
83
84
85
86
|
handleCurrentChange(val) {
this.currentPage = val
this._listSimplifyMeterWaterFee(val, this.pageSize)
},
_listSimplifyMeterWaterFee(page, row) {
const param = {
page,
row,
communityId: this.communityId,
|
946eab95
wuxw
v1.9 优化客户周反馈bug
|
87
|
objId: this.simplifyMeterWaterFeeInfo.roomId,
|
24d3590f
wuxw
房屋收费页面开发完成
|
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
meterType: this.simplifyMeterWaterFeeInfo.meterType
}
listMeterWaters(param).then(response => {
const data = response.data
this.simplifyMeterWaterFeeInfo.total = data.total
this.simplifyMeterWaterFeeInfo.records = data.records
this.simplifyMeterWaterFeeInfo.meterWaters = data.data
}).catch(error => {
console.error('请求失败:', error)
})
},
_openAddMeterWaterModal() {
this.$emit('openAddModal', {
roomId: this.simplifyMeterWaterFeeInfo.roomId,
roomName: this.simplifyMeterWaterFeeInfo.roomName,
ownerName: this.simplifyMeterWaterFeeInfo.ownerName
})
},
clearSimplifyMeterWaterFeeInfo() {
this.simplifyMeterWaterFeeInfo = {
meterTypes: [],
meterWaters: [],
total: 0,
records: 1,
roomId: '',
ownerName: '',
roomName: '',
floorNum: '',
unitNum: '',
roomNum: '',
meterType: ""
}
},
_listMeterTypes() {
const param = {
page: 1,
row: 100,
communityId: this.communityId
}
listMeterTypes(param).then(response => {
const data = response.data
this.simplifyMeterWaterFeeInfo.meterTypes = data.data
}).catch(error => {
console.error('请求失败:', error)
})
},
switchData(param) {
if (param.roomId === '') return
this.clearSimplifyMeterWaterFeeInfo()
Object.assign(this.simplifyMeterWaterFeeInfo, param)
this._listMeterTypes()
this._listSimplifyMeterWaterFee(1, 10)
},
|
373313bf
wuxw
v1.9 解决房屋收费页面抄表记录...
|
143
|
|
24d3590f
wuxw
房屋收费页面开发完成
|
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
}
}
</script>
<style scoped>
.margin-top-lg {
margin-top: 20px;
}
.margin-top {
margin-top: 15px;
}
.padding-right-xs {
padding-right: 5px;
}
.padding-left-xl {
padding-left: 20px;
}
.text-right {
text-align: right;
}
</style>
|