Commit b10ee029 by yy

end

1 parent 2589efda
......@@ -9,6 +9,7 @@
},
"dependencies": {
"axios": "^0.21.1",
"babel-polyfill": "^6.26.0",
"core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6",
......
......@@ -3,24 +3,6 @@ const staticRoutes = Object.freeze([{
path: '/home/index',
meta: {},
component: resolve => require([`@/views/home/index.vue`], resolve)
},
{
name: 'EnterpriseWechat',
path: '/enterpriseWechat/index',
component: resolve => require([`@/views/enterpriseWechat/index.vue`], resolve),
meta: {}
},
{
name: 'Service',
path: '/service/index',
component: resolve => require([`@/views/service/index.vue`], resolve),
meta: {}
},
{
name: 'FollowUp',
path: '/followUp/index',
component: resolve => require([`@/views/followUp/index.vue`], resolve),
meta: {}
}
])
export default staticRoutes
\ No newline at end of file
......@@ -25,11 +25,11 @@
{{ totalNewCustomerCount }}
<span>人</span>
</div>
<div class="summary-radio" :class="{ 'radio-green': totalTodayEntmicroLoseCount > 0, 'radio-red': totalTodayEntmicroLoseCount < 0 }">
<div class="summary-radio" :class="{ 'radio-green': totalCountDayToDayRadio > 0, 'radio-red': totalCountDayToDayRadio < 0 }">
日环比:
<span>{{ totalTodayEntmicroLoseCount | valueF}}</span>
<i class="el-icon-caret-top" v-if="totalTodayEntmicroLoseCount > 0"></i>
<i class="el-icon-caret-bottom" v-if="totalTodayEntmicroLoseCount < 0"></i>
<span>{{ totalCountDayToDayRadio | valueF}}</span>
<i class="el-icon-caret-top" v-if="totalCountDayToDayRadio > 0"></i>
<i class="el-icon-caret-bottom" v-if="totalCountDayToDayRadio < 0"></i>
</div>
</div>
<div class="summary-item-number">
......@@ -574,7 +574,7 @@ export default {
.summary-item {
width: 20%;
height: 172px;
padding: 10px 20px;
padding: 0.5vw 1vw;
box-sizing: border-box;
margin-right: 20px;
......
<template>
<div class="drawer-sale-panel">
<el-form label-width="150px" :model="addForm">
<div class="scrm-textRight sale-reload">
<el-button size="small" slot="append" type="primary" @click="syncEntmicroIsOutsiderStaff" :loading="loading">同步有外部联系人权限的员工</el-button>
</div>
<el-form-item label="请选择员工">
<div class="sale-select">
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<el-tag effect="plain" type="info" v-for="(tag, idx) in innerTags" :key="idx" closable :disable-transitions="false" @close="remove(tag)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
<el-input size="small" v-model.trim="newTag" placeholder="选择员工" @input="inputTag" style="outline: none; border: none"></el-input>
</div>
<div><el-button size="small" class="sale-select-btn" type="primary" @click="searchEmp">查询</el-button></div>
</div>
<div>
<div class="select-sale-panel">
<select-emp @selectTable="selectTable" ref="selectEmpTabel"></select-emp>
<div class="popper__arrow"></div>
</div>
</div>
</el-form-item>
<el-form-item label="请选择跟进员工类型">
<div class="emp-type">
<div @click="handleType(index)" :class="{ checked: typeIndex == index }" class="emp-type-btn" v-for="(item, index) in empType" :key="index">
{{ item.followName }}
<i class="el-icon-error" @click="delEmpType(item, index)" v-if="!item.commonFlag"></i>
</div>
</div>
<div class="sale-select">
<el-input size="small" v-model="empTypeValue" placeholder="添加类型名称" maxlength="8" show-word-limit></el-input>
<div><el-button size="small" class="sale-select-btn" type="primary" @click="addEmpType">新增</el-button></div>
</div>
<div class="sale-type-desc">跟进员工类型最多新增30个,已新增{{ empType.length - empTypeF.length }}个</div>
</el-form-item>
<el-form-item style="text-align: center">
<el-button @click="onCancel" size="small">取消</el-button>
<el-button type="primary" @click="onSubmit" size="small">确定</el-button>
</el-form-item>
</el-form>
</div>
</template>
<script>
import selectEmp from './selectEmp'
export default {
name: 'addSale',
components: {
selectEmp
},
data() {
return {
loading: false,
editStatus: false,
addForm: {},
typeIndex: 0,
empType: [],
empTypeF: [],
empTypeValue: '',
newTag: '',
innerTags: [],
dialog_temp: {}
}
},
methods: {
init() {
this.newTag = ''
this.innerTags = []
this.empTypeValue = ''
if (this.$refs.selectEmpTabel.listTree.length != 0) {
this.$refs.selectEmpTabel.listEntmicroStaff()
this.$refs.selectEmpTabel.clearSelection()
}
},
selectTable(val) {
this.innerTags = val
},
listEntFollowerType() {
this.$apis.emp.listEntFollowerType({ merchantId: this.$globalState.session.merchantId }).then(res => {
this.empType = res
this.empTypeF = res.filter(item => item.commonFlag)
})
},
handleType(index) {
this.typeIndex = index
},
foucusTagInput() {
if (this.readOnly || !this.$el.querySelector('.tag-input')) {
return
} else {
this.$el.querySelector('.tag-input').focus()
}
},
remove(row) {
this.$refs.selectEmpTabel.clearSelect(row)
},
//查询
searchEmp() {
this.$refs.selectEmpTabel.listEntmicroStaff(this.newTag)
},
addEmpType() {
if (!this.empTypeValue) {
this.$message.error('请输入类型名称')
return
}
if (this.empType.length == 33) {
this.$message.error('跟进员工类型最多新增30个')
return
}
let params = {
followName: this.empTypeValue,
merchantid: this.$globalState.session.merchantId
}
this.$apis.emp.saveFollowerType(params).then(res => {
this.listEntFollowerType()
})
this.empTypeValue = ''
},
delEmpType(item, index) {
this.$apis.emp.deleteFollowerType({ id: item.id }).then(res => {
if (res) {
this.listEntFollowerType()
this.typeIndex = 0
}
})
},
syncEntmicroIsOutsiderStaff() {
this.loading = true
let params = {
departmentId: 1,
merchantId: this.$globalState.session.merchantId
}
this.$apis.emp.syncEntmicroIsOutsiderStaff(params).then(res => {
if (res) {
this.$refs.selectEmpTabel.listEntmicroStaff()
this.$message({
message: '同步成功',
type: 'success'
})
}
this.loading = false
this.$emit('handleSearch')
})
},
onSubmit() {
if (this.innerTags.length == 0) {
this.$message({
message: '请选择员工',
type: 'error'
})
return
}
let userIds = []
this.innerTags.forEach(item => {
userIds.push(item.userId)
})
this.$emit('handSelectdEmp', this.empType[this.typeIndex].id, userIds)
},
onCancel() {
if (this.innerTags.length != 0) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$emit('closeDrawer')
})
} else {
this.$emit('closeDrawer')
}
}
},
mounted() {
this.listEntFollowerType()
}
}
</script>
<style scoped lang="scss">
.drawer-sale-panel {
padding: 0px 20px;
.sale-reload {
margin-bottom: 10px;
}
.sale-select {
display: flex;
align-items: center;
}
.sale-select-btn {
margin-left: 8px;
}
.sale-type-desc {
font-size: 14px;
font-weight: 400;
color: #adadad;
line-height: 17px;
margin-top: 10px;
}
}
.emp-type {
margin-bottom: 10px;
&-btn {
cursor: pointer;
display: inline-block;
padding: 8px 10px;
margin-bottom: 10px;
margin-right: 10px;
position: relative;
background: #ffffff;
border-radius: 4px;
border: 1px solid #e8e8ea;
line-height: 1;
font-size: 14px;
color: #7d7d7d;
&.checked {
border: 1px solid #5850ff;
color: #5850ff;
}
i {
position: absolute;
right: -6px;
top: -6px;
font-size: 12px;
color: #999999;
}
}
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
display: flex;
align-items: center;
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
outline: none !important;
border: none !important;
}
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
}
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
}
.tag-input {
background: transparent;
border: none !important;
font-size: 14px;
height: 32px;
outline: none;
padding-left: 0;
width: 100px;
}
.el-input-tag--mini .tag-input {
height: 24px;
line-height: 24px;
}
.el-input-tag--small .tag-input {
height: 32px;
line-height: 32px;
}
.el-input-tag--medium .tag-input {
height: 32px;
line-height: 32px;
}
</style>
\ No newline at end of file
<template>
<div class="select-emp-panel">
<div class="scrm-p10 emp-tree-panel">
<div class="popper-arrow"></div>
<div
class="emp-scroll-panel"
:style="{
height: treeHeight + 'px'
}"
>
<div class="tree-title">所在门店/部门</div>
<el-tree :data="listTree" :expand-on-click-node="false" highlight-current :props="defaultProps" @node-click="handleNodeClick"></el-tree>
</div>
</div>
<el-col
class="scrm-p10 emp-table-panel"
:style="{
height: treeHeight + 20 + 'px'
}"
>
<GLTable ref="saleTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" @selectionTable="selectionTable"></GLTable>
</el-col>
</div>
</template>
<script>
export default {
name: 'selectEmp',
data() {
return {
treeHeight: 0,
staffName: '',
listTree: [],
defaultProps: {
children: 'children',
label: 'departmentName'
},
// 表格参数
tableParams: {
checkSelectKey: 'id',
checkSelectVal: [],
listName: 'list',
// 行数据的key
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'salelist',
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '姓名',
prop: 'staffName'
},
{
label: '职务',
prop: 'staffTitle'
}
]
},
tableEmpData: []
}
},
methods: {
selectionTable(val) {
this.$emit('selectTable', val)
},
listDepartmentTree() {
this.$apis.emp.listDepartmentTree({ id: 1 }).then(res => {
this.listTree = res
this.$nextTick(() => {
document.getElementsByClassName('el-tree-node__expand-icon')[0].click()
document.getElementsByClassName('el-tree-node__content')[0].click()
})
})
},
clearSelect(row) {
this.tableEmpData.forEach(item => {
if (item.id == row.id) {
this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(item)
}
})
},
clearSelection() {
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection()
},
handleNodeClick(data) {
this.departmentId = data.id
this.listEntmicroStaff()
},
listEntmicroStaff(staffName) {
let params = {
departmentId: this.departmentId,
staffName: staffName ? staffName : this.staffName,
merchantid: this.$globalState.session.merchantId
}
this.$apis.emp.listEntmicroStaff(params).then(res => {
this.tableEmpData = res
})
}
},
mounted() {
let clientHeight = document.documentElement.clientHeight
this.treeHeight = clientHeight - 480
this.listDepartmentTree()
}
}
</script>
<style scoped lang="scss">
.select-emp-panel {
display: flex;
.emp-tree-panel {
margin-top: 10px;
width: 200px;
position: relative;
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
.emp-scroll-panel {
min-height: 200px;
overflow: auto;
box-sizing: border-box;
}
.popper-arrow {
border-top-width: 0;
border-width: 6px;
position: absolute;
top: -12px;
left: 30px;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-bottom-color: #e4e7ed;
&:after {
content: ' ';
border-width: 6px;
top: 1px;
margin-left: -6px;
border-top-width: 0;
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-bottom-color: #fff;
}
}
}
.emp-table-panel {
flex: 1;
min-height: 200px;
overflow: auto;
margin-top: 10px;
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
/deep/ .el-checkbox__input.is-disabled .el-checkbox__inner {
background-color: #999999;
}
}
.emp-tree-panel {
margin-right: 10px;
font-size: 15px;
/deep/ .el-tree-node:focus > .el-tree-node__content {
color: #5850ff;
background: #f2f5fa;
}
}
.tree-title {
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 14px;
padding: 10px;
}
}
</style>
\ No newline at end of file
<template>
<div className="scrm-main">
<div class="follow-header">
<p>
为不同的业务部门设置对应的跟进专员,方便后续业务部门创办相关的活动时能为其成员创建活动和发送企微消息,引导其跟进活动。跟进专员接收任务后可转发给客户/客户群,拥有“添加外部联系人权限”的员工才允许设置为跟进专员。
<a class="follow-process-a" @click="jumpUrl('https://img01.glsx.com.cn/upload/temporary/process.html')">
企微管理员为员工“设置外部联系人权限”流程
<i class="el-icon-d-arrow-right"></i>
</a>
</p>
</div>
<div class="follow-form" :style="{ 'min-height': formHeight + 'px' }">
<el-form :inline="true" :model="searchForm" class="follow-form-item">
<el-form-item label="跟进专员类型">
<el-select size="small" v-model="searchForm.followerTypeId" placeholder="请选择">
<el-option v-for="item in optionsType" :key="item.id" :label="item.followName" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="员工搜索">
<el-input size="small" v-model="searchForm.staffName" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleSearch" size="small">查询</el-button>
</el-form-item>
<el-form-item class="follow-form-jump">
<GLButton fn="新增" size="small" icon="el-icon-plus" type="primary" @click="openDrawer">跟进专员</GLButton>
</el-form-item>
</el-form>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLButton fn="删除" type="text" @click="handleDele(scope.scope)">删除</GLButton>
</template>
</GLTable>
</div>
<el-drawer class="drawer-panel" size="60%" title="添加跟进员工" :visible.sync="drawer" :direction="direction" :before-close="handleClose">
<add-sale ref="drawerForm" @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp" @handleSearch="handleSearch"></add-sale>
</el-drawer>
</div>
</template>
<script>
import addSale from './components/addSale'
export default {
name: 'index',
components: {
addSale
},
data() {
return {
alertStatus: true,
formHeight: 300,
drawer: false,
direction: 'rtl',
searchForm: {
followerTypeId: '',
staffName: ''
},
optionsType: [
{
value: '',
label: '全部'
},
{
value: '1',
label: '新车跟进专员'
},
{
value: '2',
label: '售后跟进专员'
}
],
scope: {
scope: ''
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数
tableParams: {
tableOption: true,
mutiSelectName: 'user',
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '姓名',
prop: 'staffName'
},
{
label: '部门',
prop: 'departmentName'
},
{
label: '跟进专员类型',
prop: 'followerTypeName'
},
{
label: '手机号',
prop: 'staffPhone'
},
{
label: '首次开通时间',
prop: 'followerCreatedTime'
},
{
label: '是否有外部联系人权限',
prop: 'isAddOutsider',
formatter: cellValue => {
return {
0: '是',
1: '否',
'': '否'
}[cellValue.isAddOutsider]
}
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0
}
},
watch: {
drawer(val) {
if (!val) {
this.listEntFollowerType()
}
}
},
methods: {
jumpUrl(url) {
const link = document.createElement('a')
link.href = url
link.target = '_blank'
link.click()
},
openDrawer() {
this.drawer = true
this.$nextTick(() => {
this.$refs.drawerForm.init()
})
},
beforeSearchFn() {
return new Promise(resolve => {
// 调接口前,操作
resolve()
})
},
handleClose() {
this.drawer = false
},
closeDrawer() {
this.handleClose()
},
handSelectdEmp(followerTypeId, userIds) {
var params = {
followerTypeId,
userIds
}
this.$apis.emp.saveFollowerStaff(params).then(res => {
if (res) {
this.handleClose()
this.handleSearch()
}
})
},
handleSearch() {
var params = {
...JSON.parse(JSON.stringify(this.searchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum
}
this.$apis.emp.listFollowerStaffByPage(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
if (res.data && res.data.length == []) {
this.$refs.table.setTableHeightFun()
}
})
},
listEntFollowerType() {
this.$apis.emp.listEntFollowerType({ merchantId: this.$globalState.session.merchantId }).then(res => {
this.optionsType = [{ followName: '全部', id: '' }].concat(res)
})
},
handleDele(scope) {
this.$confirm('是否删除该员工?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.$apis.emp.deleteFollowerStaff({ userId: scope.userId, userOneId: scope.userOneId }).then(res => {
if (res) {
this.$message({
type: 'success',
message: '删除成功!'
})
}
this.handleSearch()
})
})
.catch(() => {})
},
jumpWx() {
this.$router.push('/enterpriseWechat/index')
},
wxTips() {
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menu.forEach(item => {
if (!item.children) {
return
}
item.children.forEach(itm => {
if (itm.path == '/enterpriseWechat/index') {
this.$apis.ww.getStatus({}).then(res => {
if (res.status != 'SUCCESS') {
const h = this.$createElement
this.$message({
showClose: true,
duration: 0,
message: h('p', null, [h('span', null, '此功能需完成【企业微信授权】后方可使用! '), h('span', { on: { click: this.jumpWx }, style: { margin: '0px 60px 0px 20px', cursor: 'pointer', color: '#5850ff' } }, ['企业微信授权 ', h('i', { class: 'el-icon-d-arrow-right' }, '')])])
})
}
})
}
})
})
}
},
beforeDestroy() {
this.$message.closeAll()
},
mounted() {
this.wxTips()
this.listEntFollowerType()
this.handleSearch()
this.formHeight = document.documentElement.clientHeight - 230
}
}
</script>
<style scoped lang="scss">
.slide-fade-enter-active {
transition: all 0.3s ease;
}
.slide-fade-leave-active {
transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active 用于 2.1.8 以下版本 */ {
transform: translateX(10px);
opacity: 0;
}
.message-tips {
padding: 10px;
box-sizing: border-box;
border-width: 1px;
border-style: solid;
border-color: #ebeef5;
position: fixed;
left: 50%;
top: 0px;
transform: translate(-50%, 20px);
display: flex;
align-items: center;
transition: all 0.3s ease-in;
background: forestgreen;
}
.follow-header {
background: #ffffff;
line-height: 20px;
padding: 20px;
font-size: 15px;
color: rgba(0, 0, 0, 0.65);
position: relative;
p {
// width: 70%;
}
.follow-process-a {
text-decoration: underline;
line-height: 24px;
color: #5850ff;
cursor: pointer;
}
}
.follow-form {
min-height: calc(100% - 200px);
margin-top: 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
/deep/ {
.el-form-item {
margin-right: 20px;
}
.el-button {
margin-left: 20px;
}
}
&-item {
position: relative;
.follow-form-jump {
position: absolute;
right: 0px;
margin-right: 0px;
}
}
}
.drawer-panel {
/deep/ .el-drawer__body {
overflow-y: auto;
}
}
</style>
\ No newline at end of file
......@@ -324,7 +324,7 @@ export default {
.summary-item {
width: 25%;
height: 140px;
padding: 10px 20px;
padding: 0.5vw 1vw;
box-sizing: border-box;
margin-right: 20px;
background: linear-gradient(360deg, #f7f7ff 0%, #f3f5f8 100%);
......@@ -422,4 +422,9 @@ export default {
color: #5850ff;
line-height: 20px;
}
@media screen and (max-width: 1560px) {
.summary-item-total {
font-size: 16px!important;
}
}
</style>
<template>
<div class="square-main" v-loading="loading">
<el-dialog title="当日新增群客户数" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<el-dialog title="当日新增群客户详情" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm" class="emp-form">
<el-form-item size="small" label="客户名称">
<el-input v-model="tableSearchForm.customerName" placeholder="请输入客户名称"></el-input>
......
......@@ -9,11 +9,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('当日新增客户数', summaryTime, summaryTime)" v-if="this.$globalState.session.accountLevel == 4" class="custom-detail">
<div @click="handleEmpDetail('当日新增客户详情', summaryTime, summaryTime)" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.userType == 1" class="custom-detail">
{{ newCustomerCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
<div v-else>
{{ newCustomerCount }}
<span>人</span>
</div>
......@@ -37,11 +37,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('当日新增已加企微客户总数', summaryTime, summaryTime, 1)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
<div @click="handleEmpDetail('当日新增已加企微客户详情', summaryTime, summaryTime, 1)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.userType == 1">
{{ newEntmicroCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
<div v-else>
{{ newEntmicroCount }}
<span>人</span>
</div>
......@@ -65,11 +65,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpGroupDetail(summaryTime)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
<div @click="handleEmpGroupDetail(summaryTime)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.userType == 1">
{{ todayAddPackmenberCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
<div v-else>
{{ todayAddPackmenberCount }}
<span>人</span>
</div>
......@@ -93,11 +93,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('当日企微流失客户数', summaryTime, summaryTime, 0, summaryTime)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
<div @click="handleEmpDetail('当日企微流失客户详情', summaryTime, summaryTime, 0, summaryTime)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.userType == 1">
{{ todayEntmicroLoseCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
<div v-else>
{{ todayEntmicroLoseCount }}
<span>人</span>
</div>
......@@ -121,11 +121,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('累计未加企微客户数', null, summaryTime, 0)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
<div @click="handleEmpDetail('累计未加企微客户详情', null, summaryTime, 0)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.userType == 1">
{{ notAddEntmicroCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
<div v-else>
{{ notAddEntmicroCount }}
<span>人</span>
</div>
......@@ -239,7 +239,6 @@ export default {
this.addEntmicroCount = res.addEntmicroCount
this.notAddEntmicroCount = res.notAddEntmicroCount
this.newEntmicroCount = res.newEntmicroCount
this.entmicroLoseCount = res.entmicroLoseCount
this.todayEntmicroLoseCount = res.todayEntmicroLoseCount
this.packmenberCount = res.packmenberCount
this.todayAddPackmenberCount = res.todayAddPackmenberCount
......@@ -248,6 +247,7 @@ export default {
this.lostCountDayToDayRadio = res.lostCountDayToDayRadio
this.entmicroCountDayToDayRadio = res.entmicroCountDayToDayRadio
this.totalCountDayToDayRadio = res.totalCountDayToDayRadio
this.entmicroLoseCount = res.entmicroLoseCount
this.$emit('getEntmicroRadio', this.entmicroCountRadio)
})
},
......@@ -385,7 +385,7 @@ export default {
.summary-item {
width: 20%;
height: 148px;
padding: 10px 20px;
padding: 0.5vw 1vw;
box-sizing: border-box;
margin-right: 20px;
background: linear-gradient(360deg, #f7f7ff 0%, #f3f5f8 100%);
......@@ -559,4 +559,9 @@ export default {
height: 32px;
}
}
@media screen and (max-width: 1560px) {
.summary-item-total {
font-size: 16px!important;
}
}
</style>
<template>
<div class="scrm-main">
<div class="service-panel scrm-box-f">
<div class="service-active">
<div class="service-active-wrap">
<div class="service-active-l">
<div class="service-active-h1">帮助企业盘活客户</div>
<div class="service-active-h2">实现私域裂变增长</div>
<div class="service-active-btn">
<el-button type="primary" size="small">化流量为销量</el-button>
</div>
</div>
<div class="service-active-r">
<img src="@/assets/img/service/s1.png" />
</div>
</div>
<hr />
</div>
<div class="service-content">
<div class="service-content-wrap">
<div class="service-content-l">
<div class="service-content-title">嘀加智慧门店SCRM——赢在销售 Win Consumer</div>
<div class="service-content-desc">面向汽车营销场景,依托嘀加智慧门店SaaS产品服务能力,帮助汽车经销商及门店打通引流-互动-转化-复购的路径,满足企业精准营销+全链路SaaS+数字化运营的一站式增长需求,助力汽车经销商打造自己的数字化营销平台。</div>
<div class="service-content-in">我们不仅提供管理工具,我们更有方法论与策略 。</div>
</div>
<div class="service-content-r">
<img src="@/assets/img/service/s2.png" />
</div>
</div>
<div class="service-content-cause">
<div class="service-cause-border" v-for="(item, index) in cause" :key="index" @click="jumpSquare(item.url)">
<div class="cause-icon">
<div class="hot" v-if="item.status"><img src="@/assets/img/hot.png" /></div>
<img :src="require('../../assets/img/service/tool' + (index + 1) + '.png')" />
</div>
<div class="cause-name">{{ item.name }}</div>
</div>
</div>
<hr />
</div>
<div class="service-footer">
<div class="service-footer-title">嘀加智慧门店——功能服务清单</div>
<table cellspacing="0" cellpadding="0" border="0" class="service-footer-table">
<tr>
<th>产品</th>
<th>功能</th>
<th>标准版</th>
<th>升级版</th>
</tr>
<tr v-for="item in 8" :key="item">
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<hr />
<div class="service-contact">
<div class="service-contact-h scrm-f20">联系方式</div>
<div class="service-contact-p">深圳市广联赛讯股份有限公司</div>
<div class="service-contact-p">联系人:杨经理</div>
<div class="service-contact-p">联系电话:13500001234</div>
<div class="service-contact-p">微信:13500001234</div>
<div class="service-contact-p">地址:广东省深圳市南山区XXXXXX智园1栋14楼(整层)</div>
<hr />
<div class="service-contact-f scrm-f20">您也可在线申请,我们会24小时内安排工作人员主动跟您联系!</div>
<div class="service-form">
<div class="sevice-qrcode">
<img src="@/assets/img/qrcode.png" alt="" />
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
const cause = [{ name: '活码引流', url: '/drainage/channel/index' }, { name: '批量加好友',url: '/drainage/friends/index' }, { name: '群发助手', status: 1 ,url: '/marketing/customerTransform/index'}, { name: '秒杀活动' ,url: '/marketing/seckillActivity/index'}, { name: '会员中心', status: 1 ,url: '/marketing/memberCenter/center'}, { name: '分销裂变',url: '/marketing/couponManage/index' }, { name: '优惠券营销',url: '/marketing/couponManage/index' }]
export default {
name: 'index',
data() {
return {
cause,
form: {
name: '',
phone: '',
remark: ''
}
}
},
methods: {
jumpSquare(url) {
this.$history.push(url)
}
}
}
</script>
<style scoped lang="scss">
.service-panel {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 0px 68px;
width: 100%;
box-sizing: border-box;
}
.service-active {
.service-active-wrap {
display: flex;
.service-active-l {
width: 50%;
margin-top: 150px;
}
.service-active-r {
width: 50%;
margin: 0px auto;
img {
width: 465px;
height: auto;
}
}
}
.service-active-h1 {
font-size: 42px;
font-weight: 400;
color: #333333;
line-height: 59px;
}
.service-active-h2 {
font-size: 42px;
font-weight: 600;
color: #333333;
line-height: 59px;
}
.service-active-btn {
margin-top: 20px;
}
hr {
margin: 60px 0px;
}
}
.service-content {
.service-content-wrap {
display: flex;
.service-content-l {
width: 50%;
}
.service-content-r {
width: 50%;
margin: 0 auto;
text-align: center;
img {
display: line-block;
width: 398px;
height: auto;
}
}
.service-content-desc {
margin-top: 15px;
line-height: 22px;
}
.service-content-title {
font-size: 32px;
font-weight: 500;
color: #333333;
line-height: 45px;
margin: 20px 0px;
}
.service-content-desc {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
}
.service-content-in {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-top: 130px;
}
}
.service-content-cause {
margin-top: 30px;
display: flex;
justify-content: space-around;
padding: 15px;
.service-cause-border {
text-align: center;
cursor: pointer;
.cause-icon {
position: relative;
width: 76px;
text-align: center;
.hot img {
position: absolute;
right: -10px;
top: 0px;
width: 28px;
height: auto;
}
img {
width: 50px;
height: 50px;
margin: 4px auto;
}
}
.cause-name {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 16px;
letter-spacing: 1px;
margin-top: 6px;
}
}
}
hr {
margin: 60px 0px;
}
}
.service-footer {
padding: 20px 0px 30px;
&-title {
font-size: 32px;
font-weight: 600;
color: #333333;
line-height: 45px;
margin: 10px 0px 60px;
}
&-table {
border-width: 1px;
border-color: #979797;
border-collapse: collapse;
width: 100%;
font-size: 14px;
color: #979797;
margin-bottom: 20px;
th {
vertical-align: middle;
color: #ffffff;
border-width: 1px;
border-left-width: 0px;
border-right-width: 0px;
height: 50px;
border-style: solid;
border-color: #979797;
background-color: #5850ff;
}
td {
border-width: 1px;
height: 40px;
border-left-width: 0px;
border-right-width: 0px;
border-style: solid;
border-color: #979797;
background-color: #ffffff;
}
}
hr {
margin: 60px 0px;
}
}
.service-contact {
hr {
margin: 40px 0px;
}
}
.service-contact-h {
font-size: 32px;
font-weight: 500;
color: #333333;
line-height: 45px;
margin: 20px 0;
}
.service-contact-p {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
padding: 5px 0px;
}
.service-contact-f {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-top: 50px;
}
.service-form {
margin-top: 30px;
.sevice-qrcode {
margin-left: 100px;
width: 200px;
height: 200px;
}
.service-form-btn {
margin-left: 150px;
/deep/ .el-button--small {
padding: 9px 45px;
}
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!