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 ebe32071
authored
Dec 06, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
3a494146
75af7887
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
34 deletions
src/api/modules/customerTransform.js
src/views/customerTransform/components/welcomeWords.vue
src/views/customerTransform/detaiCustomeGroup.vue
src/views/customerTransform/detailCustomer.vue
src/views/customerTransform/index.vue
src/views/home/components/barChart.vue
src/views/home/index.vue
src/api/modules/customerTransform.js
View file @
ebe3207
...
...
@@ -144,7 +144,7 @@ const groupDetailList = params => {
})
}
//
详情页客户群提醒
//
根据id提醒用户 ,列表
const
listRemindOperate
=
params
=>
{
params
.
method
=
`
${
path
}
listRemindOperate`
return
http
({
...
...
@@ -154,7 +154,7 @@ const listRemindOperate = params => {
sign
:
true
})
}
//
根据id提醒用户
//
详情页客户群提醒
const
remindUserGroup
=
params
=>
{
params
.
method
=
`
${
path
}
remindUserGroup`
return
http
({
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
ebe3207
...
...
@@ -28,25 +28,26 @@
style=
"-webkit-user-modify: read-write-plaintext-only !important;"
placeholder=
"请输入内容"
></el-input>
-->
<div
v-for=
"
itm
in previewList"
:key=
"itm.id"
>
<div
v-for=
"
(itm, index)
in previewList"
:key=
"itm.id"
>
<div
class=
"welcome-file"
v-if=
"itm.attType != 1"
>
<template
v-if=
"itm.attType == 2"
>
<img
src=
"@/assets/guestCustom/icon-img.png"
alt
/>
<span>
{{
itm
.
attContent
}}
</span>
<i
v-show=
"index == (previewList.length -1) && loading"
class=
"el-icon-loading"
></i>
<img
v-show=
"!loading"
src=
"@/assets/guestCustom/icon-img.png"
alt
/>
<span
:title=
"itm.attContent"
>
{{
itm
.
attContent
}}
</span>
</
template
>
<
template
v-else-if=
"itm.attType == 3"
>
<img
src=
"@/assets/guestCustom/icon-img.png"
alt
/>
<span>
{{
itm
.
attContent
}}
</span>
<span
:title=
"itm.attContent"
>
{{
itm
.
attContent
}}
</span>
</
template
>
<
template
v-else-if=
"itm.attType == 7"
>
<img
src=
"@/assets/guestCustom/icon-applet.png"
alt
/>
<span>
{{
itm
.
attContent
.
marketingName
}}
</span>
<span
:title=
"itm.attContent.marketingName"
>
{{
itm
.
attContent
.
marketingName
}}
</span>
</
template
>
<
template
v-else-if=
"itm.attType == 5"
>
<img
src=
"@/assets/guestCustom/icon-applet.png"
alt
/>
<span>
{{
itm
.
attContent
.
title
}}
</span>
<span
:title=
"itm.attContent.title"
>
{{
itm
.
attContent
.
title
}}
</span>
</
template
>
<i
class=
"el-icon-circle-close"
@
click=
"close(index)"
></i>
<i
class=
"el-icon-circle-close"
style=
"cursor: pointer;"
@
click=
"close(index)"
></i>
</div>
</div>
<div
class=
"btn-group"
>
...
...
@@ -60,7 +61,7 @@
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input"
class=
"welcome-input
upload-img
"
:accept=
"item.accept || 'image/png, image/jpeg, image/jpg'"
@
change=
"e => handleImgChange(e, item)"
/>
...
...
@@ -109,6 +110,7 @@ export default {
props
:
{
eventBus
:
Object
},
data
()
{
return
{
loading
:
false
,
btnList
:
[
// {
// id: 1,
...
...
@@ -175,7 +177,13 @@ export default {
this
.
$message
.
error
(
'上传图片大小不能超过'
+
limitSize
+
'MB!'
)
return
true
}
this
.
loading
=
true
reader
.
readAsDataURL
(
file
)
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
IMAGE
,
attContent
:
''
})
reader
.
onload
=
e
=>
{
var
image
=
new
Image
()
image
.
src
=
e
.
target
.
result
...
...
@@ -185,12 +193,14 @@ export default {
const
base64
=
file
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
if
(
res
)
{
console
.
log
(
res
)
this
.
previewList
.
push
({
attType
:
ATT_TYPE
.
IMAGE
,
attContent
:
res
})
let
len
=
this
.
previewList
.
length
-
1
this
.
previewList
[
len
].
attContent
=
res
document
.
querySelector
(
'.upload-img'
).
value
=
''
}
else
{
let
len
=
this
.
previewList
.
length
-
1
this
.
previewList
.
splice
(
len
,
1
)
}
this
.
loading
=
false
})
}
}
...
...
@@ -217,6 +227,7 @@ export default {
attType
:
ATT_TYPE
.
VEDIO
,
attContent
:
res
})
document
.
querySelector
(
'.upload-img'
).
value
=
''
}
})
}
...
...
@@ -350,6 +361,9 @@ export default {
i
{
font-size
:
16px
;
}
.el-icon-loading
{
font-size
:
24px
;
}
&
:last-child
{
margin-bottom
:
0
;
}
...
...
@@ -366,6 +380,7 @@ export default {
font-size
:
16px
;
color
:
#666
;
cursor
:
pointer
;
span
{
font-size
:
14px
;
margin-left
:
5px
;
...
...
@@ -374,10 +389,13 @@ export default {
position
:
absolute
;
width
:
100%
;
cursor
:
pointer
;
font-size
:
0
;
height
:
40px
;
}
img
{
width
:
16px
;
height
:
16px
;
cursor
:
pointer
;
}
.el-link
{
position
:
absolute
;
...
...
src/views/customerTransform/detaiCustomeGroup.vue
View file @
ebe3207
...
...
@@ -111,11 +111,11 @@ export default {
},
{
label
:
'群主所在部门'
,
prop
:
'
zone
Name'
prop
:
'
department
Name'
},
{
label
:
'群客户人数'
,
prop
:
'
departmentName
'
prop
:
'
customerCount
'
},
{
label
:
'消息送达状态'
,
...
...
@@ -163,7 +163,7 @@ export default {
},
remind
(
data
)
{
this
.
$apis
.
customerTransform
.
listRemindOperate
({
.
remindUserGroup
({
id
:
data
.
id
,
type
:
2
})
...
...
src/views/customerTransform/detailCustomer.vue
View file @
ebe3207
...
...
@@ -35,8 +35,9 @@
<div
class=
"info-num"
>
共
{{
item
.
customerCount
?
item
.
customerCount
:
0
}}
个客户
</div>
</div>
<div
class=
"info-right"
>
<div
v-if=
"item.remindStatus == 1"
>
已提醒
</div>
<div
v-if=
"item.
status != 0 || item.
remindStatus == 1"
>
已提醒
</div>
<el-button
v-if=
"item.status == 0"
:disabled=
"item.remindStatus == 1"
size=
"mini"
type=
"primary"
...
...
@@ -144,7 +145,7 @@ export default {
remind
(
data
,
index
)
{
if
(
!
data
.
remindStatus
)
{
this
.
$apis
.
customerTransform
.
listRemindOperate
({
.
remindUserGroup
({
id
:
data
.
id
,
type
:
1
})
...
...
@@ -164,14 +165,14 @@ export default {
this
.
basicInfo
=
res
})
},
getStaffList
(
status
=
0
)
{
getStaffList
(
status
=
null
)
{
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
staffList
({
id
,
status
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
employeelist
=
res
?
res
:
[]
})
},
getCustomerList
(
status
=
0
)
{
getCustomerList
(
status
=
null
)
{
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
customerDetailList
({
id
,
status
}).
then
(
res
=>
{
console
.
log
(
res
)
...
...
@@ -318,4 +319,15 @@ export default {
box-sizing
:
border-box
;
padding
:
40px
0
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
}
</
style
>
src/views/customerTransform/index.vue
View file @
ebe3207
...
...
@@ -35,7 +35,7 @@
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
:disabled=
"scope.scope.
isRemind == 1
"
:disabled=
"scope.scope.
unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1)
"
@
click=
"btnClick('remind', 1, scope.scope)"
>
提醒发送
</el-button>
<el-button
type=
"text"
@
click=
"btnClick('detail', 1, scope.scope)"
>
详情
</el-button>
...
...
@@ -66,7 +66,7 @@
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
:disabled=
"scope.scope.
isRemind == 1
"
:disabled=
"scope.scope.
unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1)
"
@
click=
"btnClick('remind', 2, scope.scope)"
>
提醒发送
</el-button>
<el-button
type=
"text"
@
click=
"btnClick('detail', 2, scope.scope)"
>
详情
</el-button>
...
...
@@ -249,7 +249,7 @@ export default {
type
}
// if (type == 1) {
this
.
$apis
.
customerTransform
.
remindUserGroup
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
listRemindOperate
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$message
({
type
:
'success'
,
...
...
src/views/home/components/barChart.vue
View file @
ebe3207
...
...
@@ -67,12 +67,14 @@ export default {
},
watch
:
{
list
(
val
)
{
const
yData
=
val
.
map
(
i
=>
i
.
packageName
)
const
data
=
val
.
map
(
i
=>
i
.
totalSales
)
this
.
option
.
yAxis
.
data
=
yData
this
.
option
.
series
[
0
].
data
=
data
console
.
log
(
this
.
option
)
this
.
option
&&
this
.
myChart
.
setOption
(
this
.
option
)
if
(
val
)
{
const
yData
=
val
.
map
(
i
=>
i
.
packageName
)
const
data
=
val
.
map
(
i
=>
i
.
totalSales
)
this
.
option
.
yAxis
.
data
=
yData
this
.
option
.
series
[
0
].
data
=
data
console
.
log
(
this
.
option
)
this
.
option
&&
this
.
myChart
.
setOption
(
this
.
option
)
}
}
},
methods
:
{
...
...
src/views/home/index.vue
View file @
ebe3207
...
...
@@ -19,6 +19,7 @@
<div
class=
"marketing-content"
>
{{
item
.
content
}}
</div>
<div
class=
"marketing-btn"
>
<el-button
style=
"width: 118px;"
:disabled=
"!$globalState.routers.find(i => i.compath == item.path)"
type=
"primary"
size=
"small"
...
...
@@ -74,7 +75,7 @@
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
核销
率
核销
总数
<el-popover
placement=
"top-start"
title=
"核销总数"
...
...
@@ -91,7 +92,7 @@
</span>
</div>
<div
class=
"data-last"
>
<span
class=
"data-name"
>
核销
总数
</span>
<span
class=
"data-name"
>
核销
率
</span>
<span
class=
"data-percentage"
>
{{
coupon
.
verificationRate
}}
</span>
</div>
</div>
...
...
@@ -321,7 +322,7 @@ export default {
title
:
'商品销售'
,
content
:
'管理上下架门店自有的商品,可配置带货商品活动商品销售分润。'
,
linkName
:
'上架商品'
,
path
:
'/
homeSet
/index'
path
:
'/
productGroup
/index'
}
],
date
:
[],
...
...
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