diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index ab261a8..2881644 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -74,7 +74,8 @@
客
{{item.name || '--'}}
-
+
+ 销讲业务:{{ item.marketingBusinessName || '--' }}
{{ item.phone | encryption }}
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index 4915083..29d14e7 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -719,6 +719,36 @@
})
},
+
+ // 销讲业务方法
+ templateCancel() {
+ this.showTemplate = false;
+ },
+
+ // 确认选择销讲业务
+ templateConfirm(e) {
+ this.showTemplate = false;
+ this.$u.post('/customer/updateMarketingBusiness', {
+ marketingBusiness: e[0].value,
+ id: this.userlistobj.id
+ }).then(res => {
+ uni.showToast({
+ title: '操作成功',
+ icon: 'none',
+ duration: 2000
+ })
+ this.init(this.infos);
+ this.gituserlist()
+ this.getMarketingBusiness()
+ }).catch(e => {
+ uni.showToast({
+ title: e.data.message,
+ icon: 'none',
+ duration: 2000
+ })
+ })
+ },
+
borderColor(index) {
let obj = {
color: '',
diff --git a/pages/mine/reception/addreception.vue b/pages/mine/reception/addreception.vue
index 949e25b..777f7d7 100644
--- a/pages/mine/reception/addreception.vue
+++ b/pages/mine/reception/addreception.vue
@@ -53,7 +53,21 @@
+
+
+ 销讲业务
+
+ {{templateName}}
+ 请选择销讲业务
+
+
+
+
+
+
+
顾问
@@ -69,13 +83,18 @@
确定
-
+
+
+
+
+
@@ -120,6 +139,11 @@
isShow: false, // 默认隐藏该权限
isPass: false, // 当前顾问是否正在接待
fromBack: false, // 从选择顾问页面跳回
+
+
+ templateList: [], // 销讲业务
+ showTemplate: false, // 展示选择销讲业务弹窗
+ templateName: '', // 销讲业务类型文字
};
},
@@ -136,12 +160,13 @@
this.text = obj.name;
this.parames.agentId = customerId;
})
+ this.getMarketingBusiness();
},
onUnload() {
uni.$off('addreception')
},
-
+
onShow() {
let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
this.isShow = newmenulist.jd_zp
@@ -150,16 +175,42 @@
this.zkAgentPoolSourceList();
},
methods: {
+
+ // 销讲业务方法
+ templateCancel() {
+ this.showTemplate = false;
+ },
+ templateConfirm(e) {
+ this.showTemplate = false;
+ this.templateName = e[0].label;
+ this.parames.marketingBusiness = e[0].value;
+ },
+
+ // 获取销讲业务
+ getMarketingBusiness() {
+ this.$u.get('/customer/marketingBusiness', {
+ houseId: uni.getStorageSync('buildingID').id,
+ status: 0,
+ }).then(res => {
+ this.templateList = res
+ if (res && res.length > 0) {
+ this.parames.marketingBusiness = res[0].id
+ this.templateName = res[0].templateName
+ }
+ })
+ },
// 获取客户来源
zkAgentPoolSourceList() {
- this.$u.get('/zkAgentPool/source/list', { houseId: this.parames.projectId }).then(res => {
+ this.$u.get('/zkAgentPool/source/list', {
+ houseId: this.parames.projectId
+ }).then(res => {
console.log(res)
if (res) {
this.list = res
}
})
},
-
+
//取消
confirmA() {
if (this.daitiReceptionobj.assign != null) {
@@ -190,7 +241,7 @@
} else {
this.isPass = false
}
-
+
if (this.parames.name.length == 0) {
uni.showToast({
icon: "none",
@@ -327,6 +378,10 @@
Buildingselection() {
this.Showhiddenunits = true;
},
+
+ showTemplateSelect() {
+ this.showTemplate = true;
+ },
cancel() {
this.Showhiddenunits = false;
},
diff --git a/pages/reportExcel/dayReport.vue b/pages/reportExcel/dayReport.vue
index 6010396..c0f7aa2 100644
--- a/pages/reportExcel/dayReport.vue
+++ b/pages/reportExcel/dayReport.vue
@@ -54,11 +54,16 @@
- 平均执行率:
+ 平均执行率:
+ 销讲执行率:
- 平均执行率{{ weekObj.fraction || 0 }}%
+
+ 平均执行率:
+ 销讲执行率:
+ {{ weekObj.fraction || 0 }}%
+
对比昨天{{ weekObj.fractionPK > 0 ? '+' : '' }}{{ weekObj.fractionPK || 0 }}%
@@ -92,28 +97,54 @@
- 销讲维度执行前三:
+ 销讲维度执行前三:
+ 项目平均执行率排名:
-
-
-
-
- {{ rankIndex+1 }}
+
+
+
+
+
+ {{ rankIndex+1 }}
+
+
+ {{ rank.title || '--' }}
+
+
+ ({{ rank.value || 0 }}%)
+
-
- {{ rank.title || '--' }}
+
+
+
+ 暂无数据
-
- ({{ rank.value || 0 }}%)
+
+
+
+
+
+
+
+
+
+ {{ rankIndex+1 }}
+
+
+ {{ rank.title || '--' }}
+
+
+ ({{ rank.value || 0 }}%)
+
-
-
-
-
- 暂无数据
-
-
-
+
+
+
+ 暂无数据
+
+
+
+
@@ -123,32 +154,57 @@
- 销讲维度执行弱项前三:
+ 销讲维度执行弱项前三:
+ 项目平均接访时长排名:
-
-
-
-
- {{ rankIndex+1 }}
+
+
+
+
+
+ {{ rankIndex+1 }}
+
+
+ {{ rank.title || '--' }}
+
+
+ ({{ rank.value || 0 }}%)
+
-
- {{ rank.title || '--' }}
+
+
+
+ 暂无数据
-
- ({{ rank.value || 0 }}%)
+
+
+
+
+
+
+
+
+ {{ rankIndex+1 }}
+
+
+ {{ rank.title || '--' }}
+
+
+ ({{ tofixed2(rank.value/60) || 0 }}m)
+
-
-
-
-
- 暂无数据
-
-
-
+
+
+
+ 暂无数据
+
+
+
+
-
+
6
@@ -179,7 +235,7 @@
-
+
7
@@ -212,26 +268,101 @@
+
+
+ 8
+
+
+ 6
+
+
+
+
+ 平均执行率最低的顾问:
+ 执行率最低的项目:
+
+
+
+
+
+
+ {{ rank.title || '--' }}
+
+
+ {{ rank.value || 0 }}%
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+ {{ rankIndex || '--' }}
+
+
+ {{ rank || 0 }}%
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+
+ 9
+
+
+ 7
+
+
+
+
+ 客户画像触达:
+ {{ weekObj.reachSum || 0 }}次
+
+
+
+
+
+
8
- 平均执行率最低的顾问:
+ 画像一级触达接待前三:
-
+
- {{ rank.title || '--' }}
+ {{ rank.name || '--' }}
- {{ rank.value || 0 }}%
+ ({{ rank.total || 0 }})
-
+
暂无数据
@@ -240,21 +371,43 @@
-
+
9
- 客户画像触达:
- {{ weekObj.reachSum || 0 }}次
+ 画像关键词触达接待前三:
+
+
+
+
+
+ {{ rank.name || '--' }}
+
+
+ ({{ rank.total || 0 }})
+
+
+
+
+
+
+ 暂无数据
+
+
- 10
+
+ 12
+
+
+ 10
+
@@ -268,7 +421,12 @@
- 11
+
+ 13
+
+
+ 11
+
@@ -350,12 +508,12 @@
return 0
}
},
-
-
-
+
+
+
// 项目拷贝
copys() {
-
+
let str = `
${this.projectName}数智工牌日报
@@ -373,7 +531,7 @@
3、平均接待时长:${ this.weekObj.avgDuration || 0 }min
对比昨天:${this.weekObj.avgDurationPK > 0 ? '+' : '' }${ this.weekObj.avgDurationPK || 0 }min`
-
+
if (this.consultant.length > 0) {
str += `
@@ -383,7 +541,7 @@
top${index+1}.${item.title || '--'}${item.value||'0'}%`
})
}
-
+
if (this.recording.length > 0) {
str += `
@@ -393,7 +551,7 @@
top${index+1}.${item.title || '--'}${this.tofixed2(item.value/60)||'0'}m`
})
}
-
+
if (this.lowest.length > 0) {
str += `
@@ -403,12 +561,12 @@
${i || '--'}${this.weekObj.minFraction[i]||'0'}%`
}
}
-
-
+
+
str += `
7、客户画像触达:${this.weekObj.reachSum || 0}次`
-
+
if (this.weekObj.level1List.length > 0) {
str += `
@@ -419,7 +577,7 @@
top${index+1}.${item.name || '--'}${item.total||'0'}%`
})
}
-
+
if (this.weekObj.level1List.length > 0) {
str += `
@@ -430,8 +588,8 @@
top${index+1}.${item.name || '--'}${item.total||'0'}%`
})
}
-
-
+
+
str += `
10、未标记接待数:${ this.weekObj.unlabelledReceptionNum || 0 }条
@@ -440,20 +598,20 @@
11、设备情况:
在线:${this.weekObj.equipmentInfo.onlineNum || 0}
离线:${this.weekObj.equipmentInfo.offlineNum || 0}`
-
-
+
+
uni.setClipboardData({
data: str
})
},
-
+
forShare() {
this.$u.get("/zkMessage/shareMessage", {
id: this.id,
houseId: uni.getStorageSync('buildingID').id
})
},
-
+
// 跳转首页
toHome() {
uni.navigateTo({
@@ -489,6 +647,7 @@
},
copy() {
+ if (this.weekObj.orgCode) return this.copys()
let str = `
${this.projectName}销讲助手日报