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