瀏覽代碼

Merge branch 'feature/1223' into develop

zhengxy 2 年之前
父節點
當前提交
8a8404ed44
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. 21 0
      project/src/components/customManage/manage.vue

+ 21 - 0
project/src/components/customManage/manage.vue

@@ -17,6 +17,8 @@
17 17
       <loss-body :reset='resetFlag' @lossChange="lossChange"></loss-body>
18 18
       <!-- 付费情况 -->
19 19
       <screen-pay :reset='resetFlag' @payChange="payChange"></screen-pay>
20
+      <!-- 充值时间 -->
21
+      <date-picker :reset='resetFlag' title="充值时间" @changeTime="onChangePayTime" />
20 22
       <div class="reset" @click="resetEvent">重置</div>
21 23
     </div>
22 24
     <div class="tableInfo">
@@ -195,6 +197,8 @@ export default {
195 197
       tag_type: 0,//标签筛选类型 0不筛选 1满足其中一个 2同时满足 3无标签
196 198
       add_date_start: '',//添加日期 起始
197 199
       add_date_end: '',//添加日期 截止
200
+      last_pay_time_start: '',//充值时间 起始
201
+      last_pay_time_end: '',//充值时间 截止
198 202
       loss_status: null,//客户流失状态 没有筛选时传null 0未流失 1已流失
199 203
       pay_status: null,//	付款状态 没有筛选时传null 0未付款 1已付款
200 204
       pay_num_min: '',//最小付款次数,当pay_status是1时必传
@@ -261,6 +265,8 @@ export default {
261 265
           customer_name: this.input_keyword,
262 266
           add_date_start: this.add_date_start,
263 267
           add_date_end: this.add_date_end,
268
+          last_pay_time_start: this.last_pay_time_start,
269
+          last_pay_time_end: this.last_pay_time_end,
264 270
           add_way: this.add_way,
265 271
           pay_status: this.pay_status,
266 272
           pay_num_min: this.pay_num_min,
@@ -360,6 +366,8 @@ export default {
360 366
       this.tag_type = 0;
361 367
       this.add_date_start = '';
362 368
       this.add_date_end = '';
369
+      this.last_pay_time_start = '';
370
+      this.last_pay_time_end = '';
363 371
       this.loss_status = null;
364 372
       this.pay_status = null;
365 373
       this.pay_num_min = '';
@@ -406,6 +414,17 @@ export default {
406 414
       }
407 415
       this.init(1)
408 416
     },
417
+    // 监听“充值时间”筛选变化
418
+    onChangePayTime (time) {
419
+      if (!time || time && time.length == 0) {
420
+        this.last_pay_time_start = '';
421
+        this.last_pay_time_end = '';
422
+      } else {
423
+        this.last_pay_time_start = time[0]
424
+        this.last_pay_time_end = time[1]
425
+      }
426
+      this.init(1)
427
+    },
409 428
     tagDefine (data) {//标签选择回调
410 429
       if (data.tag == 1 || data.tag == 2) {
411 430
         if (data.tag_id_list && data.tag_id_list.length != 0) {
@@ -440,6 +459,8 @@ export default {
440 459
           customer_name: this.input_keyword,
441 460
           add_date_start: this.add_date_start,
442 461
           add_date_end: this.add_date_end,
462
+          last_pay_time_start: this.last_pay_time_start,
463
+          last_pay_time_end: this.last_pay_time_end,
443 464
           add_way: this.add_way,
444 465
           pay_status: this.pay_status,
445 466
           pay_num_min: this.pay_num_min,