Commit 4ffb4bd1 by 杨北旺

提交售中,服务介绍

1 parent 6f6de6f2
...@@ -5902,9 +5902,9 @@ ...@@ -5902,9 +5902,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.1.8", "version": "1.2.2",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.1.8.tgz", "resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.2.2.tgz",
"integrity": "sha512-jjo1EY6tknpi5depW9u4xD70TAUs+6Vyzsi3PJf0v3aONA6nILKxK7Yu5jRiz//CG/H7S+Fd6AnYVnJ+QoQFjQ==", "integrity": "sha512-y2O8lTzNNmDK00Uea5VUlDmBJvE+g2eUREExAp3H3xPPRSxeHa2YTAt7f963HzxDPQqLVYISlqQRgpwCBwV0FQ==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
...@@ -5918,9 +5918,9 @@ ...@@ -5918,9 +5918,9 @@
"integrity": "sha1-9vFzyuI+c6fYj6I7bp2jKSdsZkE=" "integrity": "sha1-9vFzyuI+c6fYj6I7bp2jKSdsZkE="
}, },
"element-ui": { "element-ui": {
"version": "2.15.7", "version": "2.15.6",
"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", "resolved": "https://registry.npmmirror.com/element-ui/download/element-ui-2.15.6.tgz",
"integrity": "sha512-+J6rnXajxzLwV6w8Q6bf7Yqzk1FO1ewbIrCy/4B5alnd7tj8WEpfQoAvISirVaUGVGy77d9Ji3o2bF4f0AsJLQ==", "integrity": "sha1-yWCa3TWvWmhqS3aF3B11fHXgHfM=",
"requires": { "requires": {
"async-validator": "~1.8.1", "async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0", "babel-helper-vue-jsx-merge-props": "^2.0.0",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.1.8", "glsx-components": "^1.2.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
import { http } from '@/main'
const getRulesData = () => { const getRulesData = () => {
let method = 'dj.api.smartcarlife.merchantDivisionRule.getAllRule' let method = 'dj.api.smartcarlife.merchantDivisionRule.getAllRule'
return method return method
...@@ -90,6 +91,31 @@ const orderTotalOfJT = () => { ...@@ -90,6 +91,31 @@ const orderTotalOfJT = () => {
const orderTotalNumOfJT = () => { const orderTotalNumOfJT = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count' let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
return method 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 { export {
getRulesData, getRulesData,
...@@ -110,5 +136,8 @@ export { ...@@ -110,5 +136,8 @@ export {
getEmployName, getEmployName,
checkDetail, checkDetail,
orderTotalOfJT, orderTotalOfJT,
orderTotalNumOfJT orderTotalNumOfJT,
myAccountTotalNumOfJT,
get4SList,
introConpute
} }
\ No newline at end of file \ No newline at end of file
...@@ -142,3 +142,15 @@ ...@@ -142,3 +142,15 @@
align-items: center; align-items: center;
justify-content: 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 \ 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 { ...@@ -29,6 +29,38 @@ export default {
}, },
methods: { methods: {
getOptions(len) { 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 chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom) var myChart = echarts.init(chartDom)
var labelOption = { var labelOption = {
...@@ -52,7 +84,10 @@ export default { ...@@ -52,7 +84,10 @@ export default {
{ {
type: 'category', type: 'category',
axisTick: { show: false }, axisTick: { show: false },
data: this.xAxisData data: this.xAxisData,
axisLabel: {
interval: 0
}
} }
], ],
yAxis: [ yAxis: [
...@@ -61,38 +96,6 @@ export default { ...@@ -61,38 +96,6 @@ export default {
name: '数量' 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: [ series: [
{ {
name: '领券数', name: '领券数',
...@@ -142,13 +145,16 @@ export default { ...@@ -142,13 +145,16 @@ export default {
} }
] ]
} }
if(len>10){
option.dataZoom = dataZoom
}
option && myChart.setOption(option) option && myChart.setOption(option)
}, },
// 初始化时间 // 初始化时间
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) // let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate) // let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate let startDate = utils.getDateStr(-15)
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
...@@ -185,5 +191,6 @@ export default { ...@@ -185,5 +191,6 @@ export default {
.chart-container { .chart-container {
width: 100%; width: 100%;
height: 300px; height: 300px;
overflow: hidden;
} }
</style> </style>
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<div> <div>
<div class="chart-container flex_cc"> <div ref="funnelCon" class="chart-container flex_cc">
<div class="wrap 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"> <div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p> <p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div> </div>
...@@ -21,7 +62,7 @@ ...@@ -21,7 +62,7 @@
<p class="h13_title spc">同行平均转化率:{{chartInfo.totalUpgradePer || 0}}%</p> <p class="h13_title spc">同行平均转化率:{{chartInfo.totalUpgradePer || 0}}%</p>
</div> </div>
<img src="../../assets/funnel_icon.png" /> <img src="../../assets/funnel_icon.png" />
</div> </div> -->
</div> </div>
</div> </div>
</template> </template>
...@@ -37,13 +78,13 @@ export default { ...@@ -37,13 +78,13 @@ export default {
return { return {
nodata: false, nodata: false,
chartInfo: { chartInfo: {
getTotal:0, getTotal: 0,
usedTotal:0, usedTotal: 0,
upgradeTotal:0, upgradeTotal: 0,
usedPer:0, usedPer: 0,
totalUsedPer:0, totalUsedPer: 0,
upgradePer:0, upgradePer: 0,
totalUpgradePer:0, totalUpgradePer: 0
} }
} }
}, },
...@@ -57,6 +98,7 @@ export default { ...@@ -57,6 +98,7 @@ export default {
mounted() { mounted() {
this.initTIme() this.initTIme()
console.log(this.$refs.funnelCon.clientWidth);
}, },
methods: { methods: {
getOptions(res) { getOptions(res) {
...@@ -117,8 +159,8 @@ export default { ...@@ -117,8 +159,8 @@ export default {
// 初始化时间 // 初始化时间
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate) let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate // let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
...@@ -135,10 +177,10 @@ export default { ...@@ -135,10 +177,10 @@ export default {
this.nodata = true this.nodata = true
return return
} }
res.usedPer = utils.decimal(res.usedPer,2) res.usedPer = utils.decimal(res.usedPer, 2)
res.totalUsedPer = utils.decimal(res.totalUsedPer,2) res.totalUsedPer = utils.decimal(res.totalUsedPer, 2)
res.upgradePer = utils.decimal(res.upgradePer,2) res.upgradePer = utils.decimal(res.upgradePer, 2)
res.totalUpgradePer = utils.decimal(res.totalUpgradePer,2) res.totalUpgradePer = utils.decimal(res.totalUpgradePer, 2)
this.chartInfo = res this.chartInfo = res
// this.getOptions(res) // this.getOptions(res)
}) })
...@@ -149,51 +191,49 @@ export default { ...@@ -149,51 +191,49 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart-container { .chart-container {
height: 258px; height: 258px;
overflow: hidden;
} }
.wrap { .image_wrap {
width: 100%; // width: 660px;
height: 100%; width: calc(31.4% * 3);
height: 135px;
position: relative; position: relative;
.text_box { .text_box {
position: absolute; position: absolute;
top: 70px; left: 9.5%;
left: 38px; top: 10px;
} }
.text_box1 { .text_box1 {
position: absolute; position: absolute;
top: 123px; left: 13%;
left: 56px; top: 61px;
} }
.text_box2 { .text_box2 {
position: absolute; position: absolute;
top: 176px; left: 14.7%;
left: 66px; top: 112px;
} }
.text_box3 { .text_box3 {
position: absolute; position: absolute;
top: 82px; right: 2.5%;
right: 15px; top: 27px;
> p {
line-height: 20px;
}
.spc {
font-size: 14px;
font-weight: 400;
color: #888888;
} }
} .text_box4{
.text_box4 {
position: absolute; position: absolute;
top: 146px; right: 7%;
right: 29px; top: 90px;
> p {
line-height: 20px;
} }
.spc { }
.funnel_icon {
width: 31.4%;
height: 135px;
position: relative;
z-index: 20;
}
.spc {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #888888; color: #888888;
}
}
} }
</style> </style>
...@@ -90,9 +90,10 @@ export default { ...@@ -90,9 +90,10 @@ export default {
}, },
// 初始化时间 // 初始化时间
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) // let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate) // 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()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
...@@ -126,5 +127,6 @@ export default { ...@@ -126,5 +127,6 @@ export default {
<style> <style>
.chart-container { .chart-container {
height: 300px; height: 300px;
overflow: hidden;
} }
</style> </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) { ...@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // 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()) //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' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
} }
......
import Vue from 'vue' 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(Button)
Vue.use(ButtonGroup) Vue.use(ButtonGroup)
Vue.use(Form) Vue.use(Form)
...@@ -32,5 +32,8 @@ Vue.use(TimelineItem) ...@@ -32,5 +32,8 @@ Vue.use(TimelineItem)
Vue.use(Dropdown) Vue.use(Dropdown)
Vue.use(DropdownMenu) Vue.use(DropdownMenu)
Vue.use(Rate) Vue.use(Rate)
Vue.use(Image)
Vue.use(Drawer)
Vue.use(Popover)
export const message = Message export const message = Message
export const messageBox = MessageBox export const messageBox = MessageBox
\ No newline at end of file \ No newline at end of file
...@@ -3,26 +3,33 @@ const staticRoutes = Object.freeze([{ ...@@ -3,26 +3,33 @@ const staticRoutes = Object.freeze([{
path: '/inSale/index', path: '/inSale/index',
component: resolve => require([`@/views/inSale/index.vue`], resolve), component: resolve => require([`@/views/inSale/index.vue`], resolve),
meta: {} meta: {}
}, { }, {
name: 'upgrade', name: 'upgrade',
path: '/inSale/upgrade', path: '/inSale/upgrade',
component: resolve => require([`@/views/inSale/upgrade.vue`], resolve), component: resolve => require([`@/views/inSale/upgrade.vue`], resolve),
meta: {} meta: {}
}, { }, {
name: 'guestComments', name: 'guestComments',
path: '/inSale/guestComments', path: '/inSale/guestComments',
component: resolve => require([`@/views/inSale/guestComments.vue`], resolve), component: resolve => require([`@/views/inSale/guestComments.vue`], resolve),
meta: {} meta: {}
}, { }, {
name: 'accountRules', name: 'accountRules',
path: '/inSale/accountRules', path: '/inSale/accountRules',
component: resolve => require([`@/views/inSale/accountRules.vue`], resolve), component: resolve => require([`@/views/inSale/accountRules.vue`], resolve),
meta: {} meta: {}
}, },
{ {
name: 'beforeSale', name: 'beforeSale',
path: '/beforeSale/saleList', path: '/beforeSale/saleList',
component: resolve => require([`@/views/beforeSale/index.vue`], resolve), component: resolve => require([`@/views/beforeSale/index.vue`], resolve),
meta: {} meta: {}
} ]) },
{
name: 'introduct',
path: '/inSale/introduct',
component: resolve => require([`@/views/inSale/introduct.vue`], resolve),
meta: {}
}
])
export default staticRoutes export default staticRoutes
\ No newline at end of file \ No newline at end of file
...@@ -5,9 +5,9 @@ util.dateFormat = function(dateTime, format = 'YYYY-MM-DD') { ...@@ -5,9 +5,9 @@ util.dateFormat = function(dateTime, format = 'YYYY-MM-DD') {
YYYY: date.getFullYear(), YYYY: date.getFullYear(),
MM: appendZero(date.getMonth() + 1), //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11) MM: appendZero(date.getMonth() + 1), //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: appendZero(date.getDate()), DD: appendZero(date.getDate()),
HH: date.getHours(), HH: appendZero(date.getHours()),
mm: date.getMinutes(), mm: appendZero(date.getMinutes()),
ss: date.getSeconds() ss: appendZero(date.getSeconds())
} }
for (const key in config) { for (const key in config) {
format = format.replace(key, config[key]) format = format.replace(key, config[key])
...@@ -26,4 +26,88 @@ util.decimal = function(num, fixed) { ...@@ -26,4 +26,88 @@ util.decimal = function(num, fixed) {
let pow = Math.pow(10, fixed) let pow = Math.pow(10, fixed)
return Math.round(num * pow) / pow 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 export default util
\ No newline at end of file \ No newline at end of file
<template> <template>
<div v-if="accountLevel == 4" class="rule-container"> <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"> <div v-if="updateTime" class="tip_line">
<img class="icon" src="../../assets/notice.png" /> <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>
<div v-if="updateTime" class="drive_line"></div> <div v-if="updateTime" class="drive_line"></div>
<div class="content_wrap"> <div class="content_wrap">
<div class="time_widget"> <div class="time_widget">
<span class="h11_title">生效时间:{{ settleRule1.updatedDate }}</span> <span class="h11_title">生效时间:{{ settleRultData.updatedDate }}</span>
<div v-if="settleRule1.enableFlag == 'N'" class="time_status">生效中</div> <div v-if="settleRultData.enableFlag == 'N'" class="time_status">生效中</div>
<div v-if="settleRule1.enableFlag == 'Y'" class="time_status">已生效</div> <div v-if="settleRultData.enableFlag == 'Y'" class="time_status">已生效</div>
</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> </div>
<div v-if="noList==1" class="list_wrapper"> <div v-if="nodata == 1" class="list_wrapper">
<div class="find_wrap"> <div class="find_wrap">
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker> <el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker>
...@@ -27,18 +27,18 @@ ...@@ -27,18 +27,18 @@
<el-button size="mini" type="primary" @click="toFindNote">查询</el-button> <el-button size="mini" type="primary" @click="toFindNote">查询</el-button>
<span class="tip_text" @click="computeShow = true">查看分润计算说明</span> <span class="tip_text" @click="computeShow = true">查看分润计算说明</span>
</div> </div>
<div class="timeLine_wrap"> <div v-if="noList == 1" class="timeLine_wrap">
<el-timeline> <el-timeline>
<template v-for="(item, index) in noteList"> <template v-for="(item, index) in noteList">
<el-timeline-item :key="index" placement="top"> <el-timeline-item :key="index" placement="top">
<div slot="dot" class="dot_line"> <div slot="dot" class="dot_line">
<div class="icon"></div> <div class="icon"></div>
<span class="text">生效时间:{{ item.effectStartDate }}-{{ item.effectEndDate }}</span> <span class="text">生效时间:{{ item.effectStartDate }}-{{ item.effectEndDate || '至今' }}</span>
<div class="btn">已生效</div> <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>
<div v-if="item.show" class="table_con"> <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> </div>
</el-timeline-item> </el-timeline-item>
</template> </template>
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
<img class="icon" src="../../assets/down_icon.png" /> <img class="icon" src="../../assets/down_icon.png" />
</div> </div>
</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>
<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"> <div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" /> <img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通精品升级服务</span> <span class="nodata_tip_1">您暂未开通精品升级服务</span>
...@@ -72,17 +72,7 @@ ...@@ -72,17 +72,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="nodata==0 && noList==0" class="qrcode_wrap"> <qrCode :bottom="182" v-if="nodata == 0 && noList == 0"></qrCode>
<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>
<el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose"> <el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose">
<div slot="title" class="dialogTitle">分润计算说明</div> <div slot="title" class="dialogTitle">分润计算说明</div>
<div class="dialogContent"> <div class="dialogContent">
...@@ -144,20 +134,22 @@ import { converterApi } from '../../api/modules/converter' ...@@ -144,20 +134,22 @@ import { converterApi } from '../../api/modules/converter'
import { getRulesData, getRulesListData } from '../../api/modules/rules' import { getRulesData, getRulesListData } from '../../api/modules/rules'
import ruleTable from './ruleTable.vue' import ruleTable from './ruleTable.vue'
import utils from '../../util/util' import utils from '../../util/util'
import qrCode from '../../components/qr-code/index.vue'
export default { export default {
name: '', name: '',
components: { components: {
'rule-table': ruleTable 'rule-table': ruleTable,
qrCode
}, },
data() { data() {
return { return {
startDate: '', startDate: '',
endDate: '', endDate: '',
settleRule1: '', settleRultData: '',
updateTime: null, updateTime: null,
effectTime: null, effectTime: null,
updatedBy: '', updatedBy: '',
divisionRule1: null, divisionRuleData: null,
noteList: [], noteList: [],
bankInfo: null, bankInfo: null,
pageSize: 10, pageSize: 10,
...@@ -194,27 +186,30 @@ export default { ...@@ -194,27 +186,30 @@ export default {
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.bankInfo = res.bankInfo 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) { if (!res.bankInfo && !res.divisionRule1 && !res.divisionRule2 && !res.settleRule1 && !res.settleRule2) {
this.nodata = 0 this.nodata = 0
return return
} }
this.nodata = 1 this.nodata = 1
// 广播时间比较: // 广播时间比较:
if (res.divisionRule2 && res.settleRule2) { if (res.divisionRule2) {
let updatedDateTemp1 = res.divisionRule2.updatedDate this.divisionRuleData = res.divisionRule2
let updatedDateTemp2 = res.settleRule2.updatedDate } else {
let update = updatedDateTemp1 > updatedDateTemp2 ? updatedDateTemp1 : updatedDateTemp2 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 let temp = new Date(update).getTime() + 24 * 60 * 60 * 1000
this.updateTime = utils.dateFormat(update)
this.effectTime = utils.dateFormat(temp) + ' ' + '00:00' 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 { ...@@ -228,15 +223,17 @@ export default {
merchantId merchantId
} }
if (this.startDate) { if (this.startDate) {
para.beginDateStr = this.startDate para.beginDateStr = utils.dateFormat(this.startDate, 'YYYY-MM-DD 00:00:00')
} }
if (this.endDate) { if (this.endDate) {
para.endDateStr = this.endDate para.endDateStr = utils.dateFormat(this.endDate, 'YYYY-MM-DD 23:59:59')
} }
converterApi(para).then(res => { converterApi(para).then(res => {
if (res.list.length) { if (res.list.length) {
this.noteList = res.list.map(item => { this.noteList = res.list.map(item => {
item.show = false item.show = false
item.effectStartDate = item.effectStartDate ? utils.dateFormat(item.effectStartDate) : ''
item.effectEndDate = item.effectEndDate ? utils.dateFormat(item.effectEndDate) : ''
return item return item
}) })
this.noteList[0].show = true this.noteList[0].show = true
...@@ -330,6 +327,8 @@ export default { ...@@ -330,6 +327,8 @@ export default {
font-weight: 500; font-weight: 500;
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
z-index: 120;
position: relative;
} }
} }
.timeLine_wrap { .timeLine_wrap {
...@@ -374,6 +373,8 @@ export default { ...@@ -374,6 +373,8 @@ export default {
color: #5850ff; color: #5850ff;
margin-left: 10px; margin-left: 10px;
cursor: pointer; cursor: pointer;
z-index: 88;
position: relative;
} }
.showMoreBtn { .showMoreBtn {
position: absolute; position: absolute;
...@@ -544,53 +545,4 @@ export default { ...@@ -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> </style>
\ No newline at end of file \ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<div class="table_widget"> <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> </div>
<div v-if="!show" class="openBtn h18_title" @click="showContainer"> <div v-if="!show" class="openBtn h18_title" @click="showContainer">
......
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
<div class="title1">共计{{ tabletotal1 }}条数据</div> <div class="title1">共计{{ tabletotal1 }}条数据</div>
<span class="h9_title">门店新车精品礼券由</span> <span class="h9_title">门店新车精品礼券由</span>
<span class="title2">专属顾问</span> <span class="title2">专属顾问</span>
<span class="h9_title">进行配置,如需新增详情请联系管理员</span> <span class="h9_title">进行配置,如需新增详情请联系管理员。</span>
</div> </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> </el-dialog>
</div> </div>
</template> </template>
...@@ -74,7 +74,9 @@ export default { ...@@ -74,7 +74,9 @@ export default {
data() { data() {
return { return {
layout: 'sizes, prev, pager, next, jumper, ->, total', layout: 'sizes, prev, pager, next, jumper, ->, total',
layout1: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
pageConf1: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: { tableParams: {
tableOption: false, tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
...@@ -105,7 +107,7 @@ export default { ...@@ -105,7 +107,7 @@ export default {
width: '100px' width: '100px'
}, },
{ {
label: '核销人', label: '转化人',
prop: 'sellerName' prop: 'sellerName'
}, },
{ {
...@@ -225,22 +227,21 @@ export default { ...@@ -225,22 +227,21 @@ export default {
} }
if (this.dateBetween) { if (this.dateBetween) {
//领用时间 //领用时间
let startDate = utils.dateFormat(this.dateBetween[0]) let startDate = utils.dateFormat(this.dateBetween[0],'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.dateBetween[1]) let endDate = utils.dateFormat(this.dateBetween[1],'YYYY-MM-DD 23:59:59')
params.startDate = startDate params.startDate = startDate
params.endDate = endDate params.endDate = endDate
} }
if (this.columType&&this.employeeName) {
//发券人 //发券人
params.columType = this.columType
}
if(this.employeeName&&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) { if (this.hxdateBetween) {
// 核销时间 // 核销时间
let startDate = utils.dateFormat(this.hxdateBetween[0]) let startDate = utils.dateFormat(this.hxdateBetween[0],'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.hxdateBetween[1]) let endDate = utils.dateFormat(this.hxdateBetween[1],'YYYY-MM-DD 23:59:59')
params.startUsedTime = startDate params.startUsedTime = startDate
params.endUsedTime = endDate params.endUsedTime = endDate
} }
...@@ -263,10 +264,11 @@ export default { ...@@ -263,10 +264,11 @@ export default {
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.tableData = res.list.map(item => { this.tableData = res.list.map(item => {
item.createdDate = utils.dateFormat(item.createdDate) item.createdDate = utils.dateFormat(item.createdDate,'YYYY-MM-DD HH:mm:ss')
item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime) : '--' item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime,'YYYY-MM-DD HH:mm:ss') : '--'
item.status = item.usedFlag == 'Y' ? '已核销' : '待核销' item.status = item.usedFlag == 'Y' ? '已核销' : '待核销'
item.sellerName = item.sellerName || '--' item.sellerName = item.sellerName || '--'
item.couponName = `${item.couponName}${item.customerCouponCode}`
return item return item
}) })
this.tableTotal = res.total this.tableTotal = res.total
...@@ -286,11 +288,12 @@ export default { ...@@ -286,11 +288,12 @@ export default {
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1, currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10, pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId, merchantId,
orderType:6
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.tabletotal1 = res.total this.tabletotal1 = res.total
this.tableData1 = res.list.map(item => { 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 item.couponTypeName = item.couponInfo.couponTypeName
return item return item
}) })
...@@ -303,6 +306,11 @@ export default { ...@@ -303,6 +306,11 @@ export default {
...this.httpParam ...this.httpParam
} }
converterApi(para).then(res => { converterApi(para).then(res => {
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res)
return
}
let iframe = document.createElement('iframe') let iframe = document.createElement('iframe')
iframe.style.display = "none" iframe.style.display = "none"
iframe.src = res iframe.src = res
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<div v-if="accountLevel == 4" class="guest-container"> <div v-if="accountLevel == 4" class="guest-container">
<div class="top_tip_title"> <div class="top_tip_title">
<span class="h6_title">客户评价使用场景</span> <span class="h6_title">客户评价使用场景</span>
<div class="toNext_widget"> <!-- <div class="toNext_widget">
<span class="h7_title">查看效果演示</span> <span class="h7_title">查看效果演示</span>
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</div> </div> -->
</div> </div>
<div class="tip_wrap"> <div class="tip_wrap">
<span class="h5_title">车主精品升级服务施工完成后,系统会通过微信小程序通知自动提醒客户取车,并且邀请客户好评,客户完成评价后,门店可以在对应的“订单-查看明细”中查看评价。</span> <span class="h5_title">车主精品升级服务施工完成后,系统会通过微信小程序通知自动提醒客户取车,并且邀请客户好评,客户完成评价后,门店可以在对应的“订单-查看明细”中查看评价。</span>
......
...@@ -21,12 +21,18 @@ ...@@ -21,12 +21,18 @@
</div> </div>
</my-drop-menu> </my-drop-menu>
</div> </div>
<div class="cell_item"> <div v-if="accountLevel==4" class="cell_item">
<div class="cell_label h13_title">分账状态</div> <div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择"> <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-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</div> </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"> <div class="cell_item">
<my-drop-menu :leftName="orderNumName" :options="numOptions" @getValue="changeNOFind"> <my-drop-menu :leftName="orderNumName" :options="numOptions" @getValue="changeNOFind">
<div slot="right_con"> <div slot="right_con">
...@@ -34,19 +40,47 @@ ...@@ -34,19 +40,47 @@
</div> </div>
</my-drop-menu> </my-drop-menu>
</div> </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> <el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div> </div> -->
</div> </div>
<div style="height: 18px"></div> <div style="height: 18px"></div>
<div class="find_line flex_scb"> <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"> <div class="cell_btn_item">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button> <el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button> <el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button>
</div> </div>
</div> </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"> <div class="table_wrap">
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="toGetMyDivision"></GLTable> <GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="toGetMyDivision"></GLTable>
</div> </div>
...@@ -55,7 +89,7 @@ ...@@ -55,7 +89,7 @@
<script> <script>
import myDropMenu from '../../components/down-menu/index.vue' 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 { converterApi } from '../../api/modules/converter'
import utils from '../../util/util' import utils from '../../util/util'
const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败'] const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败']
...@@ -64,6 +98,9 @@ export default { ...@@ -64,6 +98,9 @@ export default {
components: { components: {
'my-drop-menu': myDropMenu 'my-drop-menu': myDropMenu
}, },
props:{
list:Array
},
data() { data() {
return { return {
timeOptions: [ timeOptions: [
...@@ -166,12 +203,12 @@ export default { ...@@ -166,12 +203,12 @@ export default {
{ {
label: '分账时间', label: '分账时间',
prop: 'divisionDate', prop: 'divisionDate',
width: '110px' width: '200px'
}, },
{ {
label: '支付时间', label: '支付时间',
prop: 'successDate', prop: 'successDate',
width: '110px' width: '200px'
}, },
{ {
label: '商品编号', label: '商品编号',
...@@ -255,15 +292,22 @@ export default { ...@@ -255,15 +292,22 @@ export default {
tableData: [], tableData: [],
tableParams: {}, tableParams: {},
// 查询参数 // 查询参数
storeId:'',
timeChangeType: 1, timeChangeType: 1,
timeBetwean: '', timeBetwean: '',
divisionTypeStatus: '', divisionTypeStatus: '',
orderNum: '', orderNum: '',
goodsName: '' goodsName: '',
accountLevel: 1,
mytotalNumData: {
subOrderCount: 0
}
} }
}, },
created() { created() {
this.tableParams = this.tableParams2 this.tableParams = this.tableParams2
const { session } = this.$globalState
this.accountLevel = session.accountLevel
}, },
mounted() { mounted() {
this.toGetMyDivision() this.toGetMyDivision()
...@@ -274,18 +318,20 @@ export default { ...@@ -274,18 +318,20 @@ export default {
this.orderNumName = e == 1 ? '主订单编号' : '交易参考号' this.orderNumName = e == 1 ? '主订单编号' : '交易参考号'
this.orderNum = '' this.orderNum = ''
}, },
clearFind(){ clearFind() {
this.timeBetwean = '' this.timeBetwean = ''
this.divisionTypeStatus = '' this.divisionTypeStatus = ''
this.orderNum = '' this.orderNum = ''
this.goodsName = '' this.goodsName = ''
this.storeId = ''
this.$refs.table.page.pageNum = 1
this.toGetMyDivision() this.toGetMyDivision()
}, },
handlerParams() { handlerParams() {
let params = {} let params = {}
if (this.timeBetwean) { if (this.timeBetwean) {
let startDate = utils.dateFormat(this.timeBetwean[0]) let startDate = utils.dateFormat(this.timeBetwean[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.timeBetwean[1]) let endDate = utils.dateFormat(this.timeBetwean[1], 'YYYY-MM-DD 23:59:59')
if (this.timeChangeType == 1) { if (this.timeChangeType == 1) {
params.divisionStartDate = startDate params.divisionStartDate = startDate
params.divisionEndDate = endDate params.divisionEndDate = endDate
...@@ -299,14 +345,17 @@ export default { ...@@ -299,14 +345,17 @@ export default {
} }
//主订单编号---交易参考号 //主订单编号---交易参考号
if (this.orderNum) { if (this.orderNum) {
if (this.orderNumType == 1) { if (this.orderNumType == 2) {
params.orderCode = this.orderNum
} else {
params.tradeNo = this.orderNum params.tradeNo = this.orderNum
} else {
params.orderCode = this.orderNum
} }
} }
if (this.goodsName) { if (this.goodsName) {
params.goodsName = this.goodsName params.upgradeGoodsName = this.goodsName
}
if(this.storeId){
params['merchantIdList[0]'] = this.storeId
} }
this.toGetMyDivision(params) this.toGetMyDivision(params)
}, },
...@@ -319,7 +368,7 @@ export default { ...@@ -319,7 +368,7 @@ export default {
this.tableParams = type == 1 ? this.tableParams1 : this.tableParams2 this.tableParams = type == 1 ? this.tableParams1 : this.tableParams2
this.toGetMyDivision() this.toGetMyDivision()
}, },
toGetMyDivision(params={}) { toGetMyDivision(params = {}) {
// const { session } = this.$globalState // const { session } = this.$globalState
let method = mydivision() let method = mydivision()
let para = { let para = {
...@@ -334,13 +383,14 @@ export default { ...@@ -334,13 +383,14 @@ export default {
res.list.map(item => { res.list.map(item => {
item.sellerMerchantName = item.goodsOrder.sellerMerchantName item.sellerMerchantName = item.goodsOrder.sellerMerchantName
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上对账' item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上对账'
item.successDate = item.payOrder.successDate ? utils.dateFormat(item.payOrder.successDate) : '--' 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) : '--' item.divisionDate = item.orderDivision.divisionDate ? utils.dateFormat(item.orderDivision.divisionDate, 'YYYY-MM-DD HH:mm:ss') : '--'
item.upgradeGoodsCommodityCode = item.goodsSubOrder.upgradeGoodsCommodityCode item.upgradeGoodsCommodityCode = item.goodsSubOrder.upgradeGoodsCommodityCode
item.upgradeGoodsName = item.goodsSubOrder.upgradeGoodsName item.upgradeGoodsName = item.goodsSubOrder.upgradeGoodsName
item.divisionStatusName = divistionStatus[item.orderDivision.divisionStatus - 1] item.divisionStatusName = divistionStatus[item.orderDivision.divisionStatus - 1]
item.customerName = item.customerName || '--' item.customerName = item.customerName || '--'
item.standNo = item.standNo || '--' item.standNo = item.standNo || '--'
item.divisionMoney = item.divisionMoney || '--'
return item return item
}) })
this.tableData = res.list this.tableData = res.list
...@@ -351,6 +401,20 @@ export default { ...@@ -351,6 +401,20 @@ export default {
divisionType: this.curDivisionType, divisionType: this.curDivisionType,
...params ...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() { toExport() {
...@@ -361,7 +425,7 @@ export default { ...@@ -361,7 +425,7 @@ export default {
} }
converterApi(para).then(res => { converterApi(para).then(res => {
let iframe = document.createElement('iframe') let iframe = document.createElement('iframe')
iframe.style.display = "none" iframe.style.display = 'none'
iframe.src = res iframe.src = res
document.body.appendChild(iframe) document.body.appendChild(iframe)
}) })
...@@ -424,6 +488,22 @@ export default { ...@@ -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 { .table_wrap {
padding: 0 15px; padding: 0 15px;
padding-bottom: 10px; padding-bottom: 10px;
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
<el-button size="small" type="primary" @click="openVideoWindow">接入演示</el-button> <el-button size="small" type="primary" @click="openVideoWindow">接入演示</el-button>
</div> </div>
</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>
<div class="mini_main_widget"> <div class="mini_main_widget">
<div class="box_wrap margin_1"> <div class="box_wrap margin_1">
...@@ -20,6 +23,7 @@ ...@@ -20,6 +23,7 @@
<!-- <img class="icon" src="../../assets/go_icon.png" /> --> <!-- <img class="icon" src="../../assets/go_icon.png" /> -->
</div> </div>
</div> </div>
<i class="el-icon-d-arrow-right"></i>
<div class="box_wrap margin_2"> <div class="box_wrap margin_2">
<div class="h3_title">您将获得的</div> <div class="h3_title">您将获得的</div>
<div class="line_icon_text"> <div class="line_icon_text">
...@@ -103,23 +107,17 @@ ...@@ -103,23 +107,17 @@
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose"> <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> <video v-if="videoShow" width="100%" height="100%" controls src="https://img02.glsx.com.cn/scrm/video/pre_video.mp4"></video>
</el-dialog> </el-dialog>
<div class="qrcode_wrap"> <qrCode></qrCode>
<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>
</div> </div>
</template> </template>
<script> <script>
import qrCode from '../../components/qr-code/index.vue'
export default { export default {
name: '', name: '',
components:{
qrCode
},
data() { data() {
return { return {
tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'], tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
...@@ -171,7 +169,19 @@ export default { ...@@ -171,7 +169,19 @@ export default {
.posi_wrap_two { .posi_wrap_two {
width: 451px; width: 451px;
height: 276px; 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 { .mini_main_widget {
...@@ -184,6 +194,15 @@ export default { ...@@ -184,6 +194,15 @@ export default {
padding: 0 20px; padding: 0 20px;
display: flex; display: flex;
align-items: center; align-items: center;
position: relative;
>i{
// font-size: 13px;
position: absolute;
top: 50%;
left: 316px;
transform: translate(0,-50%);
color: #5850FF;
}
.box_wrap { .box_wrap {
height: 100%; height: 100%;
display: flex; display: flex;
...@@ -221,6 +240,7 @@ export default { ...@@ -221,6 +240,7 @@ export default {
} }
.margin_1 { .margin_1 {
margin-right: 200px; margin-right: 200px;
position: relative;
} }
.margin_2 { .margin_2 {
margin-right: 100px; margin-right: 100px;
...@@ -300,53 +320,4 @@ export default { ...@@ -300,53 +320,4 @@ export default {
margin-top: 25px; 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> </style>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<span style="color: #5850ff">¥{{ pjstoreTotal }}</span> <span style="color: #5850ff">¥{{ pjstoreTotal }}</span>
<span>;高于平均线</span> <span>;高于平均线</span>
<span>(同行此业务的平均产值为:</span> <span>(同行此业务的平均产值为:</span>
<span style="color: #5850ff">¥{{ productValue }}</span> <span style="color: #5850ff">¥{{ product || 0 }}</span>
<span>)的共</span> <span>)的共</span>
<span style="color: #5850ff; font-size: 16px">{{ storeNum }}</span> <span style="color: #5850ff; font-size: 16px">{{ storeNum }}</span>
<span>家</span> <span>家</span>
...@@ -21,13 +21,12 @@ ...@@ -21,13 +21,12 @@
</div> </div>
<div class="table_widget"> <div class="table_widget">
<el-table :data="tableData" height="350" style="100%" highlight-current-row> <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 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 prop="merchantName" label="门店名称" align="center"></el-table-column>
<el-table-column label="总产值" width="500"> <el-table-column label="总产值" width="500">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="echat_wrap"> <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 :style="{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin"></div>
</div> </div>
</template> </template>
...@@ -60,7 +59,8 @@ export default { ...@@ -60,7 +59,8 @@ export default {
show: { show: {
type: Boolean, type: Boolean,
default: false default: false
} },
product:Number
}, },
created() { created() {
this.today = utils.dateFormat(new Date()) this.today = utils.dateFormat(new Date())
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
orderAll() { orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate) this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = this.$defaultStartDate // this.bengintime = this.$defaultStartDate
let method = orderTotalOfJT() let method = orderTotalOfJT()
let para = { let para = {
routerMethod: method, routerMethod: method,
...@@ -160,10 +160,14 @@ export default { ...@@ -160,10 +160,14 @@ export default {
.echat_wrap { .echat_wrap {
display: flex; display: flex;
align-items: center; align-items: center;
.xtext{
width: 20%;
}
.summary-progress-barin { .summary-progress-barin {
margin-left: 10px; margin-left: 10px;
background-color: #5850ff; background-color: #5850ff;
height: 15px; height: 15px;
width: 65%;
} }
} }
} }
......
...@@ -43,11 +43,10 @@ ...@@ -43,11 +43,10 @@
<div class="table_four flex_scb"> <div class="table_four flex_scb">
<div class="h9_title"> <div class="h9_title">
<span>您的分账金额包含:</span> <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.partnerProfitDivisionFlag == 3">服务商分账金额,</span>
<span v-if="division.goodsCostDivisionFlag == 3">产品金额,</span> <span v-if="division.goodsCostDivisionFlag == 3">产品金额,</span>
<span v-if="division.extraCostDivisionFlag == 3">额外成本,</span> <span v-if="division.extraCostDivisionFlag == 3">额外成本,</span>
<span v-if="division.incentiveCostDivisionFlag == 3">导流方分账金额</span>
</div> </div>
</div> </div>
<div class="table_four flex_scb border_all"> <div class="table_four flex_scb border_all">
...@@ -58,7 +57,7 @@ ...@@ -58,7 +57,7 @@
</div> </div>
<div class="min_widget"> <div class="min_widget">
<div class="title h7_title">对公账户信息</div> <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.bankName}}</span>
<span class="h9_title">开户支行:{{bankData.openAccBankName}}</span> <span class="h9_title">开户支行:{{bankData.openAccBankName}}</span>
<span class="h9_title">账户号:{{bankData.bankAccountNo}}</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!