Commit 37864e72 by xuyl

更新2.1.0代码

1 parent ffff7c82
......@@ -15,7 +15,7 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.3",
"glsx-components": "^1.3.9",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
......
......@@ -26,7 +26,7 @@
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</div> -->
<keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage">
<keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo">
<router-view></router-view>
</keep-alive>
</div>
......
/**
* 新增参数sign 判断接口是否需要sign签名(默认有,不必写)
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http, http3 } from '@/main'
// http 对应的域名http://ismv.branch.glsx.com.cn
// 线索管理查询数据
export function getTableList(params) {
params.method = 'scrm.api.wwbench.clue.list'
return http({
// http://192.168.1.144:7231
url: '/rop-scrm-wwbench/router',
method: 'POST',
data: params,
sign: true
})
}
export function getBaseInfo(params) {
params.method = 'scrm.api.wwbench.clue.detail'
return http({
// http://192.168.1.144:7231
url: '/rop-scrm-wwbench/router',
method: 'POST',
data: params,
sign: true
})
}
\ No newline at end of file
......@@ -7,7 +7,7 @@
<el-col :span="12" :key="index">
<div class="label-wrap">
<label>{{ params.label }}</label>
<span>{{ list[params.prop]? list[params.prop]: '--'}}</span>
<span>{{ list[params.prop] ? list[params.prop] : '--' }}</span>
</div>
</el-col>
</template>
......@@ -47,7 +47,7 @@ export default {
padding: 20px 0;
box-sizing: border-box;
background: #f5f5f5;
margin-bottom:10px;
margin-bottom: 10px;
.el-row {
&:last-child {
margin-bottom: -20px;
......@@ -84,4 +84,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
<template>
<div class="square-main" v-loading="loading">
<el-dialog title="选择跟进专员" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm">
<el-form-item size="small" label="员工">
<el-input v-model="tableSearchForm.staffName" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item size="small">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable v-if="dialogVisible" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">新增专员</a>
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click.native="handleSelect">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
export default {
name: 'selectEmp',
data() {
return {
loading: false,
dialogVisible: false,
tableSearchForm: {},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableOption: false,
// 行数据的key
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'salelist',
tableColumns: [
{
label: '姓名',
prop: 'staffName'
},
{
label: '部门',
prop: 'departmentName'
},
{
label: '跟进专员类型',
prop: 'followerTypeName'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0,
selectItem: [],
selectEmp: []
}
},
methods: {
jumpUrl() {
util.openUrl(location.origin + '/settings/followUp/index')
},
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum
}
this.$apis.channel.getFollower(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
this.tableData.forEach(item => {
this.selectEmp.forEach((itm, index) => {
if (itm.staffId == item.relationId) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
this.selectEmp.splice(index, 1)
}
})
})
})
},
init(item) {
this.tableSearchForm = {}
this.selectEmp = JSON.parse(JSON.stringify(item))
this.dialogVisible = true
this.$nextTick(() => {
this.$refs.table.page.pageNum = 1
this.getFollower()
})
},
handleSearch() {
this.getFollower()
},
selectionTable(val) {
this.selectItem = val
},
handleClose() {
this.handleCancel()
},
handleCancel: utils.debounce(function() {
this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection()
}, 300),
handleSelect: utils.debounce(function() {
this.loading = true
let selectEmp = this.selectEmp.map(item => {
return {
relationId: item.staffId,
staffName: item.staffName
}
})
const selectItem = this.selectItem.concat(selectEmp)
if (selectItem.length == 0) {
this.$message.error('请选择员工')
return
}
this.loading = false
this.dialogVisible = false
this.$emit('selectTable', this.selectItem.concat(selectEmp))
this.$refs.table.$refs.salelistMutiTable.clearSelection()
}, 300)
}
}
</script>
<style lang="scss" scoped>
.dialog-jump {
color: #5850ff;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.square-main {
/deep/ {
.el-table {
height: 40vh;
overflow-y: auto;
}
.el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="el-descriptions">
<div class="el-descriptions__body">
<table class="el-descriptions__table is-bordered">
<tbody v-for="(item, index) in tableModel" :key="index">
<tr class="el-descriptions-row">
<template v-for="(trTtem, idx) in item.colList">
<th :key="idx" :colspan="trTtem.thColspan" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label">{{ trTtem.label }}</th>
<td :key="idx" :colspan="trTtem.tdColspan" class="el-descriptions-item__cell el-descriptions-item__content" :style="{ color: trTtem.color }">{{ showData[trTtem.name] }}{{ trTtem.unit }}</td>
</template>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<script>
export default {
name: 'ylDescriptions',
props: {
tableModel: {
type: Array,
default: () => []
},
showData: {
type: Object,
default: () => {}
}
}
}
</script>
<style lang="scss" scoped>
.el-descriptions .is-bordered {
table-layout: auto;
margin: 25px 20px 40px 44px;
}
.el-descriptions__body .el-descriptions__table {
border-collapse: collapse;
table-layout: fixed;
}
.el-descriptions :not(.is-bordered) .el-descriptions-item__cell {
padding-bottom: 12px;
}
.el-descriptions .is-bordered .el-descriptions-item__cell {
border: 1px solid #ebeef5;
padding: 12px 10px;
}
.el-descriptions-item__label.is-bordered-label {
font-weight: 700;
color: #333333;
background: #f4f6fc;
}
.el-descriptions :not(.is-bordered) .el-descriptions-item__cell {
padding-bottom: 12px;
}
.el-descriptions .is-bordered .el-descriptions-item__cell {
border: 1px solid #e8e8ea;
padding: 7px 10px;
}
.el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {
box-sizing: border-box;
text-align: left;
font-weight: 400;
line-height: 1.5;
width: 118px;
vertical-align: middle;
font-size: 14px;
}
.el-descriptions-item__content {
word-break: break-word;
overflow-wrap: break-word;
min-width: 238px;
}
</style>
......@@ -130,6 +130,18 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/leadManage/index.vue`], resolve),
meta: {}
},
{
name: 'leadAllocation',
path: '/leadManage/leadAllocation',
component: resolve => require([`@/views/leadManage/leadAllocation.vue`], resolve),
meta: {}
},
{
name: 'leadBasicInfo',
path: '/leadManage/leadBasicInfo/:id/:type',
component: resolve => require([`@/views/leadManage/leadBasicInfo.vue`], resolve),
meta: {}
}
])
export default staticRoutes
// {
......
......@@ -2,7 +2,7 @@ import Vue from 'vue'
import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { GLButton, GLTable, GLFooter } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import render from './render'
import GLCombiForm from '@/components/GlCombiForm'
......@@ -13,6 +13,7 @@ Vue.use(GlSearchItem)
Vue.use(GLCombiForm)
Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLFooter)
import 'glsx-components/dist/glsx-components.css'
let routes = []
......
<template>
<div class="sub-container">
<!-- <search-form class="searchTop border-shadow" :isHasSyncBtn="true" :isThreeRowShow="true" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
<el-button type="primary" @click="handleExport">导出</el-button>
</span>
</search-form> -->
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
<span slot="footer">
<el-button size="small" type="primary" @click="handleExport">导出</el-button>
</span>
</GLCombiForm>
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
......@@ -231,9 +226,33 @@ export default {
}
</script>
<style lang="scss" scope>
<style lang="scss" scoped>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
}
/deep/.sub-form-style {
@media screen and (min-width: 1440px) and (max-width: 1720px) {
.glsx-combi-form .el-form-item--small {
width: 50%;
}
}
}
}
</style>
<template>
<div class="sub-container">
<!-- <search-form class="searchTop border-shadow" :isHasSyncBtn="true" :isThreeRowShow="true" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
<el-button type="primary" @click="handleExport">导出</el-button>
</span>
</search-form> -->
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
<span slot="footer">
<el-button size="small" type="primary" @click="handleExport">导出</el-button>
</span>
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
</GLCombiForm>
<div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......@@ -213,9 +209,33 @@ export default {
}
</script>
<style lang="scss" scope>
<style lang="scss" scoped>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
}
/deep/.sub-form-style {
@media screen and (min-width: 1440px) and (max-width: 1720px) {
.glsx-combi-form .el-form-item--small {
width: 50%;
}
}
}
}
</style>
<template>
<div class="sub-container">
<!-- <search-form class="searchTop border-shadow" :isHasSyncBtn="true" :isThreeRowShow="true" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
<el-button type="primary" @click="handleExport">导出</el-button>
</span>
</search-form> -->
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
<span slot="footer">
<el-button size="small" type="primary" @click="handleExport">导出</el-button>
</span>
<GLCombiForm class="sub-form-style" :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
</GLCombiForm>
<div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
......@@ -227,9 +223,33 @@ export default {
}
</script>
<style lang="scss" scope>
<style lang="scss" scoped>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
}
/deep/ .sub-form-style {
@media screen and (min-width: 1440px) and (max-width: 1720px) {
.glsx-combi-form .el-form-item--small {
width: 50%;
}
}
}
}
</style>
<template>
<div class="sub-container">
<!-- <search-form class="searchTop border-shadow" :isHasSyncBtn="true" :isThreeRowShow="true" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
<el-button type="primary" @click="handleExport">导出</el-button>
</span>
</search-form> -->
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
<span slot="footer">
<el-button size="small" type="primary" @click="handleExport">导出</el-button>
</span>
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">n>
</GLCombiForm>
<div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
......@@ -210,9 +206,26 @@ export default {
}
</script>
<style lang="scss" scope>
<style lang="scss" scoped>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
}
}
</style>
......@@ -3,18 +3,13 @@
<div class="scrm-sub-client-container">
<!-- <p class="pageTitle">客户群管理</p> -->
<div class="pageContent">
<!-- <search-form class="searchTop border-shadow" :isHasSyncBtn="true" :showDefaultTime="false" :merchantModel="merchantModel" :accountLevel="accountLevel" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent" @resetTable="resetTable" @searchTable="searchTable" @handleExport="handleExport" @syncClick="syncClick">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
<el-button type="primary" @click="handleExport">导出</el-button>
</span>
</search-form> -->
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable">
<span slot="footer">
<el-button size="small" type="primary" @click="handleExport">导出</el-button>
</span>
</GLCombiForm>
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientGroupManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" :tableParams="tableParams">
<span slot="status" slot-scope="scope">
<!-- <span class="dot" :class="scope.scope.enableStatus ? DICTSTATUS[scope.scope.enableStatus].split(',')[1] : ''"></span> -->
......@@ -370,6 +365,24 @@ export default {
letter-spacing: 1px;
}
.pageContent {
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
}
.glsx-table {
/deep/ .el-table__fixed,
/deep/ .el-table__fixed-right {
......
......@@ -3,29 +3,21 @@
<div class="scrm-sub-client-container">
<!-- <p class="pageTitle">客户管理</p> -->
<div class="pageContent">
<!-- <search-form :ploading="sloading" :isHasSyncBtn="true" :showDefaultTime="false" :merchantModel="merchantModel" :accountLevel="accountLevel" class="searchTop border-shadow" :formModel="searchForm" :formList="clientManageFormList" @resetTable="resetTable" @searchTable="searchTable" @handleExport="handleExport" @syncClick="syncClick">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
<el-button type="primary" @click="handleExport">导出</el-button> -->
<!-- v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)" 不做判定了, 允许所有人同步 -->
<!-- <el-button type="primary" @click="syncClick" :loading="sloading">同步数据</el-button> -->
<!-- </span>
</search-form> -->
<GLCombiForm :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable" @handleRest="resetTable">
<span slot="footer">
<el-button size="small" type="primary" @click="handleExport">导出</el-button>
</span>
</GLCombiForm>
<div class="leadList">
<div>
<span></span>
</div>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip>
<!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> -->
<span style="font-size: 12px" class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' : '' }}</span>
<!-- <span style="font-size: 12px" class="pure-blue-text">{{scope.scope.type == 1? '@企微':scope.scope.type == 2 ?'@微信' : '' }}</span> -->
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
......@@ -114,15 +106,6 @@ export default {
sloading: false,
CLIENTSTATUS: this.$Constants.CLIENT_STATUS,
searchForm: {
// customerPhone: '',
// followStaff: '',
// customerName: '',
// nickName: '',
// isJoin: '',
// status: '',
// daterange: '',
// addWay: '',
// customerSex: ''
},
searchFormTable: {},
clientManageFormList: [
......@@ -247,21 +230,19 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
listName: 'data',
// tableOption: true,
tableOption: false,
tableColumns: [
{
label: '客户ID',
prop: 'oneId',
minWidth: 150
//align: 'left'
minWidth:180
},
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
minWidth: 130
//align: 'left'
minWidth:100
},
{
label: '企微名称',
......@@ -571,6 +552,24 @@ export default {
letter-spacing: 1px;
}
.pageContent {
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
}
padding: 6px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// min-width: 1300px;
......
......@@ -2,29 +2,97 @@
<div>
<div class="scrm-sub-client-container">
<div class="pageContent">
<GLCombiForm :formObj="searchForm" :formData="leadManageFormList" @handleOk="searchTable" @handleRest="resetTable">
</GLCombiForm>
<GLCombiForm :formObj="searchForm" :formData="leadManageFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<!-- 线索分配 -->
<div class="leadList">
<div>
<span>线索列表</span>
<span @click="handleToggle()">功能介绍</span>
</div>
<el-button size="small" @click="goAllocation">线索分配</el-button>
</div>
<GLTable :hasNum="true" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<!-- 线索类型 -->
<template slot="type" slot-scope="scope">
<span>{{ switchStaff(scope.scope.type) }}</span>
</template>
<!-- 线索状态 -->
<template slot="status" slot-scope="scope">
<span>
{{ scope.scope.status == 1 ? '跟进中' : scope.scope.customerSex == 2 ? '已完成' : '' }}
</span>
</template>
<!-- 跟进员工 -->
<template slot="userName" slot-scope="scope">
<el-tag type="info" :disable-transitions="false" v-if="scope.scope.userName !== null">
<i class="el-icon-user-solid"></i>
{{ scope.scope.userName }}
</el-tag>
</template>
<template slot="options" slot-scope="scope">
<!-- <GLButton class="blue-text leftDistance" type="text" fn="查看" @click="goBasicInfo">查看</GLButton> -->
<el-button type="primary" size="small" @click="goBasicInfo(scope.scope)">查看</el-button>
</template>
</GLTable>
</div>
</div>
<!-- 功能介绍 -->
<el-dialog title="功能介绍" :visible.sync="showFuncIntro" width="55%" :before-close="handleClose">
<div class="dialogEncircle ">
<span class="funcText">线索管理模块可查看客户在小程序端留存的售前售后线索,通过配置跟进员工,使线索展示在员工企微任务栏并推送消息提醒,员工跟进线索并输入跟进记录后完成线索跟进</span>
<div class="funcIro">
<div>
<div>
<img src="@/assets/leadManage/newInquiry.png" alt="" />
</div>
<p>客户在小程序留存售前售后线索</p>
</div>
<div>
<div>
<img src="@/assets/leadManage/group.png" alt="" />
</div>
<p>SCRM后台配置线索跟进员工</p>
</div>
<div>
<div>
<img src="@/assets/leadManage/myTodo.png" alt="" />
</div>
<p>线索展示在员工企微任务栏并推送消息提醒</p>
</div>
<div>
<div>
<img src="@/assets/leadManage/addRecord.png" alt="" />
</div>
<p>员工跟进线索并输入跟进记录</p>
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="showFuncIntro = false">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { getTableList } from '@/api/modules/leadManage'
import url from '@/assets/clientDataOverview/nodata.png'
export default {
name: 'leadManage',
data() {
return {
url: url,
searchForm: {},
leadManageFormList: [
{
type: 'input',
inputType: 'text',
name: 'groupNickName',
name: 'keyword',
label: '关键字'
},
{
type: 'select',
name: 'customerSex',
name: 'status',
label: '线索状态',
optionLabel: 'label',
optionId: 'value',
......@@ -46,12 +114,12 @@ export default {
{
type: 'input',
inputType: 'text',
name: 'groupNickName',
name: 'userName',
label: '跟进人'
},
{
type: 'select',
name: 'customerSex',
name: 'type',
label: '线索类型',
optionLabel: 'label',
optionId: 'value',
......@@ -60,26 +128,81 @@ export default {
label: '全部',
value: null
},
// {
// label: '客户意见',
// value: 1
// },
// {
// label: '卖车询价',
// value: 2
// },
{
label: '救援服务',
value: 3
},
{
label: '新车询价',
value: 1
value: 4
},
{
label: '试驾预约',
value: 2
value: 5
},
{
label: '维保预约',
value: 3
},
{
label: '救援服务',
value: 4
value: 6
}
]
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }
getListApi: getTableList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
listName: 'list',
tableColumns: [
{
label: '单号',
prop: 'orderNo',
minWidth: 90
},
{
label: '客户名称',
prop: 'name'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '线索类型',
prop: 'type',
addHtml: 'type'
},
{
label: '线索状态',
prop: 'status',
addHtml: 'status'
},
{
label: '跟进人',
prop: 'userName',
addHtml: 'userName'
},
{
label: '创建时间',
prop: 'createdDate',
minWidth: 100
},
{
label: '操作',
prop: 'options',
fixed: 'right',
addHtml: 'options',
width: 180
}
]
},
showFuncIntro: true //功能介绍的显示与隐藏
}
},
created() {
......@@ -88,6 +211,46 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
},
methods: {
goAllocation() {
this.$router.push('./leadAllocation')
},
goBasicInfo(row) {
let id = row.id
let type = row.type
this.$router.push({
path: `/leadManage/leadBasicInfo/${id}/${type}`
})
},
handleToggle() {
this.showFuncIntro = !this.showFuncIntro
},
// 搜索表格
searchTable() {
console.log(this.searchForm)
this.$refs.leadManage.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = {}
this.$refs.leadManage.refreshTable()
},
// 跟进转换
switchStaff(num) {
switch (num) {
case '3':
return '救援服务'
case '4':
return '新车询价'
case '5':
return '试驾预约'
case '6':
return '维保预约'
default:
break
}
}
}
}
</script>
......@@ -99,6 +262,68 @@ export default {
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// min-width: 1300px;
background-color: #fff;
/deep/ .el-icon-user-solid {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 16px;
}
span:nth-child(2) {
font-size: 14px;
margin-left: 8px;
color: #5850ff;
border-bottom: 1px solid #5850ff;
cursor: pointer;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
}
}
}
/deep/.el-dialog__body {
padding: 30px 70px;
.dialogEncircle {
// width: 100%;
.funcText {
color: #333;
font-weight: 600;
font-size: 14px;
}
.funcIro {
margin-top: 15px;
display: flex;
justify-content: space-between;
> div {
width: 23%;
div {
height: calc(100% - 65px);
display: flex;
align-items: center;
img {
width: 100%;
}
}
p {
margin-left: 5px;
margin-top: 22px;
color: #333;
font-size: 14px;
}
}
}
}
}
</style>
<template>
<div>
<div class="scrm-sub-client-container">
<div class="pageContent" :style="{ height: clientHeight + 'px' }">
<div class="drainage-form-item" v-for="(item, index) in followStaffList" :key="index">
<label>
售前线索跟进员工
<el-popover placement="top" width="400" trigger="hover" content="请在首页-跟进专员模块里创建售前专员,并选择员工来跟进新车询价、试驾预约线索。">
<img src="@/assets/leadManage/question.png" slot="reference" class="count-item-question" />
</el-popover>
:
</label>
<div style="position: relative">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择跟进专员
</el-button>
<span class="drainage-coutom-count">
只能选择
<span class="count">1</span>
个
</span>
<div class="el-input-tag input-tag-wrapper" v-if="dracImFollowStaffResponses.length == 1">
<el-tag effect="plain" type="info" v-for="(tag, idx) in dracImFollowStaffResponses" :key="idx" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
</div>
</div>
</div>
</div>
<select-emp ref="selectEmpForm" @selectTable="selectTable"></select-emp>
<GLFooter class="gl-footer">
<el-button @click="goback()">取消</el-button>
<el-button type="primary" @click="comEmployee()">确定</el-button>
</GLFooter>
</div>
</template>
<script>
import selectEmp from '@/components/selectEmp'
export default {
name: 'leadAllocation',
components: { selectEmp },
data() {
return {
followStaffList: ['1', '2'],
followStaffVal: '',
clientHeight: '',
dracImFollowStaffResponses: [
{
staffName: 'nihao',
id: 212
}
]
}
},
mounted() {
this.clientHeight = document.documentElement.clientHeight - 180
},
methods: {
// 删除标签
handleTagClose(tag) {
// console.log(tag)
this.allocationList.splice(this.allocationList.indexOf(tag), 1)
},
goback() {
this.$router.push({ path: '/leadManage/index' })
},
comEmployee() {
console.log('1111')
},
//选择跟进员工
handleAddEmp() {
this.$refs.selectEmpForm.init(this.dracImFollowStaffResponses)
},
selectTable(item) {
this.dracImFollowStaffResponses = item.map(item => {
return {
staffId: item.relationId,
staffName: item.staffName
}
})
}
}
}
</script>
<style lang="scss" scoped>
.scrm-sub-client-container {
.pageContent {
padding: 6px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// min-width: 1300px;
background-color: #fff;
.drainage-form-item {
display: flex;
margin-top: 20px;
/deep/ {
.el-input__inner {
width: 448px;
}
}
label {
color: #333;
text-align: right;
margin-right: 10px;
height: 36px;
line-height: 36px;
font-size: 14px;
img {
width: 16px;
height: 16px;
vertical-align: middle;
// margin-left: 5px;
}
}
.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: 5px 5px 0px 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 567px;
display: flex;
// align-items: center;
margin-top: 6px;
font-size: 14px;
height: 46px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.drainage-coutom-count {
color: #999;
font-size: 14px;
.count {
color: #5850ff;
}
}
/deep/ .el-button--small {
height: 36px;
}
}
}
}
</style>
<template>
<div>
<div class="scrm-sub-client-container">
<div class="pageContent" :style="{ 'min-height': clientHeight + 'px' }">
<!-- 基本信息 -->
<div class="baseTitle">
<p class="title">基本信息</p>
<hr />
<!-- 救援服务 -->
<yl-descriptions v-if="leadType == 3" ref="ylDeacriptions" :tableModel="rescueDescriModel" :showData="leadBaseList" />
<!-- 新车询价 -->
<yl-descriptions v-if="leadType == 4" ref="ylDeacriptions" :tableModel="newcarDescriModel" :showData="leadBaseList" />
<!-- 试驾预约和维保预约 -->
<yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" />
</div>
<!-- 跟进记录 -->
<div class="baseTitle">
<p class="title">跟进记录</p>
<hr />
<div class="timestamp">
<el-timeline>
<el-timeline-item v-for="(item, index) in leadFollowRecord" :key="index" :timestamp="item.followDate" placement="top" :color="index === 0 ? '#5850FF' : ''">
<p class="conductor">处理人:{{ item.userName }}</p>
<p class="remark">{{ item.remark }}</p>
</el-timeline-item>
</el-timeline>
</div>
</div>
</div>
</div>
<GLFooter class="gl-footer">
<el-button @click="goback()" type="primary" size="small">返回</el-button>
</GLFooter>
</div>
</template>
<script>
import { getBaseInfo } from '@/api/modules/leadManage'
import ylDescriptions from '@/components/ylDescriptions'
export default {
name: 'leadBasicInfo',
components: { ylDescriptions },
data() {
return {
followRecord: [],
clientHeight: '',
leadId: '', //线索id
leadType: '', //线索类型
leadBaseList: {}, //线索详情基本信息
leadFollowRecord: [], //线索详情跟进记录
theSameDescri: [
{
colList: [
{ thColspan: 1, tdColspan: 2, label: '客户名称', name: 'name' },
{ thColspan: 1, tdColspan: 2, label: '客户手机号', name: 'phone' }
]
},
{
colList: [
{ thColspan: 1, tdColspan: 2, label: '单号', name: 'orderNo' },
{ thColspan: 1, tdColspan: 2, label: '线索类型', name: 'type' }
]
},
{
colList: [
{ thColspan: 1, tdColspan: 2, label: '线索状态', name: 'status', color: '#5850FF' },
{ thColspan: 1, tdColspan: 2, label: '创建时间', name: 'createdDate' }
]
},
{
colList: [{ thColspan: 1, tdColspan: 5, label: '跟进时长', name: 'followTime' }]
}
],
// 救援服务
rescueDescri: [
{
colList: [{ thColspan: 1, tdColspan: 5, label: '救援内容', name: 'rescueType' }]
},
{
colList: [{ thColspan: 1, tdColspan: 5, label: '救援地点', name: 'rescueAddress' }]
},
{
colList: [{ thColspan: 1, tdColspan: 5, label: '门店', name: 'merchantName' }]
}
],
// 新车询价
newcarDescri: [
{
colList: [{ thColspan: 1, tdColspan: 5, label: '车型', name: 'vehicleShapeName' }]
},
{
colList: [{ thColspan: 1, tdColspan: 5, label: '询价描述', name: 'comment' }]
},
{
colList: [{ thColspan: 1, tdColspan: 5, label: '门店', name: 'merchantName' }]
}
],
// 维保预约
orderDescri: [
{
colList: [
{ thColspan: 1, tdColspan: 2, label: '车牌号', name: 'plateNum' },
{ thColspan: 1, tdColspan: 2, label: '里程数', name: 'mileage' }
]
},
{
colList: [{ thColspan: 1, tdColspan: 5, label: '门店', name: 'merchantName' }]
}
]
}
},
created() {
this.leadId = this.$route.params.id ? this.$route.params.id : ''
this.leadType = this.$route.params.type ? this.$route.params.type : ''
this.getBaseDetail()
},
mounted() {
this.clientHeight = document.documentElement.clientHeight - 140
},
computed: {
// 救援服务
rescueDescriModel() {
return this.theSameDescri.concat(this.rescueDescri)
},
// 新车询价
newcarDescriModel() {
return this.theSameDescri.concat(this.newcarDescri)
},
// 维保预约
orderDescriModel() {
return this.theSameDescri.concat(this.orderDescri)
}
},
methods: {
goback() {
this.$router.push('/leadManage/index')
},
getBaseDetail() {
let params = { id: this.leadId }
getBaseInfo(params).then(res => {
let dataObj = res
// 转换线索类型
if (dataObj['type']) {
switch (dataObj['type']) {
case '3':
dataObj['type'] = '救援服务'
break
case '4':
dataObj['type'] = '新车询价'
break
case '5':
dataObj['type'] = '试驾预约'
break
case '6':
dataObj['type'] = '维保预约'
}
}
// 转换线索状态
if (dataObj['status']) {
switch (dataObj['status']) {
case '0':
dataObj['status'] = '待跟进'
break
case '1':
dataObj['status'] = '跟进中'
break
case '2':
dataObj['status'] = '已完成'
}
}
// 转换救援内容
if (dataObj['rescueType']) {
switch (dataObj['rescueType']) {
case '0':
dataObj['rescueType'] = '紧急脱困'
break
case '1':
dataObj['rescueType'] = '拖车'
break
case '2':
dataObj['rescueType'] = '换胎'
break
case '3':
dataObj['rescueType'] = '送油'
break
case '4':
dataObj['rescueType'] = '搭电'
break
case '5':
dataObj['rescueType'] = '事故救援'
}
}
this.leadBaseList = dataObj
this.leadFollowRecord = res.followList
console.log(res)
})
}
}
}
</script>
<style lang="scss" scoped>
.scrm-sub-client-container {
.pageContent {
// padding: 6px 0px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// min-width: 1300px;
background-color: #fff;
margin-bottom: 75px;
.leadAllocation {
width: 700px;
display: flex;
justify-content: space-between;
}
.baseTitle {
.title {
padding: 15px 30px 0px 20px;
font-size: 16px;
color: #333333;
font-weight: 600;
}
.timestamp {
margin: 25px 20px 30px 44px;
/deep/ .el-timeline-item__timestamp.is-top {
margin-bottom: 3px !important;
}
/deep/ .el-timeline-item__timestamp {
color: #1d2129;
font-size: 14px;
}
/deep/ .el-timeline-item {
padding-bottom: 30px;
}
/deep/ .el-timeline-item__content {
p {
padding: 4px 0;
}
.conductor {
font-size: 14px;
}
.remark {
font-size: 12px;
color: #999999;
}
}
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!