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