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 6aca036e
authored
Dec 09, 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
9e02e7ad
3dbf2410
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
156 additions
and
50 deletions
src/api/modules/customerTransform.js
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/activityModel.vue
src/views/customerTransform/components/selectMembers.vue
src/views/customerTransform/detaiCustomeGroup.vue
src/views/home/components/barChart.vue
src/views/home/components/lineChart.vue
src/views/home/index.vue
src/api/modules/customerTransform.js
View file @
6aca036
...
...
@@ -182,6 +182,24 @@ const getCard = params => {
sign
:
true
})
}
const
getCoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
return
http
({
url
:
'/rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getPackage
=
params
=>
{
params
.
method
=
'scrm.api.equity.package.info.list.with.page'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
customerList
,
customerGroupList
,
...
...
@@ -200,5 +218,7 @@ export default {
customerDetailList
,
groupDetailList
,
getMerchant
,
getCard
getCard
,
getCoupon
,
getPackage
}
src/views/customerTransform/addCustomerGroup.vue
View file @
6aca036
...
...
@@ -181,7 +181,9 @@ export default {
},
timeOptions
:
{
selectableRange
:
'00:00:00 - 23:59:59'
}
},
footerLeft
:
0
,
footerWidth
:
0
}
},
mounted
()
{
...
...
src/views/customerTransform/components/activityModel.vue
View file @
6aca036
...
...
@@ -5,8 +5,10 @@
<div
class=
"model-panel-tab"
>
<label>
活动类型:
</label>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
type=
"card"
>
<el-tab-pane
label=
"券营销"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"权益卡"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"精品券"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"商城券"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"权益卡试用"
name=
"3"
></el-tab-pane>
<el-tab-pane
label=
"权益套餐"
name=
"4"
></el-tab-pane>
</el-tabs>
</div>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
...
...
@@ -17,36 +19,71 @@
:key="index"
@click="handleSelectItem(item)"
>
<div
class=
"model-item-title"
v-show=
"activeName == 2"
>
{{
item
.
cardClassName
}}
</div>
<div
class=
"model-item-title"
v-show=
"activeName == 1"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
数量:
{{
item
.
residueAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
价格:
{{
item
.
price
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveNum
}}
天
</div>
class=
"model-item-title"
:title=
"item.cardClassName"
v-show=
"activeName == 3"
>
{{
item
.
cardClassName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
v-show=
"activeName == 2"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.cardClassName"
v-show=
"activeName == 1"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.packageName"
v-show=
"activeName == 4"
>
{{
item
.
packageName
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1 || activeName == 4"
></div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
剩余数量:
{{
item
.
residueAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
剩余数量:
{{
item
.
remainAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
价格:
{{
item
.
price
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
价格:
{{
item
.
packagePrice
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 1"
>
有效期:
{{
item
.
effectiveDays
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 3"
>
有效期:无限制
</div>
<div
class=
"model-item-content"
v-show=
"activeName ==
1
&& item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveStartTime
}}
~
{{
item
.
effectiveEndTime
}}
</div>
v-show=
"activeName ==
2
&& item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveStartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName ==
1 && item.effectiveType == 1
"
>
有效期:
{{
item
.
effective
Days
}}
天
</div>
v-show=
"activeName ==
3 && item.effectiveType == 3
"
>
有效期:
{{
item
.
effective
StartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName ==
1 && item.effectiveType == 3
"
v-show=
"activeName ==
3 && item.effectiveType == 1
"
>
有效期:无限制
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
类型:
{{
item
.
discountType
==
1
?
'满减劵'
:
item
.
discountType
==
2
?
'折扣券'
:
item
.
discountType
==
3
?
'代金券'
:
item
.
discountType
==
4
?
'实物券'
:
item
.
discountType
==
5
?
'购车代金券'
:
item
.
discountType
==
6
?
'商品折扣券'
:
item
.
discountType
==
7
?
'会员服务'
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
类型:权益卡
</div>
v-show=
"activeName == 3 && item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveNum
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
类型:
<span>
{{
item
.
discountType
==
2
?
'折扣券'
:
item
.
discountType
==
3
?
'代金券'
:
item
.
discountType
==
4
?
'兑换券'
:
''
}}
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
类型:
<span>
精品券
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
类型:
<span>
权益卡
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
类型:
<span>
权益套餐
</span>
</div>
</div>
</div>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
...
...
@@ -57,7 +94,7 @@
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pageNum"
:page-sizes=
"[1
0, 20, 30, 40
]"
:page-sizes=
"[1
2, 24, 36, 48
]"
:page-size=
"pageSize"
:total=
"tableTotal"
layout=
"total, sizes, prev, pager, next, jumper"
...
...
@@ -81,7 +118,7 @@ export default {
activeName
:
'1'
,
modelList
:
[],
pageNum
:
1
,
pageSize
:
1
0
,
pageSize
:
1
2
,
tableTotal
:
0
,
selectItem
:
{}
}
...
...
@@ -99,7 +136,7 @@ export default {
return
}
this
.
dialogVisible
=
false
this
.
$emit
(
'selectActivity'
,
{
marketingId
:
this
.
selectItem
.
id
,
marketingType
:
this
.
activeName
==
1
?
2
:
3
,
marketingName
:
this
.
activeName
==
2
?
this
.
selectItem
.
cardClass
Name
:
this
.
selectItem
.
couponName
})
this
.
$emit
(
'selectActivity'
,
{
marketingId
:
this
.
selectItem
.
id
,
marketingType
:
this
.
activeName
,
marketingName
:
this
.
activeName
==
3
?
this
.
selectItem
.
cardClassName
:
this
.
activeName
==
4
?
this
.
selectItem
.
package
Name
:
this
.
selectItem
.
couponName
})
},
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
...
...
@@ -115,16 +152,29 @@ export default {
let
market
=
''
switch
(
this
.
activeName
)
{
case
'1'
:
market
=
'get
Merchant
'
market
=
'get
Coupon
'
break
case
'2'
:
market
=
'getMerchant'
break
case
'3'
:
market
=
'getCard'
break
case
'4'
:
market
=
'getPackage'
break
}
let
params
=
{
pageSize
:
this
.
pageSize
,
pageNum
:
this
.
pageNum
}
if
(
this
.
activeName
==
3
)
{
params
.
tryAble
=
1
params
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
}
if
(
this
.
activeName
==
2
)
{
params
.
discountTypes
=
[
2
,
3
,
4
]
}
this
.
$apis
.
customerTransform
[
market
](
params
).
then
(
res
=>
{
this
.
modelList
=
res
.
list
?
res
.
list
:
res
.
data
this
.
tableTotal
=
res
.
total
...
...
@@ -178,6 +228,7 @@ export default {
.el-tabs__item.is-active
{
background-color
:
#fff
;
border-radius
:
4px
;
font-weight
:
600
;
}
}
}
...
...
@@ -201,8 +252,10 @@ export default {
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
25%
);
grid-row-gap
:
10px
;
height
:
40vh
;
height
:
38vh
;
padding
:
10px
;
overflow
:
auto
;
text-align
:
center
;
.model-item
{
position
:
relative
;
height
:
128px
;
...
...
@@ -245,6 +298,9 @@ export default {
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
span
{
color
:
#5850ff
;
}
}
}
}
...
...
src/views/customerTransform/components/selectMembers.vue
View file @
6aca036
...
...
@@ -4,13 +4,16 @@
<el-form-item
label=
"请选择成员"
>
<div
class=
"sale-select"
>
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"foucusTagInput"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
{{
tag
.
staffName
}}
</el-tag>
<div
class=
"tag-box"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
{{
tag
.
staffName
}}
</el-tag>
</div>
<el-input
size=
"small"
v-model
.
trim=
"newTag"
...
...
@@ -158,6 +161,10 @@ export default {
}
}
}
.tag-box
{
max-height
:
66px
;
overflow
:
auto
;
}
.input-tag-wrapper
{
position
:
relative
;
font-size
:
14px
;
...
...
@@ -169,7 +176,7 @@ export default {
color
:
#606266
;
display
:
inline-block
;
outline
:
none
;
padding
:
0
10px
0
5px
;
padding
:
0
0
0
5px
;
flex-wrap
:
wrap
;
line-height
:
32px
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
...
...
@@ -214,4 +221,15 @@ export default {
height
:
32px
;
line-height
:
32px
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
}
</
style
>
src/views/customerTransform/detaiCustomeGroup.vue
View file @
6aca036
...
...
@@ -145,7 +145,9 @@ export default {
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
getListApi
:
this
.
$apis
.
customerTransform
.
groupDetailList
getListApi
:
this
.
$apis
.
customerTransform
.
groupDetailList
,
footerLeft
:
0
,
footerWidth
:
0
}
},
mounted
()
{
...
...
src/views/home/components/barChart.vue
View file @
6aca036
...
...
@@ -14,12 +14,18 @@ export default {
myChart
:
{},
option
:
{
xAxis
:
{
max
:
'dataMax'
max
:
'dataMax'
,
splitLine
:
{
show
:
false
}
},
yAxis
:
{
type
:
'category'
,
data
:
[],
inverse
:
true
,
splitLine
:
{
show
:
false
},
animationDuration
:
300
,
animationDurationUpdate
:
300
,
max
:
4
// only the largest 3 bars will be displayed
...
...
@@ -98,9 +104,9 @@ export default {
<
style
lang=
"scss"
scoped
>
.chart-box
{
width
:
100%
;
height
:
2
07
px
;
height
:
2
40
px
;
}
.chart-bar
{
height
:
2
07
px
;
height
:
2
40
px
;
}
</
style
>
src/views/home/components/lineChart.vue
View file @
6aca036
...
...
@@ -44,9 +44,9 @@ export default {
// },
grid
:
{
x
:
80
,
y
:
5
0
,
x2
:
5
0
,
y2
:
5
0
y
:
2
0
,
x2
:
3
0
,
y2
:
4
0
},
series
:
[
{
...
...
@@ -87,10 +87,10 @@ export default {
<
style
lang=
"scss"
scoped
>
.chart-box
{
height
:
260
px
;
height
:
196
px
;
width
:
100%
;
}
.chart-line
{
height
:
260
px
;
height
:
196
px
;
}
</
style
>
src/views/home/index.vue
View file @
6aca036
...
...
@@ -440,6 +440,9 @@ export default {
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
.orange
{
color
:
#fe9c1c
;
}
.data
{
&-item
{
display
:
flex
;
...
...
@@ -525,9 +528,6 @@ export default {
border-style
:
solid
dashed
dashed
dashed
;
border-color
:
#2cca74
transparent
transparent
transparent
;
}
.orange
{
color
:
#fe9c1c
;
}
}
.marketing-home
{
.title
{
...
...
@@ -645,8 +645,8 @@ export default {
justify-content
:
space-between
;
font-size
:
14px
;
color
:
#666
;
margin-top
:
2
7
px
;
margin-bottom
:
0
;
margin-top
:
2
0
px
;
margin-bottom
:
18px
;
.sold-num
{
font-size
:
22px
;
color
:
#333
;
...
...
@@ -678,12 +678,14 @@ export default {
display
:
flex
;
}
&
-right
{
margin-top
:
10px
;
width
:
240px
;
&-item
{
font-size
:
16px
;
color
:
#333
;
margin-bottom
:
21px
;
&:last-child
{
margin-top
:
50px
;
margin-bottom
:
0
;
}
.item-content
{
...
...
@@ -741,13 +743,13 @@ export default {
}
.line-box
{
position
:
relative
;
height
:
260
px
;
width
:
77%
;
height
:
196
px
;
width
:
7
6.
7%
;
}
.bar-box
{
position
:
relative
;
width
:
100%
;
height
:
2
07
px
;
height
:
2
40
px
;
}
.pie-box
{
position
:
relative
;
...
...
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