Commit 73ecb5dc by 杨北旺

截止12.1的售中版本

1 parent 861721d3
......@@ -131,6 +131,12 @@
color: #666666;
}
.h12_title {
font-size: 16px;
font-weight: 600;
color: #333333;
}
.flex_scb {
display: flex;
align-items: center;
......
<template>
<div class="my-drop-menu">
<el-input size="mini" v-model="searchForm.inputValue" placeholder="请输入" @change="inputChange">
<el-select size="mini" slot="prepend" v-model="searchForm.selectValue" style="width: 110px" placeholder="请选择" @change="toChangeSelect">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-input>
</div>
</template>
<script>
export default {
name: '',
data() {
return {}
},
props: {
options: Array
},
mounted() {},
methods: {
toChangeSelect(e) {
this.$emit('getValue', e)
},
inputChange(e) {
console.log(e)
this.$emit('getInputValue', e)
}
}
}
</script>
<style lang="scss" scoped>
</style>
<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 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 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 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 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 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 class="btn_wrap">
<el-button size="small" type="primary" @click="closeDraw">关闭</el-button>
</div>
</div>
</template>
......@@ -47,11 +41,7 @@ export default {
data() {
return {}
},
methods:{
closeDraw(){
this.$emit('close')
}
}
methods: {}
}
</script>
<style lang="scss" scoped>
......@@ -59,61 +49,39 @@ export default {
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;
.wrapper {
display: flex;
align-items: center;
justify-content: space-around;
box-sizing: border-box;
padding-top: 20px;
.box_con_wrap {
width: 28.4%;
> p {
// margin: 0 auto;
text-align: center;
margin-bottom: 25px;
}
.box_item {
width: 100%;
box-sizing: border-box;
padding: 15px;
.textOne {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
.box_item {
.image_wrap {
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: 285px;
height: 150px;
margin: 10px 0;
> img {
width: 100%;
// width: 285px;
// width: 285px;
height: 150px;
margin: 10px 0;
> img {
width: 100%;
// width: 285px;
height: 150px;
}
}
}
}
......
<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="h12_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="h12_title">合作之后</div>
<div class="text_line_widget margin_4">
<div class="h5_title">
2020年6月份累计收益:
......@@ -39,7 +38,6 @@
</div>
</div>
</div>
<div style="height: 10px"></div>
<div class="box_wrap_con">
<div class="wrapper">
<div class="h3_title">案例2-四川某经销商集团</div>
......@@ -66,7 +64,7 @@
元
</div>
</div>
<!-- <div style="height: 16px" class="margin_5"></div> -->
<div style="height: 10px;" class="margin_5"></div>
<div class="table_widget margin_4">
<table>
<tr>
......@@ -81,9 +79,6 @@
</div>
</div>
</div>
<div class="btn_wrap">
<el-button size="small" type="primary" @click="closeDraw">关闭</el-button>
</div>
</div>
</template>
......@@ -98,50 +93,27 @@ export default {
tableTD2: [960, '63%', 1350, 816480, 22861440]
}
},
methods: {
closeDraw() {
this.$emit('close')
}
}
methods: {}
}
</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;
padding: 20px;
}
.content_con {
box-sizing: border-box;
border-top: 1px solid #d8d8d8;
padding: 20px;
height: 83%;
overflow-y: scroll;
display: flex;
justify-content: space-between;
.box_wrap_con {
border: 1px solid #eae9ee;
box-sizing: border-box;
padding: 20px 0;
}
.wrapper {
box-sizing: border-box;
padding: 0 0 0 19px;
width: 48%;
}
.con2_widget {
display: flex;
flex-wrap: wrap;
padding-bottom: 15px;
// height: 64px;
height: 54px;
.text_label {
width: 50%;
margin-bottom: 5px;
......@@ -149,38 +121,41 @@ export default {
}
.drive_line {
margin: 0 auto;
width: calc(100% - 40px);
width: 100%;
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;
font-size: 14px;
font-weight: 600;
}
}
.table_widget {
width: 100%;
height: 94px;
height: 90px;
background: #f6f6f7;
overflow: hidden;
// overflow: hidden;
td,
th {
border: 1px solid #e0e0e4;
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
th,
td {
height: 45px;
height: 41px;
text-align: center;
line-height: 45px;
line-height: 41px;
}
table {
width: 100%;
......
<template>
<div class="chart-container">
<div class="draw_title">案例详情</div>
<div class="content_con">
<div class="wrapper">
<div class="title">案例1-兰州某奔驰4S店</div>
......@@ -20,10 +19,9 @@
</table>
</div>
</div>
<div style="height: 10px"></div>
<div class="wrapper">
<div class="title">案例2-广西某汽车城</div>
<div class="title1">多品牌多门店兼容性直播如何玩? 打破常规变现10万,返厂流量200+</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>
......@@ -40,9 +38,6 @@
</div>
</div>
</div>
<div class="btn_wrap">
<el-button size="small" type="primary" @click="closeDraw">关闭</el-button>
</div>
</div>
</template>
......@@ -69,30 +64,10 @@ export default {
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;
display: flex;
justify-content: space-between;
.wrapper {
width: 100%;
// height: 320px;
background: #ffffff;
border: 1px solid #eae9ee;
padding-bottom: 20px;
.title {
box-sizing: border-box;
padding: 12px 19px;
......@@ -108,6 +83,7 @@ export default {
font-size: 16px;
font-weight: 600;
color: #333333;
height: 32px;
}
.title2 {
box-sizing: border-box;
......
......@@ -39,6 +39,7 @@ export default {
width: 144px;
height: 201px;
background: #ffffff;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 124px;
......@@ -57,6 +58,7 @@ export default {
height: 201px;
background: #5850ff;
border-radius: 4px;
z-index: 88;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
> img {
width: 20px;
......
......@@ -7,6 +7,7 @@ import { couponsTotalByDay } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
import * as echarts from 'echarts'
const base_url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
data() {
......@@ -20,7 +21,8 @@ export default {
xAxisData: [],
getTotal: [],
usedTotal: [],
upgradeTotal: []
upgradeTotal: [],
base_url
}
},
......@@ -77,8 +79,23 @@ export default {
height: '60%'
},
legend: {
data: ['领券数', '核销数', '精品升级订单'],
icon: 'rect'
// data: ['领券数', '核销数', '精品升级订单'],
itemWidth:12,
itemHeight:12,
data: [
{
icon: `image://${base_url}echart_icon_1.png`,
name: '领券数'
},
{
icon: `image://${base_url}echart_icon_2.png`,
name: '核销数'
},
{
icon: `image://${base_url}echart_icon_3.png`,
name: '精品升级订单'
}
],
},
xAxis: [
{
......@@ -145,7 +162,7 @@ export default {
}
]
}
if(len>10){
if (len > 8) {
option.dataZoom = dataZoom
}
option && myChart.setOption(option)
......
......@@ -2,48 +2,24 @@
<template>
<div>
<div ref="funnelCon" class="chart-container flex_cc">
<div class="image_wrap flex_cc">
<div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div>
<div class="text_box1">
<p class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</p>
</div>
<div class="text_box2">
<p class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</p>
</div>
<img class="funnel_icon" src="../../assets/funnel_icon.png" />
<div class="text_box3">
<p class="h13_title">核销转化率:{{ chartInfo.usedPer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUsedPer || 0 }}%</p>
</div>
<div class="text_box4">
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
<div class="funnel_box">
<div class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</div>
<div class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</div>
<div class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</div>
</div>
<!-- <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">
<img class="funnel_icon" src="../../assets/funnel_icon.png" />
<div class="funnel_box2">
<div class="wrapper">
<p class="h13_title">核销转化率:{{ chartInfo.usedPer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUsedPer || 0 }}%</p>
</div>
<div class="text_box">
<!-- <div style="height:22px"></div> -->
<div class="wrapper spcP">
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
</div> -->
<!-- <div class="wrap flex_cc">
</div>
<!-- <div class="image_wrap flex_cc">
<div class="text_box">
<p class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</p>
</div>
......@@ -53,15 +29,15 @@
<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>
<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>
<p class="h13_title">精品升级转化率:{{ chartInfo.upgradePer || 0 }}%</p>
<p class="h13_title spc">同行平均转化率:{{ chartInfo.totalUpgradePer || 0 }}%</p>
</div>
<img src="../../assets/funnel_icon.png" />
</div> -->
</div>
</div>
......@@ -98,7 +74,6 @@ export default {
mounted() {
this.initTIme()
console.log(this.$refs.funnelCon.clientWidth);
},
methods: {
getOptions(res) {
......@@ -218,7 +193,7 @@ export default {
right: 2.5%;
top: 27px;
}
.text_box4{
.text_box4 {
position: absolute;
right: 7%;
top: 90px;
......@@ -231,6 +206,37 @@ export default {
position: relative;
z-index: 20;
}
.funnel_box {
// width: 31.4%;
height: 135px;
display: flex;
flex-direction: column;
align-items: flex-end;
> div {
height: 37px;
line-height: 37px;
margin-bottom: 15px;
white-space: nowrap;
}
}
.funnel_box2 {
// width: 31.4%;
height: 135px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
.wrapper{
box-sizing: border-box;
>p{
line-height: 20px;
white-space: nowrap;
}
}
.spcP{
padding-top: 20px;
}
}
.spc {
font-size: 14px;
font-weight: 400;
......
......@@ -7,13 +7,15 @@ import * as echarts from 'echarts'
import { moneyTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const base_url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
data() {
return {
divisionMoney:[],
profitMoney:[],
xAxisData:[]
divisionMoney: [],
profitMoney: [],
xAxisData: [],
base_url
}
},
......@@ -56,8 +58,18 @@ export default {
name: '金额'
},
legend: {
data: ['分润金额', '分账金额'],
icon: 'rect'
itemWidth: 12,
itemHeight: 12,
data: [
{
icon: `image://${base_url}echart_icon_4.png`,
name: '分润金额'
},
{
icon: `image://${base_url}echart_icon_5.png`,
name: '分账金额'
}
]
},
series: [
{
......@@ -107,12 +119,12 @@ export default {
routerMethod: method,
beginDateStr,
endDateStr,
reportType:2
reportType: 2
}
converterApi(para).then(res => {
let arr = res || []
if(arr.length){
arr.forEach(item=>{
if (arr.length) {
arr.forEach(item => {
this.xAxisData.push(item.dataDateStr)
this.divisionMoney.push(item.divisionMoney)
this.profitMoney.push(item.profitMoney)
......
......@@ -3,14 +3,14 @@
<div v-if="nodata == 1" class="top_wrapper">
<div v-if="updateTime" class="tip_line">
<img class="icon" src="../../assets/notice.png" />
<span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }}# 生效,修改人:{{ settleRultData.updatedBy }}。</span>
<span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }} 00:00# 生效,修改人:{{ settleRultData.updatedBy }}。</span>
</div>
<div v-if="updateTime" class="drive_line"></div>
<div class="content_wrap">
<div class="time_widget">
<span class="h11_title">生效时间:{{ settleRultData.updatedDate }}</span>
<div v-if="settleRultData.enableFlag == 'N'" class="time_status">生效中</div>
<div v-if="settleRultData.enableFlag == 'Y'" class="time_status">已生效</div>
<span class="h11_title">生效时间:{{ updateTime ? effectTime : settleRultData.updatedDate }}</span>
<div v-if="updateTime" class="time_status">待生效</div>
<div v-else class="time_status">已生效</div>
</div>
<rule-table :division="divisionRuleData" :settle="settleRultData" :bankData="bankInfo"></rule-table>
</div>
......@@ -112,6 +112,7 @@
<p class="h17_title">平台方分润为=¥1.67</p>
</div>
<div class="content1 flex_scb">
<img class="arrow_icon" src="../../assets/scrm_arrow_icon.png">
<div class="con_box">
<p class="title1">假设分账设置:</p>
<p class="title2">导流方分:商品成本+导流方分润</p>
......@@ -209,10 +210,34 @@ export default {
this.updateTime = utils.dateFormat(update, 'YYYY-MM-DD HH:mm')
// let update = updatedDateTemp1 > updatedDateTemp2 ? updatedDateTemp1 : updatedDateTemp2
let temp = new Date(update).getTime() + 24 * 60 * 60 * 1000
this.effectTime = utils.dateFormat(temp) + ' ' + '00:00'
this.effectTime = utils.dateFormat(temp)
}
this.divisionRuleData = this.handleMoneyShow(this.divisionRuleData)
})
},
// 处理分账金额显示
handleMoneyShow(division) {
if(!division){
return division
}
let newArr = []
if (division.shopProfitDivisionFlag == 3) {
newArr.push('导流方分账金额')
}
if (division.partnerProfitDivisionFlag == 3) {
newArr.push('服务商分账金额')
}
if (division.goodsCostDivisionFlag == 3) {
newArr.push('产品金额')
}
if (division.extraCostDivisionFlag == 3) {
newArr.push('额外成本')
}
let str = newArr.join(',')
division.inCludeStr = str
return division
},
// 获取分账记录
getRuleNote(merchantId) {
let method = getRulesListData()
......@@ -234,6 +259,7 @@ export default {
item.show = false
item.effectStartDate = item.effectStartDate ? utils.dateFormat(item.effectStartDate) : ''
item.effectEndDate = item.effectEndDate ? utils.dateFormat(item.effectEndDate) : ''
item.divisionRule = this.handleMoneyShow(item.divisionRule)
return item
})
this.noteList[0].show = true
......@@ -396,7 +422,7 @@ export default {
}
.dialogTitle {
font-size: 20px;
font-weight: bold;
font-weight: 500;
color: #333333;
}
.dialogContent {
......@@ -448,6 +474,10 @@ export default {
margin-top: 10px;
box-sizing: border-box;
padding: 0px 25px;
position: relative;
>p{
line-height: 20px;
}
.con_box {
width: calc(50% - 5.5px);
height: 82px;
......@@ -470,6 +500,14 @@ export default {
line-height: 17px;
}
}
.arrow_icon{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
width: 14px;
height: 14px;
}
}
}
}
......
<template>
<div class="bloc-chart-container">
<div class="mid_line"></div>
<div class="mid_line">
<img src="../../assets/scrm_bar_table_icon.png">
</div>
<div class="chart_wrapper">
<line-chart ref="myline" echartId="myline"></line-chart>
</div>
......@@ -119,13 +121,19 @@ export default {
position: relative;
display: flex;
.mid_line {
width: 1px;
// width: 1px;
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 350px;
background: #e8e8ea;
display: flex;
align-items: center;
// background: #e8e8ea;
>img{
width: 18px;
height: 155px;
}
}
.chart_wrapper {
width: 50%;
......
......@@ -2,45 +2,44 @@
<div class="order-container">
<div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">客户姓名</div>
<el-input class="myfindWidth" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="customName"></el-input>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="customName"></el-input>
</div>
<div class="cell_item">
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">核销状态</div>
<el-select class="myfindWidth" clearable size="mini" v-model="hxstatus" placeholder="请选择">
<el-select clearable size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_item">
<div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">领用时间</div>
<el-date-picker class="myfindWidth" clearable size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_btn_item">
<div class="cell_wrapper flex_sc" style="width: 20%">
<el-button size="mini" @click="toshowDialog">查看礼券</el-button>
<el-button size="mini" @click="toExport">导出数据</el-button>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line">
<div class="cell_item">
<my-drop-menu ref="dropMenu1" :options="employeeNameList" @getValue="changeEmploy">
<div class="cell_wrapper flex_sc">
<my-drop-menu :options="employeeNameList" @getValue="changeEmploy">
<div slot="right_con">
<el-select style="width: 190px" clearable class="myfindWidth" size="mini" v-model="employeeName" placeholder="请选择">
<el-select clearable size="mini" v-model="employeeName" placeholder="请选择">
<el-option v-for="item in employeeNameData" :key="item" :label="item" :value="item"></el-option>
</el-select>
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div class="cell_label h13_title">核销时间</div>
<el-date-picker class="myfindWidth" clearable size="mini" v-model="hxdateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">手 机 号</div>
<el-input style="width:73%" clearable size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input>
</div>
<div class="cell_item">
<div class="cell_label h13_title">手机号</div>
<el-input class="myfindWidth" clearable size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input>
<div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">核销时间</div>
<el-date-picker clearable size="mini" v-model="hxdateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_btn_item">
<div class="cell_wrapper flex_sc" style="width: 20%">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="toHandlerFindParam">查询</el-button>
</div>
......@@ -190,7 +189,7 @@ export default {
columType: 0,
hxdateBetween: '',
phoneNum: '',
employeeName:'',
employeeName: ''
}
},
mounted() {
......@@ -227,21 +226,21 @@ export default {
}
if (this.dateBetween) {
//领用时间
let startDate = utils.dateFormat(this.dateBetween[0],'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.dateBetween[1],'YYYY-MM-DD 23:59:59')
let startDate = utils.dateFormat(this.dateBetween[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.dateBetween[1], 'YYYY-MM-DD 23:59:59')
params.startDate = startDate
params.endDate = endDate
}
//发券人
if(this.employeeName&&this.columType){
if (this.employeeName && this.columType) {
params.columType = this.columType
let name = this.columType==1?'employeeNameList[0]':'sellerNameList[0]'
let name = this.columType == 1 ? 'employeeNameList[0]' : 'sellerNameList[0]'
params[name] = this.employeeName
}
if (this.hxdateBetween) {
// 核销时间
let startDate = utils.dateFormat(this.hxdateBetween[0],'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.hxdateBetween[1],'YYYY-MM-DD 23:59:59')
let startDate = utils.dateFormat(this.hxdateBetween[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.hxdateBetween[1], 'YYYY-MM-DD 23:59:59')
params.startUsedTime = startDate
params.endUsedTime = endDate
}
......@@ -264,8 +263,8 @@ export default {
}
converterApi(para).then(res => {
this.tableData = res.list.map(item => {
item.createdDate = utils.dateFormat(item.createdDate,'YYYY-MM-DD HH:mm:ss')
item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime,'YYYY-MM-DD HH:mm:ss') : '--'
item.createdDate = utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss')
item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime, 'YYYY-MM-DD HH:mm:ss') : '--'
item.status = item.usedFlag == 'Y' ? '已核销' : '待核销'
item.sellerName = item.sellerName || '--'
item.couponName = `${item.couponName}${item.customerCouponCode}`
......@@ -288,12 +287,12 @@ export default {
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId,
orderType:6
orderType: 6
}
converterApi(para).then(res => {
this.tabletotal1 = res.total
this.tableData1 = res.list.map(item => {
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate,'YYYY-MM-DD HH:mm:ss') : '--'
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
item.couponTypeName = item.couponInfo.couponTypeName
return item
})
......@@ -312,7 +311,7 @@ export default {
return
}
let iframe = document.createElement('iframe')
iframe.style.display = "none"
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
})
......@@ -337,53 +336,21 @@ export default {
.find_wrap {
padding-bottom: 17px;
.find_line {
padding: 0 15px;
overflow: hidden;
}
.cell_item {
margin-right: 30px;
}
.find_line,
.cell_item {
padding: 9px 15px;
display: flex;
align-items: center;
.cell_label {
width: 56px;
text-align: right;
padding-right: 15px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.mybtn {
width: 120px;
height: 26px;
background: #ffffff;
border-radius: 4px 0px 0px 4px;
border: 1px solid #e8e8ea;
cursor: pointer;
border-right: none;
> i {
margin-left: 5px;
font-size: 5px;
.cell_wrapper {
width: 25%;
box-sizing: border-box;
padding-right: 30px;
.cell_label {
text-align: right;
padding-right: 15px;
white-space: nowrap;
}
.cell_btn{
width: 78px;
}
}
.myfindWidth {
width: 215px;
}
.myfindWidth1 {
width: 166px;
}
}
.cell_btn_item {
display: flex;
align-items: center;
justify-content: flex-end;
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
}
......
......@@ -12,7 +12,8 @@
</div>
<div class="box_wrapper">
<div class="box_1 flex-cc">
<span class="h7_title">(累计)评价客户数</span>
<img class="box_icon" src="../../assets/guest_icon_1.png" />
<span class="h7_title fw">(累计)评价客户数</span>
<div class="h8_title">
<span>{{ messageData.commentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
......@@ -20,7 +21,8 @@
<span class="h9_title">(累计)施工完成客户数:{{ messageData.constructedCount || 0 }}</span>
</div>
<div class="box_1 flex-cc">
<span class="h7_title">(累计)好评客户数</span>
<img class="box_icon" src="../../assets/guest_icon_2.png" />
<span class="h7_title fw">(累计)好评客户数</span>
<div class="h8_title">
<span>{{ messageData.goodCommentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
......@@ -32,27 +34,28 @@
<div class="circle_wrap">
<el-progress width="60" color="#5850FF" type="circle" :percentage="messageData.commentPer"></el-progress>
</div>
<span class="h7_title">客户评价率</span>
<span class="h7_title fw">客户评价率</span>
</div>
<div class="box_con">
<div class="circle_wrap">
<el-progress width="60" color="#5850FF" type="circle" :percentage="messageData.goodCommentPer"></el-progress>
</div>
<span class="h7_title">客户好评率</span>
<span class="h7_title fw">客户好评率</span>
</div>
</div>
</div>
<div class="tip_title">
<span class="h6_title">客评</span>
<span class="h6_title">客评效果预览</span>
</div>
<div class="image_show">
<div class="image_wrap">
<span class="h9_title">小程序通知</span>
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/mini_message.png" />
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/mini_message_new.png" />
</div>
<img src="../../assets/scrm_arrow_radiu_icon.png">
<div class="image_wrap">
<span class="h9_title">客评内容</span>
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/guest_content.png" />
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/guest_content_new.png" />
</div>
</div>
<div style="height: 20px"></div>
......@@ -105,6 +108,9 @@ export default {
align-items: center;
box-sizing: border-box;
padding: 20px 19px 15px 21px;
> span {
font-weight: 500;
}
.toNext_widget {
cursor: pointer;
display: flex;
......@@ -130,9 +136,13 @@ export default {
padding: 17px 19px 19px 21px;
.box_1 {
width: calc(30% - 10px);
height: 120px;
height: 180px;
border-radius: 4px;
border: 1px solid #d8d8d8;
.box_icon {
width: 40px;
height: 40px;
}
}
.box_2 {
width: calc(40% - 10px);
......@@ -165,8 +175,9 @@ export default {
.image_show {
display: flex;
align-items: center;
justify-content: space-around;
justify-content: center;
margin-top: 10px;
overflow: hidden;
.image_wrap {
display: flex;
flex-direction: column;
......@@ -175,6 +186,13 @@ export default {
> span {
margin-bottom: 10px;
}
>img{
width: 290px;
height: 83%;
}
}
}
.fw {
font-weight: 500;
}
</style>
\ No newline at end of file
......@@ -13,27 +13,46 @@
</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" />
<img @click="videoShow = true" 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 class="wrap_con_mid" :style="showCase ? 'padding-bottom:0' : 'padding-bottom:20px'">
<div class="first_con">
<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 v-if="!item.miniDesc" style="height: 14px"></div>
<div style="height: 23px"></div>
<div class="btn_text h13_title flex_scb">
<span>{{ item.btnTitle }}</span>
<span class="btnTextBlue" @click="openDraw(index)">
查看案例
<i class="el-icon-d-arrow-right"></i>
</span>
</div>
</div>
</template>
</div>
<div v-if="showCase" class="sec_con" :class="[{ custH: curShowCaseIndex == 1 }]">
<div class="case_content">
<caseOne v-if="curShowCaseIndex == 0"></caseOne>
<caseThree v-if="curShowCaseIndex == 1"></caseThree>
<caseTwo v-if="curShowCaseIndex == 2"></caseTwo>
</div>
<img v-if="curShowCaseIndex == 0" class="bg_icon" :src="imagBaseURL + 'scrm_intro_1.png'" />
<img v-if="curShowCaseIndex == 1" class="bg_icon" :src="imagBaseURL + 'scrm_intro_2.png'" />
<img v-if="curShowCaseIndex == 2" class="bg_icon" :src="imagBaseURL + 'scrm_intro_3.png'" />
</div>
<div v-if="showCase" class="thr_con flex_cc">
<div class="btn" @click="showCase = false">
<span class="h18_title">收缩详情</span>
<img @click="showCase = false" src="../../assets/updown_icon.png" />
</div>
</template>
</div>
</div>
<div class="wrap_con_foot">
<div class="title">服务收益在线评估</div>
......@@ -54,9 +73,9 @@
</el-input>
<span v-if="(!num2 && checked) || numberCheck2" :class="[{ err2: numberCheck2, err4: errorMessage2.length == 8 }]" class="error_tip err3">{{ errorMessage2 }}</span>
</div>
<div style="width: 30px; height: 1px"></div>
<el-button size="mini" type="primary" @click="computedInfo">计算</el-button>
</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">
......@@ -69,7 +88,28 @@
<div class="single"></div>
<div class="single1"></div>
</div>
<div class="text_line flex_sc">
<div class="new_chart_container">
<div class="left_con">
<div class="maxTextPrice">
<span class="h13_title">总产值</span>
<span v-if="totalProduct" class="blueText">{{ totalProduct }}/年</span>
<span v-else class="blueText">--</span>
</div>
<div style="height: 20px"></div>
<div class="maxTextPrice">
<span class="h13_title">单店产值</span>
<span v-if="singleProduct" class="blueText">{{ singleProduct }}/年</span>
<span v-else class="blueText">--</span>
</div>
</div>
<div class="main_icon_wrap flex_cc">
<i class="el-icon-d-arrow-right"></i>
</div>
<div class="chart_wrapper">
<pie ref="mypie" echartId="myPie"></pie>
</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>
......@@ -80,24 +120,16 @@
<span v-if="singleProduct" class="blueText">{{ singleProduct }}/年</span>
<span v-else class="blueText">--</span>
</div>
</div>
<div class="chart_wrap">
</div> -->
<!-- <div class="chart_wrap">
<pie ref="mypie" echartId="myPie"></pie>
</div>
</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>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<video v-if="videoShow" width="100%" height="100%" controls src="https://img02.glsx.com.cn/scrm/video/pre_video.mp4"></video>
</el-dialog>
</div>
</template>
......@@ -107,6 +139,7 @@ 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'
const imagBaseURL = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/'
export default {
name: '',
components: {
......@@ -118,13 +151,10 @@ export default {
},
data() {
return {
conH1: 360,
imagBaseURL,
num1: '',
num2: 1,
direction: 'rtl',
drawer: false,
checked: false,
directionCenter: false,
totalProduct: 0,
singleProduct: 0,
showTip: false,
......@@ -155,7 +185,10 @@ export default {
btnTitle: '帮您售后产值增加20W/年',
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/scrm_tro_three.png'
}
]
],
showCase: false,
curShowCaseIndex: 0,
videoShow: false
}
},
mounted() {},
......@@ -221,13 +254,12 @@ export default {
this.singleProduct = obj.singleProduct
},
openDraw(type, flag) {
this.direction = type
this.drawer = true
this.directionCenter = flag
openDraw(index) {
this.showCase = true
this.curShowCaseIndex = index
},
handleClose() {
this.drawer = false
this.videoShow = false
}
}
}
......@@ -239,7 +271,7 @@ export default {
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding-right: 80px;
padding-right: 80px;
.text_wrap {
box-sizing: border-box;
padding-left: 44px;
......@@ -286,53 +318,92 @@ export default {
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;
padding: 20px 20px 0 20px;
.first_con {
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;
justify-content: space-between;
box-sizing: border-box;
.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;
}
}
}
.tip {
margin-top: 15px;
margin-bottom: 41px;
}
.sec_con {
box-sizing: border-box;
margin-top: 10px;
height: 344px;
background: #ffffff;
position: relative;
.bg_icon {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}
.btn_text {
margin-bottom: 30px;
.case_content {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: calc(100% - 15px);
z-index: 2;
}
.btnTextBlue {
font-size: 14px;
font-weight: 500;
color: #5850ff;
margin-left: 30px;
}
.custH {
height: 398px;
}
.thr_con {
height: 56px;
.btn {
cursor: pointer;
> i {
margin-left: 14px;
> img {
margin-left: 5px;
width: 10px;
height: 9px;
}
}
}
}
.wrap_con_foot {
height: 355px;
height: 300px;
margin-top: 10px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
......@@ -349,6 +420,7 @@ export default {
box-sizing: border-box;
padding: 0 20px 0px 21px;
.line_left {
width: 100%;
.cell {
position: relative;
.error_tip {
......@@ -357,6 +429,7 @@ export default {
bottom: -16px;
font-size: 11px;
color: #ee3527;
z-index: 22;
}
.err3 {
right: 129px;
......@@ -377,11 +450,11 @@ export default {
}
}
.wrap_pie_con {
margin: 20px;
// margin: 20px 0;
height: 235px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
// border-radius: 2px;
// border: 1px solid #eae9ee;
position: relative;
.tipContentClass {
position: absolute;
......@@ -440,22 +513,56 @@ export default {
cursor: pointer;
}
}
.text_line {
margin-top: 19px;
box-sizing: border-box;
padding-left: 20px;
.maxTextPrice {
.blueText {
font-size: 20px;
font-weight: 600;
.new_chart_container {
margin: 20px;
display: flex;
align-items: center;
// justify-content: space-between;
height: 150px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #eae9ee;
.left_con {
width: 30%;
padding-left: 20px;
.maxTextPrice {
.blueText {
font-size: 20px;
font-weight: 600;
color: #5850ff;
margin-left: 10px;
}
}
}
.main_icon_wrap {
height: 100%;
margin-right: 76px;
> i {
color: #5850ff;
margin-left: 10px;
font-size: 20px;
}
}
.spc {
margin-left: 150px;
.chart_wrapper {
width: 50%;
height: 150px;
}
}
// .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;
......
......@@ -14,6 +14,54 @@
<div class="tip_wrap_line"></div>
<div class="find_wrap">
<div class="find_line">
<div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">分账时间</div>
<el-date-picker size="mini" clearable v-model="divisionTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">支付时间</div>
<el-date-picker size="mini" clearable v-model="payTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div v-if="accountLevel == 4 && curDivisionType == 2" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账状态</div>
<el-select clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel != 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">导流4S店名称</div>
<el-select 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>
<div class="find_line">
<div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">主订单编号</div>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="orderNum"></el-input>
</div>
<div v-if="accountLevel != 4 && curDivisionType == 2" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账状态</div>
<el-select 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_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">交易参考号</div>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="tradeNum"></el-input>
</div> -->
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">商品名称</div>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="goodsName"></el-input>
</div>
<div class="cell_wrapper flex_sc" style="width: 15%">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button>
</div>
</div>
</div>
<!-- <div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<my-drop-menu :options="timeOptions" :leftName="timeChangeName" @getValue="timeChange">
<div slot="right_con">
......@@ -21,13 +69,13 @@
</div>
</my-drop-menu>
</div>
<div v-if="accountLevel==4" class="cell_item">
<div v-if="accountLevel == 4&&curDivisionType==2" class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel!=4" class="cell_item">
<div 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>
......@@ -40,14 +88,11 @@
</div>
</my-drop-menu>
</div>
<!-- <div class="cell_btn_item" style="width: 180px">
<el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div> -->
</div>
<div style="height: 18px"></div>
<div class="find_line flex_scb">
<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">
<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>
......@@ -58,22 +103,27 @@
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button>
</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>
<span>笔订单,累计{{ curDivisionType == 1 ? '线下分账' : '线上分账' }}金额</span>
<span style="color: #5850ff">{{ curDivisionType == 1 ? mytotalNumData.offlineDivisionMoneyCount : mytotalNumData.onlineDivisionMoneyCount }}</span>
<template v-if="curDivisionType == 1">
<span>元</span>
</template>
<template v-if="curDivisionType == 2">
<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>
</template>
</div>
<!-- <div class="right_select">
<el-select class="myfindWidth" size="mini" collapse-tags multiple clearable v-model="fieldListData" placeholder="请选择要展示的字段">
......@@ -81,25 +131,29 @@
</el-select>
</div> -->
</div>
<div class="table_wrap">
<div :hidden="curDivisionType == 1" 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="tableParams1" @refreshTable="toGetMyDivision"></GLTable> -->
</div>
<div :hidden="curDivisionType == 2" class="table_wrap">
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams1" @refreshTable="toGetMyDivision"></GLTable>
</div>
</div>
</template>
<script>
import myDropMenu from '../../components/down-menu/index.vue'
// import myDropMenu from '../../components/down-menu/index.vue'
import { mydivision, exportMydivision, myAccountTotalNumOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败']
export default {
name: '',
components: {
'my-drop-menu': myDropMenu
},
props:{
list:Array
// components: {
// 'my-drop-menu': myDropMenu
// },
props: {
list: Array
},
data() {
return {
......@@ -292,11 +346,13 @@ export default {
tableData: [],
tableParams: {},
// 查询参数
storeId:'',
storeId: '',
timeChangeType: 1,
timeBetwean: '',
divisionTime: '',
payTime: '',
divisionTypeStatus: '',
orderNum: '',
tradeNum: '',
goodsName: '',
accountLevel: 1,
mytotalNumData: {
......@@ -319,7 +375,8 @@ export default {
this.orderNum = ''
},
clearFind() {
this.timeBetwean = ''
this.divisionTime = ''
this.payTime = ''
this.divisionTypeStatus = ''
this.orderNum = ''
this.goodsName = ''
......@@ -329,33 +386,49 @@ export default {
},
handlerParams() {
let params = {}
if (this.timeBetwean) {
let startDate = utils.dateFormat(this.timeBetwean[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.timeBetwean[1], 'YYYY-MM-DD 23:59:59')
if (this.timeChangeType == 1) {
params.divisionStartDate = startDate
params.divisionEndDate = endDate
} else {
params.successDateStartDate = startDate
params.successDateEndDate = endDate
}
if (this.divisionTime) {
let startDate = utils.dateFormat(this.divisionTime[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.divisionTime[1], 'YYYY-MM-DD 23:59:59')
params.divisionStartDate = startDate
params.divisionEndDate = endDate
} else {
delete params.divisionStartDate
delete params.divisionEndDate
}
if (this.payTime) {
let startDate = utils.dateFormat(this.payTime[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.payTime[1], 'YYYY-MM-DD 23:59:59')
params.successDateStartDate = startDate
params.successDateEndDate = endDate
} else {
delete params.successDateStartDate
delete params.successDateEndDate
}
if (this.divisionTypeStatus) {
params.divisionStatus = this.divisionTypeStatus
} else {
delete params.divisionStatus
}
//主订单编号---交易参考号
if (this.orderNum) {
if (this.orderNumType == 2) {
params.tradeNo = this.orderNum
} else {
params.orderCode = this.orderNum
}
params.orderCode = this.orderNum
} else {
delete params.orderCode
}
if (this.tradeNum) {
params.tradeNo = this.orderNum
} else {
delete params.tradeNo
}
if (this.goodsName) {
params.upgradeGoodsName = this.goodsName
} else {
delete params.upgradeGoodsName
}
if(this.storeId){
if (this.storeId) {
params['merchantIdList[0]'] = this.storeId
} else {
delete params['merchantIdList[0]']
}
this.toGetMyDivision(params)
},
......@@ -438,55 +511,73 @@ export default {
.find_wrap {
padding-bottom: 17px;
.find_line {
padding: 0 15px;
overflow: hidden;
}
.cell_item {
margin-right: 30px;
}
.find_line,
.cell_item {
padding: 9px 15px;
display: flex;
align-items: center;
.cell_label {
width: 56px;
text-align: right;
padding-right: 15px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.mybtn {
width: 120px;
height: 26px;
background: #ffffff;
border-radius: 4px 0px 0px 4px;
border: 1px solid #e8e8ea;
cursor: pointer;
border-right: none;
> i {
margin-left: 5px;
font-size: 5px;
.cell_wrapper {
width: 25%;
box-sizing: border-box;
padding-right: 30px;
.cell_label {
text-align: right;
padding-right: 15px;
white-space: nowrap;
}
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
.myfindWidth {
width: 215px;
}
.myfindWidth1 {
width: 166px;
}
}
.cell_btn_item {
display: flex;
align-items: center;
justify-content: flex-end;
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
// .find_line {
// padding: 0px 15px;
// }
// .cell_item {
// margin-right: 30px;
// }
// .find_line,
// .cell_item {
// display: flex;
// align-items: center;
// .cell_label {
// width: 56px;
// text-align: right;
// padding-right: 15px;
// white-space: nowrap;
// }
// .mybtn {
// width: 120px;
// height: 26px;
// background: #ffffff;
// border-radius: 4px 0px 0px 4px;
// border: 1px solid #e8e8ea;
// cursor: pointer;
// border-right: none;
// > i {
// margin-left: 5px;
// font-size: 5px;
// }
// }
// .myfindWidth {
// width: 215px;
// }
// .myfindWidth1 {
// width: 166px;
// }
// }
// .cell_btn_item {
// display: flex;
// align-items: center;
// justify-content: flex-end;
// .cell_btn {
// width: 78px;
// }
// .cell_btn_max {
// width: 156px;
// }
// }
}
.tipper {
width: 100%;
......
......@@ -105,7 +105,7 @@
</template>
</div>
<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/mid_video.mp4"></video>
</el-dialog>
<qrCode></qrCode>
</div>
......
......@@ -9,7 +9,16 @@
<img class="icon cur" @mouseenter="showTip = true" @mouseleave="showTip = false" src="../../assets/intro.png" />
<div v-if="showTip" class="tipContentClass">
<div class="title">说明</div>
<p class="h20_title">总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
<p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
<p class="h20_title">昨日产值:当前时间前一天的产值</p>
<p class="h20_title">今日产值:当前时间的实时产值</p>
<p class="h20_title">平均单店产值:一个门店的平均产值=累计产值/开通精品升级的门店数</p>
<p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p>
<p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p>
<p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p>
<p class="h20_title">发券总数:统计时间范围内旗下所有门店的发券总量</p>
<p class="h20_title">核券总数:统计时间范围内旗下所有门店的核券总量</p>
<p class="h20_title">转化订单数:统计时间范围内旗下所有门店的转化的升级(主)订单笔数</p>
<div class="single"></div>
<div class="single1"></div>
</div>
......@@ -36,7 +45,8 @@
</div>
<div class="wrap">
<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_title_label">统计时间</div>
<div class="date_wrap">
<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>
......@@ -45,6 +55,8 @@
<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 class="drive_w"></div>
<el-button size="mini" type="primary" @click="toFindChart">确定</el-button>
<div class="drive_w"></div>
<el-button size="mini" type="primary" @click="toChangeMonth">按月</el-button>
<div class="drive_w"></div>
<el-button size="mini" type="primary" @click="toChangeDay">按日</el-button>
......@@ -82,11 +94,13 @@
</template>
<div class="box_bg_wrap mini_margin">
<div class="tab_wrap">
<template v-for="(item, index) in tabList">
<div :key="index" class="tab_element_wrap" @click="changeTab(index)">
<div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div>
</div>
</template>
<div class="tab_line flex_sc" :style="accountLevel==4?'width:48%':'width:32%'">
<template v-for="(item, index) in tabList">
<div :key="index" class="tab_element_wrap" :style="accountLevel==4?'width:33.33%':'width:50%'" @click="changeTab(index)">
<div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div>
</div>
</template>
</div>
</div>
<template v-if="accountLevel == 4">
<template v-if="curTabIndex == 0">
......@@ -186,9 +200,9 @@ export default {
}
// 获取上一次打开的状态
let lastOpenStatus = localStorage.getItem(`showMore${session.merchantId}`)
if(lastOpenStatus){
if (lastOpenStatus) {
let data = JSON.parse(lastOpenStatus)
if(session.merchantId==data.id){
if (session.merchantId == data.id) {
this.showMore = data.status
}
}
......@@ -266,8 +280,8 @@ export default {
},
toChangeShowMoreBtn(flag) {
this.showMore = !flag
const {merchantId} = this.$globalState.session
localStorage.setItem(`showMore${merchantId}`,JSON.stringify({id:merchantId,status:!flag}))
const { merchantId } = this.$globalState.session
localStorage.setItem(`showMore${merchantId}`, JSON.stringify({ id: merchantId, status: !flag }))
},
// 已开通--订单统计
judgeOpen() {
......@@ -275,6 +289,8 @@ export default {
this.bengintime = utils.dateFormat(openInfo.openDate)
// this.bengintime = this.$defaultStartDate
this.endtime = utils.dateFormat(new Date())
this.chartStartDate = this.bengintime
this.chartEndDate = this.endtime
this.orderDataInfo()
},
// 门店统计
......@@ -318,7 +334,7 @@ export default {
let para = {
currentPage: 1,
pageSize: 100,
'merchantAccountLevelList[0]':4
'merchantAccountLevelList[0]': 4
}
get4SList(para).then(res => {
this.storeList = res.list || []
......@@ -369,7 +385,7 @@ export default {
position: absolute;
left: 130px;
top: -15px;
width: 236px;
width: 500px;
// 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);
......@@ -489,7 +505,16 @@ export default {
box-sizing: border-box;
padding: 28px 22px 0 28px;
display: flex;
flex-wrap: wrap;
align-items: center;
overflow: hidden;
.date_title_label {
font-size: 14px;
font-weight: 500;
color: #000000;
margin-right: 11px;
white-space: nowrap;
}
.drive_w {
width: 10px;
height: 1px;
......@@ -539,23 +564,25 @@ export default {
.tab_wrap {
box-sizing: border-box;
padding: 22px 15px;
display: flex;
align-items: center;
.tab_element_wrap {
width: 180px;
height: 36px;
.tab_line {
width: 48%;
background: #f4f6fc;
.tab_item {
width: 100%;
height: 100%;
cursor: pointer;
}
.tab_item_active {
background: #ffffff;
border-radius: 4px;
border: 1px solid #eeedff;
font-weight: 500;
color: #5850ff;
border-radius: 4px;
box-sizing: border-box;
padding: 2px 5px;
.tab_element_wrap {
width: 33.33%;
height: 36px;
.tab_item {
width: 100%;
height: 100%;
cursor: pointer;
}
.tab_item_active {
background: #ffffff;
font-weight: 500;
color: #5850ff;
}
}
}
}
......
......@@ -4,8 +4,8 @@
<div class="table_one">
<p class="h7_title">商户名:{{ merchantInfo.name }}</p>
<div class="title_text">
<p v-if="settle.deductChargeFlag=='Y'" class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag=='N'" class="h7_title">分润计算:不扣除手续费</p>
<p v-if="settle.deductChargeFlag == 'Y'" class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag == 'N'" class="h7_title">分润计算:不扣除手续费</p>
<p class="min_text">仅针对POS机收款订单</p>
</div>
</div>
......@@ -35,18 +35,18 @@
<span>{{ division.autoFlag == 'Y' ? '是' : '否' }}</span>
</div>
<div class="h9_title">
<span v-if="division.settleTimeType == 1">分账周期:T+1</span>
<span v-if="division.settleTimeType == 1">分账周期:T+{{ division.settleTime || '1' }}</span>
<span v-if="division.settleTimeType == 2">分账周期:每月{{ division.settleTime }}号</span>
<span v-if="division.settleTimeType == 1" class="min_text">(分账后第2天到对公账户)</span>
</div>
</div>
<div class="table_four flex_scb">
<div class="h9_title">
<span>您的分账金额包含:</span>
<span v-if="division.shopProfitDivisionFlag == 3">导流方分账金额,</span>
<span>您的分账金额包含:{{division.inCludeStr}}</span>
<!-- <span v-if="division.shopProfitDivisionFlag == 3">导流方分账金额,</span>
<span v-if="division.partnerProfitDivisionFlag == 3">服务商分账金额,</span>
<span v-if="division.goodsCostDivisionFlag == 3">产品金额,</span>
<span v-if="division.extraCostDivisionFlag == 3">额外成本,</span>
<span v-if="division.extraCostDivisionFlag == 3">额外成本,</span> -->
</div>
</div>
<div class="table_four flex_scb border_all">
......@@ -58,10 +58,10 @@
<div class="min_widget">
<div class="title h7_title">对公账户信息</div>
<div v-if="bankData" class="info_widget">
<span class="h9_title">开户账户户行:{{bankData.bankName}}</span>
<span class="h9_title">开户支行:{{bankData.openAccBankName}}</span>
<span class="h9_title">账户号:{{bankData.bankAccountNo}}</span>
<span class="h9_title">账户名称:{{bankData.bankAccountName}}</span>
<span class="h9_title">开户账户户行:{{ bankData.bankName }}</span>
<span class="h9_title">开户支行:{{ bankData.openAccBankName }}</span>
<span class="h9_title">账户号:{{ bankData.bankAccountNo }}</span>
<span class="h9_title">账户名称:{{ bankData.bankAccountName }}</span>
</div>
</div>
</div>
......@@ -75,7 +75,7 @@ export default {
merchantInfo: {
name: '',
merchantId: 0
},
}
}
},
props: {
......@@ -91,7 +91,7 @@ export default {
}
},
methods: {
}
}
</script>
......
......@@ -2,6 +2,59 @@
<div class="order-container">
<div class="find_wrap">
<div class="find_line">
<div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">支付时间</div>
<el-date-picker style="width: 95%" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">支付方式</div>
<el-select size="mini" clearable v-model="payType" placeholder="请选择">
<el-option v-for="item in payTypesList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账类型</div>
<el-select 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 v-if="accountLevel != 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">导流4S店名称</div>
<el-select 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_wrapper flex_sc" style="width: 15%">
<el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div>
</div>
<div class="find_line">
<div class="cell_wrapper flex_sc" style="width: 30%">
<div class="cell_label h13_title">主订单编号</div>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="orderNum"></el-input>
</div>
<div class="cell_wrapper flex_sc">
<div class="cell_label h13_title">交易参考号</div>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="tradeNum"></el-input>
</div>
<div v-if="accountLevel == 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">商品名称</div>
<el-input size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="goodsName"></el-input>
</div>
<div v-if="accountLevel != 4" class="cell_wrapper flex_sc">
<div class="cell_label h13_title">分账类型</div>
<el-select 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_wrapper flex_sc" style="width: 15%">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handleParam">查询</el-button>
</div>
</div>
</div>
<!-- <div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<my-drop-menu :options="payOptionsList" :leftName="payChangeName" @getValue="changePayFind">
<div v-if="payTypeChange == 1" slot="right_con">
......@@ -51,7 +104,7 @@
<el-button class="cell_btn" size="mini" type="primary" @click="handleParam">查询</el-button>
</div>
</div>
</div>
</div> -->
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
......@@ -78,33 +131,16 @@
<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="upgradeGoodsName" 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>
<el-table-column label="支付信息" align="center">
<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="employeeName" 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="subTotalPrice" align="center" label="支付金额"></el-table-column> -->
</el-table-column>
<el-table-column label="导流方利润" align="center">
<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 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="divisionTypeName" align="center" label="分账类型"></el-table-column> -->
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="120">
<template slot-scope="scope">
......@@ -114,7 +150,7 @@
</el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="pageSize" :total="tableTotal" :layout="layout"></el-pagination>
</div>
<el-dialog title="订单详情" :visible.sync="dialogVisible" width="70%">
<el-dialog title="订单详情" :visible.sync="dialogVisible" width="60%">
<div v-if="orderDetail" class="dialog_content">
<div class="wrapper">
<div class="title h18_title">
......@@ -145,7 +181,7 @@
<div class="box_info">
<div class="info_text">
<span>支付方式:</span>
<span v-if="orderDetail.payOrder.payType == 1" class="h19_title">线上微信支付</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>
......@@ -183,15 +219,28 @@
<div class="box_info"></div>
</div>
<div v-if="orderDetail.comment" class="comment_wrap">
<div class="comment_line h20_title">
<span>产品与描述相符:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.customerScore"></el-rate>
<span>{{ orderDetail.comment.customerScore }}</span>
</div>
<div class="comment_line h20_title">
<span>服务态度:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.serviceScore"></el-rate>
<span>{{ orderDetail.comment.serviceScore }}</span>
<div class="comment_rate">
<div class="comment_line h20_title">
<span>产品与描述相符:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.customerScore"></el-rate>
<span v-if="orderDetail.comment.customerScore == 5">非常好</span>
<span v-else-if="orderDetail.comment.customerScore == 4">好</span>
<span v-else-if="orderDetail.comment.customerScore == 3">一般</span>
<span v-else-if="orderDetail.comment.customerScore == 2">差</span>
<span v-else-if="orderDetail.comment.customerScore == 1">非常差</span>
<span v-else>--</span>
</div>
<div style="width: 110px; height: 1"></div>
<div class="comment_line h20_title">
<span>服务态度:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.serviceScore"></el-rate>
<span v-if="orderDetail.comment.serviceScore == 5">非常好</span>
<span v-else-if="orderDetail.comment.serviceScore == 4">好</span>
<span v-else-if="orderDetail.comment.serviceScore == 3">一般</span>
<span v-else-if="orderDetail.comment.serviceScore == 2">差</span>
<span v-else-if="orderDetail.comment.serviceScore == 1">非常差</span>
<span v-else>--</span>
</div>
</div>
<div class="comment_line nocenter h20_title">
<span>评价:</span>
......@@ -262,7 +311,8 @@
</template>
<script>
import myDropMenu from '../../components/down-menu/index.vue'
// import myDropMenu from '../../components/down-menu/index.vue'
// import selectInput from '../../components/down-menu/select-input.vue'
import { findupGradeOrder, exportUpgrade, checkDetail, orderTotalNumOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
......@@ -271,7 +321,8 @@ const orderStatusList = ['å¾…å‡çº§', '未å‡çº§', '待支付', '已支付', 'å·
export default {
name: '',
components: {
'my-drop-menu': myDropMenu
// 'my-drop-menu': myDropMenu
// selectInput
},
props: {
list: Array
......@@ -297,7 +348,7 @@ export default {
},
{
value: 1,
label: '线上支付'
label: '微信支付'
},
{
value: 2,
......@@ -343,6 +394,7 @@ export default {
divisionType: '',
orderNumType: 1,
orderNum: '',
tradeNum: '',
goodsName: '',
dialogVisible: false,
// 弹框表格
......@@ -414,15 +466,15 @@ export default {
disabled: true
},
{
value: 'subOrderCode',
label: '子订单编号',
value: 'tradeNo',
label: '交易参考号',
level: 1,
width: '200',
disabled: true
},
{
value: 'tradeNo',
label: '交易参考号',
value: 'subOrderCode',
label: '子订单编号',
level: 1,
width: '200',
disabled: true
......@@ -449,6 +501,13 @@ export default {
disabled: false
},
{
value: 'customerName',
label: '客户姓名',
level: 1,
width: '110',
disabled: false
},
{
value: 'customerPhone',
label: '客户手机号',
level: 2,
......@@ -457,7 +516,7 @@ export default {
},
{
value: 'sellerName',
label: '转化员',
label: '转化员姓名',
level: 2,
width: '110',
disabled: false
......@@ -479,14 +538,14 @@ export default {
{
value: 'payTypeName',
label: '支付方式',
level: 2,
level: 3,
width: '110',
disabled: false
},
{
value: 'subTotalPrice',
label: '支付金额',
level: 2,
level: 3,
width: '110',
disabled: true
},
......@@ -499,14 +558,21 @@ export default {
},
{
value: 'shopMerchantName',
label: '分润对象',
label: '分账对象',
level: 3,
width: '110',
disabled: false
},
{
value: 'rule',
label: '分账规则',
level: 3,
width: '80',
disabled: false
},
{
value: 'shopProfitMoney',
label: '分润金额',
label: '分账金额',
level: 3,
width: '110',
disabled: true
......@@ -546,9 +612,11 @@ export default {
let endDate = utils.dateFormat(new Date())
this.openCount = openInfo.openCount || 0
let params = {
payStartDateStr: startDate,
payEndDateStr: endDate
payStartDateStr: utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00'),
payEndDateStr: utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
}
this.defaultStart = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00')
this.defaultEnd = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
this.toGetCouponsList(params)
},
methods: {
......@@ -561,46 +629,63 @@ export default {
this.getDetailInfo(item.orderCode)
},
clearFind() {
let params = {}
let params = {
payStartDateStr: this.httpParam.payStartDateStr,
payEndDateStr: this.httpParam.payEndDateStr
}
this.dateBetween = ''
this.payType = ''
this.divisionType = ''
this.orderNum = ''
this.tradeNum = ''
this.goodsName = ''
this.storeId = ''
this.currentPage = 1
this.toGetCouponsList(params)
},
handleParam() {
let params = {}
let params = {
...this.httpParam
}
if (this.dateBetween) {
//支付时间
let startDate = utils.dateFormat(this.dateBetween[0], 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(this.dateBetween[1], 'YYYY-MM-DD 23:59:59')
params.payStartDateStr = startDate
params.payEndDateStr = endDate
} else {
params.payStartDateStr = this.defaultStart
params.payEndDateStr = this.defaultEnd
}
if (this.payType) {
if (this.payType || this.payType == 0) {
//支付方式
params.payType = this.payType
}
if (this.divisionType) {
//分账类型
params.divisionType = this.divisionType
} else {
delete params.divisionType
}
if (this.orderNum) {
//主订单编号---交易参考号
if (this.orderNumType == 1) {
params.orderCode = this.orderNum
} else {
params.tradeNo = this.orderNum
}
params.orderCode = this.orderNum
} else {
delete params.orderCode
}
if (this.tradeNum) {
params.tradeNo = this.tradeNum
} else {
delete params.tradeNo
}
if (this.goodsName) {
params.upgradeGoodsName = this.goodsName
} else {
delete params.upgradeGoodsName
}
if (this.storeId) {
params['merchantIdList[0]'] = this.storeId
}else{
delete params['merchantIdList[0]']
}
this.currentPage = 1
this.toGetCouponsList(params)
......@@ -625,13 +710,12 @@ export default {
...params
}
converterApi(para).then(res => {
console.log(res)
this.tableData = res.list.map((item, index) => {
let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
item.rule = `${ruleType}${item.shopProfitPer}%`
item.divisionTypeName = item.divisionType == 1 ? '线下分账' : '线上分账'
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
})
this.tableTotal = res.total
......@@ -662,9 +746,10 @@ export default {
handleSizeChange(value) {
this.pageSize = value
let params = {
payStartDateStr: this.httpParam.payStartDateStr,
payEndDateStr: this.httpParam.payEndDateStr,
divisionType: this.httpParam.divisionType
...this.httpParam
// payStartDateStr: this.httpParam.payStartDateStr,
// payEndDateStr: this.httpParam.payEndDateStr,
// divisionType: this.httpParam.divisionType
}
this.toGetCouponsList(params)
},
......@@ -672,9 +757,10 @@ export default {
handleCurrentChange(value) {
this.currentPage = value
let params = {
payStartDateStr: this.httpParam.payStartDateStr,
payEndDateStr: this.httpParam.payEndDateStr,
divisionType: this.httpParam.divisionType
...this.httpParam
// payStartDateStr: this.httpParam.payStartDateStr,
// payEndDateStr: this.httpParam.payEndDateStr,
// divisionType: this.httpParam.divisionType
}
this.toGetCouponsList(params)
},
......@@ -732,60 +818,32 @@ export default {
.find_wrap {
padding-bottom: 17px;
.find_line {
padding: 0 15px;
overflow: hidden;
}
.cell_item {
margin-right: 30px;
}
.find_line,
.cell_item {
padding: 9px 15px;
display: flex;
align-items: center;
.cell_label {
width: 56px;
text-align: right;
padding-right: 15px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.mybtn {
width: 120px;
height: 26px;
background: #ffffff;
border-radius: 4px 0px 0px 4px;
border: 1px solid #e8e8ea;
cursor: pointer;
border-right: none;
> i {
margin-left: 5px;
font-size: 5px;
.cell_wrapper {
width: 25%;
box-sizing: border-box;
padding-right: 30px;
.cell_label {
text-align: right;
padding-right: 15px;
white-space: nowrap;
}
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
.myfindWidth {
width: 215px;
}
.myfindWidth1 {
width: 166px;
}
}
.cell_btn_item {
display: flex;
align-items: center;
justify-content: flex-end;
.cell_btn {
width: 78px;
}
.cell_btn_max {
width: 156px;
}
}
}
.tipper {
width: 100%;
box-sizing: border-box;
padding: 15px 20px;
padding: 6px 20px 15px 20px;
.tip_text {
font-size: 12px;
font-weight: 400;
......@@ -806,6 +864,8 @@ export default {
cursor: pointer;
}
.dialog_content {
height: 400px;
overflow-y: scroll;
.wrapper {
width: 100%;
box-sizing: border-box;
......@@ -856,6 +916,10 @@ export default {
}
.comment_wrap {
margin-top: 10px;
.comment_rate {
display: flex;
align-items: center;
}
.comment_line {
display: flex;
align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!