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 02d06772
authored
Nov 02, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
标签建群修改
1 parent
05b76f73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
57 deletions
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
vue3-lw-pc/src/views/communityOperating/oldCustomer/api.js
vue3-lw-pc/src/views/communityOperating/oldCustomer/statistics.vue
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
View file @
02d0677
...
...
@@ -12,14 +12,7 @@
<div
class=
"g-card"
>
<div
class=
"g-card-title fxbw"
>
群发设置
<el-tag
class=
"cp"
v-if=
"isDetail"
size=
"large"
effect=
"dark"
@
click=
"$router.push(
{ path: './aev', query: { id: $route.query.id } })">
同步
</el-tag>
<el-tag
class=
"cp"
v-if=
"isDetail"
size=
"large"
effect=
"dark"
@
click=
"sync"
>
同步
</el-tag>
</div>
<el-form-item
label=
"任务名称"
prop=
"taskName"
>
...
...
@@ -113,15 +106,14 @@
</template>
<
script
>
import
{
getDetail
,
add
,
update
}
from
'./api'
import
{
getDetail
,
add
,
update
,
sync
}
from
'./api'
import
{
getCustomerList
}
from
'@/api/groupMessage'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
import
PhoneDialog
from
'@/components/PhoneDialog'
export
default
{
components
:
{
PhoneDialog
,
SelectGroup
:
defineAsyncComponent
(()
=>
import
(
'@/components/SelectGroup.vue'
))
},
data
()
{
return
{
taskI
d
:
''
,
i
d
:
''
,
dialogVisibleSelectGroup
:
false
,
loading
:
false
,
...
...
@@ -198,12 +190,8 @@ export default {
},
},
created
()
{
this
.
taskId
=
this
.
$route
.
query
.
id
this
.
taskId
&&
this
.
getDetail
(
this
.
taskId
)
getList
().
then
((
res
)
=>
{
this
.
stageList
=
res
.
data
})
this
.
id
=
this
.
$route
.
query
.
id
this
.
id
&&
this
.
getDetail
(
this
.
id
)
},
methods
:
{
/** 获取详情 */
...
...
@@ -233,15 +221,12 @@ export default {
this
.
loading
=
false
})
},
// 选择tag事件
submitSelectTag
(
tags
)
{
this
.
tags
=
tags
},
// 选择二维码确认按钮
submitSelectQrCode
(
data
)
{
this
.
groupQrCode
=
data
this
.
form
.
groupCodeId
=
data
.
id
this
.
$refs
.
form
.
validateField
(
'groupCodeId'
)
sync
()
{
this
.
loading
=
false
sync
(
this
.
id
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
loading
=
false
})
},
submit
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
...
...
@@ -283,8 +268,8 @@ export default {
})
},
sendData
()
{
if
(
this
.
taskI
d
)
{
update
(
this
.
taskI
d
,
this
.
form
)
if
(
this
.
i
d
)
{
update
(
this
.
i
d
,
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'更新成功'
)
this
.
loading
=
false
...
...
vue3-lw-pc/src/views/communityOperating/oldCustomer/api.js
View file @
02d0677
...
...
@@ -26,7 +26,7 @@ export function getDetail(id) {
}).
then
(({
data
})
=>
{
// 统一处理数据结构
let
ranges
=
data
.
weCustomersQuery
let
ranges
=
data
.
weCustomersQuery
||
{}
let
userNames
=
ranges
.
userNames
?.
split
(
','
)
let
tagNames
=
ranges
.
tagNames
?.
split
(
','
)
Object
.
assign
(
ranges
,
{
...
...
vue3-lw-pc/src/views/communityOperating/oldCustomer/statistics.vue
View file @
02d0677
...
...
@@ -15,9 +15,9 @@
title=
"数据明细"
ref=
"importRecord"
:request=
"getDataDetail"
:requestExport=
"
api.getDataDetailExport
"
:requestExport=
"
(query) => ((query.id = $route.query.id), api.getDataDetailExport(query))
"
exportFileName=
"标签建群数据明细导出.xls"
>
<template
#
query=
"
{ query }">
<template
#
query
Middle
=
"
{ query }">
<el-form-item
label=
""
prop=
"customerName"
>
<el-input
v-model=
"query.customerName"
placeholder=
"请输入客户名称"
></el-input>
</el-form-item>
...
...
@@ -37,20 +37,13 @@
<el-option
v-for=
"(item, index) in dictAddStatus"
:key=
"index"
:label=
"item"
:value=
"index"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
""
>
<el-date-picker
v-model=
"query.dateRangeJoinTime"
value-format=
"YYYY-MM-DD"
type=
"daterange"
v-bind=
"pickerOptions"
range-separator=
"-"
start-placeholder=
"进群开始"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
</el-form-item>
<el-form-item
label=
""
prop=
"chatId"
>
<el-select
v-model=
"query.chatId"
placeholder=
"请选择客群"
>
<el-option
v-for=
"(item, index) in dictAddStatus"
:key=
"index"
:label=
"item"
:value=
"index"
></el-option>
<el-option
v-for=
"(item, index) in groups"
:key=
"index"
:label=
"item.groupName"
:value=
"item.chatId"
></el-option>
</el-select>
</el-form-item>
</
template
>
...
...
@@ -62,11 +55,24 @@
<el-table-column
align=
"center"
prop=
"isJoinGroup"
label=
"是否进群"
>
<template
#
default=
"
{ row }">
{{
dictAddStatus
[
row
.
isJoinGroup
]
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"groupName"
label=
"进入客群"
></el-table-column>
<el-table-column
align=
"center"
prop=
"joinTime"
label=
"进群时间"
></el-table-column>
<el-table-column
align=
"center"
prop=
"groupName"
label=
"进入客群"
>
<
template
#
default=
"{ row }"
>
{{
row
.
groupName
||
'—'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"joinTime"
label=
"进群时间"
>
<
template
#
default=
"{ row }"
>
{{
row
.
joinTime
||
'—'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<el-button
text
@
click=
"gotoRoute(row)"
>
客户详情
</el-button>
<el-button
text
@
click=
"
$router.push(
{
name: lwConfig.CUSTOMER_DETAIL_ROUTE_NAME,
query: { externalUserid: row.externalUserid, userId: row.addUserId },
})
">
客户详情
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -80,35 +86,38 @@ import { useRoute } from 'vue-router'
import
*
as
api
from
'./api'
let
loading
=
ref
(
false
)
let
id
=
useRoute
().
query
.
id
let
cardData
=
ref
([])
let
dictAddStatus
=
{
0
:
'未进群'
,
1
:
'已进群'
}
let
groups
=
[]
// 获取指标数据
;(
function
getStatistic
()
{
loading
.
value
=
true
api
.
getStatistic
(
useRoute
().
query
.
id
)
.
getStatistic
(
id
)
.
then
(({
data
})
=>
{
cardData
.
value
=
[
{
title
:
'送达客户总数'
,
tips
:
'建群任务送达的客户总数(去重)'
,
value
:
data
.
to
talNum
,
value
:
data
.
to
uchWeCustomerNumber
,
},
{
title
:
'进群客户总数'
,
tips
:
'送达客户中成功进群的总数(去重)'
,
value
:
data
.
customerNum
,
value
:
data
.
joinGroupCustomerNumber
,
},
{
title
:
'今日送达客户数'
,
tips
:
'今日建群任务送达的客户数(去重)'
,
// tips: '当日内被员工产生过跟进行为的客户人数(去重)',
value
:
data
.
followNum
,
value
:
data
.
tdTouchWeCustomerNumber
,
},
{
title
:
'今日进群客户数'
,
tips
:
'今日送达客户中成功进群数(去重)'
,
value
:
data
.
conversionRate
,
value
:
data
.
tdJoinGroupCustomerNumber
,
// unit: '%',
},
]
...
...
@@ -125,7 +134,7 @@ function dealDataTrend(data, series, xData) {
let
_data
=
[[],
[]]
data
.
forEach
((
element
)
=>
{
xData
.
push
(
element
.
date
)
_data
[
0
].
push
(
element
.
add
CustomerNumber
)
_data
[
0
].
push
(
element
.
touchWe
CustomerNumber
)
_data
[
1
].
push
(
element
.
joinGroupCustomerNumber
)
})
series
.
push
(...
_data
)
...
...
@@ -153,12 +162,12 @@ function getDataDetail(query) {
return
api
.
getDataDetail
(
query
)
}
function
gotoRoute
(
row
)
{
this
.
$router
.
push
(
{
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
externalUserid
:
row
.
externalUserid
,
userId
:
row
.
addUserId
},
/** 获取详情中客群列表 */
;(
function
getDetail
()
{
api
.
getDetail
(
id
).
then
(({
data
})
=>
{
groups
=
data
.
groups
})
}
}
)()
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
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