Commit 2f93be75 by 前端

Merge branch 'v4.31.0' into 'master'

V4.31.0

See merge request !4
2 parents 6dfe89c1 31b13b3c
......@@ -38,6 +38,31 @@ const getWholesaleYears = params => {
return window.$HTTP.get('member/getWholesaleYears', params)
}
// 延保权益----获取总产值(周同比&日环比)、推荐量、成交量(周同比&日环比)、转化率、客单价
const getExtendinsurOverview = params => {
return window.$HTTP.get('member/getExtendinsurOverview', params)
}
// 延保权益----获取产值、转换率、客单价门店排名
const getExtendinsurRank = params => {
return window.$HTTP.get('member/getExtendinsurRank', params)
}
// 延保权益----获取产值、订单量趋势
const getExtendinsurTrend = params => {
return window.$HTTP.get('member/getExtendinsurTrend', params)
}
// 延保权益----获取年份和区域
const getExtendinsurYearsArea = params => {
return window.$HTTP.get('member/getExtendinsurYearsArea', params)
}
// 批发销售权益----获取营业门店、停业门店占比
const getWholesaleOpenCloseNum = params => {
return window.$HTTP.get('member/getWholesaleOpenCloseNum', params)
}
export default {
getRetailOverview,
getRetailRank,
......@@ -46,5 +71,10 @@ export default {
getWholesaleNum,
getWholesaleRank,
getWholesaleTrend,
getWholesaleYears
getWholesaleYears,
getExtendinsurOverview,
getExtendinsurRank,
getExtendinsurTrend,
getExtendinsurYearsArea,
getWholesaleOpenCloseNum
}
......@@ -37,10 +37,10 @@ export default {
<style lang="scss" scoped>
.overview-box {
// width: 100%;
height: 59.78vh;
height: 51.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.tab-main-box {
margin-top: 1.78vh;
// margin-top: 1.78vh;
/deep/.tab-item-box {
margin: 0 auto;
}
......
......@@ -11,6 +11,7 @@
<el-progress class="conversion-progress" :percentage="Number(conversionRate.value)" :stroke-width="18"></el-progress>
</template>
</StatisticsBox>
<MerchantStatistic :dataList="merchantDataList" class="bottom-class"></MerchantStatistic>
<ProductionTrend ref="productionTrend" class="bottom-class" :dataList="dataList"></ProductionTrend>
<OrderTrends ref="orderTrends" :dataList="dataList"></OrderTrends>
</div>
......@@ -19,126 +20,35 @@
<script>
import ProductionTrend from './components/ProductionTrend.vue'
import OrderTrends from './components/OrderTrends.vue'
import MerchantStatistic from './components/MerchantStatistic.vue'
export default {
name: 'EquityLeft',
components: {
ProductionTrend,
OrderTrends
OrderTrends,
MerchantStatistic
},
data() {
return {
equitylList: [
{
name: '总产值',
valueName: 'outputvalue',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTB',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHB',
ratioRightValue: '0'
},
{
name: '推荐量',
valueName: 'recommNum',
value: '0',
bottomType: 'slot'
},
{
name: '成交量',
valueName: 'payOrderNum',
value: '0',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'payOrderNumTB',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'payOrderNumHB',
ratioRightValue: '0'
},
{
name: '转化率',
valueName: 'conversionRate',
value: '20',
unit: '%',
unitType: 'right',
bottomType: 'slot'
},
{
name: '客单价',
valueName: 'perCusTrans',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'slot'
}
],
dataList: [],
area: '',
month: ''
}
},
watch: {
area: {
handler(newVal) {
this.getRetailOverview()
this.getRetailTrend()
}
props: {
equitylList: {
type: Array,
default: () => []
},
merchantDataList: {
type: Array,
default: () => []
},
month: {
handler(newVal) {
this.getRetailOverview()
this.getRetailTrend()
}
dataList: {
type: Array,
default: () => []
}
},
created() {
this.$bus.$on('selectAreaChange', val => {
if (val === '全部') val = ''
this.area = val
})
this.$bus.$on('selectMonthChange', val => {
if (val === '全部') val = ''
this.month = val
})
this.getRetailOverview()
this.getRetailTrend()
data() {
return {}
},
mounted() {},
methods: {
async getRetailOverview() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getRetailOverview(params)
const _data = _result.data.dataList[0]
this.equitylList.forEach(item => {
item.value = _data[item.valueName]
item.bottomValue = _data[item.bottemName]
item.ratioLeftValue = _data[item.ratioLeftValueName]
item.ratioRightValue = _data[item.ratioRightValueName]
})
},
async getRetailTrend() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getRetailTrend(params)
this.dataList = _result.data.dataList
this.$nextTick(() => {
this.$refs.productionTrend.$refs.productionTrendsRef.drawBarLine()
this.$refs.orderTrends.$refs.orderTrendsRef.drawBarLine()
})
}
}
methods: {}
}
</script>
......@@ -148,12 +58,6 @@ export default {
.bottom-class {
margin-bottom: 1.78vh;
// /deep/.statistics-item {
// margin-right: 0.5vw;
// }
// /deep/.statistics-item:last-child {
// margin-right: 0;
// }
/deep/.ratio {
font-size: 10px;
}
......
......@@ -36,14 +36,25 @@
<script>
export default {
name: 'EquityRight',
props: {
// 门店产值排名数据
storeOutputList: {
type: Array,
default: () => []
},
// 门店转化率排名数据
storePercentList: {
type: Array,
default: () => []
},
// 门店客单价排名数据
storePriceList: {
type: Array,
default: () => []
}
},
data() {
return {
// 门店产值排名数据
storeOutputList: [],
// 门店转化率排名数据
storePercentList: [],
// 门店客单价排名数据
storePriceList: [],
// rankingDataObj
rankingDataObj: [
{
......@@ -68,51 +79,13 @@ export default {
width: '3vw',
type: 'decimal'
}
],
area: '',
month: ''
}
},
watch: {
area: {
handler(newVal) {
this.getRetailRank()
}
},
month: {
handler(newVal) {
this.getRetailRank()
}
]
}
},
created() {
this.$bus.$on('selectAreaChange', val => {
if (val === '全部') val = ''
this.area = val
})
this.$bus.$on('selectMonthChange', val => {
if (val === '全部') val = ''
this.month = val
})
this.getRetailRank()
},
mounted() {},
methods: {
async getRetailRank() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getRetailRank(params)
const { outputvalueRank, perCusTransRank, conversionRateRank } = _result.data.dataList[0]
this.storeOutputList = outputvalueRank.slice(0,5)
this.storePercentList = conversionRateRank.slice(0,5)
this.storePriceList = perCusTransRank.slice(0,5)
}
}
methods: {}
}
</script>
......
<template>
<div class="pie-box">
<div>
<div class="pie-box">
<TotalBill :totalBillData="numProportion" :totalNum="totalNum"></TotalBill>
<TotalMerchant :totalMerchantData="merProportion" :totalMerchant="totalMerchant"></TotalMerchant>
</div>
<div class="pie-box">
<ActiveMerchant :activeMerchantData="activeMerchantData" :totalActiveMerchant="totalActiveMerchant"></ActiveMerchant>
<InactiveMerchant :inactiveMerchantData="inactiveMerchantData" :totalInactiveMerchant="totalInactiveMerchant"></InactiveMerchant>
</div>
</div>
</template>
<script>
import TotalBill from './components/TotalBill.vue'
import TotalMerchant from './components/TotalMerchant.vue'
import ActiveMerchant from './components/ActiveMerchant.vue'
import InactiveMerchant from './components/InactiveMerchant.vue'
export default {
name: 'EquityTop',
components: {
TotalBill,
TotalMerchant
TotalMerchant,
ActiveMerchant,
InactiveMerchant
},
data() {
return {
totalNum: 0,
totalMerchant: 0,
totalActiveMerchant: 0,
totalInactiveMerchant: 0,
merProportion: [],
numProportion: [],
activeMerchantData: [],
inactiveMerchantData: [],
month: ''
}
},
......@@ -29,8 +43,10 @@ export default {
if (val === '全部') val = ''
this.month = val
this.getWholesaleNum()
this.getWholesaleOpenCloseNum()
})
this.getWholesaleNum()
this.getWholesaleOpenCloseNum()
},
mounted() {},
......@@ -46,6 +62,18 @@ export default {
this.numProportion = numProportion
this.totalNum = totalNum
this.totalMerchant = totalMerchant
},
async getWholesaleOpenCloseNum() {
const params = {
statMonth: this.month
}
const _result = await this.api.equity.getWholesaleOpenCloseNum(params)
const { closeProportion, openProportion, closeNum, openNum } = _result.data.dataList[0]
console.log(openNum, closeNum);
this.activeMerchantData = openProportion
this.inactiveMerchantData = closeProportion
this.totalActiveMerchant = openNum
this.totalInactiveMerchant = closeNum
}
}
}
......@@ -55,5 +83,6 @@ export default {
.pie-box {
display: flex;
justify-content: space-between;
margin-bottom: 1.78vh;
}
</style>
<template>
<div class="content">
<EquityLeft ref="equityLeftRef" :equitylList="equitylList" :merchantDataList="merchantDataList" :dataList="dataList"></EquityLeft>
<EquityRight :storeOutputList="storeOutputList" :storePercentList="storePercentList" :storePriceList="storePriceList"></EquityRight>
</div>
</template>
<script>
import EquityLeft from './EquityLeft.vue'
import EquityRight from './EquityRight.vue'
export default {
name: 'ExtendWarranty',
components: {
EquityLeft,
EquityRight
},
data() {
return {
equitylList: [
{
name: '总产值',
valueName: 'outputvalue',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTB',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHB',
ratioRightValue: '0'
},
{
name: '推荐量',
valueName: 'recommNum',
value: '0',
bottomType: 'slot'
},
{
name: '成交量',
valueName: 'payOrderNum',
value: '0',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'payOrderNumTB',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'payOrderNumHB',
ratioRightValue: '0'
},
{
name: '转化率',
valueName: 'conversionRate',
value: '20',
unit: '%',
unitType: 'right',
bottomType: 'slot'
},
{
name: '客单价',
valueName: 'perCusTrans',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'slot'
}
],
dataList: [],
area: '',
month: '',
merchantDataList: [
{
name: '在营门店数',
valueName: 'openNum',
val: 0
},
{
name: '停业门店',
valueName: 'closeNum',
val: 0
}
],
// 门店产值排名数据
storeOutputList: [],
// 门店转化率排名数据
storePercentList: [],
// 门店客单价排名数据
storePriceList: []
}
},
watch: {
area: {
handler(newVal) {
this.getExtendinsurOverview()
this.getExtendinsurTrend()
this.getExtendinsurRank()
}
},
month: {
handler(newVal) {
this.getExtendinsurOverview()
this.getExtendinsurTrend()
this.getExtendinsurRank()
}
}
},
created() {
this.$bus.$on('selectAreaChange', val => {
if (val === '全部') val = ''
this.area = val
})
this.$bus.$on('selectMonthChange', val => {
if (val === '全部') val = ''
this.month = val
})
this.getExtendinsurOverview()
this.getExtendinsurTrend()
this.getExtendinsurRank()
},
mounted() {},
methods: {
async getExtendinsurOverview() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getExtendinsurOverview(params)
const _data = _result.data.dataList[0]
this.equitylList.forEach(item => {
item.value = _data[item.valueName]
item.bottomValue = _data[item.bottemName]
item.ratioLeftValue = _data[item.ratioLeftValueName]
item.ratioRightValue = _data[item.ratioRightValueName]
})
this.merchantDataList.forEach(item => {
item.val = _data[item.valueName]
})
},
async getExtendinsurTrend() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getExtendinsurTrend(params)
this.dataList = _result.data.dataList
this.$nextTick(() => {
this.$refs.equityLeftRef.$refs.productionTrend.$refs.productionTrendsRef.drawBarLine()
this.$refs.equityLeftRef.$refs.orderTrends.$refs.orderTrendsRef.drawBarLine()
})
},
async getExtendinsurRank() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getExtendinsurRank(params)
const { outputvalueRank, perCusTransRank, conversionRateRank } = _result.data.dataList[0]
this.storeOutputList = outputvalueRank.slice(0, 5)
this.storePercentList = conversionRateRank.slice(0, 5)
this.storePriceList = perCusTransRank.slice(0, 5)
}
}
}
</script>
<style lang="scss" scoped>
.content {
display: flex;
justify-content: space-between;
// padding: 1.78vh 0 0;
// margin-top: 1.78vh;
}
</style>
<template>
<div class="content">
<EquityLeft></EquityLeft>
<EquityRight></EquityRight>
<EquityLeft ref="equityLeftRef" :equitylList="equitylList" :merchantDataList="merchantDataList" :dataList="dataList"></EquityLeft>
<EquityRight :storeOutputList="storeOutputList" :storePercentList="storePercentList" :storePriceList="storePriceList"></EquityRight>
</div>
</template>
......@@ -15,12 +15,155 @@ export default {
EquityRight
},
data() {
return {}
return {
equitylList: [
{
name: '总产值',
valueName: 'outputvalue',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTB',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHB',
ratioRightValue: '0'
},
{
name: '推荐量',
valueName: 'recommNum',
value: '0',
bottomType: 'slot'
},
{
name: '成交量',
valueName: 'payOrderNum',
value: '0',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'payOrderNumTB',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'payOrderNumHB',
ratioRightValue: '0'
},
{
name: '转化率',
valueName: 'conversionRate',
value: '20',
unit: '%',
unitType: 'right',
bottomType: 'slot'
},
{
name: '客单价',
valueName: 'perCusTrans',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'slot'
}
],
dataList: [],
area: '',
month: '',
merchantDataList: [
{
name: '在营门店数',
valueName: 'openNum',
val: 0
},
{
name: '停业门店',
valueName: 'closeNum',
val: 0
}
],
// 门店产值排名数据
storeOutputList: [],
// 门店转化率排名数据
storePercentList: [],
// 门店客单价排名数据
storePriceList: []
}
},
watch: {
area: {
handler(newVal) {
this.getRetailOverview()
this.getRetailTrend()
this.getRetailRank()
}
},
month: {
handler(newVal) {
this.getRetailOverview()
this.getRetailTrend()
this.getRetailRank()
}
}
},
created() {
this.$bus.$on('selectAreaChange', val => {
if (val === '全部') val = ''
this.area = val
})
this.$bus.$on('selectMonthChange', val => {
if (val === '全部') val = ''
this.month = val
})
this.getRetailOverview()
this.getRetailTrend()
this.getRetailRank()
},
mounted() {},
methods: {}
methods: {
async getRetailOverview() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getRetailOverview(params)
const _data = _result.data.dataList[0]
this.equitylList.forEach(item => {
item.value = _data[item.valueName]
item.bottomValue = _data[item.bottemName]
item.ratioLeftValue = _data[item.ratioLeftValueName]
item.ratioRightValue = _data[item.ratioRightValueName]
})
this.merchantDataList.forEach(item => {
item.val = _data[item.valueName]
})
},
async getRetailTrend() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getRetailTrend(params)
this.dataList = _result.data.dataList
this.$nextTick(() => {
this.$refs.equityLeftRef.$refs.productionTrend.$refs.productionTrendsRef.drawBarLine()
this.$refs.equityLeftRef.$refs.orderTrends.$refs.orderTrendsRef.drawBarLine()
})
},
async getRetailRank() {
const params = {
province: this.area,
statMonth: this.month
}
const _result = await this.api.equity.getRetailRank(params)
const { outputvalueRank, perCusTransRank, conversionRateRank } = _result.data.dataList[0]
this.storeOutputList = outputvalueRank.slice(0, 5)
this.storePercentList = conversionRateRank.slice(0, 5)
this.storePriceList = perCusTransRank.slice(0, 5)
}
}
}
</script>
......
<template>
<div>
<EquityTop></EquityTop>
<EquityBottom class="top-class"></EquityBottom>
<EquityBottom></EquityBottom>
</div>
</template>
......@@ -25,7 +25,4 @@ export default {
</script>
<style lang="scss" scoped>
.top-class {
margin-top: 1.78vh;
}
</style>
<template>
<div>
<div class="bill-total-box">
<box-title title="在营门店数"></box-title>
<div v-if="activeMerchantData.length" class="content-box">
<div class="text-box">
<div class="text">在营门店数</div>
<div class="number-text">{{ numAddSymbol(totalActiveMerchant) }}</div>
</div>
<RightViewContent :chart="activeMerchantChart" :listData="activeMerchantData" :legentList="activeMerchantLegend" :legendColors="activeMerchantChart.colors"></RightViewContent>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
</div>
</template>
<script>
import RightViewContent from '../../solar/RightViewContent.vue'
export default {
name: 'ActiveMerchant',
components: {
RightViewContent
},
props: {
activeMerchantData: {
type: Array,
default: () => []
},
totalActiveMerchant: Number
},
data() {
return {
activeMerchantChart: {
id: 'activeMerchant',
keys: ['name', 'num'],
height: '6vh',
colors: ['#FF7D5E', '#69EE9F'],
formatter: 'none'
},
activeMerchantLegend: [
{
name: 'name',
width: '7vw'
},
{
name: 'num',
type: 'number',
width: '5vw'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 1.03vh 0 0 2.92vw;
.text-box {
// margin-right: 3.75vw;
width: 13.75vw;
.text {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.number-text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
.empty {
height: 8vh;
display: flex;
align-items: center;
}
}
</style>
<template>
<div>
<div class="bill-total-box">
<box-title title="停业门店数"></box-title>
<div v-if="inactiveMerchantData.length" class="content-box">
<div class="text-box">
<div class="text">停业门店数</div>
<div class="number-text">{{ numAddSymbol(totalInactiveMerchant) }}</div>
</div>
<RightViewContent :chart="inactiveMerchantChart" :listData="inactiveMerchantData" :legentList="inactiveMerchantLegend" :legendColors="inactiveMerchantChart.colors"></RightViewContent>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
</div>
</template>
<script>
import RightViewContent from '../../solar/RightViewContent.vue'
export default {
name: 'InactiveMerchant',
components: {
RightViewContent
},
props: {
inactiveMerchantData: {
type: Array,
default: () => []
},
totalInactiveMerchant: Number
},
data() {
return {
inactiveMerchantChart: {
id: 'inactiveMerchant',
keys: ['name', 'num'],
height: '6vh',
colors: ['#EBA3FF', '#726BFF'],
formatter: 'none'
},
inactiveMerchantLegend: [
{
name: 'name',
width: '7vw'
},
{
name: 'num',
type: 'number',
width: '5vw'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 1.03vh 0 0 2.92vw;
.text-box {
// margin-right: 3.75vw;
width: 13.75vw;
.text {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.number-text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
.empty {
height: 8vh;
display: flex;
align-items: center;
}
}
</style>
<template>
<div class="main-box">
<div v-for="(item, index) in dataList" :key="index" class="statistic-box" :style="{ width: 100 / dataList.length + '%' }">
<div class="title">{{ item.name }}</div>
<div class="text">{{ numAddSymbol(item.val) }}</div>
</div>
</div>
</template>
<script>
export default {
name: 'MerchantStatistic',
props: {
dataList: {
type: Array,
default: () => []
}
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.main-box {
display: flex;
}
.statistic-box {
box-shadow: inset 0 0 20px 0 #3d57ff69;
padding: 1.89vh 0.89vw;
margin-right: 1.11vw;
display: flex;
justify-content: space-between;
align-items: center;
&:last-child {
margin-right: 0;
}
.title {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
</style>
<template>
<div class="trend-box">
<box-title title="订单趋势"></box-title>
<BarLineCharts ref="orderTrendsRef" height="29vh" domId="orderTrends" :dataList.sync="dataList" valName="orderNum"></BarLineCharts>
<BarLineCharts ref="orderTrendsRef" height="25vh" domId="orderTrends" :dataList.sync="dataList" valName="orderNum"></BarLineCharts>
</div>
</template>
......@@ -33,7 +33,7 @@ export default {
<style lang="scss" scoped>
.trend-box {
width: 64.17vw;
height: 34.22vh;
height: 29.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
}
</style>
<template>
<div class="trend-box">
<box-title title="产值趋势"></box-title>
<BarLineCharts ref="productionTrendsRef" height="29vh" domId="productionTrend" :dataList.sync="dataList" valName="outputvalue"></BarLineCharts>
<BarLineCharts ref="productionTrendsRef" height="25vh" domId="productionTrend" :dataList.sync="dataList" valName="outputvalue"></BarLineCharts>
</div>
</template>
......@@ -35,7 +35,7 @@ export default {
<style lang="scss" scoped>
.trend-box {
width: 64.17vw;
height: 34.22vh;
height: 29.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
}
</style>
<template>
<div class="right-tab-box">
<div class="flex area-box" v-show="tabActive == 0">
<div class="flex area-box" v-show="tabActive !== 2">
<span class="area-text">区域:</span>
<div class="area-plugin">
<div class="area" @click.stop="switchArea">
......@@ -51,18 +51,20 @@ export default {
watch: {
tabActive: {
handler(val) {
if (val === 0) {
this.area = ''
this.month = ''
this.defaultArea = ''
this.defaultMonth = ''
this.getRetailYearsArea()
} else {
this.area = ''
this.month = ''
this.defaultArea = ''
this.defaultMonth = ''
this.getWholesaleYears()
this.area = ''
this.month = ''
this.defaultArea = ''
this.defaultMonth = ''
switch (val) {
case 0:
this.getRetailYearsArea()
break
case 1:
this.getExtendinsurYearsArea()
break
case 2:
this.getWholesaleYears()
break
}
}
}
......@@ -79,7 +81,6 @@ export default {
async getRetailYearsArea() {
const _result = await this.api.equity.getRetailYearsArea({})
const { areas, years } = _result.data.dataList[0]
console.log(areas, years)
areas.unshift('全部')
years.unshift('全部')
this.defaultArea = areas[0]
......@@ -95,6 +96,17 @@ export default {
years.unshift('全部')
this.monthDataList = years
},
// 延保权益----获取年份和区域
async getExtendinsurYearsArea() {
const _result = await this.api.equity.getExtendinsurYearsArea({})
const { areas, years } = _result.data.dataList[0]
areas.unshift('全部')
years.unshift('全部')
this.defaultArea = areas[0]
this.defaultMonth = years[0]
this.areaDataList = areas
this.monthDataList = years
},
switchArea() {
this.isShowArea = !this.isShowArea
},
......
......@@ -35,7 +35,7 @@ export default {
totalBillChart: {
id: 'totalBill',
keys: ['name', 'num'],
height: '15vh',
height: '6vh',
colors: ['#FF7D5E', '#69EE9F'],
formatter: 'none'
},
......@@ -62,13 +62,14 @@ export default {
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 21.78vh;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 3.03vh 0 0 2.92vw;
padding: 1.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
// margin-right: 3.75vw;
width: 13.75vw;
.text {
font-weight: 500;
font-size: 14px;
......@@ -85,7 +86,7 @@ export default {
}
}
.empty {
height: 18.45vh;
height: 8vh;
display: flex;
align-items: center;
}
......
......@@ -40,7 +40,7 @@ export default {
totalMerchantChart: {
id: 'totalMerchant',
keys: ['name', 'num'],
height: '15.34vh',
height: '6vh',
colors: ['#EBA3FF', '#726BFF'],
formatter: 'none'
},
......@@ -67,13 +67,14 @@ export default {
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 21.78vh;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 3.03vh 0 0 2.92vw;
padding: 1.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
// margin-right: 3.75vw;
width: 13.75vw;
.text {
font-weight: 500;
font-size: 14px;
......@@ -90,7 +91,7 @@ export default {
}
}
.empty {
height: 18.45vh;
height: 8vh;
display: flex;
align-items: center;
}
......
......@@ -27,6 +27,6 @@ export default {
<style lang="scss" scoped>
.detail-box {
display: flex;
height: 41vh;
height: 35vh;
}
</style>
......@@ -7,7 +7,7 @@
isMultiple
:barWidth="'24'"
domId="orderTrendChart"
height="37.22vh"
height="36.22vh"
:dataList.sync="dataList"
:colorList="colorList"
:tooltipFormatterObj="tooltips.amountTooltip"
......
......@@ -88,6 +88,7 @@ export default {
<style lang="scss" scoped>
.trend-right {
margin-left: 4.1vw;
margin-top: -3.56vh;
.title {
width: 7.5vw;
height: 2.22vh;
......@@ -98,9 +99,16 @@ export default {
overflow: visible;
white-space: nowrap;
margin-top: 0;
margin-bottom: 2.67vh;
margin-bottom: 2.3vh;
background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079ff1 100%);
padding-left: 0.83vw;
}
.rank-content {
.rank-box {
/deep/.ranking-box-item {
padding-bottom: 0.6vh;
}
}
}
}
</style>
<!--
* @Description: 1.0 会员权益内容页面
* @Description: 2.1 会员权益内容页面
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
......@@ -15,6 +15,9 @@
<template v-if="tabActive == 0">
<Resident></Resident>
</template>
<template v-else-if="tabActive == 1">
<ExtendWarranty></ExtendWarranty>
</template>
<template v-else>
<Wholesale></Wholesale>
</template>
......@@ -25,16 +28,18 @@
import Resident from '../../equity/Resident.vue'
import Wholesale from '../../equity/Wholesale.vue'
import RightTab from '../../equity/components/RightTab.vue'
import ExtendWarranty from '../../equity/ExtendWarranty.vue'
export default {
name: 'ViewEquity',
components: {
ExtendWarranty,
Resident,
Wholesale,
RightTab
},
data() {
return {
tabList: ['驻店零售权益', '批发销售权益'],
tabList: ['驻店零售权益', '延保权益', '批发销售权益'],
tabActive: 0
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!