|
@@ -92,14 +92,14 @@
|
92
|
92
|
size="mini"
|
93
|
93
|
></el-input-number>
|
94
|
94
|
</div>
|
95
|
|
- <div class="consumePrice">
|
|
95
|
+ <!-- <div class="consumePrice">
|
96
|
96
|
<div class="consumePrice-title">总消费金额</div>
|
97
|
97
|
<div class="consumePrice-content">
|
98
|
98
|
<el-input v-model="minConsumePrice"></el-input>
|
99
|
99
|
<div>-</div>
|
100
|
100
|
<el-input v-model="maxConsumePrice"></el-input>
|
101
|
101
|
</div>
|
102
|
|
- </div>
|
|
102
|
+ </div> -->
|
103
|
103
|
<div class="StoredPrice">
|
104
|
104
|
<div class="StoredPrice-title">总储值金额</div>
|
105
|
105
|
<div class="StoredPrice-content">
|
|
@@ -141,16 +141,19 @@ export default {
|
141
|
141
|
couponSource: {
|
142
|
142
|
name: "优惠券快过期付费用户",
|
143
|
143
|
title: ["3天", "5天", "7天", "15天"],
|
|
144
|
+ day: ["3", "5", "7", "15"],
|
144
|
145
|
},
|
145
|
146
|
|
146
|
147
|
cardSource: {
|
147
|
148
|
name: "次卡快过期付费用户",
|
148
|
149
|
title: ["3天", "5天", "7天", "15天", "30天"],
|
|
150
|
+ day: ["3", "5", "7", "15", "30"],
|
149
|
151
|
},
|
150
|
152
|
|
151
|
153
|
latelySource: {
|
152
|
154
|
name: "距离最近消费时间",
|
153
|
155
|
title: ["3天", "5天", "7天", "15天", "15天以上"],
|
|
156
|
+ day: ["3", "5", "7", "15", "16"],
|
154
|
157
|
},
|
155
|
158
|
customerSelect: [], //客户来源下标
|
156
|
159
|
couponSelect: 99, //优惠券快过期付费用户下标
|
|
@@ -163,11 +166,9 @@ export default {
|
163
|
166
|
minStoredPricePrice: 0, //储值最小金额
|
164
|
167
|
maxStoredPricePrice: "", //储值最大金额
|
165
|
168
|
customerKey: [], //选择客户来源列表
|
166
|
|
- conditionList: {
|
167
|
|
- couponKey: "",
|
168
|
|
- cardKey: "",
|
169
|
|
- latelyKey: "",
|
170
|
|
- },
|
|
169
|
+ couponKey: "", //优惠券快过期天数
|
|
170
|
+ cardKey: "", //此卡过期天数
|
|
171
|
+ latelyKey: "", //距离最近消费时间天数
|
171
|
172
|
};
|
172
|
173
|
},
|
173
|
174
|
methods: {
|
|
@@ -178,12 +179,20 @@ export default {
|
178
|
179
|
},
|
179
|
180
|
// 保存筛选条件
|
180
|
181
|
save() {
|
181
|
|
- let selectList = [];
|
182
|
|
- selectList.push(this.conditionList.couponKey);
|
183
|
|
- selectList.push(this.conditionList.cardKey);
|
184
|
|
- selectList.push(this.conditionList.latelyKey);
|
185
|
|
- console.log(selectList);
|
|
182
|
+ let StoredPrice = [];
|
|
183
|
+ StoredPrice.push(this.minStoredPricePrice);
|
|
184
|
+ StoredPrice.push(this.maxStoredPricePrice);
|
186
|
185
|
this.$emit("update:visible", false);
|
|
186
|
+ this.$emit(
|
|
187
|
+ "saveSelectList",
|
|
188
|
+ this.customerKey.length == 0 ? 0 : this.customerKey,
|
|
189
|
+ this.couponKey.length == 0 ? 0 : this.couponKey,
|
|
190
|
+ this.cardKey.length == 0 ? 0 : this.cardKey,
|
|
191
|
+ this.latelyKey.length == 0 ? 0 : this.latelyKey,
|
|
192
|
+ this.superpositionNum,
|
|
193
|
+ this.maxStoredPricePrice.length == 0 ? 0 : StoredPrice.toString(),
|
|
194
|
+ this.transitionNum
|
|
195
|
+ );
|
187
|
196
|
},
|
188
|
197
|
// 关闭弹窗
|
189
|
198
|
closeFilterPop() {
|
|
@@ -197,22 +206,23 @@ export default {
|
197
|
206
|
return;
|
198
|
207
|
}
|
199
|
208
|
this.customerSelect.push(index);
|
200
|
|
- this.customerKey.push(item)
|
|
209
|
+ // 0 无1线下进店 2种子用户 3美团/大众 4抖音 5达人探店 6霸王餐 7老带新/转介绍,多个使用数组
|
|
210
|
+ this.customerKey.push(index + 1);
|
201
|
211
|
},
|
202
|
212
|
// 选择优惠券快过期付费用户
|
203
|
213
|
couponFilter(item, index) {
|
204
|
214
|
this.couponSelect = index;
|
205
|
|
- this.$set(this.conditionList, "couponKey", item);
|
|
215
|
+ this.couponKey = this.couponSource.day[index];
|
206
|
216
|
},
|
207
|
217
|
// 选择此卡快过期下标
|
208
|
218
|
cardFilter(item, index) {
|
209
|
219
|
this.cardSelect = index;
|
210
|
|
- this.$set(this.conditionList, "cardKey", item);
|
|
220
|
+ this.cardKey = this.cardSource.day[index];
|
211
|
221
|
},
|
212
|
222
|
// 选择距离最近消费时间
|
213
|
223
|
latelyFilter(item, index) {
|
214
|
224
|
this.latelySelect = index;
|
215
|
|
- this.$set(this.conditionList, "latelyKey", item);
|
|
225
|
+ this.latelyKey = this.latelySource.day[index];
|
216
|
226
|
},
|
217
|
227
|
},
|
218
|
228
|
watch: {
|