Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 f307dad5
authored
Nov 24, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交群发
1 parent
096837e8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
50 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/detailCustomer.vue
src/views/customerTransform/index.vue
src/views/home/index.vue
src/views/customerTransform/addCustomer.vue
View file @
f307dad
...
...
@@ -148,7 +148,7 @@
v-model=
"basicForm.sendTime"
size=
"small"
type=
"date"
value-format=
"yyyy-MM-
DD
"
value-format=
"yyyy-MM-
dd
"
placeholder=
"选择日期"
></el-date-picker>
-
<el-time-picker
...
...
@@ -343,7 +343,7 @@ export default {
// }
// })
if
(
params
.
sendType
==
2
)
{
params
.
sendTime
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
params
.
sendTime
Str
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
console
.
log
(
params
)
this
.
$apis
.
customerTransform
...
...
@@ -432,31 +432,10 @@ export default {
return
}
const
params
=
this
.
getSiftMembers
()
// const params = {
// selectType: this.basicForm.selectType,
// condition: {
// sex: this.basicForm.condition.sex,
// chatId: this.basicForm.condition.chatId
// }
// }
// if (this.basicForm.condition.date) {
// params.condition.startTime = dayjs(this.basicForm.condition.date[0]).format('YYYY-MM-DD')
// params.condition.endTime = dayjs(this.basicForm.condition.date[1]).format('YYYY-MM-DD')
// }
// params.userList = this.basicForm.userList.map(item => {
// return {
// staffId: item.staffId,
// staffName: item.staffName
// }
// })
console
.
log
(
params
)
this
.
$apis
.
customerTransform
.
customerCount
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
groupNumber
=
res
}
else
{
this
.
groupNumber
=
'-'
}
this
.
groupNumber
=
res
this
.
isUpdate
=
false
})
}
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
f307dad
...
...
@@ -50,7 +50,7 @@
v-model=
"basicForm.sendTime"
size=
"small"
type=
"date"
value-format=
"yyyy-MM-
DD
"
value-format=
"yyyy-MM-
dd
"
placeholder=
"选择日期"
></el-date-picker>
-
<el-time-picker
...
...
@@ -222,7 +222,7 @@ export default {
}
})
if
(
params
.
sendType
==
2
)
{
params
.
sendTime
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
params
.
sendTime
Str
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
console
.
log
(
params
)
this
.
$apis
.
customerTransform
...
...
src/views/customerTransform/detailCustomer.vue
View file @
f307dad
...
...
@@ -11,10 +11,10 @@
mode=
"horizontal"
@
select=
"handleSelect"
>
<el-menu-item
index
=
"0"
>
全部
</el-menu-item>
<el-menu-item
index
>
全部
</el-menu-item>
<el-menu-item
index=
"1"
>
已发送员工
</el-menu-item>
<el-menu-item
index=
"
2
"
>
未发送员工
</el-menu-item>
<el-menu-item
index=
"
3
"
>
员工发送失败
</el-menu-item>
<el-menu-item
index=
"
0
"
>
未发送员工
</el-menu-item>
<el-menu-item
index=
"
2
"
>
员工发送失败
</el-menu-item>
</el-menu>
<div
class=
"detail-total"
>
共
{{
employeelist
.
length
||
0
}}
人
</div>
<div
v-if=
"employeelist.length != 0"
class=
"info-list"
>
...
...
@@ -25,8 +25,8 @@
<div
class=
"info-name"
>
{{
item
.
staffName
}}
<span
:class=
"[item.status ==
1
? 'unsend' : 'send']"
>
{{
item
.
status
==
1
?
'未'
:
'已'
}}
发送
</span>
:class=
"[item.status ==
0
? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未'
:
'已'
}}
发送
</span>
</div>
<div
class=
"info-num"
>
共
{{
item
.
customerCount
}}
个客户
</div>
</div>
...
...
@@ -54,10 +54,10 @@
mode=
"horizontal"
@
select=
"handleCustomSelect"
>
<el-menu-item
index
=
"0"
>
全部
</el-menu-item>
<el-menu-item
index
>
全部
</el-menu-item>
<el-menu-item
index=
"1"
>
已发送客户
</el-menu-item>
<el-menu-item
index=
"
2
"
>
未发送客户
</el-menu-item>
<el-menu-item
index=
"
3
"
>
客户接受失败
</el-menu-item>
<el-menu-item
index=
"
0
"
>
未发送客户
</el-menu-item>
<el-menu-item
index=
"
2
"
>
客户接受失败
</el-menu-item>
</el-menu>
<div
class=
"detail-total"
>
共
{{
customerlist
.
length
||
0
}}
人
</div>
<div
v-if=
"customerlist.length != 0"
class=
"info-list"
>
...
...
@@ -69,7 +69,7 @@
{{
item
.
customerName
}}
<div
:class=
"[item.status == 0 ? 'unsend' : 'send']"
>
{{
item
.
status
==
0
?
'未'
:
'已'
}}
发送
</div>
>
{{
item
.
status
==
0
?
'未'
:
'已'
}}
送达
</div>
</div>
</div>
<div
class=
"info-right"
>
...
...
@@ -104,8 +104,8 @@ export default {
},
data
()
{
return
{
activeIndex
:
'
0
'
,
customIndex
:
'
0
'
,
activeIndex
:
''
,
customIndex
:
''
,
employeelist
:
[],
customerlist
:
[],
basicInfo
:
{},
...
...
@@ -159,14 +159,14 @@ export default {
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
staffList
({
id
,
status
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
employeelist
=
res
this
.
employeelist
=
res
?
res
:
[]
})
},
getCustomerList
(
status
=
0
)
{
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
customerDetailList
({
id
,
status
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
customerlist
=
res
this
.
customerlist
=
res
?
res
:
[]
})
},
remindUserGroup
()
{
...
...
src/views/customerTransform/index.vue
View file @
f307dad
...
...
@@ -77,6 +77,7 @@
</div>
</
template
>
<
script
>
import
*
as
dayjs
from
'dayjs'
export
default
{
name
:
'SendAssistant'
,
data
()
{
...
...
@@ -113,7 +114,14 @@ export default {
{
label
:
'发送时间'
,
prop
:
'sendTime'
,
line
:
2
line
:
2
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
sendTime
)
{
return
dayjs
(
cellValue
.
sendTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
else
{
return
''
}
}
},
{
label
:
'已发送员工'
,
...
...
src/views/home/index.vue
View file @
f307dad
<
template
>
<div
class=
"report-home"
>
HOME
<GLButton
type=
"danger"
@
click=
"test()"
class=
"test555"
id=
"1-1-1-1"
mode=
"link"
>
权限按钮测试
</GLButton>
<GLButton
type=
"success"
size=
"small"
@
click=
"test()"
id=
"1-1-1-1"
class=
"test"
>
权限按钮测试2
</GLButton>
<el-button
class=
"test"
@
click=
"test()"
>
东方网分
</el-button>
<div
class=
"marketing-home"
>
<div
class=
"title"
>
营销效果概览页
<span
class=
"title-tips"
>
根据门店日常的营销运营情况,可查看优惠券、秒杀活动营销,微店以及会员类的数据效果。
</span>
</div>
<div
class=
"home-top"
>
<!-- 概览+客户分群 -->
<div
class=
"home-left"
>
<div
class=
"marketing"
>
<div
class=
"marketing-item border"
v-for=
"(item, index) in list"
:key=
"index"
>
<div
class=
"marketing-title"
>
<div>
{{
item
.
title
}}
<img
class=
"marketing-icon"
src=
"@/assets/edit.png"
alt
/>
</div>
<img
class=
"marketing-img"
src=
"@/assets/memberCard.png"
alt
/>
</div>
<div
class=
"marketing-content"
>
{{
item
.
content
}}
</div>
<div
class=
"marketing-btn"
>
<el-button
type=
"primary"
size=
"small"
>
{{
item
.
linkName
}}
</el-button>
</div>
</div>
</div>
<!-- 客户分群 -->
<div>
<div
class=
"title"
>
客户分群
</div>
<div>
<!-- 券类营销 -->
<div></div>
<!-- 秒杀活动 -->
<div></div>
</div>
</div>
</div>
<!-- 会员数据 -->
<div
class=
"home-right"
></div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'home'
,
methods
:
{
test
()
{
console
.
log
(
'点击了按钮'
)
this
.
$messenger
.
send
({
message
:
{
from
:
11
,
message
:
'11111'
}
})
data
()
{
return
{
list
:
[
{
title
:
'日常关怀'
,
content
:
'可把通知、祝福、活动等消息批量发送给客户,员工可对客户进行后续的服务。'
,
linkName
:
'群发关怀信息'
},
{
title
:
'活动促销'
,
content
:
'门店做营销活动时,可通过优惠卡券、门店商品秒杀的形式配置活动内容。'
,
linkName
:
'设置营销活动'
},
{
title
:
'商品销售'
,
content
:
'管理上下架门店自有的商品,可配置带货商品活动商品销售分润。'
,
linkName
:
'上架商品'
}
]
}
}
},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scope
>
.border
{
padding
:
20px
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
.marketing-home
{
.title
{
font-size
:
20px
;
font-weight
:
500
;
color
:
#333
;
line-height
:
20px
;
vertical-align
:
middle
;
margin-bottom
:
20px
;
.title-tips
{
margin-left
:
10px
;
color
:
#565656
;
font-size
:
14px
;
}
}
.home-top
{
display
:
flex
;
background-color
:
#ccc
;
.home-left
{
//
display
:
flex
;
.marketing
{
display
:
flex
;
&-item
{
width
:
275px
;
box-sizing
:
border-box
;
margin-right
:
20px
;
&:last-child
{
margin-right
:
0
;
}
}
&
-title
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
20px
;
color
:
#333
;
margin-bottom
:
15px
;
}
&
-icon
{
width
:
16px
;
height
:
16px
;
margin-left
:
10px
;
}
&
-img
{
width
:
101px
;
height
:
57px
;
}
&
-content
{
font-size
:
14px
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
20px
;
margin-bottom
:
20px
;
}
&
-btn
{
text-align
:
center
;
margin-bottom
:
10px
;
}
}
}
.home-right
{
flex
:
1
;
//
width
:
275px
;
height
:
540px
;
background-color
:
#fff
;
}
}
}
</
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