From 1059d4730eba79027e0cff36b94e6f3209f36bfd Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Tue, 25 Oct 2022 15:07:10 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=96=B0=E5=A2=9E=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../center/Piabodata/Employeesstatistics.vue | 139 ++++-
pages/center/Piabodata/StaffAnalysis.vue | 150 ++++--
pages/center/Piabodata/Theteamcompared.vue | 203 ++++----
pages/center/Piabodata/Userinsightinto.vue | 333 ++++++++----
pages/center/consumer/consumerDetail.vue | 482 +++++++++---------
pages/mine/details2.vue | 1 +
pages/mine/reception/addreception.vue | 1 +
7 files changed, 817 insertions(+), 492 deletions(-)
diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue
index 97da3e8..aa3f7dc 100644
--- a/pages/center/Piabodata/Employeesstatistics.vue
+++ b/pages/center/Piabodata/Employeesstatistics.vue
@@ -1,18 +1,9 @@
-
-
- 近七天
-
-
- 近15天
-
-
- 近30天
-
-
- 自定义
-
+
+
+ {{ showTimeText }}
+ {{ showBeText }}
@@ -237,6 +228,32 @@
+
+
+
+
+
+
+
+ 近七天
+
+
+ 近15天
+
+
+ 近30天
+
+
+ 自定义
+
+
+
+
+
+
+
+
@@ -290,6 +307,16 @@
total: '',
result: [],
},
+
+
+
+ screenShow: false, // 时间筛选弹窗
+ showTimeText: '近七天', // 展示文字
+ showBeText: '全部业务', //
+ templateList: [], // 销讲业务
+ showTemplate: false, // 展示选择销讲业务弹窗
+ marketingBusiness: '', // 选择的业务id
+
};
},
onLoad(option) {
@@ -297,16 +324,50 @@
this.houseId = uni.getStorageSync('buildingID').id;
this.init()
if (option.type == 1) {
- this.totalTimeChange({startDate: option.staTime, endDate: option.endtime})
+ this.totalTimeChange({
+ startDate: option.staTime,
+ endDate: option.endtime
+ })
}
+ this.getMarketingBusiness()
},
onPullDownRefresh() {
this.init()
+ this.getMarketingBusiness()
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
+
+
+ // 销讲业务方法
+ templateCancel() {
+ this.showTemplate = false;
+ },
+
+ // 确认选择销讲业务
+ templateConfirm(e) {
+ this.showTemplate = false;
+ this.marketingBusiness = e[0].value
+ this.showBeText = e[0].label
+ this.init()
+ },
+
+
+ // 获取销讲业务
+ getMarketingBusiness() {
+ this.$u.get('/customer/marketingBusiness', {
+ houseId: uni.getStorageSync('buildingID').id,
+ }).then(res => {
+ this.templateList = res
+ this.templateList.unshift({
+ templateName: '全部业务',
+ id: ''
+ })
+ })
+ },
+
init() {
this.newlisttabinfo1 = {
avg: '',
@@ -351,7 +412,8 @@
timeType: activeTotal,
lastStartDate: this.lastStartDate,
lastEndDate: this.lastEndDate,
- houseId: this.houseId
+ houseId: this.houseId,
+ marketingBusiness: this.marketingBusiness,
}
this.staffStatisticsReceptionTop10(promse)
this.staffStatisticsRecordingTimTop10(promse)
@@ -431,16 +493,20 @@
//自定义时间
totalTimeChange(e) {
console.log(e.startDate, e.endDate)
+ this.screenShow = false
+ this.showTimeText = `${e.startDate}-${e.endDate}`
this.activeTotal = 3;
this.lastEndDate = e.endDate
this.lastStartDate = e.startDate
this.init()
},
//时间切换
- tabtimetap(index) {
+ tabtimetap(index, text) {
if (index == 3) {
this.totalTimeShow = true;
} else {
+ this.screenShow = false
+ this.showTimeText = text
this.activeTotal = index;
this.lastEndDate = '';
this.lastStartDate = '';
@@ -479,15 +545,49 @@
};