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 5136fdb3
authored
Dec 13, 2021
by
wangql
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
515b28f6
6fb70836
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
42 deletions
src/views/home/components/pieChart.vue
src/views/home/index.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/home/components/pieChart.vue
View file @
5136fdb
...
...
@@ -29,7 +29,7 @@ export default {
{
name
:
'券类营销'
,
type
:
'pie'
,
radius
:
'
7
0%'
,
radius
:
'
6
0%'
,
label
:
{
formatter
:
'{b}\n \n{c} 张'
},
...
...
src/views/home/index.vue
View file @
5136fdb
...
...
@@ -34,36 +34,34 @@
<div
class=
"customer-content"
>
<!-- 券类营销 -->
<div
class=
"border coupons"
>
<div
class=
"name"
>
券类营销
</div>
<div
class=
"name"
>
优惠券数据
</div>
<div
class=
"coupons-content"
>
<div
class=
"coupons-left"
>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
优惠券总数
总发放量
<el-popover
placement=
"top-start"
title=
"优惠券总数"
width=
"200"
trigger=
"hover"
content=
"
营销工具中优惠券类配置的所有类型的券总数量
。"
content=
"
配置优惠券的总张数
。"
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
<!--
<img
:src=
"iconUrl"
alt
/>
-->
</span>
<span
class=
"date-content"
>
<span
class=
"data-num"
>
{{
coupon
.
total
Issue
}}
</span>
张
<span
class=
"data-num"
>
{{
coupon
.
total
Stock
?
coupon
.
totalStock
:
'--'
}}
</span>
张
</span>
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
发放总数
领取量
<el-popover
placement=
"top-start"
title=
"发放总数"
width=
"200"
width=
"300"
trigger=
"hover"
content=
"
配置的优惠券中已发放给客户的数量
。"
content=
"
发放给用户且已被领取的优惠券总张数
。"
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
...
...
@@ -75,13 +73,12 @@
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
核销
总数
核销
量
<el-popover
placement=
"top-start"
title=
"核销总数"
width=
"200"
width=
"220"
trigger=
"hover"
content=
"
已发放给客户的券被核销的数量
。"
content=
"
核销用户优惠券的总张数
。"
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
...
...
@@ -114,10 +111,9 @@
参与活动总人数
<el-popover
placement=
"top-start"
title=
"参与活动总人数"
width=
"200"
width=
"270"
trigger=
"hover"
content=
"
购买活动商品的账号数量
。"
content=
"
参与活动且购买活动商品的总人数
。"
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
...
...
@@ -132,10 +128,9 @@
浏览量
<el-popover
placement=
"top-start"
title=
"浏览量"
width=
"200"
width=
"255"
trigger=
"hover"
content=
"
进入活动页面但未购买商品的账号数量+购买活动商品的账号数量
。"
content=
"
用户进入活动页面的总浏览次数
。"
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
...
...
@@ -147,13 +142,12 @@
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-118"
>
累计销
量
累计销
售额
<el-popover
placement=
"top-start"
title=
"累计销量"
width=
"200"
width=
"240"
trigger=
"hover"
content=
"
购买活动商品付款金额的累加
。"
content=
"
用户购买活动商品的总销售额
。"
>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
...
...
@@ -214,7 +208,7 @@
</div>
<div
class=
"bar-box"
>
<BarChart
:list
.
sync=
"equity.countMerchantOrderList"
></BarChart>
<div
class=
"no-data"
v-
if
=
"!equity.countMerchantOrderList"
>
暂无数据
</div>
<div
class=
"no-data"
v-
show
=
"!equity.countMerchantOrderList"
>
暂无数据
</div>
</div>
<div>
...
...
@@ -342,7 +336,7 @@ export default {
title
:
'商品销售'
,
content
:
'商品管理可对门店创建的商品进行自主上下架,管理商品的销售订单。'
,
linkName
:
'上架商品'
,
path
:
'/product
Group
/index'
path
:
'/product
Store
/index'
}
],
date
:
[],
...
...
@@ -434,11 +428,16 @@ export default {
})
},
equityStatistical
()
{
this
.
$apis
.
home
.
equityStatistical
({}).
then
(
res
=>
{
this
.
equity
=
res
this
.
equity
.
weekFlag
=
this
.
equity
.
lastWeekDayMemberShipCompared
.
indexOf
(
'-'
)
==
-
1
this
.
equity
.
dayFlag
=
this
.
equity
.
yesterdayMembershipSequential
.
indexOf
(
'-'
)
==
-
1
})
this
.
$apis
.
home
.
equityStatistical
({})
.
then
(
res
=>
{
this
.
equity
=
res
this
.
equity
.
weekFlag
=
this
.
equity
.
lastWeekDayMemberShipCompared
.
indexOf
(
'-'
)
==
-
1
this
.
equity
.
dayFlag
=
this
.
equity
.
yesterdayMembershipSequential
.
indexOf
(
'-'
)
==
-
1
})
.
catch
(
err
=>
{
this
.
equity
.
countMerchantOrderList
=
''
})
},
merchantStatistical
()
{
this
.
$apis
.
home
.
merchantStatistical
({}).
then
(
res
=>
{
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
5136fdb
...
...
@@ -150,12 +150,8 @@ export default {
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
}
// if (this.id) {
this
.
getSetmealServiceFun
()
//获取服务套餐,执行完了之后去获取编辑详情
// }else{
// this.getSetmealServiceFun()
// }
this
.
getSetmealServiceFun
()
//获取服务套餐,执行完了之后去获取编辑详情
},
watch
:
{
// allItemList: {
...
...
@@ -243,7 +239,7 @@ export default {
},
//删除该条服务套餐(让item.serviceQuantity==0)
closeChoseItemFun
(
item
,
index
)
{
this
.
totalPrice
=
this
.
totalPrice
-
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
(
this
.
totalPrice
*
100
-
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
// item.serviceQuantity = 0
// this.allItemList.forEach(ele => {
// if (ele.id == item.serviceId) {
...
...
@@ -259,7 +255,7 @@ export default {
this
.
allItemList
.
forEach
(
item
=>
{
if
(
item
.
serviceQuantity
)
{
this
.
selectNum
++
this
.
totalPrice
+=
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
}
})
},
...
...
@@ -307,8 +303,7 @@ export default {
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
// this.$router.go(-1)
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
}
})
}
else
{
...
...
@@ -351,8 +346,10 @@ export default {
},
goBack
()
{
// this.$router.go(-1)
if
(
JSON
.
stringify
(
this
.
ruleForm
)
==
JSON
.
stringify
(
this
.
copyRuleForm
)
&&
this
.
choseItemList
.
length
==
this
.
copyChoseItemList
.
length
&&
this
.
totalPrice
==
this
.
copyTotalPrice
)
{
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
// this.$router.go(-1)
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
}
else
{
this
.
isTipDialogVisible
=
true
}
...
...
@@ -409,7 +406,7 @@ export default {
this
.
setmealDialogVisible
=
false
this
.
totalPrice
=
0
this
.
choseItemList
.
forEach
(
item
=>
{
this
.
totalPrice
+=
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
})
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
...
...
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