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