Commit 826224c3 by 杨北旺

删掉无关东西,只保留售前权益

1 parent dd19df97
Showing 60 changed files with 1 additions and 4029 deletions
import { http } from '@/main'
const defaultPath = 'scrm.api.live.'
const getWarehousListApi = params => {
params.method = `${defaultPath}goods.list`
return http({
url: 'rop-scrm-live/router',
method: 'GET',
data: params,
sign: true
})
}
const auditGoodApi = params => {
params.method = `${defaultPath}audit.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getGoodInfoApi = params => {
params.method = `${defaultPath}get.good.by.id`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const getGoodGroupInfoApi = params => {
params.method = `${defaultPath}get.good.group.by.id`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const insertGoodApi = params => {
params.method = `${defaultPath}insert.good`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const insertGoodGroupApi = params => {
params.method = `${defaultPath}insert.good.group`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const deleteGoodApi = params => {
params.method = `${defaultPath}delete.goods`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export { getWarehousListApi, auditGoodApi, getGoodInfoApi, getGoodGroupInfoApi, insertGoodApi, insertGoodGroupApi, deleteGoodApi }
import { http } from '@/main'
const converterApi = params => {
params.method = `scrm.api.boutiquecoupon.rop.router`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
export { converterApi }
\ No newline at end of file
import { http } from '@/main'
const defaultPath = 'scrm.api.live.'
const getMerberList = params => {
params.method = `${defaultPath}get.member.list`
return http({
url: 'rop-scrm-live/router',
method: 'GET',
data: params,
sign: true
})
}
export { getMerberList }
\ No newline at end of file
import { http } from '@/main'
const getRulesData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.getAllRule'
return method
}
const getRulesListData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.pageChangeRecord'
return method
}
// 客户评价
const guestComTotal = () => {
let method = 'dj.api.smartcarlife.orderCommentReport.total'
return method
}
// 是否开通精品升级
const isOpenUpgrade = () => {
let method = 'dj.api.serviceMerchant.isOpenSmartcarlife'
return method
}
// 订单统计
const orderTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.total'
return method
}
// 券统计
const couponsTotal = () => {
let method = 'dj.api.smartcarlife.couponReport.total'
return method
}
// 按天统计券
const couponsTotalByDay = () => {
let method = 'dj.api.smartcarlife.couponReport.countByDate'
return method
}
// 按天统计金额
const moneyTotal = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByDay'
return method
}
// 精品礼券订单查询
const findCoupons = () => {
let method = 'dj.api.life.customer.coupon.listFor4S'
return method
}
// 精品礼券升级订单查询
const findupGradeOrder = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
return method
}
// 查看礼券
const checkCoupons = () => {
let method = 'dj.api.smartcarlife.merchant.coupon.page'
return method
}
// 我的分账
const mydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page'
return method
}
// 精品礼券导出
const exportCoupons = () => {
let method = 'dj.api.life.customer.coupon.exportExcelListFor4S'
return method
}
// 精品礼券升级订单导出
const exportUpgrade = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export'
return method
}
// 我的分账导出
const exportMydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.export'
return method
}
// 获取发券人/转化人列表
const getEmployName = () => {
let method = 'dj.api.life.customer.coupon.distinctColum'
return method
}
// 查看明细
const checkDetail = () => {
let method = 'dj.api.smartcarlife.goodsOrder.detail'
return method
}
// 集团--订单统计
const orderTotalOfJT = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByMerchant'
return method
}
// 集团--精品升级订单统计数
const orderTotalNumOfJT = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
return method
}
// 集团--我的分账统计数
const myAccountTotalNumOfJT = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page.count'
return method
}
// 获取4s店列表
const get4SList = params => {
params.method = `scrm.api.carlife.merchant.listWithPageByCurMerchant`
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
// 服务介绍
const introConpute = params => {
params.method = `scrm.api.boutiquecoupon.config.getModelParams`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
// 获取商户列表
const getMerchantList = params => {
params.method = `entmicro.api.common.findMerchantTreeByMerchantNo.list`
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export {
getRulesData,
getRulesListData,
guestComTotal,
isOpenUpgrade,
orderTotal,
couponsTotal,
couponsTotalByDay,
moneyTotal,
findCoupons,
findupGradeOrder,
checkCoupons,
mydivision,
exportMydivision,
exportUpgrade,
exportCoupons,
getEmployName,
checkDetail,
orderTotalOfJT,
orderTotalNumOfJT,
myAccountTotalNumOfJT,
get4SList,
introConpute,
getMerchantList
}
\ No newline at end of file
// 覆盖element-ui样式
.after_sales_tabs {
/deep/ .el-tabs__nav-wrap:after {
display: none !important;
}
/deep/ .el-tabs__content {
overflow:initial;
}
}
\ No newline at end of file
.square_page {
padding-bottom: 30px;
}
// 标题
.head_title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
.txt_box {
flex: 1;
}
.txt_box {
.sp2 {
color: #5850ff;
}
}
.icon_box {
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
cursor: pointer;
.el_icon {
transform: rotate(90deg);
margin-left: 8px;
}
}
}
// 频道列表
.channel_list {
height: 140px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 20px;
padding: 20px 15px;
box-sizing: border-box;
overflow: hidden;
.list_box {
display: flex;
.cell {
flex-shrink: 0;
width: 200px;
height: 100px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
margin: 0 5px;
display: flex;
align-items: center;
justify-content: center;
.icon {
width: 40px;
height: 40px;
border-radius: 100%;
background: linear-gradient(180deg, #ff8496 0%, #ff4e61 100%);
margin-right: 10px;
}
.info {
.h2,
p {
margin: 0;
padding: 0;
}
.h2 {
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
margin-bottom: 10px;
}
p {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
}
}
}
}
}
// 覆盖element-ui样式
// 覆盖element-ui样式
.after_sale_form_item {
/deep/ .el-form-item__content {
display: flex;
align-items: center;
}
.pre_select {
width: 104px;
height: 33px;
// box-sizing: border-box;
line-height: 33px;
display: block;
/deep/ .el-input__inner {
height: 33px;
border-radius: 4px 0px 0px 4px;
border-color: #e8e8ea;
padding-left: 10px;
}
/deep/ .el-input__suffix {
top: 50%;
transform: translateY(-50%);
height: auto;
}
}
/deep/ .el_date_picker {
position: relative;
width: 240px;
height: 33px;
border-radius: 0px 4px 4px 0px;
margin-left: -1px;
margin-top: 2px;
box-sizing: border-box;
display: flex;
align-items: center;
line-height: 33px;
.el-range__icon,
.el-range__close-icon,
.el-range-separator {
float: none;
line-height: inherit;
height: auto;
}
}
}
// 搜索、列表区域
.panel_box {
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin: 10px 0;
padding: 20px;
// 搜索区域
.search_box {
.after_sale_form {
.el-form-item {
padding-right: 30px;
margin-bottom: 10px;
/deep/ .el-form-item__label {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
}
}
.pright0 {
padding-right: 0;
}
}
.search_btn {
background: #5850ff;
border-radius: 4px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #ffffff;
}
.search_btn:hover {
opacity: 0.8;
}
}
// 筛选
.filter_box {
margin: 20px 0 10px 0;
a {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
text-decoration: none;
margin-right: 30px;
}
.active {
color: #5850ff;
}
}
// 列表
.live_time {
display: flex;
flex-direction: column;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
.sp3 {
font-size: 12px;
color: #999;
}
span {
margin: 0 0 5px 0;
}
}
.live_info {
.top_info {
display: flex;
.img_box {
width: 115px;
height: 65px;
flex-shrink: 0;
img {
width: 100%;
height: 100%;
}
}
.live_msg {
display: flex;
flex-direction: column;
justify-content: space-between;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
padding-left: 15px;
p {
margin: 0;
padding: 0;
}
.p1 {
display: -webkit-box;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.p2 {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
color: #999;
}
}
}
.bottom_info {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
margin-top: 10px;
}
}
.tag_list {
display: flex;
flex-wrap: wrap;
.tag {
min-width: 60px;
height: 26px;
background: #e7eaf2;
border-radius: 13px;
text-align: center;
line-height: 26px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
margin: 0 15px 15px 0;
}
}
.link_list {
display: flex;
flex-direction: column;
justify-content: center;
.el-link {
color: #5850ff;
margin: 10px 0;
}
.el-link:after {
display: none;
}
.el-link:hover {
opacity: 0.8;
}
}
}
.live_box {
height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
padding: 42px 80px;
box-sizing: border-box;
display: flex;
align-items: center;
.info {
flex: 1;
.h2,
.h3 {
margin: 0;
padding: 0;
}
.h2 {
font-size: 42px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #000000;
margin-bottom: 10px;
}
.h3 {
font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
span {
color: #5850ff;
}
}
}
.img_box {
width: 451px;
height: 276px;
background: #d8d8d8;
}
}
// 案例
.case_box {
display: flex;
align-items: center;
justify-content: space-between;
.row_box {
flex: 1;
min-height: 400px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin: 10px 0 0px 10px;
padding: 20px;
box-sizing: border-box;
.title {
font-size: 18px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333333;
margin: 0 0 30px 0;
padding: 0;
}
.sub_title {
font-size: 16px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333333;
margin-bottom: 9px;
}
.desc {
position: relative;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3a3a3a;
line-height: 21px;
padding-bottom: 20px;
margin-bottom: 19px;
}
.desc:after {
display: block;
content: '';
height: 2px;
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #e8e8ea;
}
.case_tab {
.tab {
width: 100%;
border-collapse: collapse;
tr {
th,
td {
border-right: 1px solid #e0e0e4;
border-bottom: 1px solid #e0e0e4;
text-align: center;
// padding: 8px;
background: #f6f6f7;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3a3a3a;
height: 45px;
box-sizing: border-box;
}
th:last-child,
td:last-child {
border-right: 0;
}
}
tr:last-child {
td {
border-bottom: 0;
}
}
}
}
.total_box {
font-size: 16px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333333;
margin-top: 20px;
span {
font-size: 20px;
}
}
}
.row_box:first-child {
margin-left: 0;
}
}
// 操作步骤说明
.step_box {
min-height: 180px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin: 10px 0;
}
// 收起按钮
.shrink_box {
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
cursor: pointer;
text-align: center;
.el_icon {
transform: rotate(270deg);
margin-left: 8px;
}
}
<template>
<div class="my-drop-menu">
<div class="left_widget label flex_cc">
<el-dropdown trigger="click" @command="onChangeValue">
<div class="h13_title">
{{ leftName }}
<i class="el-icon-caret-bottom el-icon-caret-top"></i>
</div>
<el-dropdown-menu slot="dropdown" class="drop_item">
<el-dropdown-item v-for="item in options" :key="item.value" :command="item">{{item.label}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="right_widget">
<slot name="right_con"></slot>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
props: {
leftName: {
type: String,
default: '请选择'
},
options:Array
},
mounted() {},
methods: {
onChangeValue(e){
this.leftName = e.label
this.$emit('getValue',e.value)
},
}
}
</script>
<style lang="scss" scoped>
.my-drop-menu {
display: flex;
align-items: center;
padding-left: 15px;
.left_widget {
box-sizing: border-box;
height: 28px;
border-radius: 4px 0px 0px 4px;
border: 1px solid #e8e8ea;
border-right: none;
cursor: pointer;
}
.el-icon-caret-bottom {
color: #999;
}
.label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
width: 80px;
}
}
</style>
<template>
<div class="my-drop-menu">
<el-input size="mini" v-model="searchForm.inputValue" placeholder="请输入" @change="inputChange">
<el-select size="mini" slot="prepend" v-model="searchForm.selectValue" style="width: 110px" placeholder="请选择" @change="toChangeSelect">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-input>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
props: {
options: Array
},
mounted() {},
methods: {
toChangeSelect(e) {
this.$emit('getValue', e)
},
inputChange(e) {
this.$emit('getInputValue', e)
}
}
}
</script>
<style lang="scss" scoped>
</style>
<template>
<div class="chart-container">
<div class="wrapper">
<div class="box_con_wrap">
<p class="h18_title">碰撞维修无忧案例</p>
<div class="box_item">
<p class="textOne case_contetn_h">2020年12月3日,张先生驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废;张先生购车环节选购了“车载硬件+碰撞维修无忧套餐”。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/case_one_1.png" />
</div>
<p class="textOne caset_footer">通过嘀加SCRM平台触发预警推送消息到门店,门店即使联系车主进行救援并送修,为门店带来40000元回厂产值。</p>
</div>
</div>
<div class="box_con_wrap">
<p class="h18_title">整车全损无忧案例</p>
<div class="box_item">
<p class="textOne case_contetn_h">2021年1月9日,李女生驾驶奔驰C级途径湖南张家界市出差, 当晚留宿在朋友家小区,隔天早饭后想驾车回公司,发生车辆被盗了,报警后一直未找到爱车。李女士购车环节选购了 “车载硬件+整车全损无忧套餐”。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/case_one_2.png" />
</div>
<p class="textOne caset_footer">李女士发起补偿申请,经核定,根据权益服务合同协议,最终合计补偿李女士365800元。</p>
</div>
</div>
<div class="box_con_wrap">
<p class="h18_title">轮胎置换无忧案例</p>
<div class="box_item">
<p class="textOne case_contetn_h">2021年6月15日,赵先生驾驶本田雅阁在路上正常行驶,右侧前轮胎突然出现问题,因质量问题导致无法正常行驶,只好送4S店换胎。赵先生购车环节选购了4S店推荐的轮胎置换无忧套”。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/case_one_3.png" />
</div>
<p class="textOne caset_footer">赵先生发起补偿申请,经核定,根据权益服务合同协会,补偿赵先生600元费用。</p>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
}
.wrapper {
display: flex;
align-items: center;
justify-content: space-around;
box-sizing: border-box;
padding-top: 20px;
.box_con_wrap {
width: 28.4%;
display: flex;
flex-direction: column;
justify-content: space-between;
> p {
// margin: 0 auto;
text-align: center;
margin-bottom: 9px;
line-height: 20px;
font-weight: bold;
}
.box_item {
width: 100%;
min-height: 334px;
box-sizing: border-box;
padding: 0 15px;
// display: flex;
// flex-direction: column;
// justify-content: space-between;
// align-items: flex-start;
.textOne {
min-height: 34px;
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
.image_wrap {
width: 100%;
height: 100%;
// height: 180px;
// width: 285px;
// height: 150px;
margin: 10px 0;
> img {
width: 100%;
height: 100%;
// width: 285px;
// height: 180px;
}
}
.case_contetn_h{
min-height: 90px;
}
.caset_footer{
min-height: 52px;
}
}
}
}
</style>
<template>
<div class="chart-container">
<div class="content_con">
<div class="box_wrap_con">
<div class="wrapper">
<div class="h3_title">店中店案例-广州某丰田4S店</div>
<div class="h12_title margin_3 fw">合作之前</div>
<div class="con2_widget margin_4">
<div class="text_label h5_title">新车销售120-150台次/月,太阳膜赠送成本约300元/车。</div>
</div>
</div>
<div class="drive_line"></div>
<div class="wrapper_2">
<div class="h12_title fw">合作成果</div>
<div class="text_line_widget margin_4">2020年3月11日入驻,开展次新车精品升级,经过两个月磨合,5月始产值突破10万元!3-11月门店太阳膜单品升级产值70W+,合计增利28W。</div>
<!-- <div class="h5_title margin_5 fw">某丰田店3-11月太阳膜升级数据</div> -->
<div style="height: 20px"></div>
<div class="table_widget">
<table>
<tr>
<th v-for="(item, index) in tableHeader1" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD1" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
</div>
<div class="box_wrap_con">
<div class="wrapper">
<div class="h3_title">园区店案例-成都某4S店园区</div>
<div class="h3_title margin_3">合作之前</div>
<div class="con2_widget margin_4">
<div class="text_label h5_title">园区店覆盖经营各品牌门店20多家,集团新车销量2.6W台/年,单店新车销量平均 960台/年,太阳膜赠送成本300元/车,有近10家4S店开展了增值转化项目合作。</div>
</div>
</div>
<div class="drive_line"></div>
<div class="wrapper_2">
<div class="h3_title">合作成果</div>
<div class="text_line_widget margin_4">2020年3月29日园区店试营业,开展次新车精品升级,经过阶段性磨合,5月始产值 突破30万元!3-11月园区店太阳膜单品升级产值250W+.</div>
<div style="height: 20px"></div>
<div class="table_widget">
<table>
<tr>
<th v-for="(item, index) in tableHeader2" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD2" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
tableHeader1: ['增值转化产值', '门店新增净利润', '节省赠送产品成本', '合计增利'],
tableHeader2: ['增值转化产值', '园区店新增净利润', '节省赠送产品成本', '合计增利'],
tableTD1: ['70万元', '15.7万元', '12.3万元', '28万元'],
tableTD2: ['250W', '56W', '49W', '105W']
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
box-sizing: border-box;
padding: 20px;
}
.content_con {
display: flex;
justify-content: space-between;
.box_wrap_con {
width: 48%;
}
.con2_widget {
display: flex;
flex-wrap: wrap;
padding-bottom: 15px;
height: 54px;
.text_label {
line-height: 20px;
}
}
.drive_line {
margin: 0 auto;
width: 100%;
height: 1px;
background: #e8e8ea;
margin-bottom: 19px;
}
.wrapper_2 {
.text_line_widget {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
line-height: 20px;
}
.table_widget {
width: 100%;
background: #f6f6f7;
td,
th {
border: 1px solid #e0e0e4;
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
th,
td {
height: 41px;
text-align: center;
line-height: 41px;
}
table {
width: 100%;
border-collapse: collapse;
}
}
}
.margin_3 {
margin-top: 20px;
}
.margin_4 {
margin-top: 10px;
}
.margin_5 {
margin-top: 25px;
}
}
.fw {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 18px;
}
</style>
<template>
<div class="chart-container">
<div class="content_con">
<div class="wrapper">
<div class="title">单店直播案例-兰州某奔驰4S店</div>
<div class="title1">企业微信私域美保直播,226个订单,12W+产值</div>
<p class="title2 h5_title">基于门店企微已有2000+客户开展美容直播专项活动,整合企微、终端等渠道推送预告信息集客,以秒杀、红包活动进行社群运营,秒杀项目为爆点吸引车主锁定直播,给门店带来100+返厂量,实现226个订单,12W+产值。</p>
<div class="line"></div>
<div class="title3">直播数据</div>
<div class="table_wrap">
<table>
<tr>
<th v-for="(item, index) in tableHeader1" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD1" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
<div class="wrapper">
<div class="title">多店联播案例-广西某汽车城</div>
<div class="title1">多品牌多门店美容联播,200+返厂量,15W+产值</div>
<p class="title2 h5_title">汽车城不同品牌7家4S店,售后约有30000回厂车主,通过多渠道宣传集客,多店兼容联播,结合社群运营,帮助各门店激活客户,为汽车园区带来200+返厂量,产生300+订单,15W+到店产值。</p>
<div class="line"></div>
<div class="title3">直播数据</div>
<div class="table_wrap">
<table>
<tr>
<th v-for="(item, index) in tableHeader2" :key="index">{{ item }}</th>
</tr>
<tr>
<td v-for="(item, index) in tableTD2" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
tableHeader1: ['直播时长/分', '企微增粉', '直播销量/单', '到店产值/元'],
tableTD1: [95, '1400+', '226单', '120000+'],
tableHeader2: ['直播时长/分', '参与人次', '直播销量/单', '到店产值/元'],
tableTD2: [140, '3000+', '304', '150000+']
}
},
methods: {
closeDraw() {
this.$emit('close')
}
}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
}
.content_con {
display: flex;
justify-content: space-between;
.wrapper {
.title {
box-sizing: border-box;
padding: 20px 19px 12px 19px;
font-size: 18px;
font-weight: 600;
color: #333333;
}
.title1 {
box-sizing: border-box;
padding: 0 19px;
margin-top: 18px;
margin-bottom: 9px;
font-size: 16px;
font-weight: 600;
color: #333333;
// height: 32px;
}
.title2 {
box-sizing: border-box;
padding: 0 19px;
padding-bottom: 15px;
line-height: 21px;
}
.line {
width: calc(100% - 38px);
height: 2px;
background: #e8e8ea;
margin: 0 auto;
}
.title3 {
box-sizing: border-box;
padding: 0 19px;
margin: 15px 0 10px 0;
font-size: 16px;
font-weight: 600;
color: #333333;
}
.table_wrap {
box-sizing: border-box;
padding: 0 19px;
td,
th {
border: 1px solid #e0e0e4;
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
background: #f6f6f7;
}
th,
td {
height: 45px;
text-align: center;
line-height: 45px;
}
table {
width: 100%;
border-collapse: collapse;
}
}
}
}
</style>
<template>
<div class="qr-code-components">
<div :style="[{bottom:bottom+'px'}]" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<img src="../../assets/contact_icon.png" />
<div class="contact_text">联系我们</div>
</div>
<div :style="[{bottom:bottom+'px'}]" v-if="show" class="left_code flex_ccc">
<img :src="codeUrl" />
<div style="height: 16px"></div>
<span class="h18_title">服务热线</span>
<span class="h18_title">{{phone}}</span>
</div>
</div>
</template>
<script>
export default {
name: '',
props: {
bottom: {
type: Number,
default: 64
},
codeUrl:{
type:String,
default:'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg'
},
phone:{
type:String,
default:'189 0000 1234'
}
},
data() {
return {
show: false
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.qr-code-components {
.left_code {
position: fixed;
right: 77px;
bottom: 64px;
width: 144px;
height: 201px;
background: #ffffff;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 124px;
height: 124px;
}
> span {
line-height: 20px;
}
}
.right_btn {
position: fixed;
right: 20px;
bottom: 64px;
cursor: pointer;
width: 52px;
height: 201px;
background: #5850ff;
border-radius: 4px;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 20px;
height: 20px;
margin-bottom: 7px;
}
.contact_text {
width: 14px;
line-height: 20px;
font-size: 14px;
font-weight: 400;
color: #ffffff;
}
}
}
</style>
<template>
<div v-if="show" class="select-seach-con">
<!-- <div class="find_line"> -->
<div class="cell_wrapper flex_sc">
<!-- <div v-if="accountLevel == 2" class="cell_label h13_title">4S店</div>
<div v-if="accountLevel == 1 && !isAdmin" class="cell_label h13_title">市级经销商</div>
<div v-if="accountLevel == 1 && isAdmin" class="cell_label h13_title">省级经销商</div> -->
<el-select class="find_width" v-if="accountLevel == 2" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in storeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
<el-select class="find_width" v-if="accountLevel == 1" clearable size="mini" v-model="nextAccountId" placeholder="请选择" @change="selectCurAccount">
<el-option v-for="item in storeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<div v-if="nextAccountId" class="cell_wrapper flex_sc">
<!-- <div v-if="accountLevel == 1 && !isAdmin" class="cell_label h13_title">4S店</div>
<div v-if="accountLevel == 1 && isAdmin" class="cell_label h13_title">市级经销商</div> -->
<el-select class="find_width" v-if="!isAdmin" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in newStroeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
<el-select class="find_width" v-if="isAdmin" clearable size="mini" v-model="nextAccountId1" placeholder="请选择" @change="selectLastAccount">
<el-option v-for="item in newStroeList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<div v-if="nextAccountId1" class="cell_wrapper flex_sc">
<!-- <div class="cell_label h13_title">4S店</div> -->
<el-select class="find_width" clearable size="mini" v-model="storeId" placeholder="请选择" @change="selectStoreId">
<el-option v-for="item in lastStoreList" :key="item.id" :label="item.label" :value="item.id"></el-option>
</el-select>
</div>
<!-- </div> -->
</div>
</template>
<script>
import { getMerchantList } from '../../api/modules/rules'
export default {
name: '',
props: {
show: Boolean
},
data() {
return {
accountLevel: 1,
isAdmin: false,
storeId: '',
nextAccountId: '',
nextAccountId1: '',
newStroeList: [],
lastStoreList: [],
merchantList: [],
storeList: []
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.isAdmin = session.admin
if (session.accountLevel < 3) {
this.getMerchantListData()
}
},
methods: {
getMerchantListData() {
getMerchantList({}).then(res => {
this.merchantList = res || []
})
},
selectCurMechant(e) {
this.$emit('getId', e)
this.nextAccountId = ''
this.storeId = ''
this.nextAccountId1 = ''
if (!e) {
this.showThreeLine = false
return
}
let arr = this.merchantList
let newArr = []
arr.forEach(item => {
if (item.id == Number(e)) {
newArr = item.children || []
}
})
this.storeList = newArr
// 测试时使用
if (this.isAdmin) {
this.storeList = arr
}
this.showThreeLine = true
},
selectCurAccount(e) {
this.storeId = ''
this.nextAccountId1 = ''
this.$emit('getId', e)
if (!e) {
return
}
let newArr = []
this.storeList.forEach(item => {
if (item.id == e) {
newArr = item.children || []
}
})
this.newStroeList = newArr
},
selectLastAccount(e) {
this.$emit('getId', e)
this.storeId = ''
if (!e) {
return
}
let newArr = []
this.newStroeList.forEach(item => {
if (item.id == e) {
newArr = item.children || []
}
})
this.lastStoreList = newArr
},
selectStoreId(e) {
this.$emit('getId', e)
}
}
}
</script>
<style lang="scss" scoped>
.select-seach-con {
display: flex;
align-items: center;
.cell_wrapper {
// width: 25%;
box-sizing: border-box;
display: flex;
align-items: center;
margin-bottom: 18px;
margin-right: 5px;
// padding-right: 30px;
.cell_label {
text-align: right;
padding-right: 15px;
white-space: nowrap;
width: 80px;
}
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
// .find_line {
// padding: 9px 15px;
// display: flex;
// align-items: center;
// .cell_wrapper {
// width: 25%;
// box-sizing: border-box;
// padding-right: 30px;
// .cell_label {
// text-align: right;
// padding-right: 15px;
// white-space: nowrap;
// width: 80px;
// }
// .cell_btn {
// width: 78px;
// }
// .cell_btn_max {
// width: 156px;
// }
// }
// }
.find_width {
width: 215px;
}
}
</style>
<template>
<div :id="echartId" :style="'width:'+width+'px'" class="chart-container"></div>
</template>
<script>
import { couponsTotalByDay } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
import * as echarts from 'echarts'
const base_url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
data() {
return {
xAxisData: [],
getTotal: [],
usedTotal: [],
upgradeTotal: [],
base_url
}
},
props: {
echartId: {
type: String,
default: ''
},
width: {
type: Number,
default: 400
}
},
mounted() {
this.initTIme()
},
methods: {
getOptions(len) {
var dataZoom = [
//给x轴设置滚动条
{
start: 0, //默认为0
end: 100 - 1500 / 31, //默认为100
type: 'slider',
show: true,
xAxisIndex: [0],
handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 1, //组件高度
left: '10%', //左边的距离
right: '10%', //右边的距离
bottom: 26, //右边的距离
borderColor: '#fff',
fillerColor: '#909399',
borderRadius: 5,
backgroundColor: '#f5f5f5', //两边未选中的滑动条区域的颜色
showDataShadow: false, //是否显示数据阴影 默认auto
showDetail: false, //即拖拽时候是否显示详细数值信息 默认true
realtime: true, //是否实时更新
filterMode: 'filter',
zoomLock: false
},
//下面这个属性是里面拖到
{
type: 'inside',
show: false,
xAxisIndex: [0],
start: 1, //默认为1
end: 100 - 1500 / 31 //默认为100
}
]
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var labelOption = {
show: false
}
var option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
grid: {
height: '60%',
},
legend: {
data: ['领券数', '核销数', '精品升级订单']
// itemWidth: 12,
// itemHeight: 12,
// data: [
// {
// icon: `image://${base_url}echart_icon_1.png`,
// name: '领券数'
// },
// {
// icon: `image://${base_url}echart_icon_2.png`,
// name: '核销数'
// },
// {
// icon: `image://${base_url}echart_icon_3.png`,
// name: '精品升级订单'
// }
// ]
},
xAxis: [
{
// name: '日期',
type: 'category',
axisTick: { show: false },
data: this.xAxisData.reverse(),
axisLabel: {
interval: 0
},
inverse:true
}
],
yAxis: [
{
type: 'value',
name: '数量'
}
],
series: [
{
name: '领券数',
type: 'bar',
barGap: 0,
label: labelOption,
barWidth: 6,
emphasis: {
focus: 'series'
},
itemStyle: {
normal: {
color: '#B3B3FF'
}
},
data: this.getTotal.reverse()
},
{
name: '核销数',
type: 'bar',
label: labelOption,
emphasis: {
focus: 'series'
},
barWidth: 6,
itemStyle: {
normal: {
color: '#7C7CFF'
}
},
data: this.usedTotal.reverse()
},
{
name: '精品升级订单',
type: 'bar',
label: labelOption,
barWidth: 6,
emphasis: {
focus: 'series'
},
itemStyle: {
normal: {
color: '#5850FF'
}
},
data: this.upgradeTotal.reverse()
}
]
}
if (len > 6) {
option.dataZoom = dataZoom
}
option && myChart.setOption(option)
},
// 初始化时间
initTIme() {
// let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = utils.getDateStr(-15)
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
couponsChartData(startDate, endDate) {
this.xAxisData = []
this.getTotal = []
this.usedTotal = []
this.upgradeTotal = []
let method = couponsTotalByDay()
let para = {
routerMethod: method,
startDate,
endDate
}
converterApi(para).then(res => {
let arr = res || []
if (arr.length) {
arr.map(item => {
item.dataDate = utils.dateFormat(item.dataDate)
this.xAxisData.push(item.dataDate)
this.getTotal.push(item.getTotal)
this.usedTotal.push(item.usedTotal)
this.upgradeTotal.push(item.upgradeTotal)
return item
})
}
this.getOptions(arr.length)
})
}
}
}
</script>
<style>
.chart-container {
width: 100%;
height: 300px;
overflow: hidden;
}
</style>
<!-- 选择商品弹窗 -->
<template>
<div>
<div ref="funnelCon" class="chart-container flex_cc">
<div class="funnel_box">
<div class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</div>
<div class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</div>
<div class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</div>
</div>
<img class="funnel_icon" src="../../assets/funnel_icon.png" />
<div class="funnel_box2">
<div class="wrapper">
<p class="h13_title">核销转化率:{{ chartInfo.usedPer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUsedPer || 0 }}%</p>
</div>
<div class="wrapper spcP">
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
</div>
</div>
</div>
</template>
<script>
import * as echarts from 'echarts'
import { couponsTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
data() {
return {
nodata: false,
chartInfo: {
getTotal: 0,
usedTotal: 0,
upgradeTotal: 0,
usedPer: 0,
totalUsedPer: 0,
upgradePer: 0,
totalUpgradePer: 0
}
}
},
props: {
echartId: {
type: String,
default: ''
}
},
mounted() {
this.initTIme()
},
methods: {
getOptions(res) {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option = {
color: ['#5850FF', '#9191FF', '#CBCBFF'],
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b}'
},
series: [
{
name: '券统计',
type: 'funnel',
left: 'center',
top: 60,
bottom: 60,
width: '60%',
min: 0,
max: 100,
minSize: '50%',
maxSize: '100%',
sort: 'descending',
gap: 15,
orient: 'vertical',
label: {
show: true,
position: 'left',
// formatter: '{b}: {c}(张)',
textStyle: {
fontSize: 14
},
color: '#333'
},
labelLine: {
length: 20,
lineStyle: {
width: 1,
type: 'solid'
}
},
itemStyle: {
borderColor: '#fff',
borderWidth: 1,
height: 37
},
data: [
{ value: res.getTotal || 0, name: `发券总数:${res.getTotal || 0}(张)` },
{ value: res.usedTotal || 0, name: `核销总数:${res.usedTotal || 0}(张)` },
{ value: res.upgradeTotal || 0, name: `转化订单数:${res.upgradeTotal || 0}(笔)` }
]
}
]
}
option && myChart.setOption(option)
},
// 初始化时间
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
// 券统计
couponsChartData(startDate, endDate) {
let method = couponsTotal()
let para = {
routerMethod: method,
startDate,
endDate
}
converterApi(para).then(res => {
if (!res.getTotal && !res.usedTotal && !res.upgradeTotal) {
this.nodata = true
return
}
res.usedPer = utils.decimal(res.usedPer, 2)
res.totalUsedPer = utils.decimal(res.totalUsedPer, 2)
res.upgradePer = utils.decimal(res.upgradePer, 2)
res.totalUpgradePer = utils.decimal(res.totalUpgradePer, 2)
this.chartInfo = res
// this.getOptions(res)
})
}
}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 258px;
overflow: hidden;
}
.image_wrap {
// width: 660px;
width: calc(31.4% * 3);
height: 135px;
position: relative;
.text_box {
position: absolute;
left: 9.5%;
top: 10px;
}
.text_box1 {
position: absolute;
left: 13%;
top: 61px;
}
.text_box2 {
position: absolute;
left: 14.7%;
top: 112px;
}
.text_box3 {
position: absolute;
right: 2.5%;
top: 27px;
}
.text_box4 {
position: absolute;
right: 7%;
top: 90px;
}
}
.funnel_icon {
// width: 31.4%;
width: 220px;
height: 135px;
position: relative;
z-index: 20;
}
.funnel_box {
// width: 31.4%;
height: 135px;
display: flex;
flex-direction: column;
align-items: flex-end;
> div {
height: 37px;
line-height: 37px;
margin-bottom: 15px;
white-space: nowrap;
}
}
.funnel_box2 {
// width: 31.4%;
height: 135px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
.wrapper{
box-sizing: border-box;
>p{
line-height: 20px;
white-space: nowrap;
}
}
.spcP{
padding-top: 20px;
}
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
}
</style>
<template>
<div :id="echartId" :style="'width:' + width + 'px'" class="chart-container"></div>
</template>
<script>
import * as echarts from 'echarts'
import { moneyTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const base_url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
data() {
return {
divisionMoney: [],
profitMoney: [],
xAxisData: [],
base_url
}
},
props: {
echartId: {
type: String,
default: ''
},
width: {
type: Number,
default: 400
}
},
mounted() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.initTIme()
},
methods: {
getOptions() {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option = (option = {
title: {
text: ''
},
grid: {
height: '60%'
},
tooltip: {
trigger: 'axis',
show: true,
axisPointer: {
// type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
xAxis: {
name: '日期',
type: 'category',
data: this.xAxisData
},
yAxis: {
name: '金额'
},
legend: {
// data: ['分润金额', '分账金额']
itemWidth: 12,
itemHeight: 12,
data: [
{
icon: 'roundRect',
name: '分润金额'
},
{
icon: 'roundRect',
name: '分账金额'
}
]
},
series: [
{
name: '分润金额',
type: 'line',
data: this.profitMoney,
smooth: false,
showSymbol: true,
itemStyle: {
normal: {
color: '#5850FF'
}
}
},
{
name: '分账金额',
type: 'line',
data: this.divisionMoney,
smooth: false,
showSymbol: true,
itemStyle: {
normal: {
color: '#FF6D00'
}
}
}
]
})
option && myChart.setOption(option)
if (this.accountLevel != 4) {
let that = this
myChart.on('click', function (para) {
let curDate = para.name
that.$emit('changeDate', curDate)
})
}
},
// 初始化时间
initTIme() {
// let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = this.$defaultStartDate
let startDate = utils.getDateStr(-15)
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
// 获取折线图数据
couponsChartData(beginDateStr, endDateStr) {
this.xAxisData = []
this.divisionMoney = []
this.profitMoney = []
let method = moneyTotal()
let para = {
routerMethod: method,
beginDateStr,
endDateStr,
reportType: 2
}
converterApi(para).then(res => {
let arr = res || []
if (arr.length) {
arr.forEach(item => {
this.xAxisData.push(item.dataDateStr)
this.divisionMoney.push(item.divisionMoney)
this.profitMoney.push(item.profitMoney)
})
}
this.getOptions()
})
}
}
}
</script>
<style>
.chart-container {
height: 300px;
overflow: hidden;
}
</style>
<template>
<div :id="echartId" class="chart-container"></div>
</template>
<script>
import * as echarts from 'echarts'
import { introConpute } from '../../api/modules/rules'
import util from '../../util/util'
export default {
name: '',
data() {
return {
optinTitle: {}
}
},
props: {
echartId: {
type: String,
default: ''
}
},
mounted() {
this.getParams()
},
methods: {
getOptions(res) {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option = {
tooltip: {
trigger: 'item',
formatter:(params)=>{
let str = params.data["name"]+':'+this.priceFormat(params.data['value'])
return str
}
},
series: [
{
type: 'pie',
radius: '50%',
center: ['40%', '50%'],
data: [
{
value: res.afterSaleUnitPrice || 0,
name: `售后代运营新增产值`,
color: '#FACD67',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
},
formatter: () => {
let temp = this.priceFormat(res.afterSaleUnitPrice)
if(!temp){
return
}
return `售后代运营新增产值:约${temp || 0}/年\n\n {color|累计3年可触达用户-渗透率:${res.afterSalePermeabilityString}}`
}
}
},
{
value: res.onSaleUnitPrice || 0,
name: `售中新品新增产值`,
color: '#64C0A2',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
},
formatter: () => {
let temp = this.priceFormat(res.onSaleUnitPrice)
if(!temp){
return
}
return `售中新品新增产值:约${temp || 0}/年\n\n {color|渗透率:${res.onSalePermeabilityString}}`
}
}
},
{
value: res.preSaleUnitPrice || 0,
name: `售前权益新增产值`,
color: '#5850FF',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
},
formatter: () => {
let temp = this.priceFormat(res.preSaleUnitPrice)
if(!temp){
return
}
return `售前权益新增产值:约${temp || 0}/年\n\n {color|渗透率:${res.preSalePermeabilityString}}`
}
}
}
],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
}
option && myChart.setOption(option, true)
},
getParams(newval) {
introConpute({}).then(res => {
res.preSalePermeabilityString = `${res.preSalePermeability * 100}%`
res.onSalePermeabilityString = `${res.onSalePermeability * 100}%`
res.afterSalePermeabilityString = `${res.afterSalePermeability * 100}%`
this.computeValue = res
if (newval) {
res.preSaleUnitPrice = newval.preSaleUnitPrice
res.onSaleUnitPrice = newval.onSaleUnitPrice
res.afterSaleUnitPrice = newval.afterSaleUnitPrice
}
// this.getOptions(res)
this.computeProduct(0,1)
})
},
computeProduct(num1, num2) {
let { preSalePermeability, preSaleUnitPrice, onSalePermeability, onSaleUnitPrice, afterSalePermeability, afterSaleUnitPrice } = this.computeValue
// 售前产值
let beforeSale = num1 * 12 * preSalePermeability * preSaleUnitPrice
let inSale = num1 * 12 * onSalePermeability * onSaleUnitPrice
let afterSale = num1 * 12 * 3 * afterSalePermeability * afterSaleUnitPrice
let totalValue = beforeSale + inSale + afterSale
let singleStoreValue = totalValue / num2
let totalProduct = this.priceFormat(totalValue)
let singleProduct = this.priceFormat(singleStoreValue)
let options = {
preSaleUnitPrice: beforeSale,
onSaleUnitPrice: inSale,
afterSaleUnitPrice: afterSale,
preSalePermeabilityString: this.computeValue.preSalePermeabilityString,
onSalePermeabilityString: this.computeValue.onSalePermeabilityString,
afterSalePermeabilityString: this.computeValue.afterSalePermeabilityString
}
this.getOptions(options)
return { totalProduct, singleProduct }
},
// 价格格式化
priceFormat(num, point = 2) {
let numStr = num.toString().split('.')[0]
if (numStr.length < 6) {
return util.decimal(num,2)
} else if (numStr >= 6) {
let decimal = numStr.substring(numStr.length - 4, numStr.length - 4 + point)
return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万'
}
return num
// return util.priceFormat(num)
// num = util.decimal(num,2)
// 将数字转换为字符串,然后通过split方法用.分隔,取到第0个
// let numStr = num.toString().split('.')[0]
// if (numStr.length < 5) {
// // 判断数字有多长,如果小于6,,表示10万以内的数字,让其直接显示
// return num
// } else if (numStr.length >= 5) {
// // 如果数字大于6位,小于8位,让其数字后面加单位万
// let decimal = numStr.substring(numStr.length - 3, numStr.length - 3 + point)
// // 由千位,百位组成的一个数字
// return parseFloat(parseInt(num / 10000) + '.' + decimal) + '万'
// }
// else if (numStr.length > 6) {
// // 如果数字大于8位,让其数字后面加单位亿
// let decimal = numStr.substring(numStr.length - 6, numStr.length - 6 + point)
// return parseFloat(parseInt(num / 100000000) + '.' + decimal) + '亿'
// }
}
}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 152px;
// overflow: hidden;
}
</style>
const staticRoutes = Object.freeze([{
name: 'index',
path: '/inSale/index',
component: resolve => require([`@/views/inSale/index.vue`], resolve),
meta: {}
}, {
name: 'upgrade',
path: '/inSale/upgrade',
component: resolve => require([`@/views/inSale/upgrade.vue`], resolve),
meta: {}
}, {
name: 'guestComments',
path: '/inSale/guestComments',
component: resolve => require([`@/views/inSale/guestComments.vue`], resolve),
meta: {}
}, {
name: 'accountRules',
path: '/inSale/accountRules',
component: resolve => require([`@/views/inSale/accountRules.vue`], resolve),
meta: {}
},
{
name: 'beforeSale',
path: '/beforeSale/index',
component: resolve => require([`@/views/beforeSale/index.vue`], resolve),
......@@ -30,21 +9,6 @@ const staticRoutes = Object.freeze([{
path: '/beforeSale/editEquity/:addOrEdit/:contractNo',
component: resolve => require([`@/views/beforeSale/editEquity.vue`], resolve),
meta: {}
}, {
name: 'introduct',
path: '/inSale/introduct',
component: resolve => require([`@/views/inSale/introduct.vue`], resolve),
meta: {}
}, {
name: 'afterSales',
path: '/afterSales/index',
component: resolve => require([`@/views/afterSales/index.vue`], resolve),
meta: {}
}, {
name: 'introduct',
path: '/beforeSale/introduct',
component: resolve => require([`@/views/beforeSale/introduct.vue`], resolve),
meta: {}
}
},
])
export default staticRoutes
\ No newline at end of file
<template>
<div class="bloc-container">
<div class="top_wrapper">
<div class="left_box_wrap"></div>
<div class="right_wrap">
<div class="right_top_wrap">
<div class="r_t_box"></div>
<div class="r_t_box"></div>
<div class="r_t_box r_t_box_max"></div>
</div>
<div class="right_bottom_wrap"></div>
</div>
</div>
<div class="bottom_wrapper">
<div class="table_title flex_scb">
<span class="h12_title">门店直播产值详情</span>
<span class="export_span">
导出
<i class="el-icon-d-arrow-right"></i>
</span>
</div>
<div class="tbale_wrap">
<el-table :data="tableData" height="350" style="100%" highlight-current-row>
<el-table-column prop="merchantName" label="门店名称" width="300px" align="center"></el-table-column>
<el-table-column prop="count" label="参与场次" width="100px" align="center"></el-table-column>
<el-table-column prop="total" label="总产值" width="500px">
<template slot-scope="scope">
<div class="echat_wrap">
<div class="h19_title xtext">¥{{ scope.row.total }}</div>
<div class="progress_wrap">
<div :style="{ width: (100 * scope.row.total) / custSortMax + '%' }" class="summary-progress-barin"></div>
</div>
</div>
</template>
</el-table-column>
<el-table-column label="平均单场产值" align="center">
<template slot-scope="scope">
<div class="h19_title">¥{{ scope.row.perProduct }}</div>
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [],
custSortMax: 0
}
},
mounted() {
// 模拟数据
this.custSortMax = 0
for (let i = 0; i < 10; i++) {
let obj = {
merchantName: '门店' + i,
count: i + 10,
total: Math.round(Math.random() * 10000),
perProduct: Math.round(Math.random() * 6000)
}
this.tableData.push(obj)
}
this.tableData.forEach(item => {
if (item.total >= this.custSortMax) {
this.custSortMax = item.total
}
})
}
}
</script>
<style lang="scss" scoped>
.bloc-container {
margin-top: 17px;
}
.top_wrapper {
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 20px 10px 20px 20px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.left_box_wrap {
width: 300px;
height: 350px;
border-radius: 2px;
border: 1px solid #eae9ee;
}
.right_wrap {
width: calc(100% - 310px);
.right_top_wrap {
display: flex;
justify-content: space-between;
.r_t_box {
// width: 240px;
width: calc(30% - 5px);
height: 160px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
}
.r_t_box_max {
width: calc(40% - 10px);
}
}
.right_bottom_wrap {
margin-top: 10px;
height: 180px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
}
}
}
.bottom_wrapper {
margin-top: 10px;
height: 398px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding: 15px;
.table_title {
padding: 0 0 10px 0;
.export_span {
font-size: 14px;
font-weight: 500;
color: #5850ff;
cursor: pointer;
> i {
color: #5850ff;
margin-left: 5px;
}
}
}
.tbale_wrap {
.echat_wrap {
display: flex;
align-items: center;
.xtext {
width: 20%;
}
.progress_wrap {
width: 65%;
margin-left: 10px;
}
.summary-progress-barin {
height: 15px;
background-color: #5850ff;
}
}
}
}
</style>
\ No newline at end of file
<template>
<div class="">
<!-- <square-page></square-page> -->
<!-- <BlocHome></BlocHome> -->
<introduct></introduct>
</div>
</template>
<script>
// import SquarePage from './square.vue'
import BlocHome from './blocHome.vue'
import introduct from './introduct.vue'
export default {
components: {
// SquarePage,
// BlocHome,
introduct
},
data() {
return {
menuActive: '1'
}
}
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
<template>
<div class="introduct_container">
<div class="top_play_wrap flex_scb">
<div class="text_wrap">
<span class="maxTitle">售前权益服务</span>
<span class="maxTitle">一套可变现的权益服务系统</span>
<span class="midTitle">帮您实现客户线上化闭环</span>
<span>车生活权益促活跃,养车权益促返厂,赚钱锁客两不误</span>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png" />
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" />
</div>
</div>
<div class="mid_wrapper">
<div class="content_one flex_sc">
<div class="title left">
<span>您提供的</span>
<i class="el-icon-caret-right"></i>
</div>
<div class="title right">
<span>您将获得的</span>
<div class="icon_point"></div>
</div>
</div>
<div class="content_two flex_scb">
<template v-for="(item, index) in localList">
<div :key="index" class="box_item_wrap flex_cc">
<img :src="item.icon" />
<div class="box_title">{{ item.title }}</div>
</div>
</template>
</div>
<div class="label_title">无忧案例</div>
<div class="content_three">
<template v-for="(item, index) in localList2">
<div :key="index" class="box_new_item_wrapper" :class="[{ noborder: index == 1 }]">
<div class="left_wrap">
<img class="image_wrap" :src="item.icon" />
<div class="new_title">{{ item.title }}</div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc1 }}</div>
</div>
<div style="height: 15px"></div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc2 }}</div>
</div>
</div>
<div class="right_wrap">
<img :src="item.img" />
</div>
</div>
</template>
</div>
</div>
<qrCode :codeUrl="code" :phone="phone"></qrCode>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height: 18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"></video>
</el-dialog>
</div>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
export default {
components: {
qrCode
},
data() {
return {
videoShow: false,
code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png',
phone:'134 8079 2980',
localList: [
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png',
title: '车生活权益、养车权益、自店权益'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_2.png',
title: '客户线上化、赚钱锁客促返厂'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_3.png',
title: '权益提单一键配置续费策略、提升门店权益续费增营收'
}
],
localList2: [
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_4.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case1.png',
title: '碰撞维修无忧案例',
desc1: '2020年12月3日,张先生驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废;张先生购车环节选购了“车载硬件+碰撞维修无忧套餐”。',
desc2: '通过嘀加SCRM平台触发预警推送消息到门店,门店及时联系车主进行救援并送修,为门店带来40000元回厂产值。'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_5.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case2.png',
title: '整车全损无忧案例',
desc1: '2021年1月9日,李女生驾驶奔驰C级途径湖南张家界市出差,当晚留宿在朋友家小区,隔天早饭后想驾车回公司,发现车辆被盗了,报警后一直未找到爱车。李女士购车环节选购了“车载硬件+整车全损无忧套餐”。',
desc2: '李女士发起补偿申请,经核定,根据权益服务合同协议,最终合计补偿李女士365800元。'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_6.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case3.png',
title: '轮胎置换无忧案例',
desc1: '2021年6月15日,赵先生驾驶本田雅阁在路上正常行驶,右侧前轮胎突然出现问题,因质量问题导致无法正常行驶,只好送4S店换胎。赵先生购车环节选购了4S店推荐的“轮胎置换无忧套餐”。',
desc2: '赵先生发起补偿申请,经核定,根据权益服务合同协议,补偿赵先生600元费用。'
}
]
}
},
mounted() {
// let [href] = window.location.href.split('/#/')
let href = window.location.host;
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if (href == gxurl1 || href == gxurl2) {
this.code = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangQiang.png'
this.phone = '137 6013 7906'
}
},
methods: {
handleClose() {
this.videoShow = false
}
}
}
</script>
<style lang="scss" scoped>
// .introduct_container {
// margin-top: 17px;
// }
.top_play_wrap {
height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding-right: 50px;
.text_wrap {
box-sizing: border-box;
padding-left: 50px;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
> span {
font-size: 16px;
font-weight: 400;
color: #666666;
}
.maxTitle {
font-size: 42px;
font-weight: 600;
color: #000000;
line-height: 60px;
}
.midTitle {
font-size: 24px;
font-weight: 600;
color: #000000;
line-height: 33px;
margin: 15px 0;
}
}
.bg_wrap {
width: 480px;
height: 270px;
position: relative;
.max_icon {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
}
.play_icon {
position: relative;
z-index: 2;
cursor: pointer;
}
}
}
.mid_wrapper {
background: #ffffff;
margin-top: 20px;
box-sizing: border-box;
padding: 20px;
.content_one {
box-sizing: border-box;
padding: 20px 0 14px 0;
border-bottom: 1px solid #e8e8e8;
.title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
position: relative;
}
.left {
width: 376px;
> i {
color: #5850ff;
width: 6px;
height: 6px;
position: absolute;
bottom: -11px;
left: -7px;
}
}
.right {
// width: calc(100% - 376px);
.icon_point {
width: 7px;
height: 7px;
background: #5850ff;
border-radius: 50%;
position: absolute;
bottom: -18px;
left: 0px;
}
}
}
.content_two {
margin-top: 15px;
.box_item_wrap {
width: 32%;
height: 80px;
background: #f7f6fd;
box-sizing: border-box;
padding: 19px 20px;
> img {
width: 42px;
height: 42px;
}
.box_title {
width: calc(100% - 82px);
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
line-height: 20px;
margin-left: 10px;
}
}
}
.label_title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
margin-top: 40px;
margin-bottom: 10px;
}
.content_three {
.box_new_item_wrapper {
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 20px 40px;
border: 1px solid #e8e8e8;
.left_wrap {
width: calc(100% - 330px);
height: 100%;
box-sizing: border-box;
// padding-right: 100px;
.image_wrap {
width: 42px;
height: 42px;
}
.new_title {
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
margin: 15px 0;
}
.con_wrap {
display: flex;
.point {
margin-right: 5px;
height: 17px;
width: 5px;
.icon_po {
background: #5850ff;
width: 5px;
height: 5px;
background: #5850ff;
border-radius: 50%;
}
}
.point_content {
width: calc(100% - 111px);
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
}
}
.right_wrap {
width: 330px;
}
}
.noborder {
border-top: 0;
border-bottom: 0;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="bloc-chart-container">
<div class="mid_line">
<img src="../../assets/scrm_bar_table_icon.png">
</div>
<div class="chart_wrapper">
<line-chart :width="width" ref="myline" echartId="myline" @changeDate="changeCurDate"></line-chart>
</div>
<div class="table-wrapper">
<div class="top_line flex_scb">
<span :style="[{ 'font-size': todayName.length > 20 ? '12px' : '' }]" class="h7_title">{{ todayName }},各门店明细</span>
<div class="right_wrap flex_scb">
<el-radio size="mini" v-model="orderByType" :label="1" @change="changeType(1)">
<span class="h15_title">按分账金额排序</span>
</el-radio>
<el-radio size="mini" v-model="orderByType" :label="2" @change="changeType(2)">
<span class="h15_title">按分润金额排序</span>
</el-radio>
</div>
</div>
<div class="table_widget">
<GLTable ref="table" :hasPage="false" :tableData="productValueInfo" :tableParams="tableParams"></GLTable>
</div>
</div>
<div v-if="!show" class="openBtn h18_title" @click="showContainer">
<span>展开详情</span>
<img src="../../assets/down_icon.png" />
</div>
</div>
</template>
<script>
import line from '../../components/service-echart/line.vue'
import { orderTotalOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
components: {
'line-chart': line
},
props: {
show: {
type: Boolean,
default: false
},
width:{
type:Number,
default:400
}
},
data() {
return {
radio: 0,
tableData: [],
tableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '门店名称',
prop: 'merchantName'
},
{
label: '分润金额 / (实际)分账金额',
prop: 'money'
}
]
},
//集团
todayName: '',
orderByType: 1,
productValueInfo: [],
productList: []
}
},
mounted() {
this.todayName = utils.dateFormat(new Date(), 'YYYY年MM月DD日')
this.today = utils.dateFormat(new Date())
const { session } = this.$globalState
if (session.accountLevel != 4) {
this.orderDataInfoOfJT(this.today, this.today)
}
},
methods: {
showContainer() {
this.show = true
this.$emit('showRanking', true)
},
// 切换radio
changeType(type) {
this.orderByType = type
this.orderDataInfoOfJT(this.curStartTime, this.curEndTime)
},
// 集团统计
orderDataInfoOfJT(start, end) {
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: start,
endDateStr: end,
reportType: 2,
orderByType: this.orderByType //1 分账 2分润
}
converterApi(para).then(res => {
this.productValueInfo = res.map(item => {
item.money = `¥${item.profitMoney} / ¥${item.divisionMoney}`
return item
})
this.curStartTime = start
this.curEndTime = end
})
},
// 更换时间折线图
changeTimeForLine(start, end) {
this.$refs.myline.couponsChartData(start, end)
this.todayName = `${utils.dateFormat(start, 'YYYY年MM月DD日')}至${utils.dateFormat(end, 'YYYY年MM月DD日')}`
},
// 获取点击的日期
changeCurDate(e){
this.todayName = utils.dateFormat(new Date(e), 'YYYY年MM月DD日')
this.orderDataInfoOfJT(e,e)
}
}
}
</script>
<style lang="scss" scoped>
.bloc-chart-container {
height: 400px;
position: relative;
display: flex;
.mid_line {
// width: 1px;
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 350px;
display: flex;
align-items: center;
// background: #e8e8ea;
>img{
width: 18px;
height: 155px;
}
}
.chart_wrapper {
width: 50%;
height: 350px;
// background: #999;
display: flex;
align-items: center;
justify-content: center;
}
.table-wrapper {
width: 50%;
height: 350px;
box-sizing: border-box;
padding: 13px 22px 0 20px;
.top_line {
.right_wrap {
width: 50%;
}
}
.table_widget {
margin-top: 7px;
}
}
}
.openBtn {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
bottom: 10px;
cursor: pointer;
display: flex;
align-items: center;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
.bloc-chart-container /deep/ .el-table__body-wrapper {
height: 270px;
overflow-y: scroll;
}
</style>
\ No newline at end of file
<template>
<div class="open-container">
<!-- <div class="video_wrapper">
<el-button size="small" type="primary" @click="jumpToVideoPage">接入演示</el-button>
</div> -->
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
mounted() {},
methods: {
jumpToVideoPage() {
this.$router.push('/inSale/playVideo')
}
}
}
</script>
<style lang="scss" scoped>
.video_wrapper {
background: white;
padding: 15px;
width: 100%;
}
</style>
\ No newline at end of file
<template>
<div v-if="accountLevel == 4 || isAdmin" class="guest-container">
<div class="top_tip_title">
<span class="h6_title fw">客户评价使用场景</span>
<!-- <div class="toNext_widget">
<span class="h7_title">查看效果演示</span>
<i class="el-icon-d-arrow-right"></i>
</div> -->
</div>
<div class="tip_wrap">
<span class="h5_title">车主精品升级服务核券完成后,系统会通过微信小程序通知自动提醒客户评价,并且邀请客户好评,客户完成评价后,门店可以在对应的“订单-查看明细”中查看评价。</span>
</div>
<div class="box_wrapper">
<div class="box_1 flex-cc">
<img class="box_icon" src="../../assets/guest_icon_1.png" />
<span class="h7_title fw">(累计)评价客户数</span>
<div class="h8_title">
<span>{{ messageData.commentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
</div>
<span class="h9_title">(累计)施工完成客户数:{{ messageData.constructedCount || 0 }}</span>
</div>
<div class="box_1 flex-cc">
<img class="box_icon" src="../../assets/guest_icon_2.png" />
<span class="h7_title fw">(累计)好评客户数</span>
<div class="h8_title">
<span>{{ messageData.goodCommentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
</div>
<span style="height: 20px" class="h9_title"></span>
</div>
<div class="box_1 box_2 flex-ca">
<div class="box_con">
<div class="circle_wrap">
<el-progress width="60" color="#5850FF" type="circle" :percentage="messageData.commentPer"></el-progress>
</div>
<span class="h7_title fw">客户评价率</span>
</div>
<div class="box_con">
<div class="circle_wrap">
<el-progress width="60" color="#5850FF" type="circle" :percentage="messageData.goodCommentPer"></el-progress>
</div>
<span class="h7_title fw">客户好评率</span>
</div>
</div>
</div>
<div class="tip_title">
<span class="h6_title fw">客评效果预览</span>
</div>
<div class="image_show">
<div class="image_wrap">
<span class="h9_title">小程序通知</span>
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/mini_message_new.png" />
</div>
<img src="../../assets/scrm_arrow_radiu_icon.png">
<div class="image_wrap">
<span class="h9_title">客评内容</span>
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/guest_content_new.png" />
</div>
</div>
<div style="height: 20px"></div>
</div>
</template>
<script>
import { guestComTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default {
name: '',
data() {
return {
messageData: {},
accountLevel: 4,
isAdmin:false
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.isAdmin = session.admin
this.getCompentData()
},
mounted() {},
methods: {
// 获取客户评价
getCompentData() {
let method = guestComTotal()
let para = {
routerMethod: method
}
converterApi(para).then(res => {
this.messageData = res
})
}
}
}
</script>
<style lang="scss" scoped>
.guest-container {
width: 100%;
// height: calc(100% - 17px);
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px;
}
.top_tip_title {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding: 20px 19px 15px 21px;
// > span {
// font-weight: 500;
// }
.toNext_widget {
cursor: pointer;
display: flex;
align-items: center;
> i {
color: #5850ff;
font-size: 10px;
margin-left: 6px;
}
}
}
.tip_wrap {
box-sizing: border-box;
padding-left: 21px;
> span {
font-weight: 500;
}
}
.box_wrapper {
display: flex;
align-items: center;
justify-content: space-between;
padding: 17px 19px 19px 21px;
.box_1 {
width: calc(30% - 10px);
height: 180px;
border-radius: 4px;
border: 1px solid #d8d8d8;
.box_icon {
width: 40px;
height: 40px;
}
}
.box_2 {
width: calc(40% - 10px);
.box_con {
display: flex;
flex-direction: column;
}
.circle_wrap {
width: 60px;
height: 60px;
margin-bottom: 10px;
}
}
.flex-cc {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
}
.flex-ca {
display: flex;
align-items: center;
justify-content: space-around;
}
}
.tip_title {
box-sizing: border-box;
padding-left: 21px;
}
.image_show {
display: flex;
align-items: center;
justify-content: center;
margin-top: 10px;
overflow: hidden;
.image_wrap {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
> span {
margin-bottom: 10px;
}
>img{
width: 290px;
height: 83%;
}
}
}
.fw{
font-weight: bold;
}
</style>
\ No newline at end of file
<template>
<div class="in-sale-index"></div>
</template>
<script>
import {isOpenUpgrade} from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default {
name: 'index',
data() {
return {
}
},
created() {
// 默认进入精品升级页面
this.judgeOpen()
},
mounted() {
},
methods: {
judgeOpen(){
localStorage.removeItem('openInfo')
let method = isOpenUpgrade()
let para = {
routerMethod:method
}
converterApi(para).then(res=>{
localStorage.setItem('openInfo',JSON.stringify(res))
this.$router.push('/inSale/upgrade')
})
}
}
}
</script>
<template>
<div class="not-open-container">
<div class="header_widget">
<div class="posi_wrap_one">
<div class="h1_title lih59">次新车精品升级</div>
<div class="h1_title lih59">一套可增值变现的驻店模式</div>
<div class="h2_title lih33">帮您创造新的业绩增长点</div>
<div class="h4_title lih22">透明车间、透明流程、透明财务,保障门店客户安全。</div>
<div class="video_wrapper">
<el-button size="small" type="primary" @click="openVideoWindow">接入演示</el-button>
</div>
</div>
<div class="posi_wrap_two">
<img class="minClass" src="../../assets/play_icon.png" alt="" @click="openVideoWindow" />
<img class="bgClass" src="../../assets/upgrade_bg.png" />
</div>
</div>
<div class="mini_main_widget">
<div class="box_wrap margin_1">
<div class="h3_title">您提供的</div>
<div class="line_icon_text">
<div class="icon_num">1</div>
<div class="text">一键转发您门店的精品礼券</div>
<!-- <img class="icon" src="../../assets/go_icon.png" /> -->
</div>
</div>
<i class="el-icon-d-arrow-right"></i>
<div class="box_wrap margin_2">
<div class="h3_title">您将获得的</div>
<div class="line_icon_text">
<div class="icon_num">1</div>
<div class="text">获得转化的精品收益</div>
</div>
</div>
<div class="box_wrap">
<div class="h3_title"></div>
<div class="line_icon_text">
<div class="icon_num">2</div>
<div class="text">收款后实时分账,提供精品订单明细,保障合作财务透明</div>
</div>
</div>
</div>
<div class="main_con_widget">
<template v-for="count in 2">
<div :key="count" class="left_widget">
<div class="wrapper">
<div v-if="count == 1" class="h3_title">店中店案例-广州某丰田4S店</div>
<div v-if="count == 2" class="h3_title">园区店案例-成都某4S店园区</div>
<div class="h3_title margin_3">合作之前</div>
<div class="con2_widget margin_4">
<div v-if="count == 1" class="text_label h5_title">新车销售120-150台次/月,太阳膜赠送成本约300元/车。</div>
<div v-if="count == 2" class="text_label h5_title">园区店覆盖经营各品牌门店20多家,集团新车销量2.6W台/年,单店新车销量平均960台/年,太阳膜赠送成本300元/车,有近10家4S店开展了增值转化项目合作。</div>
</div>
</div>
<div class="drive_line"></div>
<div class="after_title">合作成果</div>
<div v-if="count == 1" class="after_content">2020年3月11日入驻,开展次新车精品升级,经过两个月磨合,5月始产值突破10万元! 3-11月门店太阳膜单品升级产值70W+,合计增利28W。</div>
<div v-if="count == 2" class="after_content">2020年3月29日园区店试营业,开展次新车精品升级,经过阶段性磨合,5月始产值 突破30万元!3-11月园区店太阳膜单品升级产值250W+.</div>
<div class="wrapper_2">
<!-- <div v-if="count == 1" class="after_tip h3_title">某丰田店3-11月太阳膜升级数据</div> -->
<!-- <div style="height: 20px"></div> -->
<div class="table_widget">
<table>
<tr v-if="count == 1">
<th v-for="(item, index) in tableHeader1" :key="index">{{ item }}</th>
</tr>
<tr v-if="count == 2">
<th v-for="(item, index) in tableHeader2" :key="index">{{ item }}</th>
</tr>
<tr v-if="count == 1">
<td v-for="(item, index) in tableTD1" :key="index">{{ item }}</td>
</tr>
<tr v-if="count == 2">
<td v-for="(item, index) in tableTD2" :key="index">{{ item }}</td>
</tr>
</table>
</div>
</div>
</div>
</template>
</div>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height:18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/upgrade.mp4"></video>
</el-dialog>
<qrCode phone="138 2651 0577" :codeUrl="code"></qrCode>
</div>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
export default {
name: '',
components: {
qrCode
},
data() {
return {
tableHeader1: ['增值转化产值', '门店新增净利润', '节省赠送产品成本', '合计增利'],
tableHeader2: ['增值转化产值', '园区店新增净利润', '节省赠送产品成本', '合计增利'],
tableTD1: ['70万元', '15.7万元', '12.3万元', '28万元'],
tableTD2: ['250W', '56W', '49W', '105W'],
videoShow: false,
code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/lixs.png'
}
},
mounted() {},
methods: {
openVideoWindow() {
this.videoShow = true
},
handleClose() {
this.videoShow = false
}
}
}
</script>
<style lang="scss" scoped>
.not-open-container {
position: relative;
}
.header_widget {
width: 100%;
// height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 45px 50px 45px 50px;
.posi_wrap_one {
height: 100%;
box-sizing: border-box;
padding-top: 10px;
overflow: hidden;
.video_wrapper {
margin-top: 20px;
}
.lih33 {
font-size: 24px;
font-weight: 600;
color: #000000;
line-height: 33px;
margin: 15px 0;
}
.lih59 {
line-height: 60px;
font-weight: bold;
}
.lih22 {
line-height: 22px;
margin-top: 10px;
}
}
.posi_wrap_two {
width: 451px;
height: 276px;
position: relative;
.minClass {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 2;
cursor: pointer;
}
.bgClass {
width: 100%;
height: 100%;
}
}
}
.mini_main_widget {
width: 100%;
height: 100px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
margin: 10px 0;
padding: 0 20px;
display: flex;
align-items: center;
position: relative;
> i {
// font-size: 13px;
position: absolute;
top: 50%;
left: 316px;
transform: translate(0, -50%);
color: #5850ff;
}
.box_wrap {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
.line_icon_text {
display: flex;
align-items: center;
margin-top: 15px;
.icon_num {
width: 16px;
height: 16px;
display: flex;
flex-direction: center;
justify-content: center;
background: #5850ff;
border-radius: 50%;
color: white;
font-size: 14px;
font-weight: 400;
}
.text {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
margin: 0 5px;
}
.icon {
width: 16px;
height: 16px;
cursor: pointer;
}
}
}
.margin_1 {
margin-right: 200px;
position: relative;
}
.margin_2 {
margin-right: 100px;
}
}
.main_con_widget {
display: flex;
justify-content: space-between;
box-sizing: border-box;
.left_widget,
.right_widget {
width: calc(50% - 5px);
// min-height: 344px;
padding: 20px 0;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
}
.wrapper {
box-sizing: border-box;
padding: 0 0 0 19px;
}
.con2_widget {
.text_label {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
line-height: 21px;
min-height: 63px;
}
}
.drive_line {
margin: 0 auto;
width: calc(100% - 40px);
height: 1px;
background: #e8e8ea;
margin-bottom: 19px;
}
.after_title {
box-sizing: border-box;
padding: 0 18px 0 19px;
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 18px;
}
.after_content {
box-sizing: border-box;
padding: 0 18px 0 19px;
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
line-height: 20px;
margin-bottom: 20px;
margin-top: 10px;
}
.after_tip {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 18px;
}
.wrapper_2 {
padding: 0 20px;
.text_line_widget {
display: flex;
align-items: center;
justify-content: space-between;
.price {
font-size: 18px;
}
}
.table_widget {
width: 100%;
height: 94px;
background: #f6f6f7;
overflow: hidden;
td,
th {
border: 1px solid #e0e0e4;
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
}
th,
td {
height: 45px;
text-align: center;
line-height: 45px;
}
table {
width: 100%;
border-collapse: collapse;
}
}
}
.margin_3 {
margin-top: 30px;
}
.margin_4 {
margin-top: 10px;
}
.margin_5 {
margin-top: 25px;
}
}
</style>
<template>
<div v-if="show" class="rank-container">
<div class="page_title">门店产值排名</div>
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
<sapn style="color: #5850ff">{{ tableData.length }}</sapn>
<span>家门店开通精品升级业务,平均单店产值:</span>
<span style="color: #5850ff">¥{{ pjstoreTotal }}</span>
<span>;高于平均线</span>
<span>(同行此业务的平均产值为:</span>
<span style="color: #5850ff">¥{{ product || 0 }}</span>
<span>)的共</span>
<span style="color: #5850ff; font-size: 16px">{{ storeNum }}</span>
<span>家</span>
</div>
<!-- <div class="tip_rig h15_title">
查看同行如何提高产值
<i class="el-icon-d-arrow-right"></i>
</div> -->
</div>
<div class="table_widget">
<el-table :data="tableData" height="350" style="100%" highlight-current-row>
<el-table-column label="排名" width="100" align="center" type="index" :index="index => index + 1"></el-table-column>
<el-table-column prop="merchantName" label="门店名称" align="center"></el-table-column>
<el-table-column label="总产值" width="500">
<template slot-scope="scope">
<div class="echat_wrap">
<div class="h19_title xtext">{{ scope.row.divisionMoney }}</div>
<div class="progress_wrap">
<div :style="{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin"></div>
</div>
</div>
</template>
</el-table-column>
</el-table>
</div>
<div class="openBtn h18_title" @click="showContainer">
<span>收缩详情</span>
<img src="../../assets/updown_icon.png" />
</div>
</div>
</template>
<script>
import { orderTotalOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
data() {
return {
tableData: [],
pjstoreTotal: 0,
storeNum: 0,
productValue: 0,
custSortMax: 0
}
},
props: {
show: {
type: Boolean,
default: false
},
product: Number
},
created() {
this.today = utils.dateFormat(new Date())
},
mounted() {
this.orderAll()
},
methods: {
orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
// this.bengintime = this.$defaultStartDate
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: this.bengintime,
endDateStr: this.today,
reportType: 2,
orderByType: 1 //1 分账 2分润
}
converterApi(para).then(res => {
let arr = res || []
let total = 0
this.tableData = arr
this.custSortMax = 0
this.tableData.forEach(item => {
total = total + parseFloat(item.divisionMoney)
if (item.divisionMoney >= this.custSortMax) {
this.custSortMax = item.divisionMoney
}
})
this.pjstoreTotal = utils.decimal(total / arr.length, 2)
this.storeNum = this.sortNum(arr, this.pjstoreTotal)
})
},
sortNum(arr, total) {
let count = 0
arr.forEach(item => {
if (item.divisionMoney > total) {
count++
}
})
return count
},
showContainer() {
this.show = false
this.$emit('closeRank', false)
}
}
}
</script>
<style lang="scss" scoped>
.rank-container {
width: 100%;
height: 454px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px;
position: relative;
}
.openBtn {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
bottom: 10px;
cursor: pointer;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
.page_title {
padding: 15px 20px 10px 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
}
.tipper {
width: 100%;
box-sizing: border-box;
padding: 0 20px;
.tip_text {
font-size: 12px;
font-weight: 400;
color: #000000;
display: flex;
align-items: center;
}
.tip_rig {
cursor: pointer;
> i {
margin-left: 5px;
}
}
}
.table_widget {
box-sizing: border-box;
padding: 10px 15px;
.echat_wrap {
display: flex;
align-items: center;
.xtext {
width: 20%;
}
.progress_wrap {
margin-left: 10px;
width: 65%;
}
.summary-progress-barin {
background-color: #5850ff;
height: 15px;
}
}
}
.table_widget /deep/ .el-table--enable-row-hover .el-table__body tr:hover{
background: #f4f3ff !important;
}
.table_widget /deep/ .el-table tbody tr:hover >td{
background: #f4f3ff !important;
}
</style>
\ No newline at end of file
<template>
<div class="content_body">
<div ref="maxHBox" class="max_widget">
<div class="table_one">
<p class="h7_title">商户名:{{ merchantInfo.name }}</p>
<div class="title_text">
<p v-if="settle.deductChargeFlag == 'Y'" class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag == 'N'" class="h7_title">分润计算:不扣除手续费</p>
<p class="min_text">仅针对POS机收款订单</p>
</div>
</div>
<div class="table_two">
<div class="table_th h7_title">分账品类</div>
<div class="table_th h7_title">分账模式</div>
<div class="table_th h7_title">分润比例</div>
</div>
<div class="table_three">
<div class="table_th h7_title">全部(除特殊分账品类)</div>
<div class="table_th h7_title">{{ settle.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">{{ settle.merchantProfitValue }}%</div>
</div>
<template v-if="settle.goodsTypeSettleRuleList.length">
<div v-for="(item, index) in settle.goodsTypeSettleRuleList" :key="index" class="table_three">
<div class="table_th h7_title">
<span>特殊分账品类:</span>
{{ item.goodsTypeName }}
</div>
<div class="table_th h7_title">{{ item.merchantSettleType == 1 ? '毛利分润' : '收入分润' }}</div>
<div class="table_th h7_title">{{ item.merchantProfitValue }}%</div>
</div>
</template>
<div class="table_four flex_scb">
<div class="h9_title">
<span>是否自动打款:</span>
<span>{{ division.autoFlag == 'Y' ? '是' : '否' }}</span>
</div>
<div class="h9_title">
<span v-if="division.settleTimeType == 1">分账周期:T+{{ division.settleTime || '1' }}</span>
<span v-if="division.settleTimeType == 2">分账周期:每月{{ division.settleTime }}号</span>
<span v-if="division.settleTimeType == 1" class="min_text">(分账后第2天到对公账户)</span>
</div>
</div>
<div class="table_four flex_scb">
<div class="h9_title">
<span>您的分账金额包含:{{division.inCludeStr}}</span>
<!-- <span v-if="division.shopProfitDivisionFlag == 3">导流方分账金额,</span>
<span v-if="division.partnerProfitDivisionFlag == 3">服务商分账金额,</span>
<span v-if="division.goodsCostDivisionFlag == 3">产品金额,</span>
<span v-if="division.extraCostDivisionFlag == 3">额外成本,</span> -->
</div>
</div>
<div class="table_four flex_scb border_all">
<div class="h9_title">
<span>收款账户:{{ division.realityShopMerchantName }}</span>
</div>
</div>
</div>
<div class="min_widget">
<div class="title h7_title">对公账户信息</div>
<div v-if="bankData" class="info_widget">
<span class="h9_title">开户账户户行:{{ bankData.bankName }}</span>
<span class="h9_title">开户支行:{{ bankData.openAccBankName }}</span>
<span class="h9_title">账户号:{{ bankData.bankAccountNo }}</span>
<span class="h9_title">账户名称:{{ bankData.bankAccountName }}</span>
</div>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
merchantInfo: {
name: '',
merchantId: 0
}
}
},
props: {
bankData: Object,
division: Object,
settle: Object
},
mounted() {
const { session } = this.$globalState
this.merchantInfo = {
name: session.merchantName,
merchantId: session.session
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.content_body {
display: flex;
justify-content: space-between;
.max_widget {
width: calc(100% - 270px);
// min-height: 389px;
.table_one {
width: 100%;
height: 54px;
background: #f4f6fc;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 34px 0 15px;
.title_text {
display: flex;
flex-direction: column;
align-items: center;
.min_text {
font-size: 12px;
color: #999;
margin-top: 10px;
}
}
}
.table_two,
.table_three {
width: 100%;
height: 54px;
background: #f4f6fc;
display: flex;
.table_th {
width: 33.33%;
text-align: center;
line-height: 54px;
border-right: 1px solid #e8e8ea;
border-top: 1px solid #e8e8ea;
border-left: 1px solid #e8e8ea;
> span {
font-size: 12px;
}
}
}
.table_three {
background: #ffffff;
height: 58px;
.table_th {
line-height: 58px;
}
}
.table_four {
height: 58px;
width: 100%;
box-sizing: border-box;
padding: 0 20px;
border-right: 1px solid #e8e8ea;
border-top: 1px solid #e8e8ea;
border-left: 1px solid #e8e8ea;
.min_text {
color: #999999;
font-size: 12px;
margin-left: 10px;
}
}
.border_all {
border: 1px solid #e8e8ea;
}
}
.min_widget {
width: 260px;
// min-height: 393px;
border: 2px solid #e8e8ea;
.title {
width: 100%;
text-align: center;
height: 54px;
line-height: 54px;
background: #f4f6fc;
}
.info_widget {
box-sizing: border-box;
padding: 21px 11px;
display: flex;
flex-direction: column;
> span {
margin-bottom: 20px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap !important;
}
}
}
}
</style>
\ No newline at end of file
<template>
<div class="store-container">
<not-open-con v-if="openType == 0"></not-open-con>
<open-con v-if="openType == 1"></open-con>
</div>
</template>
<script>
import notOpenCon from './notOpenCon.vue'
import openCon from './open.vue'
import { isOpenUpgrade } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default {
name: 'index',
components: {
'not-open-con': notOpenCon,
'open-con': openCon
},
data() {
return {
openType: 2 // 0未开通 1已开通
}
},
created() {
this.judgeOpen()
// if(localStorage.getItem('openInfo')){
// let info = JSON.parse(localStorage.getItem('openInfo'))
// this.openType = info.open
// }else{
// this.judgeOpen()
// }
},
mounted() {},
methods: {
// 避免未配置权限菜单
judgeOpen() {
localStorage.removeItem('openInfo')
let method = isOpenUpgrade()
let para = {
routerMethod: method
}
converterApi(para).then(res => {
localStorage.setItem('openInfo', JSON.stringify(res))
this.openType = res.open?1:0
})
}
}
}
</script>
<style lang="scss" scoped>
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!