Commit 4ffb4bd1 by 杨北旺

提交售中,服务介绍

1 parent 6f6de6f2
......@@ -5902,9 +5902,9 @@
}
},
"glsx-components": {
"version": "1.1.8",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.1.8.tgz",
"integrity": "sha512-jjo1EY6tknpi5depW9u4xD70TAUs+6Vyzsi3PJf0v3aONA6nILKxK7Yu5jRiz//CG/H7S+Fd6AnYVnJ+QoQFjQ==",
"version": "1.2.2",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.2.2.tgz",
"integrity": "sha512-y2O8lTzNNmDK00Uea5VUlDmBJvE+g2eUREExAp3H3xPPRSxeHa2YTAt7f963HzxDPQqLVYISlqQRgpwCBwV0FQ==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......@@ -5918,9 +5918,9 @@
"integrity": "sha1-9vFzyuI+c6fYj6I7bp2jKSdsZkE="
},
"element-ui": {
"version": "2.15.7",
"resolved": "https://registry.npmmirror.com/element-ui/download/element-ui-2.15.7.tgz?cache=0&sync_timestamp=1637217246631&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Felement-ui%2Fdownload%2Felement-ui-2.15.7.tgz",
"integrity": "sha512-+J6rnXajxzLwV6w8Q6bf7Yqzk1FO1ewbIrCy/4B5alnd7tj8WEpfQoAvISirVaUGVGy77d9Ji3o2bF4f0AsJLQ==",
"version": "2.15.6",
"resolved": "https://registry.npmmirror.com/element-ui/download/element-ui-2.15.6.tgz",
"integrity": "sha1-yWCa3TWvWmhqS3aF3B11fHXgHfM=",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.1.8",
"glsx-components": "^1.2.2",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
import { http } from '@/main'
const getRulesData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.getAllRule'
return method
......@@ -88,8 +89,33 @@ const orderTotalOfJT = () => {
}
// 集团--精品升级订单统计数
const orderTotalNumOfJT = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
return method
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
})
}
export {
getRulesData,
......@@ -110,5 +136,8 @@ export {
getEmployName,
checkDetail,
orderTotalOfJT,
orderTotalNumOfJT
orderTotalNumOfJT,
myAccountTotalNumOfJT,
get4SList,
introConpute
}
\ No newline at end of file
......@@ -141,4 +141,16 @@
display: flex;
align-items: center;
justify-content: center;
}
.flex_sc {
display: flex;
align-items: center;
}
.flex_ccc {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
\ No newline at end of file

4.81 KB | W: | H:

5.1 KB | W: | H:

src/assets/funnel_icon.png
src/assets/funnel_icon.png
src/assets/funnel_icon.png
src/assets/funnel_icon.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<div class="chart-container">
<div class="draw_title">案例详情</div>
<div class="content_con">
<div class="wrapper">
<div class="box_con_wrap">
<p class="h18_title">养车权益锁客返厂案例</p>
<div class="box_item">
<p class="textOne">202年12月4日,张显示驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/srcm_case.png" />
</div>
<p class="textOne">通过嘀加平台触发预警推送消息给门店,门店及时联系车主进行救援并送修,为门店带来4000元产值。</p>
</div>
</div>
<div class="box_con_wrap">
<p class="h18_title">全损无忧返厂案例</p>
<div class="box_item">
<p class="textOne">202年12月4日,张显示驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/srcm_case.png" />
</div>
<p class="textOne">通过嘀加平台触发预警推送消息给门店,门店及时联系车主进行救援并送修,为门店带来4000元产值。</p>
</div>
</div>
<div class="box_con_wrap">
<p class="h18_title">轮胎无忧返厂案例</p>
<div class="box_item">
<p class="textOne">202年12月4日,张显示驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废。</p>
<div class="image_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/srcm_case.png" />
</div>
<p class="textOne">通过嘀加平台触发预警推送消息给门店,门店及时联系车主进行救援并送修,为门店带来4000元产值。</p>
</div>
</div>
</div>
</div>
<div class="btn_wrap">
<el-button size="small" type="primary" @click="closeDraw">关闭</el-button>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
methods:{
closeDraw(){
this.$emit('close')
}
}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
}
.btn_wrap{
position: absolute;
right: 40px;
bottom: 10%;
}
.draw_title {
box-sizing: border-box;
padding: 20px 0 11px 40px;
font-size: 22px;
font-weight: 500;
color: #333333;
}
.content_con {
box-sizing: border-box;
border-top: 1px solid #d8d8d8;
padding: 29px 22px 0 20px;
height: 85%;
overflow-y: scroll;
.wrapper {
display: flex;
flex-wrap: wrap;
.box_con_wrap {
width: 45%;
margin-right: 10px;
margin-bottom: 30px;
> p {
// margin: 0 auto;
text-align: center;
margin-bottom: 25px;
}
.box_item {
width: 100%;
// height: 270px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
box-sizing: border-box;
padding: 15px;
.textOne {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
.image_wrap {
width: 100%;
// width: 285px;
height: 150px;
margin: 10px 0;
> img {
width: 100%;
// width: 285px;
height: 150px;
}
}
}
}
}
}
</style>
<template>
<div class="chart-container">
<div class="draw_title">案例详情</div>
<div class="content_con">
<div class="box_wrap_con">
<div class="wrapper">
<div class="h3_title">案例1-广州某合资品牌丰田4S店</div>
<div class="h3_title margin_3">合作之前</div>
<div class="con2_widget margin_4">
<div class="text_label h5_title">太阳膜赠送成本:300元/车</div>
</div>
</div>
<div class="drive_line"></div>
<div class="wrapper_2">
<div class="h3_title">合作之后</div>
<div class="text_line_widget margin_4">
<div class="h5_title">
2020年6月份累计收益:
<span class="price">53400</span>
元
</div>
<div class="h5_title">
2020年度累计收益约:
<span class="price">65万</span>
元
</div>
</div>
<div class="h5_title margin_5">太阳膜新增升级收益23400元,节省赠送膜成本100*300=30000元</div>
<div class="table_widget margin_4">
<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 style="height: 10px"></div>
<div class="box_wrap_con">
<div class="wrapper">
<div class="h3_title">案例2-四川某经销商集团</div>
<div class="h3_title margin_3">合作之前</div>
<div class="con2_widget margin_4">
<div class="text_label h5_title">旗下门店数:28家</div>
<div class="text_label h5_title">太阳膜赠送成本:300元/车</div>
<div class="text_label h5_title">集团年度新车销量:26880</div>
<div class="text_label h5_title">单店年度新车销量:960</div>
</div>
</div>
<div class="drive_line"></div>
<div class="wrapper_2">
<div class="h3_title">合作之后</div>
<div class="text_line_widget margin_4">
<div class="h5_title">
2020年集团累计收益约:
<span class="price">2286.15万元</span>
元
</div>
<div class="h5_title">
平均单店收益约:
<span class="price">81万</span>
元
</div>
</div>
<!-- <div style="height: 16px" class="margin_5"></div> -->
<div class="table_widget margin_4">
<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 class="btn_wrap">
<el-button size="small" type="primary" @click="closeDraw">关闭</el-button>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
tableHeader2: ['门店年度新车销量', '年度转化率', '平均客单价', '门店年度产值', '集团年度产值'],
tableTD1: [100, '52%', 52, 2283, 118716, 23400],
tableTD2: [960, '63%', 1350, 816480, 22861440]
}
},
methods: {
closeDraw() {
this.$emit('close')
}
}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
}
.btn_wrap {
position: absolute;
left: 40px;
bottom: 5%;
}
.draw_title {
box-sizing: border-box;
padding: 20px 0 11px 40px;
font-size: 22px;
font-weight: 500;
color: #333333;
}
.content_con {
box-sizing: border-box;
border-top: 1px solid #d8d8d8;
padding: 20px;
height: 83%;
overflow-y: scroll;
.box_wrap_con {
border: 1px solid #eae9ee;
box-sizing: border-box;
padding: 20px 0;
}
.wrapper {
box-sizing: border-box;
padding: 0 0 0 19px;
}
.con2_widget {
display: flex;
flex-wrap: wrap;
padding-bottom: 15px;
// height: 64px;
.text_label {
width: 50%;
margin-bottom: 5px;
}
}
.drive_line {
margin: 0 auto;
width: calc(100% - 40px);
height: 1px;
background: #e8e8ea;
margin-bottom: 19px;
}
.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: 20px;
}
.margin_4 {
margin-top: 10px;
}
.margin_5 {
margin-top: 25px;
}
}
</style>
<template>
<div class="chart-container">
<div class="draw_title">案例详情</div>
<div class="content_con">
<div class="wrapper">
<div class="title">案例1-兰州某奔驰4S店</div>
<div class="title1">线上私域直播-实现226单,12万+产值变现</div>
<p class="title2 h5_title">基于已有的2000+企微私域流量开展美容直播活动,企微推送消息实现100%触达用户,以秒杀、 红包等活动激活社群,以超低秒杀项目作为引爆点吸引车主锁定直播,直播销售美容/养护产品, 给门店带来100+返厂量,新增到店产值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 style="height: 10px"></div>
<div class="wrapper">
<div class="title">案例2-广西某汽车城</div>
<div class="title1">多品牌多门店兼容性直播如何玩? 打破常规变现10万,返厂流量200+</div>
<p class="title2 h5_title">汽车城不同品牌不同产品4S店共计30000活跃车主,通过多店兼容联播,激活流失用户,为整个汽 车园区增加300+返厂量,新增到店产值10W;同时为各4S店建立私域用户池产生持续复购,提升 综合盈利。</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 class="btn_wrap">
<el-button size="small" type="primary" @click="closeDraw">关闭</el-button>
</div>
</div>
</template>
<script>
export default {
name: '',
data() {
return {
tableHeader1: ['直播时长', '企微增粉', '引流率', '直播销量', '到店产值'],
tableTD1: [95, '1400+', '70+', '226单', '120000+'],
tableHeader2: ['直播时长', '活跃人数', '直播销量', '到店产值'],
tableTD2: [140, '3000+', '304单', '100000+']
}
},
methods: {
closeDraw() {
this.$emit('close')
}
}
}
</script>
<style lang="scss" scoped>
.chart-container {
height: 100%;
position: relative;
}
.btn_wrap {
position: absolute;
left: 40px;
bottom: 2%;
}
.draw_title {
box-sizing: border-box;
padding: 20px 0 11px 40px;
font-size: 22px;
font-weight: 500;
color: #333333;
}
.content_con {
box-sizing: border-box;
border-top: 1px solid #d8d8d8;
padding: 20px;
height: 85%;
overflow-y: scroll;
.wrapper {
width: 100%;
// height: 320px;
background: #ffffff;
border: 1px solid #eae9ee;
padding-bottom: 20px;
.title {
box-sizing: border-box;
padding: 12px 19px;
font-size: 18px;
font-weight: 600;
color: #333333;
}
.title1 {
box-sizing: border-box;
padding: 0 19px;
margin-top: 11px;
margin-bottom: 9px;
font-size: 16px;
font-weight: 600;
color: #333333;
}
.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;
}
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="https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg" />
<div style="height: 16px"></div>
<span class="h18_title">服务热线</span>
<span class="h18_title">189 0000 1234</span>
</div>
</div>
</template>
<script>
export default {
name: '',
props: {
bottom: {
type: Number,
default: 64
}
},
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;
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;
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>
......@@ -29,6 +29,38 @@ export default {
},
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: 0, //默认为1
end: 100 - 1500 / 31 //默认为100
}
]
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var labelOption = {
......@@ -52,7 +84,10 @@ export default {
{
type: 'category',
axisTick: { show: false },
data: this.xAxisData
data: this.xAxisData,
axisLabel: {
interval: 0
}
}
],
yAxis: [
......@@ -61,38 +96,6 @@ export default {
name: '数量'
}
],
dataZoom: [
//给x轴设置滚动条
{
start: 0, //默认为0
end: 100 - 1500 / 31, //默认为100
type: 'slider',
show: len>5?true:false,
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: 0, //默认为1
end: 100 - 1500 / 31 //默认为100
}
],
series: [
{
name: '领券数',
......@@ -142,13 +145,16 @@ export default {
}
]
}
if(len>10){
option.dataZoom = dataZoom
}
option && myChart.setOption(option)
},
// 初始化时间
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// 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)
},
......@@ -185,5 +191,6 @@ export default {
.chart-container {
width: 100%;
height: 300px;
overflow: hidden;
}
</style>
<!-- 选择商品弹窗 -->
<template>
<div>
<div class="chart-container flex_cc">
<div class="wrap flex_cc">
<div ref="funnelCon" class="chart-container flex_cc">
<div class="image_wrap flex_cc">
<div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div>
<div class="text_box1">
<p class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</p>
</div>
<div class="text_box2">
<p class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</p>
</div>
<img class="funnel_icon" src="../../assets/funnel_icon.png" />
<div class="text_box3">
<p class="h13_title">核销转化率:{{ chartInfo.usedPer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUsedPer || 0 }}%</p>
</div>
<div class="text_box4">
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
</div>
<!-- <div class="left_box">
<div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div>
<div class="text_box">
<p class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</p>
</div>
<div class="text_box">
<p class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</p>
</div>
</div>
<div class="right_box">
<div class="text_box">
<p class="h13_title">核销转化率:{{ chartInfo.usedPer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUsedPer || 0 }}%</p>
</div>
<div class="text_box">
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
</div> -->
<!-- <div class="wrap flex_cc">
<div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div>
......@@ -21,7 +62,7 @@
<p class="h13_title spc">同行平均转化率:{{chartInfo.totalUpgradePer || 0}}%</p>
</div>
<img src="../../assets/funnel_icon.png" />
</div>
</div> -->
</div>
</div>
</template>
......@@ -37,13 +78,13 @@ export default {
return {
nodata: false,
chartInfo: {
getTotal:0,
usedTotal:0,
upgradeTotal:0,
usedPer:0,
totalUsedPer:0,
upgradePer:0,
totalUpgradePer:0,
getTotal: 0,
usedTotal: 0,
upgradeTotal: 0,
usedPer: 0,
totalUsedPer: 0,
upgradePer: 0,
totalUpgradePer: 0
}
}
},
......@@ -57,6 +98,7 @@ export default {
mounted() {
this.initTIme()
console.log(this.$refs.funnelCon.clientWidth);
},
methods: {
getOptions(res) {
......@@ -117,8 +159,8 @@ export default {
// 初始化时间
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate
let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
......@@ -135,10 +177,10 @@ export default {
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)
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)
})
......@@ -149,51 +191,49 @@ export default {
<style lang="scss" scoped>
.chart-container {
height: 258px;
overflow: hidden;
}
.wrap {
width: 100%;
height: 100%;
.image_wrap {
// width: 660px;
width: calc(31.4% * 3);
height: 135px;
position: relative;
.text_box {
position: absolute;
top: 70px;
left: 38px;
left: 9.5%;
top: 10px;
}
.text_box1 {
position: absolute;
top: 123px;
left: 56px;
left: 13%;
top: 61px;
}
.text_box2 {
position: absolute;
top: 176px;
left: 66px;
left: 14.7%;
top: 112px;
}
.text_box3 {
position: absolute;
top: 82px;
right: 15px;
> p {
line-height: 20px;
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
}
right: 2.5%;
top: 27px;
}
.text_box4 {
.text_box4{
position: absolute;
top: 146px;
right: 29px;
> p {
line-height: 20px;
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
}
right: 7%;
top: 90px;
}
}
.funnel_icon {
width: 31.4%;
height: 135px;
position: relative;
z-index: 20;
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
}
</style>
......@@ -90,9 +90,10 @@ export default {
},
// 初始化时间
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate
// let startDate = this.$defaultStartDate
let startDate = utils.getDateStr(-15)
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
......@@ -126,5 +127,6 @@ export default {
<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'
},
series: [
{
type: 'pie',
radius: '50%',
center: ['50%', '60%'],
data: [
{
value: res.afterSaleUnitPrice || 0,
name: `售后代运营新增产值`,
color: '#FACD67',
label: {
show: true,
rich: {
color: {
color: '#666666'
}
},
formatter: () => {
let temp = this.priceFormat(res.afterSaleUnitPrice)
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)
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)
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)
})
},
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.getParams(options)
this.getOptions(options)
return { totalProduct, singleProduct }
},
// 价格格式化
priceFormat(num,point=2) {
// 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>
......@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http().get(' https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
......
import Vue from 'vue'
import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog, MessageBox, Upload, Tooltip, Tabs, TabPane, Container, Progress, Timeline, TimelineItem, Dropdown, DropdownMenu, Rate } from 'element-ui'
import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog, MessageBox, Upload, Tooltip, Tabs, TabPane, Container, Progress, Timeline, TimelineItem, Dropdown, DropdownMenu, Rate, Image, Drawer, Popover } from 'element-ui'
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Form)
......@@ -32,5 +32,8 @@ Vue.use(TimelineItem)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(Rate)
Vue.use(Image)
Vue.use(Drawer)
Vue.use(Popover)
export const message = Message
export const messageBox = MessageBox
\ No newline at end of file
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/saleList',
component: resolve => require([`@/views/beforeSale/index.vue`], resolve),
meta: {}
} ])
export default staticRoutes
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/saleList',
component: resolve => require([`@/views/beforeSale/index.vue`], resolve),
meta: {}
},
{
name: 'introduct',
path: '/inSale/introduct',
component: resolve => require([`@/views/inSale/introduct.vue`], resolve),
meta: {}
}
])
export default staticRoutes
\ No newline at end of file
......@@ -5,9 +5,9 @@ util.dateFormat = function(dateTime, format = 'YYYY-MM-DD') {
YYYY: date.getFullYear(),
MM: appendZero(date.getMonth() + 1), //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: appendZero(date.getDate()),
HH: date.getHours(),
mm: date.getMinutes(),
ss: date.getSeconds()
HH: appendZero(date.getHours()),
mm: appendZero(date.getMinutes()),
ss: appendZero(date.getSeconds())
}
for (const key in config) {
format = format.replace(key, config[key])
......@@ -26,4 +26,88 @@ util.decimal = function(num, fixed) {
let pow = Math.pow(10, fixed)
return Math.round(num * pow) / pow
}
util.getLastDay = function(date) {
let current = new Date(date)
let currentMonth = current.getMonth()
let nextMoth = ++currentMonth
let nextMonthDayOne = new Date(current.getFullYear(), nextMoth, 1)
let minusDate = 1000 * 60 * 60 * 24
return new Date(nextMonthDayOne.getTime() - minusDate)
}
util.getDateStr = function(num) {
let now = new Date()
now.setDate(now.getDate() + num)
util.dateFormat(now)
// let y = now.getFullYear()
// let m = (now.getMonth() + 1) < 10 ? '0' + (now.getMonth() + 1) : (now.getMonth() + 1)
// let d = now.getDate() < 10 ? '0' + now.getDate() : now.getDate()
// return y + "-" + m + "-" + d
return util.dateFormat(now)
}
util.getExplorer = function() {
var ua = navigator.userAgent.toLocaleLowerCase();
var browserType = null;
if (ua.match(/msie/) != null || ua.match(/trident/) != null) {
browserType = "IE";
} else if (ua.match(/firefox/) != null) {
browserType = "火狐";
} else if (ua.match(/ubrowser/) != null) {
browserType = "UC";
} else if (ua.match(/opera/) != null) {
browserType = "欧朋";
} else if (ua.match(/bidubrowser/) != null) {
browserType = "百度";
} else if (ua.match(/metasr/) != null) {
browserType = "搜狗";
} else if (ua.match(/tencenttraveler/) != null || ua.match(/qqbrowse/) != null) {
browserType = "QQ";
} else if (ua.match(/maxthon/) != null) {
browserType = "遨游";
} else {
browserType = '谷歌'
}
return browserType
}
util.priceFormat = function(value) {
let newValue = ['', '', '']
let fr = 1000
const ad = 1
let num = 3
const fm = 1
while (value / fr >= 1) {
fr *= 10
num += 1
}
if (num <= 4) {
newValue[1] = '千'
newValue[0] = parseInt(value / 1000) + ''
} else if (num <= 8) {
const text1 = parseInt(num - 4) / 3 > 1 ? '千万' : '万'
const fm = '万' === text1 ? 10000 : 10000000
newValue[1] = text1;
newValue[0] = (value / fm) + '';
} else if (num <= 16) {
let text1 = (num - 8) / 3 > 1 ? '千亿' : '亿';
text1 = (num - 8) / 4 > 1 ? '万亿' : text1;
text1 = (num - 8) / 7 > 1 ? '千万亿' : text1;
let fm = 1;
if ('亿' === text1) {
fm = 100000000;
} else if ('千亿' === text1) {
fm = 100000000000;
} else if ('万亿' === text1) {
fm = 1000000000000;
} else if ('千万亿' === text1) {
fm = 1000000000000000;
}
newValue[1] = text1;
newValue[0] = parseInt(value / fm) + '';
}
if (value < 1000) {
newValue[1] = '';
newValue[0] = value + '';
}
return newValue.join('');
}
export default util
\ No newline at end of file
<template>
<div v-if="accountLevel == 4" class="rule-container">
<div v-if="nodata==1" class="top_wrapper">
<div v-if="nodata == 1" class="top_wrapper">
<div v-if="updateTime" class="tip_line">
<img class="icon" src="../../assets/notice.png" />
<span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }}# 生效,修改人:{{ settleRule1.updatedBy }}。</span>
<span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }}# 生效,修改人:{{ settleRultData.updatedBy }}。</span>
</div>
<div v-if="updateTime" class="drive_line"></div>
<div class="content_wrap">
<div class="time_widget">
<span class="h11_title">生效时间:{{ settleRule1.updatedDate }}</span>
<div v-if="settleRule1.enableFlag == 'N'" class="time_status">生效中</div>
<div v-if="settleRule1.enableFlag == 'Y'" class="time_status">已生效</div>
<span class="h11_title">生效时间:{{ settleRultData.updatedDate }}</span>
<div v-if="settleRultData.enableFlag == 'N'" class="time_status">生效中</div>
<div v-if="settleRultData.enableFlag == 'Y'" class="time_status">已生效</div>
</div>
<rule-table :division="divisionRule1" :settle="settleRule1" :bankData="bankInfo"></rule-table>
<rule-table :division="divisionRuleData" :settle="settleRultData" :bankData="bankInfo"></rule-table>
</div>
</div>
<div v-if="noList==1" class="list_wrapper">
<div v-if="nodata == 1" class="list_wrapper">
<div class="find_wrap">
<div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker>
......@@ -27,18 +27,18 @@
<el-button size="mini" type="primary" @click="toFindNote">查询</el-button>
<span class="tip_text" @click="computeShow = true">查看分润计算说明</span>
</div>
<div class="timeLine_wrap">
<div v-if="noList == 1" class="timeLine_wrap">
<el-timeline>
<template v-for="(item, index) in noteList">
<el-timeline-item :key="index" placement="top">
<div slot="dot" class="dot_line">
<div class="icon"></div>
<span class="text">生效时间:{{ item.effectStartDate }}-{{ item.effectEndDate }}</span>
<span class="text">生效时间:{{ item.effectStartDate }}-{{ item.effectEndDate || '至今' }}</span>
<div class="btn">已生效</div>
<span v-if="!item.show" class="tip_text" @click="showTable(item, index)">{{ item.show ? '收缩详情' : '点击查看详情' }}</span>
<span v-if="index" class="tip_text" @click="showTable(item.show, index)">{{ item.show ? '收缩详情' : '点击查看详情' }}</span>
</div>
<div v-if="item.show" class="table_con">
<rule-table :division="item.divisionRule" :settle="item.settleRule"></rule-table>
<rule-table :bankData="bankInfo" :division="item.divisionRule" :settle="item.settleRule"></rule-table>
</div>
</el-timeline-item>
</template>
......@@ -48,9 +48,9 @@
<img class="icon" src="../../assets/down_icon.png" />
</div>
</div>
<div v-if="noList==0" class="no_data h19_title">暂无数据</div>
<div v-if="noList == 0" class="no_data h19_title">暂无数据</div>
</div>
<div v-if="nodata==0 && noList==0" class="nodata_widget">
<div v-if="nodata == 0 && noList == 0" class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通精品升级服务</span>
......@@ -72,17 +72,7 @@
</div>
</div>
</div>
<div v-if="nodata==0 && noList==0" class="qrcode_wrap">
<div class="imag_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg" />
<span class="h18_title">联系电话</span>
<span class="h18_title">189 0000 1234</span>
</div>
<div class="qr_text_wrap flex_cc">
<img src="../../assets/contact_icon.png" />
<div class="contact_text">联系我们</div>
</div>
</div>
<qrCode :bottom="182" v-if="nodata == 0 && noList == 0"></qrCode>
<el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose">
<div slot="title" class="dialogTitle">分润计算说明</div>
<div class="dialogContent">
......@@ -144,20 +134,22 @@ import { converterApi } from '../../api/modules/converter'
import { getRulesData, getRulesListData } from '../../api/modules/rules'
import ruleTable from './ruleTable.vue'
import utils from '../../util/util'
import qrCode from '../../components/qr-code/index.vue'
export default {
name: '',
components: {
'rule-table': ruleTable
'rule-table': ruleTable,
qrCode
},
data() {
return {
startDate: '',
endDate: '',
settleRule1: '',
settleRultData: '',
updateTime: null,
effectTime: null,
updatedBy: '',
divisionRule1: null,
divisionRuleData: null,
noteList: [],
bankInfo: null,
pageSize: 10,
......@@ -194,27 +186,30 @@ export default {
}
converterApi(para).then(res => {
this.bankInfo = res.bankInfo
this.divisionRule1 = res.divisionRule1
this.divisionRule2 = res.divisionRule2
this.settleRule1 = res.settleRule1
this.settleRule2 = res.settleRule2
if (!res.bankInfo && !res.divisionRule1 && !res.divisionRule2 && !res.settleRule1 && !res.settleRule2) {
this.nodata = 0
return
}
this.nodata = 1
// 广播时间比较:
if (res.divisionRule2 && res.settleRule2) {
let updatedDateTemp1 = res.divisionRule2.updatedDate
let updatedDateTemp2 = res.settleRule2.updatedDate
let update = updatedDateTemp1 > updatedDateTemp2 ? updatedDateTemp1 : updatedDateTemp2
if (res.divisionRule2) {
this.divisionRuleData = res.divisionRule2
} else {
this.divisionRuleData = res.divisionRule1
}
if (res.settleRule2) {
this.settleRultData = res.settleRule2
} else {
this.settleRultData = res.settleRule1
}
this.updatedBy = this.settleRultData.updatedBy
this.settleRultData.updatedDate = utils.dateFormat(this.settleRultData.updatedDate)
if (res.divisionRule2 || res.settleRule2) {
let update = res.divisionRule2.updatedDate
this.updateTime = utils.dateFormat(update, 'YYYY-MM-DD HH:mm')
// let update = updatedDateTemp1 > updatedDateTemp2 ? updatedDateTemp1 : updatedDateTemp2
let temp = new Date(update).getTime() + 24 * 60 * 60 * 1000
this.updateTime = utils.dateFormat(update)
this.effectTime = utils.dateFormat(temp) + ' ' + '00:00'
this.updatedBy = res.settleRule2.updatedBy
}
if (res.settleRule1) {
this.settleRule1.updatedDate = utils.dateFormat(res.settleRule1.updatedDate)
}
})
},
......@@ -228,15 +223,17 @@ export default {
merchantId
}
if (this.startDate) {
para.beginDateStr = this.startDate
para.beginDateStr = utils.dateFormat(this.startDate, 'YYYY-MM-DD 00:00:00')
}
if (this.endDate) {
para.endDateStr = this.endDate
para.endDateStr = utils.dateFormat(this.endDate, 'YYYY-MM-DD 23:59:59')
}
converterApi(para).then(res => {
if (res.list.length) {
this.noteList = res.list.map(item => {
item.show = false
item.effectStartDate = item.effectStartDate ? utils.dateFormat(item.effectStartDate) : ''
item.effectEndDate = item.effectEndDate ? utils.dateFormat(item.effectEndDate) : ''
return item
})
this.noteList[0].show = true
......@@ -330,6 +327,8 @@ export default {
font-weight: 500;
color: #5850ff;
cursor: pointer;
z-index: 120;
position: relative;
}
}
.timeLine_wrap {
......@@ -374,6 +373,8 @@ export default {
color: #5850ff;
margin-left: 10px;
cursor: pointer;
z-index: 88;
position: relative;
}
.showMoreBtn {
position: absolute;
......@@ -544,53 +545,4 @@ export default {
}
}
}
.qrcode_wrap {
position: fixed;
right: 0;
bottom: 182px;
width: 201px;
// height: 201px;
box-sizing: border-box;
padding-top: 10px;
padding-bottom: 12px;
background: #ffffff;
display: flex;
cursor:pointer;
.imag_wrap {
display: flex;
flex-direction: column;
align-items: center;
> img {
width: 124px;
height: 124px;
}
>span{
line-height: 20px;
}
}
.qr_text_wrap {
position: absolute;
top: 0;
right: 20px;
bottom: 0;
width: 52px;
// min-height: 100;
background: #5850ff;
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);
border-radius: 4px;
flex-direction: column;
>img{
width: 20px;
height: 20px;
margin-bottom: 7px;
}
.contact_text{
width: 14px;
font-size: 14px;
font-weight: 400;
color: #FFFFFF;
line-height: 20px;
}
}
}
</style>
\ No newline at end of file
......@@ -17,7 +17,7 @@
</div>
</div>
<div class="table_widget">
<GLTable ref="table" :hasPage="false" :hasNum="false" :tableData="productValueInfo" :tableParams="tableParams"></GLTable>
<GLTable ref="table" :hasPage="false" :tableData="productValueInfo" :tableParams="tableParams"></GLTable>
</div>
</div>
<div v-if="!show" class="openBtn h18_title" @click="showContainer">
......
......@@ -54,9 +54,9 @@
<div class="title1">共计{{ tabletotal1 }}条数据</div>
<span class="h9_title">门店新车精品礼券由</span>
<span class="title2">专属顾问</span>
<span class="h9_title">进行配置,如需新增详情请联系管理员</span>
<span class="h9_title">进行配置,如需新增详情请联系管理员。</span>
</div>
<GLTable ref="table1" :tableTotal="tableTotal1" :hasNum="false" :tableData="tableData1" :tableParams="tableParams1" @refreshTable="toOpenCoupons"></GLTable>
<GLTable ref="table1" :layout="layout1" :pageConf="pageConf1" :tableTotal="tabletotal1" :hasNum="false" :tableData="tableData1" :tableParams="tableParams1" @refreshTable="toOpenCoupons"></GLTable>
</el-dialog>
</div>
</template>
......@@ -74,7 +74,9 @@ export default {
data() {
return {
layout: 'sizes, prev, pager, next, jumper, ->, total',
layout1: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
pageConf1: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
......@@ -105,7 +107,7 @@ export default {
width: '100px'
},
{
label: '核销人',
label: '转化人',
prop: 'sellerName'
},
{
......@@ -225,22 +227,21 @@ export default {
}
if (this.dateBetween) {
//领用时间
let startDate = utils.dateFormat(this.dateBetween[0])
let endDate = utils.dateFormat(this.dateBetween[1])
let startDate = utils.dateFormat(this.dateBetween[0],'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.dateBetween[1],'YYYY-MM-DD 23:59:59')
params.startDate = startDate
params.endDate = endDate
}
if (this.columType&&this.employeeName) {
//发券人
params.columType = this.columType
}
//发券人
if(this.employeeName&&this.columType){
params['employeeNameList[0]'] = this.employeeName
params.columType = this.columType
let name = this.columType==1?'employeeNameList[0]':'sellerNameList[0]'
params[name] = this.employeeName
}
if (this.hxdateBetween) {
// 核销时间
let startDate = utils.dateFormat(this.hxdateBetween[0])
let endDate = utils.dateFormat(this.hxdateBetween[1])
let startDate = utils.dateFormat(this.hxdateBetween[0],'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.hxdateBetween[1],'YYYY-MM-DD 23:59:59')
params.startUsedTime = startDate
params.endUsedTime = endDate
}
......@@ -263,10 +264,11 @@ export default {
}
converterApi(para).then(res => {
this.tableData = res.list.map(item => {
item.createdDate = utils.dateFormat(item.createdDate)
item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime) : '--'
item.createdDate = utils.dateFormat(item.createdDate,'YYYY-MM-DD HH:mm:ss')
item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime,'YYYY-MM-DD HH:mm:ss') : '--'
item.status = item.usedFlag == 'Y' ? '已核销' : '待核销'
item.sellerName = item.sellerName || '--'
item.couponName = `${item.couponName}${item.customerCouponCode}`
return item
})
this.tableTotal = res.total
......@@ -286,11 +288,12 @@ export default {
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId,
orderType:6
}
converterApi(para).then(res => {
this.tabletotal1 = res.total
this.tableData1 = res.list.map(item => {
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate) : '--'
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate,'YYYY-MM-DD HH:mm:ss') : '--'
item.couponTypeName = item.couponInfo.couponTypeName
return item
})
......@@ -303,6 +306,11 @@ export default {
...this.httpParam
}
converterApi(para).then(res => {
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res)
return
}
let iframe = document.createElement('iframe')
iframe.style.display = "none"
iframe.src = res
......
......@@ -2,10 +2,10 @@
<div v-if="accountLevel == 4" class="guest-container">
<div class="top_tip_title">
<span class="h6_title">客户评价使用场景</span>
<div class="toNext_widget">
<!-- <div class="toNext_widget">
<span class="h7_title">查看效果演示</span>
<i class="el-icon-d-arrow-right"></i>
</div>
</div> -->
</div>
<div class="tip_wrap">
<span class="h5_title">车主精品升级服务施工完成后,系统会通过微信小程序通知自动提醒客户取车,并且邀请客户好评,客户完成评价后,门店可以在对应的“订单-查看明细”中查看评价。</span>
......
......@@ -21,12 +21,18 @@
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div v-if="accountLevel==4" class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel!=4" class="cell_item">
<div class="cell_label h13_title">4S店</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="storeId" placeholder="请选择">
<el-option v-for="item in list" :key="item.id" :label="item.merchantName" :value="item.id"></el-option>
</el-select>
</div>
<div class="cell_item">
<my-drop-menu :leftName="orderNumName" :options="numOptions" @getValue="changeNOFind">
<div slot="right_con">
......@@ -34,19 +40,47 @@
</div>
</my-drop-menu>
</div>
<div class="cell_btn_item" style="width: 180px">
<!-- <div class="cell_btn_item" style="width: 180px">
<el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div>
</div> -->
</div>
<div style="height: 18px"></div>
<div class="find_line flex_scb">
<el-input style="width: 286px" size="mini" clearable v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<el-input v-if="accountLevel==4" style="width: 286px" size="mini" clearable v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<div v-if="accountLevel!=4" class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_btn_item">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button>
</div>
</div>
</div>
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
<sapn style="color: #5850ff">{{ mytotalNumData.orderCount }}</sapn>
<span>笔订单,累计线上分账金额</span>
<span style="color: #5850ff">{{ mytotalNumData.onlineDivisionMoneyCount }}</span>
<span>元(分账成功金额</span>
<span style="color: #5850ff">{{ mytotalNumData.divisionSuccessMoneyCount }}</span>
<span>元,分账中金额</span>
<span style="color: #5850ff">{{ mytotalNumData.inDivisionMoneyCount }}</span>
<span>元,分账失败金额</span>
<span style="color: #5850ff">{{ mytotalNumData.divisionFailureMoneyCount }}</span>
<span>元,待分账金额</span>
<span style="color: #5850ff">{{ mytotalNumData.waitingDivisionMoneyCount }}</span>
<span>元)。</span>
</div>
<!-- <div class="right_select">
<el-select class="myfindWidth" size="mini" collapse-tags multiple clearable v-model="fieldListData" placeholder="请选择要展示的字段">
<el-option v-for="item in fieldList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div> -->
</div>
<div class="table_wrap">
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="toGetMyDivision"></GLTable>
</div>
......@@ -55,7 +89,7 @@
<script>
import myDropMenu from '../../components/down-menu/index.vue'
import { mydivision, exportMydivision } from '../../api/modules/rules'
import { mydivision, exportMydivision, myAccountTotalNumOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败']
......@@ -64,6 +98,9 @@ export default {
components: {
'my-drop-menu': myDropMenu
},
props:{
list:Array
},
data() {
return {
timeOptions: [
......@@ -166,12 +203,12 @@ export default {
{
label: '分账时间',
prop: 'divisionDate',
width: '110px'
width: '200px'
},
{
label: '支付时间',
prop: 'successDate',
width: '110px'
width: '200px'
},
{
label: '商品编号',
......@@ -255,15 +292,22 @@ export default {
tableData: [],
tableParams: {},
// 查询参数
storeId:'',
timeChangeType: 1,
timeBetwean: '',
divisionTypeStatus: '',
orderNum: '',
goodsName: ''
goodsName: '',
accountLevel: 1,
mytotalNumData: {
subOrderCount: 0
}
}
},
created() {
this.tableParams = this.tableParams2
const { session } = this.$globalState
this.accountLevel = session.accountLevel
},
mounted() {
this.toGetMyDivision()
......@@ -274,18 +318,20 @@ export default {
this.orderNumName = e == 1 ? '主订单编号' : '交易参考号'
this.orderNum = ''
},
clearFind(){
clearFind() {
this.timeBetwean = ''
this.divisionTypeStatus = ''
this.orderNum = ''
this.goodsName = ''
this.storeId = ''
this.$refs.table.page.pageNum = 1
this.toGetMyDivision()
},
handlerParams() {
let params = {}
if (this.timeBetwean) {
let startDate = utils.dateFormat(this.timeBetwean[0])
let endDate = utils.dateFormat(this.timeBetwean[1])
let startDate = utils.dateFormat(this.timeBetwean[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.timeBetwean[1], 'YYYY-MM-DD 23:59:59')
if (this.timeChangeType == 1) {
params.divisionStartDate = startDate
params.divisionEndDate = endDate
......@@ -299,14 +345,17 @@ export default {
}
//主订单编号---交易参考号
if (this.orderNum) {
if (this.orderNumType == 1) {
params.orderCode = this.orderNum
} else {
if (this.orderNumType == 2) {
params.tradeNo = this.orderNum
} else {
params.orderCode = this.orderNum
}
}
if (this.goodsName) {
params.goodsName = this.goodsName
params.upgradeGoodsName = this.goodsName
}
if(this.storeId){
params['merchantIdList[0]'] = this.storeId
}
this.toGetMyDivision(params)
},
......@@ -319,7 +368,7 @@ export default {
this.tableParams = type == 1 ? this.tableParams1 : this.tableParams2
this.toGetMyDivision()
},
toGetMyDivision(params={}) {
toGetMyDivision(params = {}) {
// const { session } = this.$globalState
let method = mydivision()
let para = {
......@@ -334,13 +383,14 @@ export default {
res.list.map(item => {
item.sellerMerchantName = item.goodsOrder.sellerMerchantName
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上对账'
item.successDate = item.payOrder.successDate ? utils.dateFormat(item.payOrder.successDate) : '--'
item.divisionDate = item.orderDivision.divisionDate ? utils.dateFormat(item.orderDivision.divisionDate) : '--'
item.successDate = item.payOrder.successDate ? utils.dateFormat(item.payOrder.successDate, 'YYYY-MM-DD HH:mm:ss') : '--'
item.divisionDate = item.orderDivision.divisionDate ? utils.dateFormat(item.orderDivision.divisionDate, 'YYYY-MM-DD HH:mm:ss') : '--'
item.upgradeGoodsCommodityCode = item.goodsSubOrder.upgradeGoodsCommodityCode
item.upgradeGoodsName = item.goodsSubOrder.upgradeGoodsName
item.divisionStatusName = divistionStatus[item.orderDivision.divisionStatus - 1]
item.customerName = item.customerName || '--'
item.standNo = item.standNo || '--'
item.divisionMoney = item.divisionMoney || '--'
return item
})
this.tableData = res.list
......@@ -351,6 +401,20 @@ export default {
divisionType: this.curDivisionType,
...params
}
this.getMyTotalData(this.httpParam)
})
},
// 获取我的分账统计-集团
getMyTotalData(params) {
delete params.currentPage
delete params.pageSize
let method = myAccountTotalNumOfJT()
let para = {
routerMethod: method,
...params
}
converterApi(para).then(res => {
this.mytotalNumData = res
})
},
toExport() {
......@@ -361,7 +425,7 @@ export default {
}
converterApi(para).then(res => {
let iframe = document.createElement('iframe')
iframe.style.display = "none"
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
})
......@@ -424,6 +488,22 @@ export default {
}
}
}
.tipper {
width: 100%;
box-sizing: border-box;
padding: 15px 20px;
.tip_text {
font-size: 12px;
font-weight: 400;
color: #000000;
display: flex;
align-items: center;
}
.right_select {
width: 286rpx;
overflow: hidden;
}
}
.table_wrap {
padding: 0 15px;
padding-bottom: 10px;
......
......@@ -9,7 +9,10 @@
<el-button size="small" type="primary" @click="openVideoWindow">接入演示</el-button>
</div>
</div>
<div class="posi_wrap_two"></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">
......@@ -20,6 +23,7 @@
<!-- <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">
......@@ -103,23 +107,17 @@
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<video v-if="videoShow" width="100%" height="100%" controls src="https://img02.glsx.com.cn/scrm/video/pre_video.mp4"></video>
</el-dialog>
<div class="qrcode_wrap">
<div class="imag_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg" />
<span class="h18_title">联系电话</span>
<span class="h18_title">189 0000 1234</span>
</div>
<div class="qr_text_wrap flex_cc">
<img src="../../assets/contact_icon.png">
<div class="contact_text">联系我们</div>
</div>
</div>
<qrCode></qrCode>
</div>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
export default {
name: '',
components:{
qrCode
},
data() {
return {
tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
......@@ -171,7 +169,19 @@ export default {
.posi_wrap_two {
width: 451px;
height: 276px;
background: #d8d8d8;
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 {
......@@ -184,6 +194,15 @@ export default {
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;
......@@ -221,6 +240,7 @@ export default {
}
.margin_1 {
margin-right: 200px;
position: relative;
}
.margin_2 {
margin-right: 100px;
......@@ -300,53 +320,4 @@ export default {
margin-top: 25px;
}
}
.qrcode_wrap {
position: fixed;
right: 0;
bottom: 182px;
width: 201px;
// height: 201px;
box-sizing: border-box;
padding-top: 10px;
padding-bottom: 12px;
background: #ffffff;
display: flex;
cursor:pointer;
.imag_wrap {
display: flex;
flex-direction: column;
align-items: center;
> img {
width: 124px;
height: 124px;
}
>span{
line-height: 20px;
}
}
.qr_text_wrap {
position: absolute;
top: 0;
right: 20px;
bottom: 0;
width: 52px;
// min-height: 100;
background: #5850ff;
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);
border-radius: 4px;
flex-direction: column;
>img{
width: 20px;
height: 20px;
margin-bottom: 7px;
}
.contact_text{
width: 14px;
font-size: 14px;
font-weight: 400;
color: #FFFFFF;
line-height: 20px;
}
}
}
</style>
......@@ -9,7 +9,7 @@
<span style="color: #5850ff">¥{{ pjstoreTotal }}</span>
<span>;高于平均线</span>
<span>(同行此业务的平均产值为:</span>
<span style="color: #5850ff">¥{{ productValue }}</span>
<span style="color: #5850ff">¥{{ product || 0 }}</span>
<span>)的共</span>
<span style="color: #5850ff; font-size: 16px">{{ storeNum }}</span>
<span>家</span>
......@@ -21,13 +21,12 @@
</div>
<div class="table_widget">
<el-table :data="tableData" height="350" style="100%" highlight-current-row>
<!-- <el-table-column prop="sort" label="排名" align="center" width="120px"></el-table-column> -->
<el-table-column label="排名" 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">
<span>{{ scope.row.divisionMoney }}</span>
<div class="h19_title xtext">{{ scope.row.divisionMoney }}</div>
<div :style="{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin"></div>
</div>
</template>
......@@ -60,7 +59,8 @@ export default {
show: {
type: Boolean,
default: false
}
},
product:Number
},
created() {
this.today = utils.dateFormat(new Date())
......@@ -72,7 +72,7 @@ export default {
orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = this.$defaultStartDate
// this.bengintime = this.$defaultStartDate
let method = orderTotalOfJT()
let para = {
routerMethod: method,
......@@ -160,10 +160,14 @@ export default {
.echat_wrap {
display: flex;
align-items: center;
.xtext{
width: 20%;
}
.summary-progress-barin {
margin-left: 10px;
background-color: #5850ff;
height: 15px;
width: 65%;
}
}
}
......
......@@ -43,11 +43,10 @@
<div class="table_four flex_scb">
<div class="h9_title">
<span>您的分账金额包含:</span>
<span v-if="division.shopProfitDivisionFlag == 3">平台分账金额,</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>
<span v-if="division.incentiveCostDivisionFlag == 3">导流方分账金额</span>
</div>
</div>
<div class="table_four flex_scb border_all">
......@@ -58,7 +57,7 @@
</div>
<div class="min_widget">
<div class="title h7_title">对公账户信息</div>
<div class="info_widget">
<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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!