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 => { ...@@ -38,6 +38,31 @@ const getWholesaleYears = params => {
return window.$HTTP.get('member/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 { export default {
getRetailOverview, getRetailOverview,
getRetailRank, getRetailRank,
...@@ -46,5 +71,10 @@ export default { ...@@ -46,5 +71,10 @@ export default {
getWholesaleNum, getWholesaleNum,
getWholesaleRank, getWholesaleRank,
getWholesaleTrend, getWholesaleTrend,
getWholesaleYears getWholesaleYears,
getExtendinsurOverview,
getExtendinsurRank,
getExtendinsurTrend,
getExtendinsurYearsArea,
getWholesaleOpenCloseNum
} }
...@@ -37,10 +37,10 @@ export default { ...@@ -37,10 +37,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.overview-box { .overview-box {
// width: 100%; // width: 100%;
height: 59.78vh; height: 51.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69; box-shadow: inset 0 0 20px 0 #3d57ff69;
.tab-main-box { .tab-main-box {
margin-top: 1.78vh; // margin-top: 1.78vh;
/deep/.tab-item-box { /deep/.tab-item-box {
margin: 0 auto; margin: 0 auto;
} }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<el-progress class="conversion-progress" :percentage="Number(conversionRate.value)" :stroke-width="18"></el-progress> <el-progress class="conversion-progress" :percentage="Number(conversionRate.value)" :stroke-width="18"></el-progress>
</template> </template>
</StatisticsBox> </StatisticsBox>
<MerchantStatistic :dataList="merchantDataList" class="bottom-class"></MerchantStatistic>
<ProductionTrend ref="productionTrend" class="bottom-class" :dataList="dataList"></ProductionTrend> <ProductionTrend ref="productionTrend" class="bottom-class" :dataList="dataList"></ProductionTrend>
<OrderTrends ref="orderTrends" :dataList="dataList"></OrderTrends> <OrderTrends ref="orderTrends" :dataList="dataList"></OrderTrends>
</div> </div>
...@@ -19,126 +20,35 @@ ...@@ -19,126 +20,35 @@
<script> <script>
import ProductionTrend from './components/ProductionTrend.vue' import ProductionTrend from './components/ProductionTrend.vue'
import OrderTrends from './components/OrderTrends.vue' import OrderTrends from './components/OrderTrends.vue'
import MerchantStatistic from './components/MerchantStatistic.vue'
export default { export default {
name: 'EquityLeft', name: 'EquityLeft',
components: { components: {
ProductionTrend, ProductionTrend,
OrderTrends OrderTrends,
MerchantStatistic
}, },
data() { props: {
return { equitylList: {
equitylList: [ type: Array,
{ default: () => []
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'
}, },
{ merchantDataList: {
name: '客单价', type: Array,
valueName: 'perCusTrans', default: () => []
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'slot'
}
],
dataList: [],
area: '',
month: ''
}
}, },
watch: { dataList: {
area: { type: Array,
handler(newVal) { default: () => []
this.getRetailOverview()
this.getRetailTrend()
} }
}, },
month: { data() {
handler(newVal) { return {}
this.getRetailOverview()
this.getRetailTrend()
}
}
},
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()
}, },
mounted() {}, 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]
})
},
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()
})
}
}
} }
</script> </script>
...@@ -148,12 +58,6 @@ export default { ...@@ -148,12 +58,6 @@ export default {
.bottom-class { .bottom-class {
margin-bottom: 1.78vh; margin-bottom: 1.78vh;
// /deep/.statistics-item {
// margin-right: 0.5vw;
// }
// /deep/.statistics-item:last-child {
// margin-right: 0;
// }
/deep/.ratio { /deep/.ratio {
font-size: 10px; font-size: 10px;
} }
......
...@@ -36,14 +36,25 @@ ...@@ -36,14 +36,25 @@
<script> <script>
export default { export default {
name: 'EquityRight', name: 'EquityRight',
data() { props: {
return {
// 门店产值排名数据 // 门店产值排名数据
storeOutputList: [], storeOutputList: {
type: Array,
default: () => []
},
// 门店转化率排名数据 // 门店转化率排名数据
storePercentList: [], storePercentList: {
type: Array,
default: () => []
},
// 门店客单价排名数据 // 门店客单价排名数据
storePriceList: [], storePriceList: {
type: Array,
default: () => []
}
},
data() {
return {
// rankingDataObj // rankingDataObj
rankingDataObj: [ rankingDataObj: [
{ {
...@@ -68,51 +79,13 @@ export default { ...@@ -68,51 +79,13 @@ export default {
width: '3vw', width: '3vw',
type: 'decimal' 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() {}, mounted() {},
methods: { 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)
}
}
} }
</script> </script>
......
<template> <template>
<div>
<div class="pie-box"> <div class="pie-box">
<TotalBill :totalBillData="numProportion" :totalNum="totalNum"></TotalBill> <TotalBill :totalBillData="numProportion" :totalNum="totalNum"></TotalBill>
<TotalMerchant :totalMerchantData="merProportion" :totalMerchant="totalMerchant"></TotalMerchant> <TotalMerchant :totalMerchantData="merProportion" :totalMerchant="totalMerchant"></TotalMerchant>
</div> </div>
<div class="pie-box">
<ActiveMerchant :activeMerchantData="activeMerchantData" :totalActiveMerchant="totalActiveMerchant"></ActiveMerchant>
<InactiveMerchant :inactiveMerchantData="inactiveMerchantData" :totalInactiveMerchant="totalInactiveMerchant"></InactiveMerchant>
</div>
</div>
</template> </template>
<script> <script>
import TotalBill from './components/TotalBill.vue' import TotalBill from './components/TotalBill.vue'
import TotalMerchant from './components/TotalMerchant.vue' import TotalMerchant from './components/TotalMerchant.vue'
import ActiveMerchant from './components/ActiveMerchant.vue'
import InactiveMerchant from './components/InactiveMerchant.vue'
export default { export default {
name: 'EquityTop', name: 'EquityTop',
components: { components: {
TotalBill, TotalBill,
TotalMerchant TotalMerchant,
ActiveMerchant,
InactiveMerchant
}, },
data() { data() {
return { return {
totalNum: 0, totalNum: 0,
totalMerchant: 0, totalMerchant: 0,
totalActiveMerchant: 0,
totalInactiveMerchant: 0,
merProportion: [], merProportion: [],
numProportion: [], numProportion: [],
activeMerchantData: [],
inactiveMerchantData: [],
month: '' month: ''
} }
}, },
...@@ -29,8 +43,10 @@ export default { ...@@ -29,8 +43,10 @@ export default {
if (val === '全部') val = '' if (val === '全部') val = ''
this.month = val this.month = val
this.getWholesaleNum() this.getWholesaleNum()
this.getWholesaleOpenCloseNum()
}) })
this.getWholesaleNum() this.getWholesaleNum()
this.getWholesaleOpenCloseNum()
}, },
mounted() {}, mounted() {},
...@@ -46,6 +62,18 @@ export default { ...@@ -46,6 +62,18 @@ export default {
this.numProportion = numProportion this.numProportion = numProportion
this.totalNum = totalNum this.totalNum = totalNum
this.totalMerchant = totalMerchant 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 { ...@@ -55,5 +83,6 @@ export default {
.pie-box { .pie-box {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 1.78vh;
} }
</style> </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> <template>
<div class="content"> <div class="content">
<EquityLeft></EquityLeft> <EquityLeft ref="equityLeftRef" :equitylList="equitylList" :merchantDataList="merchantDataList" :dataList="dataList"></EquityLeft>
<EquityRight></EquityRight> <EquityRight :storeOutputList="storeOutputList" :storePercentList="storePercentList" :storePriceList="storePriceList"></EquityRight>
</div> </div>
</template> </template>
...@@ -15,12 +15,155 @@ export default { ...@@ -15,12 +15,155 @@ export default {
EquityRight EquityRight
}, },
data() { 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() {}, 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> </script>
......
<template> <template>
<div> <div>
<EquityTop></EquityTop> <EquityTop></EquityTop>
<EquityBottom class="top-class"></EquityBottom> <EquityBottom></EquityBottom>
</div> </div>
</template> </template>
...@@ -25,7 +25,4 @@ export default { ...@@ -25,7 +25,4 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.top-class {
margin-top: 1.78vh;
}
</style> </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> <template>
<div class="trend-box"> <div class="trend-box">
<box-title title="订单趋势"></box-title> <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> </div>
</template> </template>
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.trend-box { .trend-box {
width: 64.17vw; width: 64.17vw;
height: 34.22vh; height: 29.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69; box-shadow: inset 0 0 20px 0 #3d57ff69;
} }
</style> </style>
<template> <template>
<div class="trend-box"> <div class="trend-box">
<box-title title="产值趋势"></box-title> <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> </div>
</template> </template>
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.trend-box { .trend-box {
width: 64.17vw; width: 64.17vw;
height: 34.22vh; height: 29.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69; box-shadow: inset 0 0 20px 0 #3d57ff69;
} }
</style> </style>
<template> <template>
<div class="right-tab-box"> <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> <span class="area-text">区域:</span>
<div class="area-plugin"> <div class="area-plugin">
<div class="area" @click.stop="switchArea"> <div class="area" @click.stop="switchArea">
...@@ -51,18 +51,20 @@ export default { ...@@ -51,18 +51,20 @@ export default {
watch: { watch: {
tabActive: { tabActive: {
handler(val) { handler(val) {
if (val === 0) {
this.area = '' this.area = ''
this.month = '' this.month = ''
this.defaultArea = '' this.defaultArea = ''
this.defaultMonth = '' this.defaultMonth = ''
switch (val) {
case 0:
this.getRetailYearsArea() this.getRetailYearsArea()
} else { break
this.area = '' case 1:
this.month = '' this.getExtendinsurYearsArea()
this.defaultArea = '' break
this.defaultMonth = '' case 2:
this.getWholesaleYears() this.getWholesaleYears()
break
} }
} }
} }
...@@ -79,7 +81,6 @@ export default { ...@@ -79,7 +81,6 @@ export default {
async getRetailYearsArea() { async getRetailYearsArea() {
const _result = await this.api.equity.getRetailYearsArea({}) const _result = await this.api.equity.getRetailYearsArea({})
const { areas, years } = _result.data.dataList[0] const { areas, years } = _result.data.dataList[0]
console.log(areas, years)
areas.unshift('全部') areas.unshift('全部')
years.unshift('全部') years.unshift('全部')
this.defaultArea = areas[0] this.defaultArea = areas[0]
...@@ -95,6 +96,17 @@ export default { ...@@ -95,6 +96,17 @@ export default {
years.unshift('全部') years.unshift('全部')
this.monthDataList = years 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() { switchArea() {
this.isShowArea = !this.isShowArea this.isShowArea = !this.isShowArea
}, },
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
totalBillChart: { totalBillChart: {
id: 'totalBill', id: 'totalBill',
keys: ['name', 'num'], keys: ['name', 'num'],
height: '15vh', height: '6vh',
colors: ['#FF7D5E', '#69EE9F'], colors: ['#FF7D5E', '#69EE9F'],
formatter: 'none' formatter: 'none'
}, },
...@@ -62,13 +62,14 @@ export default { ...@@ -62,13 +62,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bill-total-box { .bill-total-box {
width: 47.78vw; width: 47.78vw;
height: 21.78vh; height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69; box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box { .content-box {
display: flex; display: flex;
padding: 3.03vh 0 0 2.92vw; padding: 1.03vh 0 0 2.92vw;
.text-box { .text-box {
margin-right: 3.75vw; // margin-right: 3.75vw;
width: 13.75vw;
.text { .text {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
...@@ -85,7 +86,7 @@ export default { ...@@ -85,7 +86,7 @@ export default {
} }
} }
.empty { .empty {
height: 18.45vh; height: 8vh;
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
totalMerchantChart: { totalMerchantChart: {
id: 'totalMerchant', id: 'totalMerchant',
keys: ['name', 'num'], keys: ['name', 'num'],
height: '15.34vh', height: '6vh',
colors: ['#EBA3FF', '#726BFF'], colors: ['#EBA3FF', '#726BFF'],
formatter: 'none' formatter: 'none'
}, },
...@@ -67,13 +67,14 @@ export default { ...@@ -67,13 +67,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bill-total-box { .bill-total-box {
width: 47.78vw; width: 47.78vw;
height: 21.78vh; height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69; box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box { .content-box {
display: flex; display: flex;
padding: 3.03vh 0 0 2.92vw; padding: 1.03vh 0 0 2.92vw;
.text-box { .text-box {
margin-right: 3.75vw; // margin-right: 3.75vw;
width: 13.75vw;
.text { .text {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
...@@ -90,7 +91,7 @@ export default { ...@@ -90,7 +91,7 @@ export default {
} }
} }
.empty { .empty {
height: 18.45vh; height: 8vh;
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -27,6 +27,6 @@ export default { ...@@ -27,6 +27,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.detail-box { .detail-box {
display: flex; display: flex;
height: 41vh; height: 35vh;
} }
</style> </style>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
isMultiple isMultiple
:barWidth="'24'" :barWidth="'24'"
domId="orderTrendChart" domId="orderTrendChart"
height="37.22vh" height="36.22vh"
:dataList.sync="dataList" :dataList.sync="dataList"
:colorList="colorList" :colorList="colorList"
:tooltipFormatterObj="tooltips.amountTooltip" :tooltipFormatterObj="tooltips.amountTooltip"
......
...@@ -88,6 +88,7 @@ export default { ...@@ -88,6 +88,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.trend-right { .trend-right {
margin-left: 4.1vw; margin-left: 4.1vw;
margin-top: -3.56vh;
.title { .title {
width: 7.5vw; width: 7.5vw;
height: 2.22vh; height: 2.22vh;
...@@ -98,9 +99,16 @@ export default { ...@@ -98,9 +99,16 @@ export default {
overflow: visible; overflow: visible;
white-space: nowrap; white-space: nowrap;
margin-top: 0; margin-top: 0;
margin-bottom: 2.67vh; margin-bottom: 2.3vh;
background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079ff1 100%); background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079ff1 100%);
padding-left: 0.83vw; padding-left: 0.83vw;
} }
.rank-content {
.rank-box {
/deep/.ranking-box-item {
padding-bottom: 0.6vh;
}
}
}
} }
</style> </style>
<!-- <!--
* @Description: 1.0 会员权益内容页面 * @Description: 2.1 会员权益内容页面
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
<template v-if="tabActive == 0"> <template v-if="tabActive == 0">
<Resident></Resident> <Resident></Resident>
</template> </template>
<template v-else-if="tabActive == 1">
<ExtendWarranty></ExtendWarranty>
</template>
<template v-else> <template v-else>
<Wholesale></Wholesale> <Wholesale></Wholesale>
</template> </template>
...@@ -25,16 +28,18 @@ ...@@ -25,16 +28,18 @@
import Resident from '../../equity/Resident.vue' import Resident from '../../equity/Resident.vue'
import Wholesale from '../../equity/Wholesale.vue' import Wholesale from '../../equity/Wholesale.vue'
import RightTab from '../../equity/components/RightTab.vue' import RightTab from '../../equity/components/RightTab.vue'
import ExtendWarranty from '../../equity/ExtendWarranty.vue'
export default { export default {
name: 'ViewEquity', name: 'ViewEquity',
components: { components: {
ExtendWarranty,
Resident, Resident,
Wholesale, Wholesale,
RightTab RightTab
}, },
data() { data() {
return { return {
tabList: ['驻店零售权益', '批发销售权益'], tabList: ['驻店零售权益', '延保权益', '批发销售权益'],
tabActive: 0 tabActive: 0
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!