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 132b4027
authored
Nov 12, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/front_end_1.5' into front_end_dev_2.0
2 parents
1253ea67
d97052e7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
72 deletions
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
linkwe-ui/src/api/communityOperating/oldCustomer.js
linkwe-ui/src/api/drainageCode/staff.js
linkwe-ui/src/views/application/taskDetail/addTask.vue
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
linkwe-ui/src/views/drainageCode/staff/detail.vue
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
View file @
132b402
...
@@ -9,10 +9,13 @@
...
@@ -9,10 +9,13 @@
<div
class=
"group"
>
<div
class=
"group"
>
<van-cell
class=
"group-tags"
title=
"发送给客户群"
>
<van-cell
class=
"group-tags"
title=
"发送给客户群"
>
<template
#
default
>
<template
#
default
>
<template
v-for=
"group of task.groupList.slice(0, 2)"
>
<
!--
<
template
v-for=
"group of task.groupList.slice(0, 2)"
>
<van-tag
:key=
"group.chatId"
size=
"large"
>
{{
group
.
groupName
}}
</van-tag>
<van-tag
:key=
"group.chatId"
size=
"large"
>
{{
group
.
groupName
}}
</van-tag>
</
template
>
-->
<
template
v-if=
"task.groupList && task.groupList.length > 0"
>
<van-tag
v-for=
"group of task.groupList.slice(0, 2)"
:key=
"group.chatId"
size=
"large"
>
{{
group
.
groupName
}}
</van-tag>
</
template
>
</
template
>
<
template
v-if=
"task.groupList.length > 2"
>
<
template
v-if=
"task.groupList
&& task.groupList
.length > 2"
>
<van-tag
size=
"large"
>
...
</van-tag>
<van-tag
size=
"large"
>
...
</van-tag>
</
template
>
</
template
>
</template>
</template>
...
@@ -195,7 +198,8 @@ export default {
...
@@ -195,7 +198,8 @@ export default {
showTodo
()
{
showTodo
()
{
if
(
this
.
todoMembers
.
length
===
0
)
return
'无'
if
(
this
.
todoMembers
.
length
===
0
)
return
'无'
const
names
=
this
.
todoMembers
.
map
((
m
)
=>
m
.
name
)
const
namesMap
=
this
.
todoMembers
.
map
((
m
)
=>
m
.
name
||
''
)
const
names
=
namesMap
.
filter
(
m
=>
m
!==
''
)
if
(
this
.
todoMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
if
(
this
.
todoMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
todoMembers
.
length
+
'人'
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
todoMembers
.
length
+
'人'
...
@@ -215,7 +219,8 @@ export default {
...
@@ -215,7 +219,8 @@ export default {
showDone
()
{
showDone
()
{
if
(
this
.
doneMembers
.
length
===
0
)
return
'无'
if
(
this
.
doneMembers
.
length
===
0
)
return
'无'
const
names
=
this
.
doneMembers
.
map
((
m
)
=>
m
.
name
)
const
namesMap
=
this
.
doneMembers
.
map
((
m
)
=>
m
.
name
||
''
)
const
names
=
namesMap
.
filter
(
m
=>
m
!==
''
)
if
(
this
.
doneMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
if
(
this
.
doneMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
doneMembers
.
length
+
'人'
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
doneMembers
.
length
+
'人'
...
...
linkwe-ui/src/api/communityOperating/oldCustomer.js
View file @
132b402
...
@@ -91,9 +91,10 @@ export function remove(ids) {
...
@@ -91,9 +91,10 @@ export function remove(ids) {
* @param {*} params
* @param {*} params
* id: 老客标签建群任务ID
* id: 老客标签建群任务ID
*/
*/
export
function
getStat
(
id
)
{
export
function
getStat
(
id
,
params
)
{
return
request
({
return
request
({
url
:
service
+
'/stat/'
+
id
,
url
:
service
+
'/stat/'
+
id
,
method
:
'get'
,
method
:
'get'
,
params
})
})
}
}
\ No newline at end of file
\ No newline at end of file
linkwe-ui/src/api/drainageCode/staff.js
View file @
132b402
...
@@ -18,7 +18,7 @@ const service = window.CONFIG.services.wecom + '/code'
...
@@ -18,7 +18,7 @@ const service = window.CONFIG.services.wecom + '/code'
export
function
getList
(
params
)
{
export
function
getList
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/list'
,
url
:
service
+
'/list'
,
params
,
params
})
})
}
}
...
@@ -28,7 +28,7 @@ export function getList(params) {
...
@@ -28,7 +28,7 @@ export function getList(params) {
*/
*/
export
function
getDetail
(
id
)
{
export
function
getDetail
(
id
)
{
return
request
({
return
request
({
url
:
service
+
'/'
+
id
,
url
:
service
+
'/'
+
id
})
})
}
}
...
@@ -59,7 +59,7 @@ export function update(data) {
...
@@ -59,7 +59,7 @@ export function update(data) {
return
request
({
return
request
({
url
:
service
+
'/update'
,
url
:
service
+
'/update'
,
method
:
'put'
,
method
:
'put'
,
data
,
data
})
})
}
}
...
@@ -87,7 +87,7 @@ export function add(data) {
...
@@ -87,7 +87,7 @@ export function add(data) {
return
request
({
return
request
({
url
:
service
+
'/add'
,
url
:
service
+
'/add'
,
method
:
'post'
,
method
:
'post'
,
data
,
data
})
})
}
}
...
@@ -99,7 +99,7 @@ export function batchAdd(data) {
...
@@ -99,7 +99,7 @@ export function batchAdd(data) {
return
request
({
return
request
({
url
:
service
+
'/batchAdd'
,
url
:
service
+
'/batchAdd'
,
method
:
'post'
,
method
:
'post'
,
data
,
data
})
})
}
}
...
@@ -110,7 +110,7 @@ export function batchAdd(data) {
...
@@ -110,7 +110,7 @@ export function batchAdd(data) {
export
function
remove
(
id
)
{
export
function
remove
(
id
)
{
return
request
({
return
request
({
url
:
service
+
'/delete/'
+
id
,
url
:
service
+
'/delete/'
+
id
,
method
:
'delete'
,
method
:
'delete'
})
})
}
}
...
@@ -125,7 +125,7 @@ export function remove(id) {
...
@@ -125,7 +125,7 @@ export function remove(id) {
export
function
getQrcode
(
params
)
{
export
function
getQrcode
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/getQrcode'
,
url
:
service
+
'/getQrcode'
,
params
,
params
})
})
}
}
...
@@ -137,7 +137,7 @@ export function downloadBatch(ids) {
...
@@ -137,7 +137,7 @@ export function downloadBatch(ids) {
return
request
({
return
request
({
url
:
service
+
'/downloadBatch'
,
url
:
service
+
'/downloadBatch'
,
params
:
{
params
:
{
ids
,
ids
},
},
responseType
:
'blob'
responseType
:
'blob'
})
})
...
@@ -147,7 +147,7 @@ export function download(id) {
...
@@ -147,7 +147,7 @@ export function download(id) {
return
request
({
return
request
({
url
:
service
+
'/download'
,
url
:
service
+
'/download'
,
params
:
{
params
:
{
id
,
id
},
},
responseType
:
'blob'
responseType
:
'blob'
})
})
...
@@ -156,11 +156,11 @@ export function download(id) {
...
@@ -156,11 +156,11 @@ export function download(id) {
/**
/**
* 成员添加客户统计
* 成员添加客户统计
* @param {*} params
* @param {*} params
*
userId=成员id&addWay=添加类型,二维码:1
&beginTime=开始时间&endTime=结束时间
*
codeId=活码id
&beginTime=开始时间&endTime=结束时间
*/
*/
export
function
getUserAddCustomerStat
(
params
)
{
export
function
getUserAddCustomerStat
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/getUserAddCustomerStat'
,
url
:
service
+
'/getUserAddCustomerStat'
,
params
,
params
})
})
}
}
linkwe-ui/src/views/application/taskDetail/addTask.vue
View file @
132b402
...
@@ -35,7 +35,6 @@ export default {
...
@@ -35,7 +35,6 @@ export default {
rewardImageUrl
:
''
,
rewardImageUrl
:
''
,
rewardRule
:
''
rewardRule
:
''
},
},
rewardImageUrlTemp
:
''
,
action
:
process
.
env
.
VUE_APP_BASE_API
+
window
.
CONFIG
.
services
.
wecom
+
'/fission/upload'
,
action
:
process
.
env
.
VUE_APP_BASE_API
+
window
.
CONFIG
.
services
.
wecom
+
'/fission/upload'
,
headers
:
window
.
CONFIG
.
headers
,
headers
:
window
.
CONFIG
.
headers
,
ruleForm
:
{
ruleForm
:
{
...
@@ -223,7 +222,7 @@ export default {
...
@@ -223,7 +222,7 @@ export default {
},
},
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
// this.rewardImageUrlTemp = URL.createObjectURL(file.raw) //预览
// this.rewardImageUrlTemp = URL.createObjectURL(file.raw) //预览
this
.
rewardImageUrlTemp
=
this
.
groupForm
.
rewardImageUrl
=
res
.
data
.
rewardImageUrl
this
.
groupForm
.
rewardImageUrl
=
res
.
data
.
rewardImageUrl
},
},
beforeAvatarUpload
(
file
)
{
beforeAvatarUpload
(
file
)
{
const
isJPG
=
file
.
type
===
'image/jpeg'
const
isJPG
=
file
.
type
===
'image/jpeg'
...
@@ -388,7 +387,7 @@ export default {
...
@@ -388,7 +387,7 @@ export default {
:on-success=
"handleAvatarSuccess"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
:before-upload=
"beforeAvatarUpload"
>
>
<img
v-if=
"
rewardImageUrlTemp"
:src=
"rewardImageUrlTemp
"
class=
"avatar"
/>
<img
v-if=
"
groupForm.rewardImageUrl"
:src=
"groupForm.rewardImageUrl
"
class=
"avatar"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
...
...
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
View file @
132b402
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
page
&&
(
this
.
customerQuery
.
pageNum
=
page
)
page
&&
(
this
.
customerQuery
.
pageNum
=
page
)
this
.
customerLoading
=
true
this
.
customerLoading
=
true
getStat
(
this
.
customerSearchId
)
getStat
(
this
.
customerSearchId
,
this
.
customerQuery
)
.
then
(({
rows
,
total
})
=>
{
.
then
(({
rows
,
total
})
=>
{
this
.
customerList
=
rows
this
.
customerList
=
rows
this
.
customerTotal
=
+
total
this
.
customerTotal
=
+
total
...
@@ -127,10 +127,9 @@ export default {
...
@@ -127,10 +127,9 @@ export default {
},
},
// 获取显示用tag字符串
// 获取显示用tag字符串
getDisplayTags
(
row
)
{
getDisplayTags
(
row
)
{
if
(
!
(
row
&&
row
.
length
>
0
))
return
''
if
(
!
(
row
&&
row
.
tagList
.
length
>
0
))
return
''
const
tags
=
row
.
tagList
.
map
((
t
)
=>
(
t
&&
t
.
name
?
t
.
name
:
''
))
return
tags
.
join
(
' '
)
return
row
.
tagList
.
join
(
' '
)
},
},
// 批量删除
// 批量删除
handleBulkRemove
()
{
handleBulkRemove
()
{
...
@@ -198,15 +197,15 @@ export default {
...
@@ -198,15 +197,15 @@ export default {
},
},
// 客户统计查询
// 客户统计查询
customerSearch
()
{
customerSearch
()
{
//
this.getStat()
this
.
getStat
()
this
.
customerFilter
()
//
this.customerFilter()
},
},
// 客户统计重置
// 客户统计重置
resetCustomerQuery
()
{
resetCustomerQuery
()
{
this
.
$refs
[
'customerForm'
].
resetFields
()
this
.
$refs
[
'customerForm'
].
resetFields
()
//
this.getStat(1)
this
.
getStat
(
1
)
this
.
customerFilter
()
//
this.customerFilter()
}
}
}
}
}
}
...
@@ -378,7 +377,7 @@ export default {
...
@@ -378,7 +377,7 @@ export default {
:total=
"customerTotal"
:total=
"customerTotal"
:page
.
sync=
"customerQuery.pageNum"
:page
.
sync=
"customerQuery.pageNum"
:limit
.
sync=
"customerQuery.pageSize"
:limit
.
sync=
"customerQuery.pageSize"
@
pagination=
"customer
Filter
"
@
pagination=
"customer
Search
"
/>
/>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
132b402
<
script
>
<
script
>
import
{
import
{
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
getAllocateCustomers
,
getAllocateGroups
}
from
'@/api/customer/dimission'
export
default
{
export
default
{
name
:
'AllocatedStaffDetailList'
,
name
:
'AllocatedStaffDetailList'
,
...
@@ -50,9 +47,7 @@ export default {
...
@@ -50,9 +47,7 @@ export default {
}
}
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
this
.
loading
=
true
;(
this
.
type
===
'customer'
?
getAllocateCustomers
:
getAllocateGroups
)(
;(
this
.
type
===
'customer'
?
getAllocateCustomers
:
getAllocateGroups
)(
this
.
query
)
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
list
=
rows
this
.
total
=
+
total
this
.
total
=
+
total
...
@@ -68,40 +63,20 @@ export default {
...
@@ -68,40 +63,20 @@ export default {
<
template
>
<
template
>
<div
class=
"page"
>
<div
class=
"page"
>
<el-table
<el-table
ref=
"multipleTable"
:data=
"list"
tooltip-effect=
"dark"
style=
"width: 100%"
>
ref=
"multipleTable"
<el-table-column
v-if=
"type === 'customer'"
prop=
"customerName"
label=
"客户名称"
></el-table-column>
: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
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
prop=
"allocateTime"
label=
"分配时间"
show-overflow-tooltip
></el-table-column>
></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
label=
"操作"
width=
"100"
>
<el-table-column
label=
"操作"
width=
"100"
>
<template
slot-scope=
"
scope
"
>
<template
slot-scope=
"
{ row }
">
<el-button
<el-button
v-hasPermi=
"['customerManage:dimission:edit']"
v-hasPermi=
"['customerManage:dimission:edit']"
@
click=
"
@
click=
"
$router.push(
{
$router.push(
{
path: 'customerDetail',
path: 'customerDetail',
query: {
id: scope.row.id
}
query: {
data: JSON.stringify(row)
}
})
})
"
"
type="text"
type="text"
...
...
linkwe-ui/src/views/drainageCode/staff/detail.vue
View file @
132b402
...
@@ -20,8 +20,8 @@ export default {
...
@@ -20,8 +20,8 @@ export default {
form
:
{},
form
:
{},
// 查询参数
// 查询参数
query
:
{
query
:
{
user
Id
:
undefined
,
code
Id
:
undefined
,
addWay
:
undefined
,
//
addWay: undefined,
beginTime
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
endTime
:
undefined
},
},
...
@@ -30,9 +30,12 @@ export default {
...
@@ -30,9 +30,12 @@ export default {
}
}
},
},
created
()
{
created
()
{
let
id
=
this
.
$route
.
query
.
id
let
id
=
(
this
.
query
.
codeId
=
this
.
$route
.
query
.
id
)
id
&&
this
.
getDetail
(
id
)
if
(
id
)
{
// this.getList()
this
.
getDetail
(
id
)
this
.
setTime
(
7
)
this
.
getList
()
}
},
},
mounted
()
{
mounted
()
{
this
.
clipboard
=
new
ClipboardJS
(
'.copy-btn'
)
this
.
clipboard
=
new
ClipboardJS
(
'.copy-btn'
)
...
@@ -57,11 +60,8 @@ export default {
...
@@ -57,11 +60,8 @@ export default {
getDetail
(
id
).
then
(({
data
})
=>
{
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
form
=
data
this
.
form
=
data
this
.
loading
=
false
this
.
loading
=
false
this
.
query
.
userId
=
data
.
weEmpleCodeUseScops
[
0
].
businessId
// this.query.userId = data.weEmpleCodeUseScops[0].businessId
this
.
query
.
addWay
=
1
// this.query.addWay = 1
this
.
setTime
(
7
)
this
.
getList
()
})
})
},
},
/** */
/** */
...
...
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