Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 f36ba6a3
authored
Dec 14, 2022
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离职功能优化
1 parent
efd36ad9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
72 deletions
linkwe-pc/src/views/customerManage/customerDetail.vue
linkwe-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
linkwe-pc/src/views/customerManage/customerDetail.vue
View file @
f36ba6a
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
* userId 是 当前跟进人id
* userId 是 当前跟进人id
*/
*/
getDetail
()
{
getDetail
()
{
getDetail
({
...
this
.
$route
.
query
,
delFlag
:
1
}).
then
(({
data
})
=>
{
getDetail
({
...
this
.
$route
.
query
,
delFlag
:
this
.
$route
.
query
.
isDelete
?
1
:
0
}).
then
(({
data
})
=>
{
data
.
companyTags
&&
(
data
.
companyTags
=
data
.
companyTags
.
split
(
','
))
data
.
companyTags
&&
(
data
.
companyTags
=
data
.
companyTags
.
split
(
','
))
this
.
customer
=
data
this
.
customer
=
data
...
...
linkwe-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
f36ba6a
<
script
>
<
script
>
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
export
default
{
export
default
{
name
:
'AllocatedStaffDetailList'
,
name
:
'AllocatedStaffDetailList'
,
components
:
{},
components
:
{},
props
:
{
props
:
{
dateRange
:
{
dateRange
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
type
:
{
type
:
String
,
default
:
'customer'
}
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
},
},
loading
:
false
,
type
:
{
total
:
0
,
type
:
String
,
list
:
[]
default
:
'customer'
}
}
},
},
watch
:
{},
data
()
{
computed
:
{},
return
{
created
()
{
// 查询参数
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
query
:
{
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
pageNum
:
1
,
this
.
getList
()
pageSize
:
10
,
},
handoverUserId
:
undefined
,
mounted
()
{},
oldOwner
:
undefined
,
methods
:
{
beginTime
:
undefined
,
/** 查询 */
endTime
:
undefined
getList
(
page
)
{
},
if
(
this
.
dateRange
)
{
loading
:
false
,
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
total
:
0
,
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
list
:
[]
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
this
.
getList
()
},
mounted
()
{},
methods
:
{
/** 查询 */
getList
(
page
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
;(
this
.
type
===
'customer'
?
getAllocateCustomers
:
getAllocateGroups
)(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
;(
this
.
type
===
'customer'
?
getAllocateCustomers
:
getAllocateGroups
)(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
}
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"page"
>
<div
class=
"page"
>
<el-table
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%;"
>
<el-table-column
<el-table-column
v-if=
"type === 'customer'"
prop=
"customerName"
label=
"客户名称"
></el-table-column>
v-if=
"type === 'customer'"
prop=
"customerName"
label=
"客户名称"
></el-table-column>
<el-table-column
v-else
prop=
"groupName"
label=
"群名称"
></el-table-column>
<el-table-column
v-else
prop=
"groupName"
label=
"群名称"
></el-table-column>
<el-table-column
<el-table-column
:prop=
"type === 'customer' ? 'takeUserName' : 'newOwnerName'"
label=
"接替员工"
></el-table-column>
:prop=
"type === 'customer' ? 'takeUserName' : 'newOwnerName'"
<el-table-column
prop=
"department"
label=
"接替员工所属部门"
show-overflow-tooltip
></el-table-column>
label=
"接替员工"
></el-table-column>
<el-table-column
prop=
"department"
label=
"接替员工所属部门"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"allocateTime"
label=
"分配时间"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"allocateTime"
label=
"分配时间"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<el-table-column
label=
"操作"
width=
"100"
>
<template
slot-scope=
"
{ row }">
<template
slot-scope=
"
{ row }">
...
@@ -87,7 +76,7 @@ export default {
...
@@ -87,7 +76,7 @@ export default {
@
click=
"
@
click=
"
$router.push(
{
$router.push(
{
path: 'customerDetail',
path: 'customerDetail',
query: { externalUserid: row.externalUserid, userId: row.firstUserId }
query: { externalUserid: row.externalUserid, userId: row.firstUserId
, isDelete: true
}
})
})
"
"
type="text"
type="text"
...
...
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