|
@@ -94,14 +94,20 @@
|
94
|
94
|
@change="transitionChange"
|
95
|
95
|
></el-input-number>
|
96
|
96
|
</div>
|
97
|
|
- <!-- <div class="consumePrice">
|
|
97
|
+ <div class="consumePrice">
|
98
|
98
|
<div class="consumePrice-title">总消费金额</div>
|
99
|
99
|
<div class="consumePrice-content">
|
100
|
|
- <el-input v-model="minConsumePrice"></el-input>
|
|
100
|
+ <el-input
|
|
101
|
+ v-model="minConsumePrice"
|
|
102
|
+ @change="minConsume"
|
|
103
|
+ ></el-input>
|
101
|
104
|
<div>-</div>
|
102
|
|
- <el-input v-model="maxConsumePrice"></el-input>
|
|
105
|
+ <el-input
|
|
106
|
+ v-model="maxConsumePrice"
|
|
107
|
+ @change="maxConsume"
|
|
108
|
+ ></el-input>
|
103
|
109
|
</div>
|
104
|
|
- </div> -->
|
|
110
|
+ </div>
|
105
|
111
|
<div class="StoredPrice">
|
106
|
112
|
<div class="StoredPrice-title">总储值金额</div>
|
107
|
113
|
<div class="StoredPrice-content">
|
|
@@ -135,7 +141,7 @@
|
135
|
141
|
<script>
|
136
|
142
|
import api from "../../../server/home";
|
137
|
143
|
export default {
|
138
|
|
- props: ["visible"],
|
|
144
|
+ props: ["visible",'resetPop'],
|
139
|
145
|
data() {
|
140
|
146
|
return {
|
141
|
147
|
total: 0,
|
|
@@ -191,6 +197,9 @@ export default {
|
191
|
197
|
let StoredPrice = [];
|
192
|
198
|
StoredPrice.push(this.minStoredPricePrice);
|
193
|
199
|
StoredPrice.push(this.maxStoredPricePrice);
|
|
200
|
+ let consumeprice = [];
|
|
201
|
+ consumeprice.push(this.minConsumePrice);
|
|
202
|
+ consumeprice.push(this.maxConsumePrice);
|
194
|
203
|
let params = {
|
195
|
204
|
page: this.currentPage1,
|
196
|
205
|
limit: this.limit,
|
|
@@ -202,15 +211,18 @@ export default {
|
202
|
211
|
balance_money:
|
203
|
212
|
this.maxStoredPricePrice.length == 0 ? 0 : StoredPrice.toString(),
|
204
|
213
|
change_add: this.transitionNum,
|
|
214
|
+ consume_money:
|
|
215
|
+ this.maxConsumePrice.length == 0 ? 0 : consumeprice.toString(),
|
205
|
216
|
};
|
206
|
|
- api.getUserList(params).then((res) => {
|
|
217
|
+ api.getUserPayList(params).then((res) => {
|
207
|
218
|
if (
|
208
|
219
|
this.customerKey.length == 0 &&
|
209
|
220
|
this.couponKey.length == 0 &&
|
210
|
221
|
this.cardKey.length == 0 &&
|
211
|
222
|
this.latelyKey.length == 0 &&
|
212
|
223
|
this.superpositionNum == 0 &&
|
213
|
|
- this.maxStoredPricePrice.length == 0
|
|
224
|
+ this.maxStoredPricePrice.length == 0 &&
|
|
225
|
+ this.maxConsumePrice.length == 0
|
214
|
226
|
) {
|
215
|
227
|
this.total = 0;
|
216
|
228
|
return;
|
|
@@ -228,6 +240,9 @@ export default {
|
228
|
240
|
let StoredPrice = [];
|
229
|
241
|
StoredPrice.push(this.minStoredPricePrice);
|
230
|
242
|
StoredPrice.push(this.maxStoredPricePrice);
|
|
243
|
+ let consumeprice = [];
|
|
244
|
+ consumeprice.push(this.minConsumePrice);
|
|
245
|
+ consumeprice.push(this.maxConsumePrice);
|
231
|
246
|
this.$emit("update:visible", false);
|
232
|
247
|
this.$emit(
|
233
|
248
|
"saveSelectList",
|
|
@@ -237,13 +252,22 @@ export default {
|
237
|
252
|
this.latelyKey.length == 0 ? 0 : this.latelyKey,
|
238
|
253
|
this.superpositionNum,
|
239
|
254
|
this.maxStoredPricePrice.length == 0 ? 0 : StoredPrice.toString(),
|
240
|
|
- this.transitionNum
|
|
255
|
+ this.transitionNum,
|
|
256
|
+ this.maxConsumePrice.length == 0 ? 0 : consumeprice.toString()
|
241
|
257
|
);
|
242
|
258
|
},
|
243
|
259
|
// 关闭弹窗
|
244
|
260
|
closeFilterPop() {
|
245
|
261
|
this.$emit("update:visible", false);
|
246
|
262
|
},
|
|
263
|
+ // 消费最小值改变
|
|
264
|
+ minConsume() {
|
|
265
|
+ this.getUserList();
|
|
266
|
+ },
|
|
267
|
+ // 消费最大值改变
|
|
268
|
+ maxConsume() {
|
|
269
|
+ this.getUserList();
|
|
270
|
+ },
|
247
|
271
|
// 最小值改变
|
248
|
272
|
minChange() {
|
249
|
273
|
this.getUserList();
|
|
@@ -311,10 +335,9 @@ export default {
|
311
|
335
|
},
|
312
|
336
|
},
|
313
|
337
|
watch: {
|
314
|
|
- visible(newValue, oldValue) {
|
315
|
|
- // 关闭打开弹框重置数据
|
316
|
|
- this.reset();
|
317
|
|
- },
|
|
338
|
+ resetPop(newValue,oldValue){
|
|
339
|
+ this.reset()
|
|
340
|
+ }
|
318
|
341
|
},
|
319
|
342
|
};
|
320
|
343
|
</script>
|