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 f6b66847
authored
Jul 19, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离职继承完成已分配群聊,交互优化等
1 parent
1078b431
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
34 deletions
linkwe-ui/src/api/customer/dimission.js
linkwe-ui/src/layout/components/Breadcrumb/index.vue
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetail.vue
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
linkwe-ui/src/views/customerManage/dimission/index.vue
linkwe-ui/src/api/customer/dimission.js
View file @
f6b6684
...
@@ -15,7 +15,7 @@ userName:
...
@@ -15,7 +15,7 @@ userName:
export
function
getList
(
params
)
{
export
function
getList
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/leaveUserAllocateList'
,
url
:
service
+
'/leaveUserAllocateList'
,
params
,
params
})
})
}
}
...
@@ -33,7 +33,7 @@ userName:
...
@@ -33,7 +33,7 @@ userName:
export
function
getListNo
(
params
)
{
export
function
getListNo
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/leaveUserNoAllocateList'
,
url
:
service
+
'/leaveUserNoAllocateList'
,
params
,
params
})
})
}
}
...
@@ -49,7 +49,7 @@ export function allocate(data) {
...
@@ -49,7 +49,7 @@ export function allocate(data) {
return
request
({
return
request
({
url
:
service
+
'/allocateLeaveUserAboutData'
,
url
:
service
+
'/allocateLeaveUserAboutData'
,
method
:
'put'
,
method
:
'put'
,
data
,
data
})
})
}
}
...
@@ -67,6 +67,24 @@ export function allocate(data) {
...
@@ -67,6 +67,24 @@ export function allocate(data) {
export
function
getAllocateCustomers
(
params
)
{
export
function
getAllocateCustomers
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/getAllocateCustomers'
,
url
:
service
+
'/getAllocateCustomers'
,
params
,
params
})
}
/**
* 离职已分配客户群
* @param {*} params
{
"pageNum": 0,
"pageSize": 0,
"beginTime": "",
"endTime": "",
"oldOwner": "" 原群主ID
}
*/
export
function
getAllocateGroups
(
params
)
{
return
request
({
url
:
service
+
'/getAllocateGroups'
,
params
})
})
}
}
linkwe-ui/src/layout/components/Breadcrumb/index.vue
View file @
f6b6684
...
@@ -66,7 +66,6 @@ export default {
...
@@ -66,7 +66,6 @@ export default {
let
matched
=
this
.
$route
.
matched
.
filter
(
let
matched
=
this
.
$route
.
matched
.
filter
(
(
item
)
=>
item
.
meta
&&
item
.
meta
.
title
(
item
)
=>
item
.
meta
&&
item
.
meta
.
title
)
)
console
.
log
(
matched
)
const
first
=
matched
[
0
]
const
first
=
matched
[
0
]
// if (!this.isDashboard(first)) {
// if (!this.isDashboard(first)) {
...
@@ -91,12 +90,10 @@ export default {
...
@@ -91,12 +90,10 @@ export default {
},
},
handleLink
(
item
)
{
handleLink
(
item
)
{
const
{
redirect
,
path
}
=
item
const
{
redirect
,
path
}
=
item
console
.
log
(
redirect
,
'redirect'
)
if
(
redirect
)
{
if
(
redirect
)
{
this
.
$router
.
push
(
redirect
)
this
.
$router
.
push
(
redirect
)
return
return
}
}
console
.
log
(
this
.
pathCompile
(
path
))
this
.
$router
.
push
(
this
.
pathCompile
(
path
))
this
.
$router
.
push
(
this
.
pathCompile
(
path
))
}
}
}
}
...
...
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetail.vue
View file @
f6b6684
<
script
>
<
script
>
import
{
getAllocateCustomers
}
from
'@/api/customer/dimission'
import
AllocatedStaffDetailList
from
'./allocatedStaffDetailList'
import
AllocatedStaffDetailList
from
'./allocatedStaffDetailList'
export
default
{
export
default
{
...
@@ -8,18 +7,8 @@ export default {
...
@@ -8,18 +7,8 @@ export default {
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
// 查询参数
active
:
'customer'
,
query
:
{
dateRange
:
[]
// 离职日期
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
},
loading
:
false
,
total
:
0
,
list
:
[],
dateRange
:
[],
// 离职日期
}
}
},
},
watch
:
{},
watch
:
{},
...
@@ -28,13 +17,14 @@ export default {
...
@@ -28,13 +17,14 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
this
.
$refs
.
AllocatedStaffDetailList
.
getList
(
1
)
this
.
$refs
[
this
.
active
]
.
getList
(
1
)
},
},
resetForm
(
formName
)
{
resetForm
(
formName
)
{
this
.
dateRange
=
[]
this
.
dateRange
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
$refs
[
'queryForm'
].
resetFields
()
},
this
.
getList
()
},
}
}
}
}
</
script
>
</
script
>
...
@@ -43,14 +33,14 @@ export default {
...
@@ -43,14 +33,14 @@ export default {
<el-form
<el-form
ref=
"queryForm"
ref=
"queryForm"
:inline=
"true"
:inline=
"true"
:model=
"query"
label-width=
"70px"
label-width=
"100px"
class=
"top-search"
class=
"top-search"
>
>
<el-form-item
label=
"离职日期"
>
<el-form-item
label=
"离职日期"
>
<el-date-picker
<el-date-picker
v-model=
"dateRange"
v-model=
"dateRange"
type=
"daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
:picker-options=
"pickerOptions"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
@@ -74,17 +64,18 @@ export default {
...
@@ -74,17 +64,18 @@ export default {
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-tabs
v
alue=
"first"
type=
"card
"
>
<el-tabs
v
-model=
"active
"
>
<el-tab-pane
label=
"已分配客户"
name=
"
first
"
>
<el-tab-pane
label=
"已分配客户"
name=
"
customer
"
>
<AllocatedStaffDetailList
<AllocatedStaffDetailList
ref=
"
AllocatedStaffDetailList
"
ref=
"
customer
"
:dateRange=
"dateRange"
:dateRange=
"dateRange"
></AllocatedStaffDetailList>
></AllocatedStaffDetailList>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"已分配群聊"
name=
"
second
"
>
<el-tab-pane
label=
"已分配群聊"
name=
"
group
"
>
<AllocatedStaffDetailList
<AllocatedStaffDetailList
ref=
"
AllocatedStaffDetailList
"
ref=
"
group
"
:dateRange=
"dateRange"
:dateRange=
"dateRange"
type=
"group"
></AllocatedStaffDetailList>
></AllocatedStaffDetailList>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
...
...
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
f6b6684
<
script
>
<
script
>
import
{
getAllocateCustomers
}
from
'@/api/customer/dimission'
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
export
default
{
export
default
{
name
:
'AllocatedStaffDetailList'
,
name
:
'AllocatedStaffDetailList'
,
...
@@ -8,6 +11,10 @@ export default {
...
@@ -8,6 +11,10 @@ export default {
dateRange
:
{
dateRange
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
type
:
{
type
:
String
,
default
:
'customer'
}
}
},
},
data
()
{
data
()
{
...
@@ -17,6 +24,7 @@ export default {
...
@@ -17,6 +24,7 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
handoverUserId
:
undefined
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
endTime
:
undefined
},
},
...
@@ -29,6 +37,7 @@ export default {
...
@@ -29,6 +37,7 @@ export default {
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
handoverUserId
=
this
.
$route
.
query
.
userId
this
.
query
.
oldOwner
=
this
.
$route
.
query
.
userId
this
.
getList
()
this
.
getList
()
},
},
mounted
()
{},
mounted
()
{},
...
@@ -41,7 +50,9 @@ export default {
...
@@ -41,7 +50,9 @@ export default {
}
}
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
this
.
loading
=
true
getAllocateCustomers
(
this
.
query
)
;(
this
.
type
===
'customer'
?
getAllocateCustomers
:
getAllocateGroups
)(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
list
=
rows
this
.
total
=
+
total
this
.
total
=
+
total
...
@@ -63,8 +74,16 @@ export default {
...
@@ -63,8 +74,16 @@ export default {
tooltip-effect=
"dark"
tooltip-effect=
"dark"
style=
"width: 100%"
style=
"width: 100%"
>
>
<el-table-column
prop=
"customerName"
label=
"客户名称"
></el-table-column>
<el-table-column
<el-table-column
prop=
"takeUserName"
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
:prop=
"type === 'customer' ? 'takeUserName' : 'newOwnerName'"
label=
"接替员工"
></el-table-column>
<el-table-column
<el-table-column
prop=
"department"
prop=
"department"
label=
"接替员工所属部门"
label=
"接替员工所属部门"
...
...
linkwe-ui/src/views/customerManage/dimission/index.vue
View file @
f6b6684
...
@@ -80,6 +80,7 @@ export default {
...
@@ -80,6 +80,7 @@ export default {
this
.
dialogVisibleSelectUser
=
true
this
.
dialogVisibleSelectUser
=
true
return
return
}
}
let
loading
=
this
.
$loading
()
api
api
.
allocate
({
.
allocate
({
handoverUserid
:
this
.
currentRow
.
userId
,
handoverUserid
:
this
.
currentRow
.
userId
,
...
@@ -87,6 +88,10 @@ export default {
...
@@ -87,6 +88,10 @@ export default {
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
'操作成功'
)
loading
.
close
()
})
.
catch
(()
=>
{
loading
.
close
()
})
})
},
},
// 选中数据
// 选中数据
...
@@ -157,6 +162,7 @@ export default {
...
@@ -157,6 +162,7 @@ export default {
</div>
</div>
<el-table
<el-table
v-loading=
"loading"
ref=
"multipleTable"
ref=
"multipleTable"
:data=
"list"
:data=
"list"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
...
...
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