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 b9e84b02
authored
Jun 01, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离职继承部门字段更改
1 parent
00b27824
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
123 deletions
linkwe-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
linkwe-pc/src/views/customerManage/dimission/allocatedStaffList.vue
linkwe-pc/src/views/customerManage/dimission/index.vue
linkwe-pc/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
b9e84b0
<
script
>
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
export
default
{
name
:
'AllocatedStaffDetailList'
,
components
:
{},
props
:
{
dateRange
:
{
type
:
Array
,
default
:
()
=>
[],
},
type
:
{
type
:
String
,
default
:
'customer'
,
},
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
export
default
{
name
:
'AllocatedStaffDetailList'
,
components
:
{},
props
:
{
dateRange
:
{
type
:
Array
,
default
:
()
=>
[]
},
loading
:
false
,
total
:
0
,
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
)
{
t
his
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
type
:
{
type
:
String
,
default
:
'customer'
}
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
handoverUserId
:
undefined
,
oldOwner
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
},
loading
:
false
,
t
otal
:
0
,
list
:
[
]
}
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
})
},
},
}
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
})
}
}
}
</
script
>
<
template
>
<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
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
prop=
"dep
artment
"
label=
"接替员工所属部门"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"dep
tNames
"
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"
>
<template
slot-scope=
"
{ row }">
...
...
@@ -76,10 +76,11 @@ export default {
@
click=
"
$router.push(
{
path: 'customerDetail',
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
,
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
})
"
type="text">
type="text"
>
查看
</el-button>
</
template
>
...
...
@@ -91,7 +92,8 @@ export default {
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
@
pagination=
"getList()"
/>
</div>
</template>
...
...
linkwe-pc/src/views/customerManage/dimission/allocatedStaffList.vue
View file @
b9e84b0
<
script
>
import
{
getListTable
}
from
'@/api/customer/dimission'
import
{
getListTable
}
from
'@/api/customer/dimission'
export
default
{
name
:
'AllocatedStaffList'
,
components
:
{},
props
:
{},
data
()
{
return
{
// 查询参数
query
:
{
isAllocate
:
1
,
pageNum
:
1
,
pageSize
:
10
,
userName
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
},
loading
:
false
,
total
:
0
,
list
:
[],
dialogVisibleSelectUser
:
false
,
dateRange
:
[],
// 离职日期
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
()
},
mounted
()
{},
methods
:
{
/** 查询 */
getList
(
page
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
export
default
{
name
:
'AllocatedStaffList'
,
components
:
{},
props
:
{},
data
()
{
return
{
// 查询参数
query
:
{
isAllocate
:
1
,
pageNum
:
1
,
pageSize
:
10
,
userName
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
},
loading
:
false
,
total
:
0
,
list
:
[],
dialogVisibleSelectUser
:
false
,
dateRange
:
[]
// 离职日期
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
getListTable
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
resetForm
()
{
this
.
dateRange
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
()
},
},
}
mounted
()
{},
methods
:
{
/** 查询 */
getList
(
page
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
getListTable
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
resetForm
()
{
this
.
dateRange
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
}
}
}
</
script
>
<
template
>
...
...
@@ -77,7 +77,8 @@ export default {
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
align=
"right"
></el-date-picker>
</el-form-item>
<el-form-item
label
>
<el-button
v-hasPermi=
"['customerManage:dimission:query']"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
...
...
@@ -86,10 +87,10 @@ export default {
</el-form>
<div
class=
"g-card"
>
<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
type=
"index"
label=
"序号"
width=
"55"
></el-table-column>
<el-table-column
prop=
"userName"
label=
"已离职员工"
></el-table-column>
<el-table-column
prop=
"dep
artment
"
label=
"所属部门"
></el-table-column>
<el-table-column
prop=
"dep
tNames
"
label=
"所属部门"
></el-table-column>
<el-table-column
prop=
"allocateCustomerNum"
label=
"已分配客户数"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"allocateGroupNum"
label=
"已分配群聊数"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"dimissionTime"
label=
"离职时间"
show-overflow-tooltip
>
...
...
@@ -102,10 +103,11 @@ export default {
@
click=
"
$router.push(
{
path: 'allocatedStaffDetail',
query: { userId: scope.row.userId }
,
query: { userId: scope.row.userId }
})
"
type="text">
type="text"
>
查看
</el-button>
</
template
>
...
...
@@ -117,7 +119,8 @@ export default {
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
@
pagination=
"getList()"
/>
</div>
</div>
</template>
...
...
linkwe-pc/src/views/customerManage/dimission/index.vue
View file @
b9e84b0
...
...
@@ -184,7 +184,7 @@
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
></el-table-column>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
></el-table-column>
<el-table-column
prop=
"userName"
label=
"已离职员工"
></el-table-column>
<el-table-column
prop=
"dep
artment
"
label=
"所属部门"
></el-table-column>
<el-table-column
prop=
"dep
tNames
"
label=
"所属部门"
></el-table-column>
<el-table-column
prop=
"allocateCustomerNum"
label=
"待分配客户数"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"allocateGroupNum"
label=
"待分配群聊数"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"dimissionTime"
label=
"离职时间"
show-overflow-tooltip
>
...
...
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