From c09d607bdf336ab030aa08cdfd07bedd0e4841a7 Mon Sep 17 00:00:00 2001
From: wyj2080 <1603068044@qq.com>
Date: Wed, 15 Apr 2020 15:59:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=A6=82=E8=A7=88=EF=BC=8CUI?=
 =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 src/pages/CustomerView.vue | 118 +++++++++++++++++++++----------------
 src/pages/Home.vue         |   1 -
 2 files changed, 68 insertions(+), 51 deletions(-)
diff --git a/src/pages/CustomerView.vue b/src/pages/CustomerView.vue
index 2db904d..e72ff0b 100644
--- a/src/pages/CustomerView.vue
+++ b/src/pages/CustomerView.vue
@@ -5,26 +5,50 @@
         
           
           
-            区域选择
-            
+          
+          
+            
+              
+                全部客户(累计)
{{customerViewVO.allCustomer}}
+              
+              
+                有效客户(累计)
{{customerViewVO.validCustomer}}
+              
+              
+                新增客户
{{customerViewVO.newCustomer}}
+              
+              
+                新增有效客户
{{customerViewVO.newValidCustomer}}
+              
+              
+                删除拉黑数(累计)
{{customerViewVO.deleteCustomer}}
+              
+            
+          
+          
+          
+            
+            {{sevenDayStartDate}}至{{sevenDayEndDate}}(近七天)趋势图
+            
+          
           
           
             
               
-                  
-                  客户&会员关联情况
+                
+                客户&会员关联情况
               
               
                 
@@ -38,7 +62,7 @@
                       
@@ -79,14 +103,8 @@
               
               
             
-          
-          
-          
-            
-            近7天趋势
-            
-          
-          
+          
+          
         
       
     
@@ -102,12 +120,14 @@
               userId: 13,
               //加载遮罩
               spinShow: false,
-              regionId: 0,
-              regionList: [{"id":1,"name":"一区"},{"id":2,"name":"二大区"}],
+              dateRange: [],
+              organizationId: 0,
+              organizationList: [{"id":1,"name":"一区"},{"id":2,"name":"二大区"}],
               shopId: 0,
               shopList: [{"id":1,"name":"一区"},{"id":2,"name":"二大区"}],
-              sellerId: 0,
-              sellerList: [{"id":1,"name":"一区"},{"id":2,"name":"二大区"}],
+              //近七天日期
+              sevenDayStartDate: this.$moment(new Date()).add(-6,"days").format("YYYY-MM-DD"),
+              sevenDayEndDate: this.$moment(new Date()).format("YYYY-MM-DD"),
               //人数占比
               allVipPercent: "width:66.66%",
               percent1: "width:33.33%",
@@ -115,6 +135,11 @@
               percent3: "width:33.33%",
               allCustomerPercent: "width:66.66%",
               customerViewVO: {
+                allCustomer: 0,
+                validCustomer: 0,
+                newCustomer: 0,
+                newValidCustomer: 0,
+                deleteCustomer: 0,
                 customer:0,
                 common:0,
                 vip:0,
@@ -140,7 +165,6 @@
             }
         },
         mounted: function () {
-          this.downSellerData();
           this.downShopData();
           this.downRegionData();
           this.getMainList();
@@ -181,29 +205,12 @@
             if(value === 0){return null;}
             return value;
           },
-          //导购list
-          downSellerData: function () {
-            let that = this;
-            that.sellerList = [{"id":0,"name":"全部"}];
-            let request = {userId: this.userId, regionId: that.checkZero(that.regionId), shopId:that.checkZero( that.shopId)};
-            customerDetail.downSellerData(request, function (data) {
-              data = data.data.results;
-              if(data){
-                for(let i=0;i