Commit dd7ded1c by 杨北旺

Merge branch 'master' into v3.5.0

2 parents e8176cd0 908a611c
<template>
<div class="open-container">
<div class="box_bg_wrap">
<!-- <div class="box_bg_wrap">
<div class="top_widget">
<div class="wrap">
<div class="title_wrap">
......@@ -12,8 +12,6 @@
<p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
<p class="h20_title">昨日产值:当前时间前一天的产值</p>
<p class="h20_title">今日产值:当前时间的实时产值</p>
<!-- <p v-if="accountLevel != 4" class="h20_title">平均单店产值:一个门店的平均产值=累计产值/开通精品升级的门店数</p>
<p v-if="accountLevel == 4" class="h20_title">行业均值(单店):一个门店的平均产值=所有门店的累计产值/开通精品升级的门店数。</p> -->
<p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p>
<p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p>
<p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p>
......@@ -34,7 +32,6 @@
<p style="height: 15px"></p>
<p class="h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</p>
</div>
<!-- <span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> -->
<span class="text_tip_price2 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price4 h13_title">今日利润:{{ productValueInfo.todayProfitMoney ? '¥' : '' }}{{ productValueInfo.todayProfitMoney || '---' }}</span>
<span class="text_tip_price11 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
......@@ -48,7 +45,6 @@
<span class="h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
</div>
<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>
......@@ -98,30 +94,30 @@
<div v-show="accountLevel != 4">
<bloc-con ref="mybloc" :width="chartWidth" :show="openRankFlag" @showRanking="toOpenRanking"></bloc-con>
</div>
</div>
</div> -->
<div v-show="accountLevel != 4">
<ranking ref="myRanking" :product="productValueInfo.divisionMoney" :show="openRankFlag" @closeRank="toCloseRanking"></ranking>
</div>
<div class="box_bg_wrap mini_margin">
<div class="tab_wrap">
<div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:48%' : 'width:32%'">
<!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> -->
<!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> -->
<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 :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:100%'" @click="changeTab(index)"> -->
<!-- <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:100%'" @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">
<!-- <template v-if="curTabIndex == 0">
<coupons-order></coupons-order>
</template>
<template v-if="curTabIndex == 1">
</template> -->
<template v-if="curTabIndex == 0">
<upgrade-order></upgrade-order>
</template>
<template v-if="curTabIndex == 2">
<template v-if="curTabIndex == 1">
<my-fashionable-order></my-fashionable-order>
</template>
</template>
......@@ -172,7 +168,7 @@ export default {
dateType: 'date',
dateplaceholder: '选择日期',
showMore: true,
tabList: ['精品礼券领取订单', '精品升级订单', '我的分账'],
tabList: ['精品升级订单', '我的分账'],
// tabList: ['精品礼券领取订单', '精品升级订单'],
curTabIndex: 0,
customName: '',
......@@ -365,7 +361,7 @@ export default {
this.persent = utils.decimal(temp * 100, 2)
}
})
},
}
// toGet4SStore() {
// const { session } = this.$globalState
// let level = this.accountLevel
......
......@@ -430,13 +430,13 @@ export default {
width: '200',
disabled: false
},
{
value: 'customerPhone',
label: '客户手机号',
level: 2,
width: '200',
disabled: false
},
// {
// value: 'customerPhone',
// label: '客户手机号',
// level: 2,
// width: '200',
// disabled: false
// },
{
value: 'sellerName',
label: '转化员姓名',
......@@ -575,11 +575,11 @@ export default {
label: '支付信息',
align: 'center',
children: [
{
label: '客户手机号',
prop: 'customerPhone',
width: '200'
},
// {
// label: '客户手机号',
// prop: 'customerPhone',
// width: '200'
// },
{
label: '转化员姓名',
prop: 'sellerName',
......@@ -919,11 +919,11 @@ export default {
}
converterApi(para).then(res => {
this.tableData = res.list.map((item, index) => {
const TYPELIST = ['--','毛利','收入','固定']
const TYPELIST = ['--', '毛利', '收入', '固定']
// let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
// let ruleType = item.shopTrafficMoneyCalculateType == 1 ? '毛利' : '收入'
let ruleType = TYPELIST[item.shopTrafficMoneyCalculateType]
item.rule = `${ruleType}${item.shopTrafficMoneyCalculateType==0?'':(item.shopTrafficMoneyCalculateValue)}${item.shopTrafficMoneyCalculateType==0?'':'%'}`
item.rule = `${ruleType}${item.shopTrafficMoneyCalculateType == 0 ? '' : item.shopTrafficMoneyCalculateValue}${item.shopTrafficMoneyCalculateType == 0 ? '' : '%'}`
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机'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!