Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 811c4456
authored
Apr 14, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.1.0' of
http://192.168.3.233:8090/saas/scrm-micro-custom
into yangm_dev_v2.1.0
2 parents
a5c302f9
971b9344
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
185 additions
and
95 deletions
src/App.vue
src/api/modules/leadManage.js
src/components/selectEmp/index.vue
src/views/guestGroup/components/selectFollow.vue
src/views/leadManage/index.vue
src/views/leadManage/leadAllocation.vue
src/views/leadManage/leadBasicInfo.vue
src/App.vue
View file @
811c445
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
</div>
-->
</div>
-->
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo"
>
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo
,leadAllocation
"
>
<router-view></router-view>
<router-view></router-view>
</keep-alive>
</keep-alive>
</div>
</div>
...
...
src/api/modules/leadManage.js
View file @
811c445
...
@@ -32,3 +32,41 @@ export function getBaseInfo(params) {
...
@@ -32,3 +32,41 @@ export function getBaseInfo(params) {
sign
:
true
sign
:
true
})
})
}
}
// 企微后台获取已选择跟进员工
export
function
getfollowstaff
(
params
)
{
params
.
method
=
'scrm.api.wwbench.clue.staff.get'
return
http
({
// http://192.168.1.144:7231
url
:
'/rop-scrm-wwbench/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取可选跟进员工
function
selectableStaff
(
params
)
{
params
.
method
=
'scrm.api.wwbench.clue.consultant.list'
return
http
({
// http://192.168.1.144:7231
url
:
'/rop-scrm-wwbench/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 企微后台新增或编辑跟进员工
export
function
editfollowstaff
(
params
)
{
params
.
method
=
'scrm.api.wwbench.clue.staff.insertOrUpdate'
return
http
({
// http://192.168.1.144:7231
url
:
'/rop-scrm-wwbench/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
selectableStaff
}
\ No newline at end of file
\ No newline at end of file
src/components/selectEmp/index.vue
View file @
811c445
...
@@ -3,13 +3,17 @@
...
@@ -3,13 +3,17 @@
<el-dialog
title=
"选择跟进专员"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
<el-dialog
title=
"选择跟进专员"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-form-item
size=
"small"
label=
"员工"
>
<el-form-item
size=
"small"
label=
"员工"
>
<el-input
v-model=
"tableSearchForm.
staffN
ame"
placeholder=
"请输入员工姓名"
></el-input>
<el-input
v-model=
"tableSearchForm.
usern
ame"
placeholder=
"请输入员工姓名"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
>
<el-form-item
size=
"small"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<GLTable
v-if=
"dialogVisible"
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
></GLTable>
<GLTable
:hasNum=
"false"
v-if=
"dialogVisible"
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<div
slot=
"options"
slot-scope=
"scope"
>
<el-radio
:label=
"scope.scope.userOneid"
v-model=
"selectId"
></el-radio>
</div>
</GLTable>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
>
新增专员
</a>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
>
新增专员
</a>
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
...
@@ -25,7 +29,8 @@ export default {
...
@@ -25,7 +29,8 @@ export default {
name
:
'selectEmp'
,
name
:
'selectEmp'
,
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
selectId
:
null
,
// loading: false,
dialogVisible
:
false
,
dialogVisible
:
false
,
tableSearchForm
:
{},
tableSearchForm
:
{},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
...
@@ -34,10 +39,13 @@ export default {
...
@@ -34,10 +39,13 @@ export default {
tableOption
:
false
,
tableOption
:
false
,
// 行数据的key
// 行数据的key
mutiSelectUniqueKey
:
'id'
,
mutiSelectUniqueKey
:
'id'
,
// 多选ref的名称
mutiSelectName
:
'salelist'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
''
,
prop
:
''
,
addHtml
:
'options'
},
{
label
:
'姓名'
,
label
:
'姓名'
,
prop
:
'staffName'
prop
:
'staffName'
},
},
...
@@ -47,84 +55,77 @@ export default {
...
@@ -47,84 +55,77 @@ export default {
},
},
{
{
label
:
'跟进专员类型'
,
label
:
'跟进专员类型'
,
prop
:
'follower
Type
Name'
prop
:
'followerName'
}
}
]
]
},
},
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableData
:
[],
tableData
:
[],
tableTotal
:
0
,
tableTotal
:
0
,
selectItem
:
[],
selectEmp
:
[],
selectEmp
:
[]
typeselect
:
''
,
selectUuid
:
''
}
}
},
},
methods
:
{
methods
:
{
jumpUrl
()
{
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/settings/followUp/index'
)
util
.
openUrl
(
location
.
origin
+
'/settings/followUp/index'
)
},
},
getFollower
()
{
selectableStaff
(
type
)
{
var
params
=
{
this
.
typeselect
=
type
let
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
pageSize
:
this
.
$refs
.
table
.
page
.
pageSize
,
pageSize
:
this
.
$refs
.
table
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
table
.
page
.
pageNum
pageNum
:
this
.
$refs
.
table
.
page
.
pageNum
,
}
type
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
)
}
}
})
this
.
$apis
.
leadManage
.
selectableStaff
(
params
).
then
(
res
=>
{
})
this
.
tableData
=
res
.
list
this
.
tableTotal
=
res
.
total
})
})
},
},
init
(
item
)
{
init
(
type
,
uuid
)
{
this
.
selectId
=
uuid
this
.
tableSearchForm
=
{}
this
.
tableSearchForm
=
{}
this
.
selectEmp
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
table
.
page
.
pageNum
=
1
this
.
$refs
.
table
.
page
.
pageNum
=
1
this
.
getFollower
(
)
this
.
selectableStaff
(
type
)
})
})
},
},
handleSearch
()
{
handleSearch
()
{
this
.
getFollower
()
let
type
=
this
.
typeselect
},
this
.
selectableStaff
(
type
)
selectionTable
(
val
)
{
this
.
selectItem
=
val
},
},
handleClose
()
{
handleClose
()
{
this
.
handleCancel
()
this
.
handleCancel
()
},
},
handleCancel
:
utils
.
debounce
(
function
()
{
handleCancel
:
utils
.
debounce
(
function
()
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
clearSelection
()
},
300
),
},
300
),
handleSelect
:
utils
.
debounce
(
function
()
{
handleSelect
:
utils
.
debounce
(
function
()
{
this
.
loading
=
true
if
(
!
this
.
selectId
)
{
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
(
'请选择员工'
)
this
.
$message
.
error
(
'请选择员工'
)
return
return
}
}
this
.
loading
=
false
let
list
=
this
.
tableData
.
filter
(
item
=>
{
return
item
[
'userOneid'
]
==
this
.
selectId
})
let
selectEmp
=
{
userId
:
list
[
0
].
userId
,
userName
:
list
[
0
].
staffName
,
userUuid
:
list
[
0
].
userOneid
}
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$emit
(
'selectTable'
,
this
.
selectItem
.
concat
(
selectEmp
))
this
.
$emit
(
'selectTable'
,
selectEmp
)
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
clearSelection
()
},
300
)
},
300
)
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-radio__label
{
display
:
none
;
}
.dialog-jump
{
.dialog-jump
{
color
:
#5850ff
;
color
:
#5850ff
;
float
:
left
;
float
:
left
;
...
...
src/views/guestGroup/components/selectFollow.vue
View file @
811c445
...
@@ -10,20 +10,7 @@
...
@@ -10,20 +10,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"table-box"
>
<div
class=
"table-box"
>
<GLTable
<GLTable
:key=
"key"
v-if=
"dialogVisible"
ref=
"followTable"
:layout=
"layout"
:tableData=
"tableData"
:hasNum=
"false"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
@
row-click=
"rowClick"
></GLTable>
:key=
"key"
v-if=
"dialogVisible"
ref=
"followTable"
:layout=
"layout"
:tableData=
"tableData"
:hasNum=
"false"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
@
row-click=
"rowClick"
></GLTable>
<div
class=
"form-tips"
>
必须配置至少1个跟进专员
</div>
<div
class=
"form-tips"
>
必须配置至少1个跟进专员
</div>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
src/views/leadManage/index.vue
View file @
811c445
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<span>
线索列表
</span>
<span>
线索列表
</span>
<span
@
click=
"handleToggle()"
>
功能介绍
</span>
<span
@
click=
"handleToggle()"
>
功能介绍
</span>
</div>
</div>
<
el-button
size=
"small"
@
click=
"goAllocation"
>
线索分配
</el-b
utton>
<
GLButton
fn=
"线索分配"
size=
"small"
@
click=
"goAllocation"
>
线索分配
</GLB
utton>
</div>
</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' }">
<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' }">
<!-- 线索类型 -->
<!-- 线索类型 -->
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<!-- 线索状态 -->
<!-- 线索状态 -->
<
template
slot=
"status"
slot-scope=
"scope"
>
<
template
slot=
"status"
slot-scope=
"scope"
>
<span>
<span>
{{
scope
.
scope
.
status
==
1
?
'跟进中'
:
scope
.
scope
.
customerSex
==
2
?
'已完成'
:
''
}}
{{
scope
.
scope
.
status
==
1
?
'跟进中'
:
scope
.
scope
.
status
==
2
?
'已完成'
:
''
}}
</span>
</span>
</
template
>
</
template
>
<!-- 跟进员工 -->
<!-- 跟进员工 -->
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
</el-tag>
</el-tag>
</
template
>
</
template
>
<
template
slot=
"options"
slot-scope=
"scope"
>
<
template
slot=
"options"
slot-scope=
"scope"
>
<
!--
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"查看"
@
click=
"goBasicInfo"
>
查看
</GLButton>
--
>
<
GLButton
class=
"blue-text"
type=
"text"
fn=
"线索详情"
@
click=
"goBasicInfo(scope.scope)"
>
查看
</GLButton
>
<
el-button
type=
"primary"
size=
"small"
@
click=
"goBasicInfo(scope.scope)"
>
查看
</el-button
>
<
!--
<el-button
class=
"blue-text"
type=
"primary"
size=
"small"
@
click=
"goBasicInfo(scope.scope)"
>
查看
</el-button>
--
>
</
template
>
</
template
>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -88,7 +88,8 @@ export default {
...
@@ -88,7 +88,8 @@ export default {
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'keyword'
,
name
:
'keyword'
,
label
:
'关键字'
label
:
'关键字'
,
placeholder
:
'请输入客户名称/手机号'
},
},
{
{
type
:
'select'
,
type
:
'select'
,
...
@@ -109,13 +110,15 @@ export default {
...
@@ -109,13 +110,15 @@ export default {
label
:
'已完成'
,
label
:
'已完成'
,
value
:
2
value
:
2
}
}
]
],
placeholder
:
'请选择'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'userName'
,
name
:
'userName'
,
label
:
'跟进人'
label
:
'跟进人'
,
placeholder
:
'请输入跟进人名称'
},
},
{
{
type
:
'select'
,
type
:
'select'
,
...
@@ -152,11 +155,12 @@ export default {
...
@@ -152,11 +155,12 @@ export default {
label
:
'维保预约'
,
label
:
'维保预约'
,
value
:
6
value
:
6
}
}
]
],
placeholder
:
'请选择'
}
}
],
],
getListApi
:
getTableList
,
getListApi
:
getTableList
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'
count
'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'
total
'
},
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableColumns
:
[
tableColumns
:
[
...
@@ -186,7 +190,8 @@ export default {
...
@@ -186,7 +190,8 @@ export default {
{
{
label
:
'跟进人'
,
label
:
'跟进人'
,
prop
:
'userName'
,
prop
:
'userName'
,
addHtml
:
'userName'
addHtml
:
'userName'
,
minWidth
:
120
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
...
@@ -257,14 +262,21 @@ export default {
...
@@ -257,14 +262,21 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.scrm-sub-client-container
{
.scrm-sub-client-container
{
/deep/
.el-table
.cell
{
text-overflow
:
clip
;
}
/
deep
/
.el-table
.cell
,
.el-table
th
div
{
text-overflow
:
clip
;
}
.pageContent
{
.pageContent
{
padding
:
6
px
20px
30px
;
padding
:
20
px
20px
30px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
//
min-width
:
1300px
;
//
min-width
:
1300px
;
background-color
:
#fff
;
background-color
:
#fff
;
/deep/
.el-icon-user-solid
{
/deep/
.el-icon-user-solid
{
color
:
#75acff
;
color
:
#75acff
;
margin-right
:
3px
;
//
margin-right
:
3px
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.leadList
{
.leadList
{
...
@@ -292,6 +304,9 @@ export default {
...
@@ -292,6 +304,9 @@ export default {
}
}
}
}
}
}
.blue-text
{
color
:
#5850ff
;
}
}
}
/
deep
/
.el-dialog__body
{
/
deep
/
.el-dialog__body
{
padding
:
30px
70px
;
padding
:
30px
70px
;
...
...
src/views/leadManage/leadAllocation.vue
View file @
811c445
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<div>
<div>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"pageContent"
:style=
"
{ height: clientHeight + 'px' }">
<div
class=
"pageContent"
:style=
"
{ height: clientHeight + 'px' }">
<div
class=
"drainage-form-item"
v-for=
"(item, index) in followStaffList"
:key=
"index"
>
<!-- 售前线索跟进员工 -->
<div
class=
"drainage-form-item"
>
<label>
<label>
售前线索跟进员工
售前线索跟进员工
<el-popover
placement=
"top"
width=
"400"
trigger=
"hover"
content=
"请在首页-跟进专员模块里创建售前专员,并选择员工来跟进新车询价、试驾预约线索。"
>
<el-popover
placement=
"top"
width=
"400"
trigger=
"hover"
content=
"请在首页-跟进专员模块里创建售前专员,并选择员工来跟进新车询价、试驾预约线索。"
>
...
@@ -11,7 +12,7 @@
...
@@ -11,7 +12,7 @@
:
:
</label>
</label>
<div
style=
"position: relative"
>
<div
style=
"position: relative"
>
<el-button
size=
"small"
@
click=
"handleAddEmp"
>
<el-button
size=
"small"
@
click=
"handleAddEmp
(1)
"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
选择跟进专员
选择跟进专员
</el-button>
</el-button>
...
@@ -20,10 +21,37 @@
...
@@ -20,10 +21,37 @@
<span
class=
"count"
>
1
</span>
<span
class=
"count"
>
1
</span>
个
个
</span>
</span>
<div
class=
"el-input-tag input-tag-wrapper"
v-if=
"
dracImFollowStaffResponses.length == 1
"
>
<div
class=
"el-input-tag input-tag-wrapper"
v-if=
"
choicedStaff.beforeUserName
"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in dracImFollowStaffResponses"
:key=
"idx"
:disable-transitions=
"false"
>
<el-tag
effect=
"plain"
type=
"info"
:key=
"idx"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
.
staffName
}}
{{
this
.
choicedStaff
.
beforeUserName
}}
</el-tag>
</div>
</div>
</div>
<!-- 售后线索跟进员工 -->
<div
class=
"drainage-form-item"
>
<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(2)"
>
<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=
"choicedStaff.afterUserName"
>
<el-tag
effect=
"plain"
type=
"info"
:key=
"idx"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
{{
choicedStaff
.
afterUserName
}}
</el-tag>
</el-tag>
</div>
</div>
</div>
</div>
...
@@ -39,49 +67,71 @@
...
@@ -39,49 +67,71 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getfollowstaff
,
editfollowstaff
}
from
'@/api/modules/leadManage'
import
selectEmp
from
'@/components/selectEmp'
import
selectEmp
from
'@/components/selectEmp'
export
default
{
export
default
{
name
:
'leadAllocation'
,
name
:
'leadAllocation'
,
components
:
{
selectEmp
},
components
:
{
selectEmp
},
data
()
{
data
()
{
return
{
return
{
followStaffList
:
[
'1'
,
'2'
],
followStaffBefore
:
{},
//售前员工
followStaffVal
:
''
,
followStaffAfter
:
{},
//售后员工
choicedStaff
:
{
afterUserId
:
''
,
afterUserName
:
''
,
afterUserUuid
:
''
,
beforeUserId
:
''
,
beforeUserName
:
''
,
beforeUserUuid
:
''
},
//已选择的员工
clientHeight
:
''
,
clientHeight
:
''
,
dracImFollowStaffResponses
:
[
type
:
''
,
{
followStaffLists
:
[],
//跟进员工列表
staffName
:
'nihao'
,
id
:
212
}
]
}
}
},
},
created
()
{
this
.
getStaff
()
},
mounted
()
{
mounted
()
{
this
.
clientHeight
=
document
.
documentElement
.
clientHeight
-
180
this
.
clientHeight
=
document
.
documentElement
.
clientHeight
-
180
},
},
methods
:
{
methods
:
{
// 删除标签
getStaff
()
{
handleTagClose
(
tag
)
{
getfollowstaff
({}).
then
(
res
=>
{
// console.log(tag)
this
.
choicedStaff
=
res
this
.
allocationList
.
splice
(
this
.
allocationList
.
indexOf
(
tag
),
1
)
}
)
},
},
goback
()
{
goback
()
{
this
.
$router
.
push
({
path
:
'/leadManage/index'
})
this
.
$router
.
push
({
path
:
'/leadManage/index'
})
},
},
comEmployee
()
{
comEmployee
()
{
console
.
log
(
'1111'
)
let
params
=
this
.
choicedStaff
editfollowstaff
(
params
).
then
(
res
=>
{
if
(
!
res
)
{
return
}
this
.
goback
()
this
.
$message
.
success
(
'修改成功'
)
})
},
},
//选择跟进员工
//选择跟进员工
handleAddEmp
()
{
handleAddEmp
(
type
)
{
this
.
$refs
.
selectEmpForm
.
init
(
this
.
dracImFollowStaffResponses
)
this
.
type
=
type
if
(
this
.
type
==
1
)
{
this
.
$refs
.
selectEmpForm
.
init
(
type
,
this
.
choicedStaff
.
beforeUserUuid
)
}
if
(
this
.
type
==
2
)
{
this
.
$refs
.
selectEmpForm
.
init
(
type
,
this
.
choicedStaff
.
afterUserUuid
)
}
},
},
selectTable
(
item
)
{
selectTable
(
item
)
{
this
.
dracImFollowStaffResponses
=
item
.
map
(
item
=>
{
if
(
this
.
type
==
1
)
{
return
{
;(
this
.
choicedStaff
.
beforeUserId
=
item
.
userId
),
(
this
.
choicedStaff
.
beforeUserName
=
item
.
userName
),
(
this
.
choicedStaff
.
beforeUserUuid
=
item
.
userUuid
)
staffId
:
item
.
relationId
,
staffName
:
item
.
staffName
}
}
})
if
(
this
.
type
==
2
)
{
;(
this
.
choicedStaff
.
afterUserId
=
item
.
userId
),
(
this
.
choicedStaff
.
afterUserName
=
item
.
userName
),
(
this
.
choicedStaff
.
afterUserUuid
=
item
.
userUuid
)
}
console
.
log
(
this
.
choicedStaff
)
}
}
}
}
}
}
...
...
src/views/leadManage/leadBasicInfo.vue
View file @
811c445
...
@@ -191,7 +191,6 @@ export default {
...
@@ -191,7 +191,6 @@ export default {
}
}
this
.
leadBaseList
=
dataObj
this
.
leadBaseList
=
dataObj
this
.
leadFollowRecord
=
res
.
followList
this
.
leadFollowRecord
=
res
.
followList
console
.
log
(
res
)
})
})
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment