ce5e1a2a
wuxw
系统模块开发中
|
1
2
3
|
<template>
<div class="operate-data-log-container">
<el-card class="search-card">
|
27dcfde5
wuxw
系统全面测试完成
|
4
|
<div slot="header" class="flex justify-between">
|
ce5e1a2a
wuxw
系统模块开发中
|
5
|
<span>{{ $t('operateDataLog.search.title') }}</span>
|
c85e0853
wuxw
业主详情开发完成
|
6
|
<el-button type="text" style="float: right; padding: 3px 0" @click="_moreCondition">
|
ce5e1a2a
wuxw
系统模块开发中
|
7
8
9
|
{{ operateDataLogInfo.moreCondition ? $t('common.hide') : $t('common.more') }}
</el-button>
</div>
|
c85e0853
wuxw
业主详情开发完成
|
10
|
|
ce5e1a2a
wuxw
系统模块开发中
|
11
12
|
<el-row :gutter="20">
<el-col :span="6">
|
c85e0853
wuxw
业主详情开发完成
|
13
14
|
<el-date-picker v-model="operateDataLogInfo.conditions.logStartTime" type="datetime"
:placeholder="$t('operateDataLog.search.logStartTime')" style="width: 100%"
|
ce5e1a2a
wuxw
系统模块开发中
|
15
16
17
|
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
18
|
|
ce5e1a2a
wuxw
系统模块开发中
|
19
|
<el-col :span="6">
|
c85e0853
wuxw
业主详情开发完成
|
20
21
|
<el-date-picker v-model="operateDataLogInfo.conditions.logEndTime" type="datetime"
:placeholder="$t('operateDataLog.search.logEndTime')" style="width: 100%" value-format="yyyy-MM-dd HH:mm:ss"
|
ce5e1a2a
wuxw
系统模块开发中
|
22
23
24
|
:picker-options="endDateOptions">
</el-date-picker>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
25
|
|
ce5e1a2a
wuxw
系统模块开发中
|
26
|
<el-col :span="6">
|
c85e0853
wuxw
业主详情开发完成
|
27
|
<el-input v-model="operateDataLogInfo.conditions.staffNameLike"
|
ce5e1a2a
wuxw
系统模块开发中
|
28
29
30
|
:placeholder="$t('operateDataLog.search.staffNameLike')">
</el-input>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
31
|
|
ce5e1a2a
wuxw
系统模块开发中
|
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<el-col :span="6">
<el-button type="primary" @click="_queryDataMethod">
<i class="el-icon-search"></i>
{{ $t('common.search') }}
</el-button>
<el-button @click="_resetDataMethod">
<i class="el-icon-refresh"></i>
{{ $t('common.reset') }}
</el-button>
</el-col>
</el-row>
<el-row :gutter="20" v-show="operateDataLogInfo.moreCondition">
|
c85e0853
wuxw
业主详情开发完成
|
45
46
47
|
<el-col :span="6"
v-if="operateDataLogInfo._currentTab === 'feeConfigDetailHis' || operateDataLogInfo._currentTab === 'feeDetailHis'">
<el-input v-model="operateDataLogInfo.conditions.feeNameLike"
|
ce5e1a2a
wuxw
系统模块开发中
|
48
49
50
|
:placeholder="$t('operateDataLog.search.feeNameLike')">
</el-input>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
51
|
|
ce5e1a2a
wuxw
系统模块开发中
|
52
|
<el-col :span="6" v-if="operateDataLogInfo._currentTab === 'feeDetailHis'">
|
c85e0853
wuxw
业主详情开发完成
|
53
|
<el-input v-model="operateDataLogInfo.conditions.payerObjName"
|
ce5e1a2a
wuxw
系统模块开发中
|
54
55
56
|
:placeholder="$t('operateDataLog.search.payerObjName')">
</el-input>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
57
|
|
ce5e1a2a
wuxw
系统模块开发中
|
58
|
<el-col :span="6" v-if="operateDataLogInfo._currentTab === 'ownerDetailHis'">
|
c85e0853
wuxw
业主详情开发完成
|
59
|
<el-input v-model="operateDataLogInfo.conditions.ownerNameLike"
|
ce5e1a2a
wuxw
系统模块开发中
|
60
61
62
|
:placeholder="$t('operateDataLog.search.ownerNameLike')">
</el-input>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
63
|
|
ce5e1a2a
wuxw
系统模块开发中
|
64
|
<el-col :span="6" v-if="operateDataLogInfo._currentTab === 'roomDetailHis'">
|
c85e0853
wuxw
业主详情开发完成
|
65
|
<el-input v-model="operateDataLogInfo.conditions.roomName"
|
ce5e1a2a
wuxw
系统模块开发中
|
66
67
68
|
:placeholder="$t('operateDataLog.search.roomName')">
</el-input>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
69
|
|
ce5e1a2a
wuxw
系统模块开发中
|
70
|
<el-col :span="6" v-if="operateDataLogInfo._currentTab === 'carDetailHis'">
|
c85e0853
wuxw
业主详情开发完成
|
71
|
<el-input v-model="operateDataLogInfo.conditions.carNumLike"
|
ce5e1a2a
wuxw
系统模块开发中
|
72
73
74
|
:placeholder="$t('operateDataLog.search.carNumLike')">
</el-input>
</el-col>
|
c85e0853
wuxw
业主详情开发完成
|
75
|
|
ce5e1a2a
wuxw
系统模块开发中
|
76
|
<el-col :span="6" v-if="operateDataLogInfo._currentTab === 'contractDetailChange'">
|
c85e0853
wuxw
业主详情开发完成
|
77
|
<el-input v-model="operateDataLogInfo.conditions.contractCode"
|
ce5e1a2a
wuxw
系统模块开发中
|
78
79
80
81
82
83
84
|
:placeholder="$t('operateDataLog.search.contractCode')">
</el-input>
</el-col>
</el-row>
</el-card>
<el-card class="table-card">
|
27dcfde5
wuxw
系统全面测试完成
|
85
|
<el-tabs v-model="operateDataLogInfo._currentTab" @tab-click="changeTab(operateDataLogInfo._currentTab)">
|
ce5e1a2a
wuxw
系统模块开发中
|
86
87
88
89
90
91
92
93
|
<el-tab-pane label="费用项" name="feeConfigDetailHis"></el-tab-pane>
<el-tab-pane label="费用" name="feeDetailHis"></el-tab-pane>
<el-tab-pane label="业主" name="ownerDetailHis"></el-tab-pane>
<el-tab-pane label="房屋" name="roomDetailHis"></el-tab-pane>
<el-tab-pane label="车辆" name="carDetailHis"></el-tab-pane>
<el-tab-pane label="合同" name="contractDetailChange"></el-tab-pane>
</el-tabs>
|
27dcfde5
wuxw
系统全面测试完成
|
94
|
<component :is="currentComponent" :ref="currentComponent"></component>
|
ce5e1a2a
wuxw
系统模块开发中
|
95
96
97
98
99
100
101
|
</el-card>
</div>
</template>
<script>
import { getCommunityId } from '@/api/community/communityApi'
import FeeConfigDetailHis from '@/components/system/feeConfigDetailHis'
|
47b8eddb
wuxw
优化完成 平凉客户反馈bug
|
102
|
import FeeDetailHis from '@/components/fee/feeDetailHis'
|
c85e0853
wuxw
业主详情开发完成
|
103
|
import OwnerDetailHis from '@/components/owner/ownerDetailHis'
|
ce5e1a2a
wuxw
系统模块开发中
|
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
143
144
145
146
147
148
149
150
151
152
153
154
|
import RoomDetailHis from '@/components/system/roomDetailHis'
import CarDetailHis from '@/components/system/carDetailHis'
import ContractDetailChange from '@/components/system/contractDetailChange'
export default {
name: 'OperateDataLogList',
components: {
FeeConfigDetailHis,
FeeDetailHis,
OwnerDetailHis,
RoomDetailHis,
CarDetailHis,
ContractDetailChange
},
data() {
return {
communityId: '',
operateDataLogInfo: {
_currentTab: 'feeConfigDetailHis',
moreCondition: false,
conditions: {
logStartTime: '',
logEndTime: '',
staffNameLike: '',
feeNameLike: '',
payerObjName: '',
ownerNameLike: '',
roomName: '',
carNumLike: '',
contractCode: ''
}
},
endDateOptions: {
disabledDate: (time) => {
if (this.operateDataLogInfo.conditions.logStartTime) {
return time.getTime() <= new Date(this.operateDataLogInfo.conditions.logStartTime).getTime()
}
return false
}
}
}
},
computed: {
currentComponent() {
return this.operateDataLogInfo._currentTab
}
},
created() {
this.communityId = getCommunityId()
},
methods: {
|
27dcfde5
wuxw
系统全面测试完成
|
155
156
157
158
159
|
changeTab(tab) {
this.operateDataLogInfo._currentTab = tab
setTimeout(() => {
if (this.$refs[tab]) {
this.$refs[tab].open(this.operateDataLogInfo.conditions)
|
ce5e1a2a
wuxw
系统模块开发中
|
160
|
}
|
27dcfde5
wuxw
系统全面测试完成
|
161
|
}, 100)
|
ce5e1a2a
wuxw
系统模块开发中
|
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
},
_queryDataMethod() {
this.changeTab(this.operateDataLogInfo._currentTab)
},
_resetDataMethod() {
this.operateDataLogInfo.conditions = {
logStartTime: '',
logEndTime: '',
staffNameLike: '',
feeNameLike: '',
payerObjName: '',
ownerNameLike: '',
roomName: '',
carNumLike: '',
contractCode: ''
}
this.changeTab(this.operateDataLogInfo._currentTab)
},
_moreCondition() {
this.operateDataLogInfo.moreCondition = !this.operateDataLogInfo.moreCondition
}
}
}
</script>
<style lang="scss" scoped>
.operate-data-log-container {
padding: 20px;
.search-card {
margin-bottom: 20px;
}
.table-card {
margin-bottom: 20px;
}
.el-row {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
.el-col {
border-radius: 4px;
}
}
</style>
|