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
...@@ -88,8 +89,33 @@ const orderTotalOfJT = () => { ...@@ -88,8 +89,33 @@ 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
...@@ -141,4 +141,16 @@ ...@@ -141,4 +141,16 @@
display: flex; display: flex;
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 {
font-size: 14px;
font-weight: 400;
color: #888888;
}
} }
} }
.funnel_icon {
width: 31.4%;
height: 135px;
position: relative;
z-index: 20;
}
.spc {
font-size: 14px;
font-weight: 400;
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
const staticRoutes = Object.freeze([{ const staticRoutes = Object.freeze([{
name: 'index', name: 'index',
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: {}
} ]) },
export default staticRoutes {
name: 'introduct',
path: '/inSale/introduct',
component: resolve => require([`@/views/inSale/introduct.vue`], resolve),
meta: {}
}
])
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>
......
<template>
<div class="introduct-container">
<div class="wrap_con flex_scb">
<div class="text_wrap">
<span>《嘀加企微管家》</span>
<div class="maxText">
<span>
给您一套
<span style="font-size: 42px">帮你变现</span>
的服务系统
</span>
</div>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="../../assets/intro_max_bg.png" />
<img class="play_icon" src="../../assets/play_icon.png" />
</div>
</div>
<div class="wrap_con_mid">
<template v-for="(item, index) in localList">
<div :key="index" class="box_con">
<img class="icon" :src="item.icon" />
<p class="title">{{ item.title }}</p>
<div style="height: 15px"></div>
<p class="h9_title">{{ item.desc }}</p>
<p v-if="item.miniDesc" class="h9_title">{{ item.miniDesc }}</p>
<div style="height: 23px"></div>
<div class="btn_text h13_title flex_scb">
<span>{{ item.btnTitle }}</span>
<span class="btnTextBlue" @click="openDraw('rtl', true)">
查看案例
<i class="el-icon-d-arrow-right"></i>
</span>
</div>
</div>
</template>
</div>
<div class="wrap_con_foot">
<div class="title">服务收益在线评估</div>
<div class="wrap_line">
<div class="line_left flex_sc">
<div class="cell flex_sc">
<div class="label h13_title">门店月平均新车销量</div>
<el-input style="width: 215px" maxlength="5" clearable size="mini" v-model="num1">
<template slot="append">台</template>
</el-input>
<span v-if="(!num1 && checked) || numberCheck1" :class="[{ err2: numberCheck1 }]" class="error_tip">{{ errorMessage1 }}</span>
</div>
<div style="width: 30px; height: 1px"></div>
<div class="cell flex_sc">
<div class="label h13_title">门店数</div>
<el-input style="width: 215px" maxlength="5" clearable size="mini" v-model="num2">
<template slot="append">家</template>
</el-input>
<span v-if="(!num2 && checked) || numberCheck2" :class="[{ err2: numberCheck2, err4: errorMessage2.length == 8 }]" class="error_tip err3">{{ errorMessage2 }}</span>
</div>
</div>
<div style="width: 10px; height: 1px"></div>
<el-button size="mini" type="primary" @click="computedInfo">计算</el-button>
</div>
<div class="wrap_pie_con">
<div class="titlemin h13_title flex_sc">
<span>结果预测</span>
<img @mouseenter="showTip = true" @mouseleave="showTip = false" src="../../assets/intro.png" alt="" />
</div>
<div v-if="showTip" class="tipContentClass">
<div class="title_1">说明</div>
<p class="h20_title">单店产值计算公式:用户量*渗透率*客单价</p>
<div class="single"></div>
<div class="single1"></div>
</div>
<div class="text_line flex_sc">
<div class="maxTextPrice flex_sc">
<span class="h13_title">总产值</span>
<span v-if="totalProduct" class="blueText">{{ totalProduct }}/年</span>
<span v-else class="blueText">--</span>
</div>
<div class="maxTextPrice spc flex_sc">
<span class="h13_title">单店产值</span>
<span v-if="singleProduct" class="blueText">{{ singleProduct }}/年</span>
<span v-else class="blueText">--</span>
</div>
</div>
<div class="chart_wrap">
<pie ref="mypie" echartId="myPie"></pie>
</div>
</div>
</div>
<qrCode></qrCode>
<el-drawer :with-header="false" title="案例详情" size="45%" :visible.sync="drawer" :direction="direction" :before-close="handleClose">
<template v-if="direction == 'ltr'">
<caseOne @close="drawer = false"></caseOne>
</template>
<template v-if="direction == 'rtl' && !directionCenter">
<caseTwo @close="drawer = false"></caseTwo>
</template>
<template v-if="direction == 'rtl' && directionCenter">
<caseThree @close="drawer = false"></caseThree>
</template>
</el-drawer>
</div>
</template>
<script>
import pie from '../../components/service-echart/pie.vue'
import caseOne from '../../components/intro-case/case_one.vue'
import caseTwo from '../../components/intro-case/case_two.vue'
import caseThree from '../../components/intro-case/case_three.vue'
import qrCode from '../../components/qr-code/index.vue'
export default {
name: '',
components: {
pie,
caseOne,
caseTwo,
caseThree,
qrCode
},
data() {
return {
conH1: 360,
num1: '',
num2: 1,
direction: 'rtl',
drawer: false,
checked: false,
directionCenter: false,
totalProduct: 0,
singleProduct: 0,
showTip: false,
errorMessage1: '门店月平均新车销量不能为空',
errorMessage2: '门店数不能为空',
numberCheck1: false,
numberCheck2: false,
showQRCode: false,
localList: [
{
title: '新车售前打包增值方案',
desc: '4S店会员权益服务——赚钱、锁客两不误',
miniDesc: null,
btnTitle: '帮您年度产值增加50万',
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/scrm_tro_one.png'
},
{
title: '精品售中升级',
desc: '驻店升级转化精品——帮助门店新车流量',
miniDesc: '托管式增值变现',
btnTitle: '帮门店年度产值增值70W+',
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/scrm_tro_two.png'
},
{
title: '售后代运营服务',
desc: '企微魔方帮用户沉淀企微——精准推荐、',
miniDesc: '直播实现复购变现',
btnTitle: '帮您售后产值增加20W/年',
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/scrm_tro_three.png'
}
]
}
},
mounted() {},
methods: {
// 总产值=总售前产值+总售中产值+总售后产值;单店产值=总产值/门店数量;
// 售前权益新增产值(简称:售前产值)=新车销量*12(个月)*30%(渗透率)*2000(平均客单价);
// 售中精品新增产值(简称:售中产值)=新车销量*12(个月)*45%(渗透率)*1350(平均客单价);
// 售后代运营产值(简称:售后产值)=新车销量*12(个月)*3(触达3年的用户)*12%(渗透率)*500(平均客单价);
// temp.preSalePermeability = temp.preSalePermeability || '售前权益渗透率'
// temp.preSaleUnitPrice = temp.preSaleUnitPrice || '售前权益客单价'
// temp.onSalePermeability = temp.onSalePermeability || '售中精品渗透率'
// temp.onSaleUnitPrice = temp.onSaleUnitPrice || '售中精品客单价'
// temp.afterSalePermeability = temp.afterSalePermeability || '售后代运营渗透率'
// temp.afterSaleUnitPrice = temp.afterSaleUnitPrice || '售后代运营客单价'
// 新车销量 num1 门店数num2
computedInfo() {
if (!this.num1 || !this.num2) {
this.checked = true
this.errorMessage1 = '门店月平均新车销量不能为空'
this.errorMessage2 = '门店数不能为空'
setTimeout(() => {
this.checked = false
}, 1500)
return
}
let posPattern = /^\d*\.?\d+$/
if (!posPattern.test(this.num1)) {
this.numberCheck1 = true
this.errorMessage1 = '请输入正确的数字格式'
setTimeout(() => {
this.numberCheck1 = false
}, 1500)
return
}
if (!posPattern.test(this.num2)) {
this.numberCheck2 = true
this.errorMessage2 = '请输入正确的数字格式'
setTimeout(() => {
this.numberCheck2 = false
}, 1500)
return
}
if (this.num1 == 0) {
this.numberCheck1 = true
this.errorMessage1 = '门店新车销量不能小于0'
setTimeout(() => {
this.numberCheck1 = false
}, 1500)
return
}
if (this.num2 == 0) {
this.numberCheck2 = true
this.errorMessage2 = '门店数不能小于0'
setTimeout(() => {
this.numberCheck2 = false
}, 1500)
return
}
let num1 = parseInt(this.num1)
let num2 = parseInt(this.num2)
let obj = this.$refs.mypie.computeProduct(num1, num2)
this.totalProduct = obj.totalProduct
this.singleProduct = obj.singleProduct
},
openDraw(type, flag) {
this.direction = type
this.drawer = true
this.directionCenter = flag
},
handleClose() {
this.drawer = false
}
}
}
</script>
<style lang="scss" scoped>
.wrap_con {
width: 100%;
height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding-right: 80px;
.text_wrap {
box-sizing: border-box;
padding-left: 44px;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
> span {
font-size: 16px;
font-weight: 400;
color: #666666;
}
.maxText {
font-size: 30px;
font-weight: 500;
color: #000000;
margin-top: 10px;
}
}
.bg_wrap {
width: 480px;
height: 270px;
position: relative;
.max_icon {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
}
.play_icon {
position: relative;
z-index: 2;
cursor: pointer;
}
}
}
.wrap_con_mid {
// height: 270px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px;
display: flex;
align-items: center;
justify-content: space-around;
box-sizing: border-box;
padding: 20px;
.box_con {
width: 31.6%;
height: 100%;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.icon {
width: 40px;
height: 40px;
margin-top: 20px;
margin-bottom: 30px;
}
.title {
font-size: 18px;
font-weight: 600;
color: #333333;
}
.tip {
margin-top: 15px;
margin-bottom: 41px;
}
.btn_text {
margin-bottom: 30px;
}
.btnTextBlue {
font-size: 14px;
font-weight: 500;
color: #5850ff;
margin-left: 30px;
cursor: pointer;
> i {
margin-left: 14px;
}
}
}
}
.wrap_con_foot {
height: 355px;
margin-top: 10px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.title {
box-sizing: border-box;
font-size: 18px;
font-weight: 600;
color: #333333;
padding: 20px 0 10px 21px;
}
.wrap_line {
display: flex;
align-items: center;
box-sizing: border-box;
padding: 0 20px 0px 21px;
.line_left {
.cell {
position: relative;
.error_tip {
position: absolute;
right: 56px;
bottom: -16px;
font-size: 11px;
color: #ee3527;
}
.err3 {
right: 129px;
}
.err2 {
right: 96px;
}
.err4 {
right: 129px;
}
}
.label {
margin-right: 15px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.wrap_pie_con {
margin: 20px;
height: 235px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
position: relative;
.tipContentClass {
position: absolute;
left: 104px;
top: -3px;
// width: 240px;
// height: 94px;
background: #ffffff;
box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
border: 1px solid #e4e7ed;
z-index: 999;
box-sizing: border-box;
padding: 10px 9px;
.title_1 {
font-size: 12px;
font-weight: bold;
color: #333333;
z-index: 999;
position: relative;
}
> p {
z-index: 999;
position: relative;
margin-top: 10px;
line-height: 18px;
}
.single {
position: absolute;
left: -5px;
top: 15px;
// transform: translate(0, -50%);
width: 10px;
height: 10px;
background: #ffffff;
transform: rotate(-60deg);
border: 1px solid #e4e7ed;
z-index: -1;
}
.single1 {
position: absolute;
left: 0px;
top: 50%;
transform: translate(0, -50%);
width: 20px;
height: 100%;
background: #ffffff;
z-index: 22;
}
}
.titlemin {
padding: 20px 0 0 20px;
> img {
width: 12px;
height: 12px;
margin-left: 5px;
cursor: pointer;
}
}
.text_line {
margin-top: 19px;
box-sizing: border-box;
padding-left: 20px;
.maxTextPrice {
.blueText {
font-size: 20px;
font-weight: 600;
color: #5850ff;
margin-left: 10px;
}
}
.spc {
margin-left: 150px;
}
}
.chart_wrap {
width: 50%;
height: 152px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -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>
...@@ -15,24 +15,34 @@ ...@@ -15,24 +15,34 @@
</div> </div>
</div> </div>
<div class="price_max"> <div class="price_max">
<span class="h8_title">¥{{ productValueInfo.divisionMoney || '--.--' }}</span> <span class="h8_title">¥{{ productValueInfo.divisionMoney || '---' }}</span>
</div> </div>
<span class="text_tip h12_title">低于基准线</span> <template v-if="accountLevel == 4">
<span class="text_tip_price h13_title">昨日产值:¥{{ productValueInfo.yesterdayDivisionMoney || '--.--' }}</span> <span class="text_tip h12_title">低于基准线</span>
<span class="text_tip_price1 h13_title">今日产值:¥{{ productValueInfo.todayDivisionMoney || '--.--' }}</span> <span class="text_tip_price h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</span>
<span class="text_tip_price2 h13_title">行业均值(单店):¥{{ productValueInfo.totalDivisionMoney || '--.--' }}</span> <span class="text_tip_price1 h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</span>
<span class="text_tip_price3 h13_title">累计利润:¥{{ productValueInfo.profitMoney || '--.--' }}</span> <span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span>
<span class="text_tip_price4 h13_title">昨日利润:¥{{ productValueInfo.yesterdayProfitMoney || '--.--' }}</span> <span class="text_tip_price3 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price4 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
</template>
<template v-if="accountLevel != 4">
<span class="text_tip_price10 h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</span>
<span class="text_tip_price9 h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</span>
<span class="text_tip_price8 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
<span class="text_tip_price7 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price6 h13_title">平均单店产值:{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span>
<span v-if="firsStore" class="text_tip_price5 h13_title">冠军店:{{ firsStore.merchantName }}(占{{ persent }}%)</span>
</template>
</div> </div>
<div class="wrap"> <div class="wrap">
<div class="date_line"> <div class="date_line">
<el-button size="mini" type="primary" @click="toFindChart">统计时间</el-button> <el-button size="mini" type="primary" @click="toFindChart">统计时间</el-button>
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="chartStartDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartStartTime"></el-date-picker> <el-date-picker style="width: 160px" :key="dateType == 'date' ? 'day' : 'month'" size="mini" v-model="chartStartDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartStartTime" :picker-options="pickerOptions1"></el-date-picker>
</div> </div>
<div class="drive_w"></div> <div class="drive_w"></div>
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="chartEndDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartEndTime"></el-date-picker> <el-date-picker style="width: 160px" :key="dateType == 'date' ? 'day' : 'month'" size="mini" v-model="chartEndDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartEndTime" :picker-options="pickerOptions1"></el-date-picker>
</div> </div>
<div class="drive_w"></div> <div class="drive_w"></div>
<el-button size="mini" type="primary" @click="toChangeMonth">按月</el-button> <el-button size="mini" type="primary" @click="toChangeMonth">按月</el-button>
...@@ -43,21 +53,24 @@ ...@@ -43,21 +53,24 @@
<funnel ref="myFunnel" echartId="my-funnel"></funnel> <funnel ref="myFunnel" echartId="my-funnel"></funnel>
</div> </div>
</div> </div>
<div v-if="!showMore" class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)">
<span>查看详情</span>
<img class="icon" src="../../assets/down_icon.png" />
</div>
</div> </div>
<div v-if="accountLevel == 4" class="mian_line"></div> <div v-if="accountLevel == 4" class="mian_line"></div>
<div v-if="accountLevel != 4" class="mian_line2"></div> <div v-if="accountLevel != 4" class="mian_line2"></div>
<div v-if="accountLevel == 4" class="bottom_widget"> <div v-if="accountLevel == 4 && showMore" class="bottom_widget">
<div class="chart_wrapper"> <div class="chart_wrapper">
<bar-chart echartId="mybar"></bar-chart> <bar-chart ref="mybar" echartId="mybar"></bar-chart>
</div> </div>
<div class="chart_wrapper"> <div class="chart_wrapper">
<line-chart echartId="myline"></line-chart> <line-chart ref="myline" echartId="myline"></line-chart>
</div> </div>
<div class="mid_line"></div> <div class="mid_line"></div>
<div class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)"> <div class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)">
<span>{{ showMore ? '收缩详情' : '查看详情' }}</span> <span>收缩详情</span>
<img v-if="showMore" class="icon" src="../../assets/updown_icon.png" /> <img class="icon" src="../../assets/updown_icon.png" />
<img v-else class="icon" src="../../assets/down_icon.png" />
</div> </div>
</div> </div>
<template v-if="accountLevel != 4"> <template v-if="accountLevel != 4">
...@@ -65,9 +78,9 @@ ...@@ -65,9 +78,9 @@
</template> </template>
</div> </div>
<template v-if="accountLevel != 4"> <template v-if="accountLevel != 4">
<ranking :show="openRankFlag" @closeRank="toCloseRanking"></ranking> <ranking ref="myRanking" :product="productValueInfo.divisionMoney" :show="openRankFlag" @closeRank="toCloseRanking"></ranking>
</template> </template>
<div v-if="showMore" class="box_bg_wrap mini_margin"> <div class="box_bg_wrap mini_margin">
<div class="tab_wrap"> <div class="tab_wrap">
<template v-for="(item, index) in tabList"> <template v-for="(item, index) in tabList">
<div :key="index" class="tab_element_wrap" @click="changeTab(index)"> <div :key="index" class="tab_element_wrap" @click="changeTab(index)">
...@@ -88,10 +101,10 @@ ...@@ -88,10 +101,10 @@
</template> </template>
<template v-if="accountLevel != 4"> <template v-if="accountLevel != 4">
<template v-if="curTabIndex == 0"> <template v-if="curTabIndex == 0">
<upgrade-order></upgrade-order> <upgrade-order :list="storeList"></upgrade-order>
</template> </template>
<template v-if="curTabIndex == 1"> <template v-if="curTabIndex == 1">
<my-fashionable-order></my-fashionable-order> <my-fashionable-order :list="storeList"></my-fashionable-order>
</template> </template>
</template> </template>
</div> </div>
...@@ -107,9 +120,10 @@ import upgradeOrder from './upgradeOrder.vue' ...@@ -107,9 +120,10 @@ import upgradeOrder from './upgradeOrder.vue'
import myFashionableOrder from './myFashionableOrder.vue' import myFashionableOrder from './myFashionableOrder.vue'
import blocCon from './blocCon.vue' import blocCon from './blocCon.vue'
import ranking from './ranking.vue' import ranking from './ranking.vue'
import { orderTotal } from '../../api/modules/rules' import { orderTotal, orderTotalOfJT, get4SList } 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 openDdate = JSON.parse(localStorage.getItem('openInfo'))
export default { export default {
name: '', name: '',
components: { components: {
...@@ -143,7 +157,24 @@ export default { ...@@ -143,7 +157,24 @@ export default {
chartStartDate: '', chartStartDate: '',
chartEndDate: '', chartEndDate: '',
openRankFlag: false, openRankFlag: false,
showTip: false showTip: false,
firsStore: null,
persent: 0,
storeList: [],
pickerOptions1: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2021-07-01').getTime()
}
}
// pickerOptionsStart: {
// disabledDate: time => {
// let date = JSON.parse(localStorage.getItem('openInfo'))
// if (date) {
// return time.getTime() > Date().now() - 8.64e6 || time.getTime() > date
// }
// return time.getTime() > Date().now() - 8.64e6
// }
// }
} }
}, },
created() { created() {
...@@ -151,6 +182,15 @@ export default { ...@@ -151,6 +182,15 @@ export default {
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
if (session.accountLevel != 4) { if (session.accountLevel != 4) {
this.tabList = ['精品升级订单', '我的分账'] this.tabList = ['精品升级订单', '我的分账']
this.toGet4SStore()
}
// 获取上一次打开的状态
let lastOpenStatus = localStorage.getItem(`showMore${session.merchantId}`)
if(lastOpenStatus){
let data = JSON.parse(lastOpenStatus)
if(session.merchantId==data.id){
this.showMore = data.status
}
} }
}, },
mounted() { mounted() {
...@@ -170,17 +210,41 @@ export default { ...@@ -170,17 +210,41 @@ export default {
// 漏斗图 // 漏斗图
this.$refs.myFunnel.couponsChartData(this.chartStartDate, this.chartEndDate) this.$refs.myFunnel.couponsChartData(this.chartStartDate, this.chartEndDate)
// 集团折线图+列表 // 集团折线图+列表
this.$refs.mybloc.changeTimeForLine(this.chartStartDate, this.chartEndDate) if (this.accountLevel != 4) {
this.$refs.mybloc.orderDataInfoOfJT(this.chartStartDate, this.chartEndDate) this.$refs.mybloc.changeTimeForLine(this.chartStartDate, this.chartEndDate)
this.$refs.mybloc.orderDataInfoOfJT(this.chartStartDate, this.chartEndDate)
}
if (this.accountLevel == 4) {
this.$refs.mybar.couponsChartData(this.chartStartDate, this.chartEndDate)
this.$refs.myline.couponsChartData(this.chartStartDate, this.chartEndDate)
}
// 累计产值
this.bengintime = this.chartStartDate
this.endtime = this.chartEndDate
this.orderDataInfo()
} else { } else {
//按月 //按月
let start = this.chartStartDate let start = this.chartStartDate
let end = this.chartEndDate let end = this.chartEndDate
if (new Date(start).getTime() == new Date(end).getTime()) {
end = utils.dateFormat(new Date(utils.getLastDay(end)))
console.log(end)
}
// 漏斗图 // 漏斗图
this.$refs.myFunnel.couponsChartData(start, end) this.$refs.myFunnel.couponsChartData(start, end)
// 集团折线图+列表 // 集团折线图+列表
this.$refs.mybloc.changeTimeForLine(start, end) if (this.accountLevel != 4) {
this.$refs.mybloc.orderDataInfoOfJT(start, end) this.$refs.mybloc.changeTimeForLine(start, end)
this.$refs.mybloc.orderDataInfoOfJT(start, end)
}
if (this.accountLevel == 4) {
this.$refs.mybar.couponsChartData(start, end)
this.$refs.myline.couponsChartData(start, end)
}
this.bengintime = start
this.endtime = end
// 累计产值
this.orderDataInfo()
} }
}, },
getChartStartTime(e) { getChartStartTime(e) {
...@@ -202,12 +266,14 @@ export default { ...@@ -202,12 +266,14 @@ export default {
}, },
toChangeShowMoreBtn(flag) { toChangeShowMoreBtn(flag) {
this.showMore = !flag this.showMore = !flag
const {merchantId} = this.$globalState.session
localStorage.setItem(`showMore${merchantId}`,JSON.stringify({id:merchantId,status:!flag}))
}, },
// 已开通--订单统计 // 已开通--订单统计
judgeOpen() { judgeOpen() {
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
this.endtime = utils.dateFormat(new Date()) this.endtime = utils.dateFormat(new Date())
this.orderDataInfo() this.orderDataInfo()
}, },
...@@ -222,6 +288,40 @@ export default { ...@@ -222,6 +288,40 @@ export default {
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.productValueInfo = res this.productValueInfo = res
this.orderAll()
})
},
orderAll() {
if (this.accountLevel == 4) {
return
}
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: this.bengintime,
endDateStr: this.endtime,
reportType: 2,
orderByType: 1 //1 分账 2分润
}
converterApi(para).then(res => {
let arr = res || []
if (arr.length) {
this.firsStore = arr[0]
let temp = utils.decimal(arr[0].divisionMoney / this.productValueInfo.divisionMoney, 2) || 0
this.persent = utils.decimal(temp * 100, 2)
}
})
},
toGet4SStore() {
let para = {
currentPage: 1,
pageSize: 100,
'merchantAccountLevelList[0]':4
}
get4SList(para).then(res => {
this.storeList = res.list || []
}) })
} }
} }
...@@ -241,6 +341,7 @@ export default { ...@@ -241,6 +341,7 @@ export default {
width: 100%; width: 100%;
height: 314px; height: 314px;
display: flex; display: flex;
position: relative;
.wrap { .wrap {
width: 50%; width: 50%;
height: 100%; height: 100%;
...@@ -331,8 +432,10 @@ export default { ...@@ -331,8 +432,10 @@ export default {
position: absolute; position: absolute;
top: 109px; top: 109px;
right: 108px; right: 108px;
min-width: 110px;
} }
.text_tip_price1 { .text_tip_price1 {
min-width: 110px;
position: absolute; position: absolute;
top: 144px; top: 144px;
right: 108px; right: 108px;
...@@ -352,6 +455,36 @@ export default { ...@@ -352,6 +455,36 @@ export default {
bottom: 60px; bottom: 60px;
left: 261px; left: 261px;
} }
.text_tip_price5 {
position: absolute;
bottom: 60px;
left: 261px;
}
.text_tip_price6 {
position: absolute;
bottom: 60px;
left: 21px;
}
.text_tip_price7 {
position: absolute;
bottom: 90px;
left: 21px;
}
.text_tip_price8 {
position: absolute;
bottom: 90px;
left: 261px;
}
.text_tip_price9 {
position: absolute;
top: 144px;
left: 261px;
}
.text_tip_price10 {
position: absolute;
top: 109px;
left: 261px;
}
.date_line { .date_line {
box-sizing: border-box; box-sizing: border-box;
padding: 28px 22px 0 28px; padding: 28px 22px 0 28px;
...@@ -402,23 +535,6 @@ export default { ...@@ -402,23 +535,6 @@ export default {
height: 350px; height: 350px;
background: #e8e8ea; background: #e8e8ea;
} }
.showMoreBtn {
position: absolute;
left: 50%;
bottom: 15px;
transform: translate(-50%, 0);
width: 105px;
height: 30px;
border-radius: 2px;
cursor: pointer;
display: flex;
align-items: center;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
} }
.tab_wrap { .tab_wrap {
box-sizing: border-box; box-sizing: border-box;
...@@ -512,4 +628,22 @@ export default { ...@@ -512,4 +628,22 @@ export default {
background: #e8e8ea; background: #e8e8ea;
margin-bottom: 20px; margin-bottom: 20px;
} }
// 查看收缩按钮
.showMoreBtn {
position: absolute;
left: 50%;
bottom: 15px;
transform: translate(-50%, 0);
width: 105px;
height: 30px;
border-radius: 2px;
cursor: pointer;
display: flex;
align-items: center;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -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>
......
...@@ -14,12 +14,18 @@ ...@@ -14,12 +14,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="divisionType" placeholder="请选择"> <el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionType" 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">
...@@ -33,7 +39,13 @@ ...@@ -33,7 +39,13 @@
</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="divisionType" 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="handleParam">查询</el-button> <el-button class="cell_btn" size="mini" type="primary" @click="handleParam">查询</el-button>
...@@ -43,51 +55,56 @@ ...@@ -43,51 +55,56 @@
<div class="tipper flex_scb"> <div class="tipper flex_scb">
<div class="tip_text"> <div class="tip_text">
<span>共</span> <span>共</span>
<sapn style="color: #5850ff">{{openCount}}</sapn> <sapn style="color: #5850ff">{{ tableCountInfo.orderCount }}</sapn>
<span>笔主订单</span> <span>笔主订单</span>
<span style="color: #5850ff">{{tableCountInfo.nums || 0}}</span> <span style="color: #5850ff">{{ tableCountInfo.nums || 0 }}</span>
<span>笔子订单</span> <span>笔子订单</span>
<span>,累计订单支付金额:</span> <span>,累计订单支付金额:</span>
<span style="color: #5850ff">¥{{tableCountInfo.totalPrice || 0}}</span> <span style="color: #5850ff">¥{{ tableCountInfo.totalPrice || 0 }}</span>
<span>元,累计导流方利润:</span> <span>元,累计导流方利润:</span>
<span style="color: #5850ff">{{tableCountInfo.totalShopGrossProfit || 0}}</span> <span style="color: #5850ff">{{ tableCountInfo.totalShopGrossProfit || 0 }}</span>
<span>元</span> <span>元</span>
</div> </div>
<!-- <div class="right_select"> <div class="right_select">
<el-select class="myfindWidth" size="mini" collapse-tags multiple clearable v-model="fieldListData" placeholder="请选择要展示的字段"> <el-select class="myfindWidth" size="mini" collapse-tags multiple @removeTag="removeTag" v-model="tableCoulumList" @change="changTableCoulum" placeholder="请选择要展示的字段">
<el-option v-for="item in fieldList" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in fieldList" :disabled="item.disabled" :key="item.value" :label="item.label" :value="item"></el-option>
</el-select> </el-select>
</div> --> </div>
</div> </div>
<div class="table_wrap"> <div class="table_wrap">
<!-- <GLTable ref="table1" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData"></GLTable> --> <el-table id="initTable" :data="tableData">
<el-table id="initTable" :data="tableData" style="width: 100%"> <el-table-column label="序号" align="center" width="100px" type="index" :index="index => index + (currentPage - 1) * pageSize + 1"></el-table-column>
<el-table-column label="序号" align="center" type="index" :index="index => index + (currentPage - 1) * pageSize + 1">
<!-- <template slot-scope="scope">
{{ scope.$index + 1 }}
</template> -->
</el-table-column>
<el-table-column label="订单信息" align="center"> <el-table-column label="订单信息" align="center">
<el-table-column width="200" prop="orderCode" label="支付订单编号" align="center"></el-table-column> <template v-for="(ele, index) in tableCoulumList">
<el-table-column v-if="ele.level == 1" :key="index" :width="ele.width" :prop="ele.value" :label="ele.label" align="center"></el-table-column>
</template>
<!-- <el-table-column width="200" prop="orderCode" label="主订单编号" align="center"></el-table-column>
<el-table-column width="200" prop="subOrderCode" label="子订单编号" align="center"></el-table-column>
<el-table-column width="200" prop="tradeNo" align="center" label="交易参考号"></el-table-column> <el-table-column width="200" prop="tradeNo" align="center" label="交易参考号"></el-table-column>
<el-table-column width="200" prop="upgradeBrandMerchantName" align="center" label="商品名称"></el-table-column> <el-table-column width="200" prop="upgradeGoodsName" align="center" label="商品名称"></el-table-column>
<el-table-column width="200" prop="upgradeGoodsCommodityCode" align="center" label="商品编号"></el-table-column> <el-table-column width="200" prop="upgradeGoodsCommodityCode" align="center" label="商品编号"></el-table-column>
<el-table-column width="110" prop="goodsCost" align="center" label="商品成本"></el-table-column> <el-table-column width="110" prop="goodsCost" align="center" label="商品成本"></el-table-column> -->
</el-table-column> </el-table-column>
<el-table-column label="支付信息" align="center"> <el-table-column label="支付信息" align="center">
<el-table-column width="200" prop="customerPhone" align="center" label="客户手机号"></el-table-column> <template v-for="(ele, index) in tableCoulumList">
<el-table-column v-if="ele.level == 2" :key="index" :width="ele.width" :prop="ele.value" :label="ele.label" align="center"></el-table-column>
</template>
<!-- <el-table-column width="200" prop="customerPhone" align="center" label="客户手机号"></el-table-column>
<el-table-column width="200" prop="sellerName" align="center" label="转化员"></el-table-column> <el-table-column width="200" prop="sellerName" align="center" label="转化员"></el-table-column>
<el-table-column width="200" prop="employeeName" align="center" label="转销售顾问"></el-table-column> <el-table-column width="200" prop="employeeName" align="center" label="销售顾问"></el-table-column>
<el-table-column width="110" prop="paySuccessDate" align="center" label="支付时间"></el-table-column> <el-table-column width="200" prop="paySuccessDate" align="center" label="支付时间"></el-table-column>
<el-table-column width="110" prop="payTypeName" align="center" label="支付方式"></el-table-column> <el-table-column width="110" prop="payTypeName" align="center" label="支付方式"></el-table-column>
<el-table-column width="110" prop="subTotalPrice" align="center" label="支付金额"></el-table-column> <el-table-column width="110" prop="subTotalPrice" align="center" label="支付金额"></el-table-column> -->
</el-table-column> </el-table-column>
<el-table-column label="导流方利润" align="center"> <el-table-column label="导流方利润" align="center">
<el-table-column width="110" prop="actualIncomeMoney" align="center" label="总分账金额"></el-table-column> <template v-for="(ele, index) in tableCoulumList">
<el-table-column v-if="ele.level == 3" :key="index" :width="ele.width" :prop="ele.value" :label="ele.label" align="center"></el-table-column>
</template>
<!-- <el-table-column width="110" prop="actualIncomeMoney" align="center" label="总分账金额"></el-table-column>
<el-table-column width="200" prop="shopMerchantName" align="center" label="分润对象"></el-table-column> <el-table-column width="200" prop="shopMerchantName" align="center" label="分润对象"></el-table-column>
<el-table-column prop="rule" align="center" label="分润规则"></el-table-column> <el-table-column prop="rule" align="center" label="分润规则"></el-table-column>
<el-table-column width="110" prop="shopProfitMoney" align="center" label="分润金额"></el-table-column> <el-table-column width="110" prop="shopProfitMoney" align="center" label="分润金额"></el-table-column>
<el-table-column width="110" prop="divisionTypeName" align="center" label="分账类型"></el-table-column> <el-table-column width="110" prop="divisionTypeName" align="center" label="分账类型"></el-table-column> -->
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="120"> <el-table-column fixed="right" label="操作" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -104,7 +121,7 @@ ...@@ -104,7 +121,7 @@
<div class="title_icon"></div> <div class="title_icon"></div>
<span>订单详情</span> <span>订单详情</span>
</div> </div>
<div class="message_wrap flex_scb"> <div class="message_wrap flex_scb" :class="orderDetail.payOrder.payVoucher ? 'maxHeight' : ''">
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>订单单号:</span> <span>订单单号:</span>
...@@ -112,15 +129,13 @@ ...@@ -112,15 +129,13 @@
</div> </div>
<div class="info_text"> <div class="info_text">
<span>交易流水:</span> <span>交易流水:</span>
<span class="h19_title">{{ orderDetail.payOrder.tradeNo || '--' }}</span> <span class="h19_title">{{ orderDetail.payOrder.outTradeNo || '--' }}</span>
</div> </div>
</div> </div>
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>订单状态:</span> <span>订单状态:</span>
<span v-if="orderDetail.upgradeFlag == 'Y'" class="h19_title">已升级</span> <span class="h19_title">{{ orderStatusList[orderDetail.status - 1] }}</span>
<span v-else-if="orderDetail.upgradeFlag == 'N'" class="h19_title">未升级</span>
<span v-else class="h19_title">待升级</span>
</div> </div>
<div class="info_text"> <div class="info_text">
<span>支付状态:</span> <span>支付状态:</span>
...@@ -130,11 +145,14 @@ ...@@ -130,11 +145,14 @@
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>支付方式:</span> <span>支付方式:</span>
<span class="h19_title">{{ orderDetail.payOrder.payType == 1 ? '线上微信支付' : '线下支付' }}</span> <span v-if="orderDetail.payOrder.payType == 1" class="h19_title">线上微信支付</span>
<span v-if="orderDetail.payOrder.payType == 2" class="h19_title">线下支付</span>
<span v-if="orderDetail.payOrder.payType == 3" class="h19_title">POS机收款</span>
</div> </div>
<div class="info_text"> <div class="info_text flex_img">
<span>收款凭证:</span> <span>收款凭证:</span>
<span class="h19_title">{{ orderDetail.payOrder.outTradeNo || '--' }}</span> <span v-if="!orderDetail.payOrder.payVoucher" class="h19_title">--</span>
<el-image v-else style="width: 100px; height: 100px" :src="orderDetail.payOrder.payVoucher" :preview-src-list="[orderDetail.payOrder.payVoucher]"></el-image>
</div> </div>
</div> </div>
</div> </div>
...@@ -151,7 +169,7 @@ ...@@ -151,7 +169,7 @@
<span class="h19_title">{{ orderDetail.customer.customerName || '--' }}</span> <span class="h19_title">{{ orderDetail.customer.customerName || '--' }}</span>
</div> </div>
<div class="info_text"> <div class="info_text">
<span>评价:{{orderDetail.comment?'':'--'}}</span> <span>评价:{{ orderDetail.comment ? '' : '--' }}</span>
<span class="h19_title"></span> <span class="h19_title"></span>
</div> </div>
</div> </div>
...@@ -194,13 +212,13 @@ ...@@ -194,13 +212,13 @@
</div> </div>
<div class="info_text"> <div class="info_text">
<span>转化员:</span> <span>转化员:</span>
<span class="h19_title">{{ orderDetail.employeeName || '--' }}</span> <span class="h19_title">{{ orderDetail.sellerName || '--' }}</span>
</div> </div>
</div> </div>
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>推荐人:</span> <span>推荐人:</span>
<span class="h19_title">{{ orderDetail.name || '--' }}</span> <span class="h19_title">{{ orderDetail.employeeName || '--' }}</span>
</div> </div>
<div class="info_text"> <div class="info_text">
<span>门店地址:</span> <span>门店地址:</span>
...@@ -211,7 +229,7 @@ ...@@ -211,7 +229,7 @@
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>园区店:</span> <span>园区店:</span>
<span class="h19_title">{{ orderDetail.yqMerchantIds || '--' }}</span> <span class="h19_title">{{ orderDetail.sellerMerchantName || '--' }}</span>
</div> </div>
<div class="info_text"></div> <div class="info_text"></div>
</div> </div>
...@@ -245,17 +263,22 @@ ...@@ -245,17 +263,22 @@
<script> <script>
import myDropMenu from '../../components/down-menu/index.vue' import myDropMenu from '../../components/down-menu/index.vue'
import { findupGradeOrder, exportUpgrade, checkDetail,orderTotalNumOfJT } from '../../api/modules/rules' import { findupGradeOrder, exportUpgrade, checkDetail, orderTotalNumOfJT } 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 logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务'] const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务']
const orderStatusList = ['待升级', '未升级', '待支付', '已支付', '已退款', '已完成']
export default { export default {
name: '', name: '',
components: { components: {
'my-drop-menu': myDropMenu 'my-drop-menu': myDropMenu
}, },
props: {
list: Array
},
data() { data() {
return { return {
orderStatusList,
payOptionsList: [ payOptionsList: [
{ {
value: 1, value: 1,
...@@ -314,6 +337,7 @@ export default { ...@@ -314,6 +337,7 @@ export default {
pageSize: 10, pageSize: 10,
payTypeChange: 1, payTypeChange: 1,
// 查询参数 // 查询参数
storeId: '',
dateBetween: '', dateBetween: '',
payType: '', payType: '',
divisionType: '', divisionType: '',
...@@ -384,80 +408,154 @@ export default { ...@@ -384,80 +408,154 @@ export default {
fieldList: [ fieldList: [
{ {
value: 'orderCode', value: 'orderCode',
label: '支付订单编号' label: '主订单编号',
level: 1,
width: '200',
disabled: true
},
{
value: 'subOrderCode',
label: '子订单编号',
level: 1,
width: '200',
disabled: true
}, },
{ {
value: 'tradeNo', value: 'tradeNo',
label: '交易参考号' label: '交易参考号',
level: 1,
width: '200',
disabled: true
}, },
{ {
value: 'upgradeBrandMerchantName', value: 'upgradeGoodsName',
label: '商品名称' label: '商品名称',
level: 1,
width: '200',
disabled: false
}, },
{ {
value: 'upgradeGoodsCommodityCode', value: 'upgradeGoodsCommodityCode',
label: '商品编号' label: '商品编号',
level: 1,
width: '200',
disabled: false
}, },
{ {
value: 'goodsCost', value: 'goodsCost',
label: '商品成本' label: '商品成本',
level: 1,
width: '110',
disabled: false
}, },
{ {
value: 'customerPhone', value: 'customerPhone',
label: '客户手机号' label: '客户手机号',
level: 2,
width: '110',
disabled: false
}, },
{ {
value: 'sellerName', value: 'sellerName',
label: '转化员' label: '转化员',
level: 2,
width: '110',
disabled: false
}, },
{ {
value: 'employeeName', value: 'employeeName',
label: '转销售顾问' label: '销售顾问',
level: 2,
width: '110',
disabled: false
}, },
{ {
value: 'paySuccessDate', value: 'paySuccessDate',
label: '支付时间' label: '支付时间',
level: 2,
width: '150',
disabled: false
}, },
{ {
value: 'payTypeName', value: 'payTypeName',
label: '支付方式' label: '支付方式',
level: 2,
width: '110',
disabled: false
}, },
{ {
value: 'subTotalPrice', value: 'subTotalPrice',
label: '支付金额' label: '支付金额',
level: 2,
width: '110',
disabled: true
}, },
{ {
value: 'actualIncomeMoney', value: 'actualIncomeMoney',
label: '总分账金额' label: '总分账金额',
level: 3,
width: '110',
disabled: true
}, },
{ {
value: 'shopMerchantName', value: 'shopMerchantName',
label: '分润对象' label: '分润对象',
level: 3,
width: '110',
disabled: false
}, },
{ {
value: 'shopProfitMoney', value: 'shopProfitMoney',
label: '分润金额' label: '分润金额',
level: 3,
width: '110',
disabled: true
}, },
{ {
value: 'divisionTypeName', value: 'divisionTypeName',
label: '分账类型' label: '分账类型',
level: 3,
width: '110',
disabled: false
} }
], ],
fieldListData:[], tableCoulumList: [],
openCount:0, openCount: 0,
tableCountInfo:{ tableCountInfo: {
nums:0, nums: 0,
totalPrice:0, totalPrice: 0,
totalShopGrossProfit:0 totalShopGrossProfit: 0
} },
accountLevel: 1
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
let temp = JSON.parse(localStorage.getItem(`menuList${session.merchantId}`))
if (temp) {
this.tableCoulumList = temp
} else {
this.tableCoulumList = this.fieldList
} }
}, },
mounted() { mounted() {
this.toGetCouponsList() let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let startDate = utils.dateFormat(openInfo.openDate)
this.openCount = openInfo.openCount || 0 // let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.openCount = openInfo.openCount || 0
let params = {
payStartDateStr: startDate,
payEndDateStr: endDate
}
this.toGetCouponsList(params)
}, },
methods: { methods: {
changTableCoulum(e) {
const { session } = this.$globalState
localStorage.setItem(`menuList${session.merchantId}`, JSON.stringify(e))
},
// 查看明细 // 查看明细
openDetail(item) { openDetail(item) {
this.getDetailInfo(item.orderCode) this.getDetailInfo(item.orderCode)
...@@ -469,14 +567,16 @@ export default { ...@@ -469,14 +567,16 @@ export default {
this.divisionType = '' this.divisionType = ''
this.orderNum = '' this.orderNum = ''
this.goodsName = '' this.goodsName = ''
this.storeId = ''
this.currentPage = 1
this.toGetCouponsList(params) this.toGetCouponsList(params)
}, },
handleParam() { handleParam() {
let params = {} let params = {}
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.payStartDateStr = startDate params.payStartDateStr = startDate
params.payEndDateStr = endDate params.payEndDateStr = endDate
} }
...@@ -499,6 +599,10 @@ export default { ...@@ -499,6 +599,10 @@ export default {
if (this.goodsName) { if (this.goodsName) {
params.upgradeGoodsName = this.goodsName params.upgradeGoodsName = this.goodsName
} }
if (this.storeId) {
params['merchantIdList[0]'] = this.storeId
}
this.currentPage = 1
this.toGetCouponsList(params) this.toGetCouponsList(params)
}, },
changeNOFind(e) { changeNOFind(e) {
...@@ -525,8 +629,8 @@ export default { ...@@ -525,8 +629,8 @@ export default {
this.tableData = res.list.map((item, index) => { this.tableData = res.list.map((item, index) => {
let ruleType = item.shopProfitType == 1 ? '毛利' : '收入' let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
item.rule = `${ruleType}${item.shopProfitPer}%` item.rule = `${ruleType}${item.shopProfitPer}%`
item.divisionTypeName = item.divisionType == 1 ? '线上分账' : '线下分账' item.divisionTypeName = item.divisionType == 1 ? '线下分账' : '线上分账'
item.paySuccessDate = utils.dateFormat(item.paySuccessDate) item.paySuccessDate = utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss')
item.payTypeName = item.payType == 1 ? '线上微信支付' : item.payType == 2 ? '线下收款' : 'POS机' item.payTypeName = item.payType == 1 ? '线上微信支付' : item.payType == 2 ? '线下收款' : 'POS机'
return item return item
}) })
...@@ -536,19 +640,20 @@ export default { ...@@ -536,19 +640,20 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
...params ...params
} }
this.getTotalOfJT(this.httpParam)
}) })
this.getTotalOfJT(this.httpParam)
}, },
// 获取导流方利润统计---集团 // 获取导流方利润统计---集团
getTotalOfJT(params){ getTotalOfJT(params) {
delete params.pageNum
delete params.pageSize
let method = orderTotalNumOfJT() let method = orderTotalNumOfJT()
let para = { let para = {
routerMethod: method, routerMethod: method,
...params ...params
} }
converterApi(para).then(res=>{ converterApi(para).then(res => {
if(res){ if (res) {
this.tableCountInfo = res this.tableCountInfo = res
} }
}) })
...@@ -556,12 +661,22 @@ export default { ...@@ -556,12 +661,22 @@ export default {
// 每页条数 // 每页条数
handleSizeChange(value) { handleSizeChange(value) {
this.pageSize = value this.pageSize = value
this.toGetCouponsList() let params = {
payStartDateStr: this.httpParam.payStartDateStr,
payEndDateStr: this.httpParam.payEndDateStr,
divisionType: this.httpParam.divisionType
}
this.toGetCouponsList(params)
}, },
// 页码 // 页码
handleCurrentChange(value) { handleCurrentChange(value) {
this.currentPage = value this.currentPage = value
this.toGetCouponsList() let params = {
payStartDateStr: this.httpParam.payStartDateStr,
payEndDateStr: this.httpParam.payEndDateStr,
divisionType: this.httpParam.divisionType
}
this.toGetCouponsList(params)
}, },
toExport() { toExport() {
let method = exportUpgrade() let method = exportUpgrade()
...@@ -570,10 +685,15 @@ export default { ...@@ -570,10 +685,15 @@ export default {
...this.httpParam ...this.httpParam
} }
converterApi(para).then(res => { converterApi(para).then(res => {
let iframe = document.createElement('iframe') let tempaa = utils.getExplorer()
iframe.style.display = 'none' if (tempaa == 'QQ') {
iframe.src = res window.open(res)
document.body.appendChild(iframe) } else {
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
}
}) })
}, },
// 获取明细信息 // 获取明细信息
...@@ -587,13 +707,13 @@ export default { ...@@ -587,13 +707,13 @@ export default {
this.orderDetail = res this.orderDetail = res
this.dialogTableData = res.subOrderList || [] this.dialogTableData = res.subOrderList || []
this.dialogTableData.map(item => { this.dialogTableData.map(item => {
item.upgradeWarrantyPeriodName = `${item.upgradeWarrantyPeriod || '--'}` + '年' item.upgradeWarrantyPeriodName = `${item.upgradeWarrantyPeriod || '--'}` + `${item.upgradeWarrantyPeriod ? '年' : ''}`
// 显示需要判断是否已升级 // 显示需要判断是否已升级
item.codeId = item.upgradeGoodsCommodityCode || item.baseGoodsCommodityCode item.codeId = item.upgradeGoodsCommodityCode || item.baseGoodsCommodityCode
item.goodsName = item.upgradeGoodsName || item.baseGoodsName item.goodsName = item.upgradeGoodsName || item.baseGoodsName
item.goodsClass = item.upgradeGoodsTypeName || item.baseGoodsTypeName item.goodsClass = item.upgradeGoodsTypeName || item.baseGoodsTypeName
item.plateName = item.upgradeBrandMerchantName || item.baseBrandMerchantName item.plateName = item.upgradeGoodsName || item.baseBrandMerchantName
item.saleprice = item.upgradeRetailPrice || item.baseRetailPrice item.saleprice = item.upgradePrice || item.baseShopPrice
return item return item
}) })
this.dialogTableData2 = res.accessLogs || [] this.dialogTableData2 = res.accessLogs || []
...@@ -719,9 +839,21 @@ export default { ...@@ -719,9 +839,21 @@ export default {
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
line-height: 17px; line-height: 17px;
.infoImg {
width: 100px;
height: 100px;
}
}
.flex_img {
display: flex;
align-items: flex-start;
} }
} }
} }
.maxHeight {
min-height: 127px;
align-items: flex-start;
}
.comment_wrap { .comment_wrap {
margin-top: 10px; margin-top: 10px;
.comment_line { .comment_line {
...@@ -747,4 +879,7 @@ export default { ...@@ -747,4 +879,7 @@ export default {
border: none; border: none;
} }
} }
.right_select /deep/ .el-select .el-tag__close.el-icon-close {
display: none;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!