Commit a5c302f9 by 杨明

fixed

2 parents 4a7b173d f3b52890
......@@ -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>
......@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return Promise.resolve(cfg)
}
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.dev.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
//开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
......
......@@ -12,25 +12,25 @@ const staticRoutes = Object.freeze([{
},
{
name: 'clientDataOverview',
path: "/clientDataOverview/index",
path: '/clientDataOverview/index',
component: resolve => require([`@/views/clientDataOverview/index.vue`], resolve),
meta: {}
},
{
name: 'clientDataOverview',
path: "/clientDataOverview/group/:id",
path: '/clientDataOverview/group/:id',
component: resolve => require([`@/views/clientDataOverview/group.vue`], resolve),
meta: {}
},
{
name: 'clientManage',
path: "/clientManage/index",
path: '/clientManage/index',
component: resolve => require([`@/views/clientManage/index.vue`], resolve),
meta: {}
},
{
name: 'clientDetail',
path: "/clientManage/clientDetail",
path: '/clientManage/clientDetail',
component: resolve => require([`@/views/clientManage/clientDetail.vue`], resolve),
meta: {}
},
......@@ -38,92 +38,110 @@ const staticRoutes = Object.freeze([{
// name: 'clientDemo',
// path: "/clientManage/clientDemo",
// component: resolve => require([`@/views/clientManage/demo.vue`], resolve),
// meta: {}
// meta: {}
// },
{
name: 'clientGroupManage',
path: "/clientGroupManage/index",
path: '/clientGroupManage/index',
component: resolve => require([`@/views/clientGroupManage/index.vue`], resolve),
meta: {}
},
{
name: 'clientGroupDetail',
path: "/clientGroupManage/clientGroupDetail",
path: '/clientGroupManage/clientGroupDetail',
component: resolve => require([`@/views/clientGroupManage/clientGroupDetail.vue`], resolve),
meta: {}
},
{
name: 'tagsManage',
path: "/tagsManage/index",
path: '/tagsManage/index',
component: resolve => require([`@/views/tagsManage/index.vue`], resolve),
meta: {}
},
{
name: 'viewCustomers',
path: "/tagsManage/viewCustomers/:info/:type",
path: '/tagsManage/viewCustomers/:info/:type',
component: resolve => require([`@/views/tagsManage/viewCustomers.vue`], resolve),
meta: {},
meta: {}
},
{
name: 'expand',
path: "/expand/index",
path: '/expand/index',
component: resolve => require([`@/views/expand/index.vue`], resolve),
meta: {}
},
{
name: 'employee',
path: "/employee/index",
path: '/employee/index',
component: resolve => require([`@/views/employee/index.vue`], resolve),
meta: {}
},
{
name: 'employee',
path: "/employee/detail",
path: '/employee/detail',
component: resolve => require([`@/views/employee/detail.vue`], resolve),
meta: {}
},
{
name: 'employee',
path: "/employee/add",
path: '/employee/add',
component: resolve => require([`@/views/employee/add.vue`], resolve),
meta: {}
},
{
name: 'guestGuest',
path: "/guestGroup/index",
path: '/guestGroup/index',
component: resolve => require([`@/views/guestGroup/index.vue`], resolve),
meta: {}
},
{
name: 'guestAdd',
path: "/guestGroup/add/:id",
path: '/guestGroup/add/:id',
component: resolve => require([`@/views/guestGroup/add.vue`], resolve),
meta: {}
},
{
name: 'guestDetail',
path: "/guestGroup/detail/:id",
path: '/guestGroup/detail/:id',
component: resolve => require([`@/views/guestGroup/detail.vue`], resolve),
meta: {}
},
{
name: 'crowdManage',
path: "/crowdManage/index",
path: '/crowdManage/index',
component: resolve => require([`@/views/crowdManage/index.vue`], resolve),
meta: {}
},
{
name: 'crowdAdd',
path: "/crowdManage/crowdAdd",
path: '/crowdManage/crowdAdd',
component: resolve => require([`@/views/crowdManage/crowdAdd.vue`], resolve),
meta: {}
},
{
name: 'crowdDetail',
path: "/crowdManage/crowdDetail:id",
path: '/crowdManage/crowdDetail:id',
component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve),
meta: {}
},
{
name: 'leadManage',
path: '/leadManage/index',
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
// {
......
......@@ -10,7 +10,6 @@ Vue.use(GLTable)
import GLCombiForm from '@/components/GlCombiForm'
Vue.use(GLCombiForm)
import 'glsx-components/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
......@@ -40,14 +39,12 @@ export async function mount(props) {
router = insts.router
instance = insts.vm
}
export async function unmount() {
instance.$destroy()
instance.$el.innerHTML = ''
instance = null
router = null
}
function subscribe({ messenger }) {
messenger.subscribe(v => {
console.log(`监听到子应用${v.from}发来消息:`, v)
......
<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 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">
<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 ? '@企微' : scope.scope.type == null ? '' :''}}</span>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' : '' }}</span>
<!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' :''}}</span> -->
</span>
<span slot="customerSex" slot-scope="scope">
......@@ -31,7 +31,7 @@
</template>
<script>
import { getDetailTableList,clientExportApi } from '@/api/modules/clientGroupManage'
import { getDetailTableList, clientExportApi } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
......@@ -45,9 +45,12 @@ export default {
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -56,10 +59,12 @@ export default {
},
{
type: 'select',
prop: 'customerSex',
name: 'customerSex',
label: '性别',
optionLabel: 'label',
optionId: 'value',
placeholder: '请选择性别',
options: [
optionList: [
{
label: '全部',
value: null
......@@ -81,14 +86,14 @@ export default {
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
name: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
name: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}
......@@ -101,7 +106,7 @@ export default {
{
label: '本群昵称',
prop: 'groupNickName',
minWidth:120
minWidth: 120
},
{
label: '客户名称',
......@@ -112,7 +117,7 @@ export default {
{
label: '手机号码',
prop: 'customerPhone',
minWidth:120
minWidth: 120
},
{
label: '性别',
......@@ -123,12 +128,12 @@ export default {
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene',
minWidth:120
minWidth: 120
},
{
label: '邀请人',
prop: 'invitorName',
minWidth:120
minWidth: 120
},
{
label: '入群时间',
......@@ -156,10 +161,10 @@ export default {
}
},
methods: {
getParams(){
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
......@@ -199,7 +204,7 @@ export default {
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//导出
handleExport(){
handleExport() {
var params = this.getParams()
clientExportApi(params).then(res => {
this.$Utils.exportFn(res)
......@@ -221,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>
\ No newline at end of file
</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 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>
</span>
......@@ -23,7 +23,7 @@
</template>
<script>
import { getDetailStaffTableList,followEmployeeExportApi } from '@/api/modules/clientGroupManage'
import { getDetailStaffTableList, followEmployeeExportApi } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
......@@ -37,9 +37,12 @@ export default {
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -48,10 +51,12 @@ export default {
},
{
type: 'select',
prop: 'customerSex',
name: 'customerSex',
label: '性别',
optionLabel: 'label',
optionId: 'value',
placeholder: '请选择性别',
options: [
optionList: [
{
label: '全部',
value: null
......@@ -73,14 +78,14 @@ export default {
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
name: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
name: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}
......@@ -94,18 +99,17 @@ export default {
{
label: '本群昵称',
prop: 'groupNickName',
minWidth:120
minWidth: 120
},
{
label: '员工名称',
prop: 'staffName',
minWidth: 150
},
{
label: '手机号码',
prop: 'customerPhone',
minWidth:120
minWidth: 120
},
{
label: '性别',
......@@ -116,12 +120,12 @@ export default {
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene',
minWidth:120
minWidth: 120
},
{
label: '邀请人',
prop: 'invitorName',
minWidth:120
minWidth: 120
},
{
label: '入群时间',
......@@ -129,7 +133,6 @@ export default {
width: 140
}
]
},
getListApi: getDetailStaffTableList,
clientTableDataNum: 0
......@@ -141,10 +144,10 @@ export default {
}
},
methods: {
getParams(){
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
......@@ -164,7 +167,7 @@ export default {
// }
// resolve()
// })
return new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams()
resolve()
})
......@@ -183,8 +186,8 @@ export default {
// }
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//导出
handleExport(){
//导出
handleExport() {
var params = this.getParams()
followEmployeeExportApi(params).then(res => {
this.$Utils.exportFn(res)
......@@ -206,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>
\ No newline at end of file
</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 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">
<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 ? '@企微' : scope.scope.type == null ? '' :''}} </span>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' : '' }}</span>
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......@@ -29,7 +30,7 @@
</template>
<script>
import { getDetailQuitTableList,leaveGroupExportApi } from '@/api/modules/clientGroupManage'
import { getDetailQuitTableList, leaveGroupExportApi } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
......@@ -43,9 +44,12 @@ export default {
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -54,10 +58,12 @@ export default {
},
{
type: 'select',
prop: 'customerSex',
name: 'customerSex',
label: '性别',
placeholder: '请选择性别',
options: [
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
......@@ -79,14 +85,14 @@ export default {
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
name: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
name: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}
......@@ -98,7 +104,7 @@ export default {
{
label: '本群昵称',
prop: 'groupNickName',
minWidth:120
minWidth: 120
},
{
label: '客户名称',
......@@ -109,7 +115,7 @@ export default {
{
label: '手机号码',
prop: 'customerPhone',
minWidth:120
minWidth: 120
},
{
label: '性别',
......@@ -120,12 +126,12 @@ export default {
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene',
minWidth:120
minWidth: 120
},
{
label: '邀请人',
prop: 'invitorName',
minWidth:120
minWidth: 120
},
{
label: '入群时间',
......@@ -153,10 +159,10 @@ export default {
}
},
methods: {
getParams(){
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
......@@ -176,7 +182,7 @@ export default {
// }
// resolve()
// })
return new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams()
resolve()
})
......@@ -194,8 +200,8 @@ export default {
// }
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//导出
handleExport(){
//导出
handleExport() {
var params = this.getParams()
leaveGroupExportApi(params).then(res => {
this.$Utils.exportFn(res)
......@@ -217,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>
\ No newline at end of file
</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">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">
......@@ -14,7 +15,7 @@
<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 ? '@企微' : scope.scope.type == null ? '' :''}} </span>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' : '' }}</span>
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......@@ -30,7 +31,7 @@
</template>
<script>
import { getDetailPotentialTableList,potentialClientExportApi } from '@/api/modules/clientGroupManage'
import { getDetailPotentialTableList, potentialClientExportApi } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
......@@ -44,9 +45,12 @@ export default {
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
type: 'datePicker',
name: 'daterange',
label: '入群时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -80,7 +84,7 @@ export default {
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
name: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
}
......@@ -117,7 +121,7 @@ export default {
prop: 'joinTime',
width: 140
}
],
]
// tableOption: {
// width: 80,
// btnList: [
......@@ -138,10 +142,10 @@ export default {
}
},
methods: {
getParams(){
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
......@@ -161,7 +165,7 @@ export default {
// }
// resolve()
// })
return new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams()
resolve()
})
......@@ -179,8 +183,8 @@ export default {
// }
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//导出
handleExport(){
//导出
handleExport() {
var params = this.getParams()
potentialClientExportApi(params).then(res => {
this.$Utils.exportFn(res)
......@@ -202,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>
\ No newline at end of file
</style>
......@@ -3,16 +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>
<!-- 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="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> -->
......@@ -21,8 +18,8 @@
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <auth-button :data="scope.scope"></auth-button> -->
<span @click="goDetail(scope.scope.id, scope.scope.custGroupName)" class="blue-text">
{{scope.scope.delFlag == '0' ? '详情' : scope.scope.delFlag == '-1' ? '' : ''}}
</span>
{{ scope.scope.delFlag == '0' ? '详情' : scope.scope.delFlag == '-1' ? '' : '' }}
</span>
<!-- <GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton> -->
</template>
</GLTable>
......@@ -42,15 +39,16 @@ export default {
isReload: true,
url: url,
sloading: false,
searchForm: {
},
searchForm: {},
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
type: 'datePicker',
name: 'daterange',
label: '创建时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -60,30 +58,32 @@ export default {
{
type: 'input',
inputType: 'text',
prop: 'custGroupName',
name: 'custGroupName',
label: '群聊名称',
placeholder: '请输入群聊名称'
},
{
type: 'input',
inputType: 'text',
prop: 'groupHostName',
name: 'groupHostName',
label: '群主',
placeholder: '请输入群主'
},
{
type: 'input',
inputType: 'text',
prop: 'groupAdminName',
name: 'groupAdminName',
label: '管理员',
placeholder: '请输入管理员'
},
{
type: 'select',
prop: 'creationMethod',
name: 'creationMethod',
label: '创建方式',
placeholder: '请选择',
options: [
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
......@@ -100,10 +100,12 @@ export default {
},
{
type: 'select',
prop: 'delFlag',
name: 'delFlag',
label: '群聊状态',
placeholder: '请选择',
options: [
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
......@@ -174,9 +176,9 @@ export default {
label: '群聊状态',
prop: 'delFlag',
width: 95,
formatter: cellValue => {
formatter: cellValue => {
return cellValue.delFlag == 0 ? '正常' : cellValue.delFlag == -1 ? '已解散' : ''
},
}
},
{
label: '创建时间',
......@@ -307,7 +309,7 @@ export default {
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
}
console.log('params',params)
console.log('params', params)
delete params.daterange
return params
},
......@@ -363,6 +365,23 @@ 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 {
......
......@@ -245,7 +245,7 @@
<slot>
<p class="hint-text color-6">
<span class="color-3">说明:</span>
仅支持企业标签
仅支持{{ '企业' | tagType }}标签
<span v-if="merchantModel == 1">和自店标签</span>
进行人工维护和设置
</p>
......@@ -554,7 +554,7 @@ export default {
label: '标签组类型',
prop: 'labelGroupInfo',
formatter: cellValue => {
return cellValue.labelGroupInfo.labelGroupType
return cellValue.labelGroupInfo.labelGroupType == '企业标签' && this.$globalState.session.merchantModel == 1 ? '集团标签' : cellValue.labelGroupInfo.labelGroupType
},
width: '160'
},
......@@ -776,7 +776,7 @@ export default {
})
})
if (labels.labelType == '企业标签') {
allTagsList[0].labelType = '企业标签'
allTagsList[0].labelType = this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签'
allTagsList[0].children.push(labels)
} else if (labels.labelType == '自店标签') {
allTagsList[1].labelType = '自店标签'
......
......@@ -3,25 +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">
</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>
......@@ -109,45 +105,54 @@ export default {
url: url,
sloading: false,
CLIENTSTATUS: this.$Constants.CLIENT_STATUS,
searchForm: {},
searchForm: {
},
searchFormTable: {},
clientManageFormList: [
{
type: 'input',
inputType: 'text',
prop: 'customerPhone',
// prop: 'customerPhone',
name: 'customerPhone',
label: '联系电话',
placeholder: '联系电话'
},
{
type: 'select',
name: 'followStaffList',
prop: 'followStaff',
name: 'followStaff',
// prop: 'followStaff',
noFilter: false,
optionLabel: 'label',
optionId: 'value',
label: '跟进员工',
placeholder: '请输入跟进员工',
options: []
optionList: []
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
// prop: 'customerName',
name: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
},
{
type: 'input',
inputType: 'text',
prop: 'nickName',
// prop: 'nickName',
name: 'nickName',
label: '企微名称',
placeholder: '请输入企微名称'
},
{
type: 'select',
prop: 'isJoin',
// prop: 'isJoin',
name: 'isJoin',
label: '是否已加企微',
placeholder: '请选择',
options: [
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
......@@ -164,28 +169,35 @@ export default {
},
{
type: 'select',
prop: 'status',
// prop: 'status',
name: 'status',
label: '当前状态',
placeholder: '请选择当前状态',
options: [
optionLabel: 'optionLabel',
optionId: 'optionId',
optionList: [
{
label: '全部',
value: null
optionLabel: '全部',
optionId: null
},
{
label: '正常',
value: 0
optionLabel: '正常',
optionId: 0
},
{
label: '删除好友',
value: -1
optionLabel: '删除好友',
optionId: -1
}
]
},
{
type: 'daterange',
prop: 'daterange',
type: 'datePicker',
// prop: 'daterange',
name: 'daterange',
label: '添加时间',
datePickerAttrs: {
'value-format': 'yyyy-MM-dd'
},
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -195,39 +207,42 @@ export default {
{
type: 'select',
prop: 'addWay',
name: 'addWaySource',
// prop: 'addWay',
name: 'addWay',
label: '添加来源',
optionLabel: 'label',
optionId: 'value',
placeholder: '请选择当前来源',
options: [] //this.$Constants.SOURCE_OPTION
optionList: [] //this.$Constants.SOURCE_OPTION
},
{
type: 'select',
prop: 'customerSex',
// prop: 'customerSex',
name: 'customerSex',
label: '性别',
optionLabel: 'label',
optionId: 'value',
placeholder: '请选择性别',
options: this.$Constants.GENDER_OPTION
optionList: this.$Constants.GENDER_OPTION
}
],
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: '企微名称',
......@@ -392,7 +407,7 @@ export default {
}
// addWaySource
const id = this.clientManageFormList.findIndex(item => {
return item.name == 'addWaySource'
return item.name == 'addWay'
})
let data = res.map(item => {
return {
......@@ -406,7 +421,7 @@ export default {
if (data && data.length > 0) {
window.localStorage.setItem('sourceList', JSON.stringify(data))
}
this.$set(this.clientManageFormList[id], 'options', data)
this.$set(this.clientManageFormList[id], 'optionList', data)
})
},
getStaffList(val) {
......@@ -418,7 +433,7 @@ export default {
return ''
}
const id = this.clientManageFormList.findIndex(item => {
return item.name == 'followStaffList'
return item.name == 'followStaff'
})
const staff = res.map(item => {
return {
......@@ -429,7 +444,7 @@ export default {
staff.unshift({ label: '全部', value: '' })
this.$nextTick(() => {
this.clientManageFormList[id].options = staff
this.clientManageFormList[id].optionList = staff
})
})
},
......@@ -453,6 +468,8 @@ export default {
},
//搜索表格
searchTable() {
console.log('进来了1111111111111111111111111')
console.log(this.searchForm)
this.$refs.clientManage.refreshTable()
},
syncClick() {
......@@ -535,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;
......
......@@ -127,6 +127,9 @@ export default {
label: '标签组类型',
prop: 'groupType',
width: 180,
formatter: cellValue => {
return cellValue.groupType == '企业标签' && this.$globalState.session.merchantModel == 1 ? '集团标签' : cellValue.groupType
},
align: 'left'
},
{
......
......@@ -11,15 +11,13 @@
<img src="@/assets/guestCustom/chat-logo.png" alt />
</div>
<div class="group-name-info">
<div>{{groupInfo.groupName}}</div>
<div
class="group-name-info-count"
>{{groupInfo.userList ? groupInfo.userList.length : 0}}人</div>
<div>{{ groupInfo.groupName }}</div>
<div class="group-name-info-count">{{ groupInfo.userList ? groupInfo.userList.length : 0 }}人</div>
</div>
</div>
<div class="text-info">
已建群数量:
<span class="group-number">{{groupInfo.groupCount}}</span>
<span class="group-number">{{ groupInfo.groupCount }}</span>
</div>
</div>
</div>
......@@ -40,12 +38,7 @@
<el-popover placement="top" width="600" trigger="hover">
<span slot="reference">...({{ followList.length }})</span>
<div class="entmicro-hover">
<el-tag
type="info"
v-for="(i, index) in followList"
:key="index"
:disable-transitions="false"
>
<el-tag type="info" v-for="(i, index) in followList" :key="index" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }}
</el-tag>
......@@ -67,12 +60,7 @@
<el-popover placement="top" width="600" trigger="hover">
<span slot="reference">...({{ memberList.length }})</span>
<div class="entmicro-hover">
<el-tag
type="info"
v-for="(i, index) in memberList"
:key="index"
:disable-transitions="false"
>
<el-tag type="info" v-for="(i, index) in memberList" :key="index" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }}
</el-tag>
......@@ -92,20 +80,9 @@
<i class="el-icon-refresh"></i>
更新数据
</div>
<div class="text-info">更新于:{{currentTime}}</div>
<div class="text-info">更新于:{{ currentTime }}</div>
</div>
<GLTable
class="table"
:searchForm="searchForm"
ref="groupDetail"
:hasNum="false"
:getListApi="getListApi"
:beforeSearchFn="beforeSearchFn"
:noDataImg="url"
:pageConf="pageConf"
:tableParams="tableParams"
:tableData="tableData"
>
<GLTable class="table" :searchForm="searchForm" ref="groupDetail" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams" :tableData="tableData">
<span slot="customerName" slot-scope="scope">
<div class="">
<!-- <div class="customer-img">
......@@ -113,9 +90,7 @@
</div>-->
<div class="customer-name">
{{ scope.scope.customerName }}
<label
class="origin"
>{{ WECHANT_TYPE[scope.scope.type]}}</label>
<label class="origin">{{ WECHANT_TYPE[scope.scope.type] }}</label>
</div>
</div>
</span>
......@@ -135,10 +110,7 @@
class="statusText"
v-if="scope.scope.delFlag == '0'"
>使用</span> -->
<span
class="statusText"
:class="{ 'red-text': scope.scope.delFlag == '-1' }"
>{{ scope.scope.delFlag == '0' ? '使用' : scope.scope.delFlag == '-1' ? '解散于' : '' }}</span>
<span class="statusText" :class="{ 'red-text': scope.scope.delFlag == '-1' }">{{ scope.scope.delFlag == '0' ? '使用' : scope.scope.delFlag == '-1' ? '解散于' : '' }}</span>
<span v-if="scope.scope.delFlag == '-1'" class="gray-text">{{ scope.scope.disMiss }}</span>
</span>
</GLTable>
......@@ -198,32 +170,32 @@ export default {
{
label: '客户',
prop: 'customerName',
addHtml: 'customerName',
addHtml: 'customerName'
//align: 'left'
// width: 200
},
{
label: '创建时间',
prop: 'createdTime',
prop: 'createdTime'
//align: 'left'
// width: 200
},
{
label: '现群名称',
prop: 'chatName',
prop: 'chatName'
//align: 'left'
},
{
label: '现群主',
prop: 'createdBy',
// minWidth: '180px',
addHtml: 'groupOwner',
addHtml: 'groupOwner'
//align: 'left'
},
{
label: '状态',
prop: 'status',
addHtml: 'status',
addHtml: 'status'
// width: 250,
//align: 'left'
}
......@@ -607,7 +579,6 @@ export default {
height: 100%;
}
}
}
}
.entmicro {
......@@ -654,4 +625,4 @@ i {
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
</style>
\ No newline at end of file
</style>
......@@ -9,26 +9,13 @@
</div>
<div class="container">
<search-form
class="searchTop border-shadow"
:formModel="searchForm"
:formList="searchFormData"
labelWidth="70px"
>
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="searchFormData" labelWidth="70px">
<span class="inline-b" style="float: right" slot="form-slot">
<el-button type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<!-- 表格区域 开始 -->
<GLTable
ref="gueastGroup"
@setTableFinishFun="setTableFinishFun"
:noDataImg="url"
:getListApi="getListApi"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
>
<GLTable ref="gueastGroup" @setTableFinishFun="setTableFinishFun" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
<div slot="entmicro-name" class="entmicro" slot-scope="scope">
<!-- <span v-for="(i, index) in scope.scope.userList" :key="index">
{{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }}
......@@ -42,20 +29,10 @@
{{ tag.staffName }}{{ tag.departmentName ? `(${tag.departmentName})` : '' }}
</el-tag>
<el-tag type="info" v-if="scope.scope.userList.length > 9 && idx == 9">
<el-popover
placement="top"
width="600"
trigger="hover"
content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ scope.scope.userList.length }})</span>
<div class="entmicro-hover">
<el-tag
type="info"
v-for="(i, index) in scope.scope.userList"
:key="index"
:disable-transitions="false"
>
<el-tag type="info" v-for="(i, index) in scope.scope.userList" :key="index" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }}
</el-tag>
......@@ -65,20 +42,13 @@
</div>
</div>
<span slot="status" slot-scope="scope">
<span
class="statusText"
:class="{ 'red-text': scope.scope.status === '2', 'green-text': scope.scope.status === '1' }"
>{{ scope.scope.status == '1' ? '启用' : '停用' }}</span>
<span class="statusText" :class="{ 'red-text': scope.scope.status === '2', 'green-text': scope.scope.status === '1' }">{{ scope.scope.status == '1' ? '启用' : '停用' }}</span>
</span>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<!-- <el-button type="text" @click="btnClick('edit', scope.scope)">修改</el-button>
<el-button type="text" @click="btnClick('detail', scope.scope)">查看详情</el-button>-->
<GLButton type="text" @click="btnClick('edit', scope.scope)" fn="修改群组">修改</GLButton>
<GLButton
type="text"
@click="btnClick('status', scope.scope)"
fn="启用禁用"
>{{ scope.scope.status == 1 ? '停用' : '启用' }}</GLButton>
<GLButton type="text" @click="btnClick('status', scope.scope)" fn="启用禁用">{{ scope.scope.status == 1 ? '停用' : '启用' }}</GLButton>
<GLButton type="text" @click="btnClick('detail', scope.scope)" fn="客户群详情">查看详情</GLButton>
<!-- <el-button
type="text"
......@@ -343,6 +313,34 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.searchTop {
/deep/ .el-form-item:nth-child(2) {
position: static !important;
.el-form-item__content {
margin-left: 15px !important;
}
}
}
/deep/.search-form {
.itemWidth {
display: flex;
.el-form-item {
display: flex;
}
}
.el-form-item__content {
width: auto;
display: inline-block;
margin-left: 0px !important;
.el-input {
width: 415px;
.el-input__inner {
width: 415px;
}
}
}
}
.btn-header {
margin-bottom: 20px;
}
......@@ -417,8 +415,5 @@ export default {
.search-form .el-form-item:last-child {
float: right;
}
.search-form .el-form-item__content {
width: 215px;
}
}
</style>
<template>
<div>
<div class="scrm-sub-client-container">
<div class="pageContent">
<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: 'keyword',
label: '关键字'
},
{
type: 'select',
name: 'status',
label: '线索状态',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
},
{
label: '跟进中',
value: 1
},
{
label: '已完成',
value: 2
}
]
},
{
type: 'input',
inputType: 'text',
name: 'userName',
label: '跟进人'
},
{
type: 'select',
name: 'type',
label: '线索类型',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
},
// {
// label: '客户意见',
// value: 1
// },
// {
// label: '卖车询价',
// value: 2
// },
{
label: '救援服务',
value: 3
},
{
label: '新车询价',
value: 4
},
{
label: '试驾预约',
value: 5
},
{
label: '维保预约',
value: 6
}
]
}
],
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() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
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>
<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;
/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>
......@@ -53,7 +53,6 @@
<template v-for="(tag, index) in item.children">
<div class="select-tagLabel" :key="index" v-if="tag && index < 3">{{ tag.name }}</div>
</template>
<el-popover placement="top" trigger="hover" class="select-popover-tag">
<div class="select-popover-box">
<template v-for="(tag, index) in item.children">
......@@ -184,7 +183,6 @@
<span class="pure-blue-text">{{ numberObj.rcLabelCount }}</span>
个
</span>
<span class="tagTipMsg" v-if="tagDialogTitle == '编辑标签组'">
{{ tagForm.initTagsGroup == 1 ? (this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签' }}最多3000个,已创建
<span class="pure-blue-text">{{ tagForm.initTagsGroup == 1 ? numberObj.bizLabelCount : numberObj.rcLabelCount }}</span>
......@@ -207,7 +205,6 @@
<img class="editIcon" src="@/assets/tagsManage/edit.png" @click="showInput(item.id)" alt="" v-show="!item.inputVisible" />
</span>
</div>
<div class="row-tag" v-for="(item, index) in tagForm.tagsList" :key="index">
<!-- :onkeyup="(item.name = item.name.replace(/\s+/g, ''))" maxlength="30" show-word-limit @input="checkInputContent"-->
<el-input v-model.trim="item.name" placeholder="添加标签名称(至少添加一个标签)" @keyup.native="item.name = checkInputContent(item.name)"></el-input>
......@@ -257,13 +254,11 @@
</div>
</div>
</basic-dialog>
<div class="loading-containner" v-if="userLoading">
<div class="loading-box">客户列表加载中</div>
</div>
</div>
</template>
<script>
import { getTableTagNum, newAddTag, updateTag } from '@/api/modules/tagsManage'
import { getLoginCount } from '@/api/modules/loginCount'
......@@ -274,7 +269,6 @@ import util from '@/utils/util'
export default {
mixins: [tag],
name: 'tagsManage',
data() {
//这里就是整个checkName啦,就是方法一的使用
var checkName = (rule, value, callback) => {
......@@ -298,7 +292,6 @@ export default {
}
var checkTagsInput = (rule, value, callBack) => {
console.log('value值为:', value, typeof value, value.length)
if (value && value.length == 0) {
return callBack(new Error('请添加标签'))
} else {
......@@ -496,7 +489,6 @@ export default {
],
modeList: [{ id: 1, name: '人工' }],
//编辑便签输入的值
editTagList: [],
tagGroupId: 0, //标签组id,编辑提交接口要用
//控制展开收起按钮
......@@ -534,7 +526,6 @@ export default {
// this.tagsPartFormList[0].options.splice(0, 1)
}
}
if (this.merchantModel == 1) {
if (this.accountLevel == 1) {
//集团下的工厂只能创建企微标签,自店标签不要了
......@@ -618,7 +609,6 @@ export default {
}
return true //门店版都显示编辑按钮
},
expandeClick() {
// console.log('expandeClick')
this.expande = !this.expande
......@@ -644,7 +634,6 @@ export default {
this.numberObj = res
})
},
//搜索表格
handleSearch() {
this.getCustomersListData()
......@@ -654,7 +643,6 @@ export default {
this.getCustomersListData()
this.searchForm = {}
},
btnClick(pType, rowData) {
console.log(pType, rowData, 'btnClick')
switch (pType) {
......@@ -665,16 +653,13 @@ export default {
if (this.merchantModel == 1 && (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4)) {
this.tagForm.initTagsGroup = 2
}
this.$set(this.tagDialogData[0], 'disabled', false)
this.handleClose()
break
case 'edit':
this.tagDialogTitle = '编辑标签组'
this.$set(this.tagDialogData[0], 'disabled', true)
this.editEvent(rowData)
break
}
},
......@@ -697,7 +682,6 @@ export default {
this.editTagList = rowData.labelList.map(item => {
return { ...item, inputVisible: false }
})
this.tagGroupId = rowData.labelGroup.id //标签组id
this.tagForm.tagsName = rowData.labelGroup.name //标签组名
this.tagForm.initTagsGroup = rowData.labelType == '企业标签' || rowData.labelType == '集团标签' ? 1 : rowData.labelType == '自店标签' ? 2 : '' //标签组类型
......@@ -724,7 +708,6 @@ export default {
this.$message.error('不能提交空标签')
return
}
//如果存在添加标签的输入框的内容的标签相同则不提交
let isSameTagFlag = false
var tempArr = this.tagForm.tagsList.map(item => item.name)
......@@ -733,7 +716,6 @@ export default {
this.$message.error('不能提交相同的标签,请修改')
return
}
this.newAddTagFun()
//this.handleClose() //这里不管
} else {
......@@ -743,7 +725,6 @@ export default {
this.$message.error('不能提交空的编辑标签')
return
}
if (this.tagForm.tagsList.length > 0) {
//过滤掉没有输入值得标签输入框
this.tagForm.tagsList = this.tagForm.tagsList.filter(item => item.name != '')
......@@ -783,9 +764,7 @@ export default {
// console.log(this.tagForm, '内')
}
// console.log(this.tagForm, '外')
this.tagForm.tagsList = [] //取消时清空新增标签
this.tagVisible = !this.tagVisible
},
newAddTagFun() {
......@@ -794,13 +773,11 @@ export default {
params['labelDTO.dataFrom'] = 'cs'
params['labelDTO.shopId'] = this.merchantId
params['labelDTO.edition'] = this.merchantModel
// params.staffId = '员工A'
params['labelDTO.labelGroup.name'] = this.tagForm.tagsName
params['labelDTO.labelType'] = this.tagForm.initTagsGroup == 1 ? (this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签'
params['labelDTO.labelList'] = this.tagForm.tagsList
params['labelDTO.isAddLabelGroupEnter'] = this.tagDialogTitle == '添加标签组' ? true : false
console.log(params)
newAddTag(params).then(res => {
if (!res) {
......@@ -835,7 +812,6 @@ export default {
let param = {}
param['labelDTO.dataFrom'] = 'cs'
param['labelDTO.edition'] = this.merchantModel
param['labelDTO.labelGroup.id'] = this.tagGroupId
param['labelDTO.labelGroup.name'] = this.tagForm.tagsName
param['labelDTO.labelType'] = this.tagForm.initTagsGroup == 1 ? (this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签'
......@@ -846,19 +822,15 @@ export default {
name: item.name
}
})
param['labelDTO.labelList'] = editTagList
updateTag(param).then(res => {
if (!res) {
return
}
this.$message.success('修改成功')
// this.tagForm.tagsName = ''
// this.tagForm.initTagsGroup = ''
// this.tagForm.tagsList = []
this.$refs.tagTree.getTableList(true) //刷新下表格
})
},
......@@ -869,7 +841,6 @@ export default {
//添加一行标签
addRow(type) {
this.tagNameRules = false
if (type == 1 && this.numberObj.bizLabelCount >= 3000) {
this.$message.error('企业标签数量已达上限')
return
......@@ -892,7 +863,6 @@ export default {
this.$refs.saveTagInput[0].focus()
})
},
handleInputConfirm(inputValue, id) {
this.editTagList.forEach(i => {
if (i.id == id) {
......@@ -916,7 +886,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
......@@ -1004,7 +973,6 @@ export default {
b {
color: #666666;
}
span {
white-space: nowrap;
}
......@@ -1025,14 +993,12 @@ export default {
// /deep/.el-table tbody tr:hover > td {
// background-color: #f4f3ff;
// }
.pageTitle {
position: relative;
// margin-top: 30px;
margin-bottom: 20px;
height: 20px;
font-size: 20px;
font-weight: 700;
color: #333333;
line-height: 20px;
......@@ -1236,7 +1202,6 @@ export default {
.allTagsWrap {
position: relative;
// display: -webkit-box;
// overflow: hidden;
// -webkit-line-clamp: 2;
// -webkit-box-orient: vertical;
......@@ -1250,7 +1215,6 @@ export default {
// }
.tag-box-wrap {
display: inline-block;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
......@@ -1293,7 +1257,6 @@ export default {
}
}
}
.close {
overflow: hidden;
height: 65px;
......@@ -1304,7 +1267,6 @@ export default {
.el-input__inner {
width: 423px;
}
::v-deep .container {
position: relative;
.tagTipMsg {
......@@ -1318,7 +1280,6 @@ export default {
color: #999999;
}
}
::v-deep .el-select > .el-input--small {
width: 190px;
}
......@@ -1376,7 +1337,6 @@ export default {
// z-index: 9999;
}
}
.el-input {
max-width: 200px;
}
......@@ -1387,7 +1347,6 @@ export default {
border: 0;
}
}
.row-tag {
display: flex;
&:not(:first-child) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!