Commit c1022afa by 胡悦

Merge branch 'v2.2.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v2.2.0

2 parents d0f2f32c d82c2e5d
<template> <template>
<div class="equity-box"> <div class="equity-box">
<div class="equity-statistic-box"> <div class="equity-statistic-box">
<div class="patch-title">按年统计客户销售金额分布的合理性</div> <div class="patch-title title">按年统计客户销售金额分布的合理性</div>
<inner-tab class="inner-tab" :list="tabList" :width="12.4" :itemPadding="0.5" @changeTab="changeTab"></inner-tab> <inner-tab class="inner-tab" :list="tabList" :width="12.4" :itemPadding="0.5" @changeTab="changeTab"></inner-tab>
<div class="switch-box"> <div class="switch-box">
<div class="text">收入占比:{{ ratio }}%</div> <div class="text">收入占比:{{ ratio }}%</div>
......
...@@ -127,12 +127,12 @@ export default { ...@@ -127,12 +127,12 @@ export default {
margin-top: 1.78vh; margin-top: 1.78vh;
&-left, &-left,
&-right { &-right {
width: 47.78vw; width: 31.46vw;
height: 25.33vh; height: 31.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69; box-shadow: inset 0 0 20px 0 #3d57ff69;
} }
.content-box { .content-box {
padding: 1.78vh 6.18vw 4.44vh 0; padding: 3.78vh 1.78vw 4.44vh 1.78vw;
} }
.empty { .empty {
height: 22vh; height: 22vh;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
商城采购占比 商城采购占比
</div> </div>
</div> </div>
<BarLineChart ref="purchaseTrend" height="36.45vh" domId="purchaseTrend" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarLineChart> <BarLineChart ref="purchaseTrend" height="29.11vh" domId="purchaseTrend" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarLineChart>
</div> </div>
<div v-else class="empty"> <div v-else class="empty">
<Empty></Empty> <Empty></Empty>
...@@ -72,10 +72,9 @@ export default { ...@@ -72,10 +72,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tendency-box { .tendency-box {
position: relative; position: relative;
width: 96.67vw; width: 64.03vw;
height: 39.78vh; height: 33.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69; box-shadow: inset 0 0 20px 0 #3d57ff69;
margin-top: 1.78vh;
.legend { .legend {
font-size: 14px; font-size: 14px;
display: flex; display: flex;
......
<template>
<div>
<div class="service-box">
<box-title title="服务中心-采购及入库情况"></box-title>
<PurchaseStorageTable class="main-table" id="serviceTable"></PurchaseStorageTable>
</div>
<div class="merchant-box">
<box-title title="门店-采购及入库情况"></box-title>
<PurchaseStorageTable class="main-table" id="merchantTable"></PurchaseStorageTable>
</div>
</div>
</template>
<script>
import PurchaseStorageTable from './PurchaseStorageTable.vue'
export default {
name: 'PerchaseStorageSituation',
components: {
PurchaseStorageTable
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.service-box,
.merchant-box {
width: 31.53vw;
height: 32.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
}
.merchant-box {
margin-top: 1.78vh;
}
.main-table {
padding: 1.11vh 1.39vw 2.44vh;
}
</style>
<template>
<div>
<el-table :id="id" :data="tableData" style="width: 100%" :header-cell-style="{ color: '#e8e8e8', fontSize: '11px', height: '3.11vh', background: '#0a214d' }" :row-class-name="tableRowClassName">
<el-table-column prop="merchantName" label="服务中心名称" width="200"></el-table-column>
<el-table-column prop="payPrice" label="采购额/元"></el-table-column>
<el-table-column prop="price" label="入库额/元"></el-table-column>
<template slot="empty">
<div class="empty">
<Empty></Empty>
</div>
</template>
</el-table>
</div>
</template>
<script>
export default {
name: 'PurchaseStorageTable',
props: {
tableData: {
type: Array,
default: () => []
},
id: Number
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss">
.el-table {
font-weight: 500;
font-size: 11px;
text-align: center;
thead {
height: 3.11vh;
background: #0a214d;
color: #e8e8e8;
}
tbody tr {
height: 2.56vh;
color: #ffffff;
}
}
.el-table__body-wrapper {
max-height: 52vh;
overflow-y: scroll;
}
.el-table tr {
background-color: transparent;
}
.el-table .el-table__cell {
padding: 0 !important;
}
.el-table--enable-row-hover .el-table__body tr:hover > td {
background-color: transparent !important;
}
.el-table--enable-row-hover .el-table__body tr:hover {
background-image: linear-gradient(270deg, #6578ff 0%, #079ff1 100%) !important;
font-weight: 500;
color: #ffffff;
}
.pagination-box {
margin-top: 1.78vh;
}
.el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
border-bottom: none;
}
.el-table--border::after,
.el-table--group::after,
.el-table::before {
content: '';
position: absolute;
background-color: transparent;
z-index: 1;
}
.el-scrollbar {
.el-scrollbar__wrap {
margin-bottom: -15px !important;
}
}
.el-table__empty-block {
background-color: #051526;
}
.el-table .cell {
line-height: 1vw;
}
.el-table__empty-text {
line-height: 2.11vh;
}
</style>
<style lang="scss" scoped>
.empty {
margin: 5vh 0;
}
</style>
...@@ -8,10 +8,17 @@ ...@@ -8,10 +8,17 @@
<div class="solar-detail-content"> <div class="solar-detail-content">
<view-date :defaultYear="defaultYear" :dataList="yearList" :businessTime="businessTime"></view-date> <view-date :defaultYear="defaultYear" :dataList="yearList" :businessTime="businessTime"></view-date>
<StatisticsBox class="statistic-box" :list="solarDetailList"></StatisticsBox> <StatisticsBox class="statistic-box" :list="solarDetailList"></StatisticsBox>
<!-- 采购趋势 --> <div class="solar-detail-content-bottom">
<MerchantsPurchaseTrends ref="merchantsTrends" :dataList="dataList" :isEmpty="isEmpty"></MerchantsPurchaseTrends> <div class="solar-detail-left">
<!-- 商品占比 --> <!-- 采购趋势 -->
<MerchantsPropotion :shopmallData="shopmallData" :selfPickData="selfPickData"></MerchantsPropotion> <MerchantsPurchaseTrends ref="merchantsTrends" :dataList="dataList" :isEmpty="isEmpty"></MerchantsPurchaseTrends>
<!-- 商品占比 -->
<MerchantsPropotion :shopmallData="shopmallData" :selfPickData="selfPickData"></MerchantsPropotion>
</div>
<div class="solar-detail-right">
<PerchaseStorageSituation></PerchaseStorageSituation>
</div>
</div>
</div> </div>
</template> </template>
</view-container> </view-container>
...@@ -22,19 +29,23 @@ ...@@ -22,19 +29,23 @@
import { changeMixin } from '@/mixins' import { changeMixin } from '@/mixins'
import MerchantsPurchaseTrends from './MerchantsPurchaseTrends.vue' import MerchantsPurchaseTrends from './MerchantsPurchaseTrends.vue'
import MerchantsPropotion from './MerchantsPropotion.vue' import MerchantsPropotion from './MerchantsPropotion.vue'
import PerchaseStorageSituation from './PerchaseStorageSituation.vue'
export default { export default {
name: 'SolarDetail', name: 'SolarDetail',
mixins: [changeMixin], mixins: [changeMixin],
components: { components: {
MerchantsPropotion, MerchantsPropotion,
MerchantsPurchaseTrends MerchantsPurchaseTrends,
PerchaseStorageSituation
}, },
data() { data() {
return { return {
yearList: [{ yearList: [
label: '全部', {
value: '' label: '全部',
}], value: ''
}
],
defaultYear: '', defaultYear: '',
isEmpty: false, isEmpty: false,
dataList: [], dataList: [],
...@@ -196,10 +207,12 @@ export default { ...@@ -196,10 +207,12 @@ export default {
}, },
// 获取年份数据参数门店id // 获取年份数据参数门店id
async getYears(MerchantId) { async getYears(MerchantId) {
this.yearList = [{ this.yearList = [
label: '全部', {
value: '' label: '全部',
}] value: ''
}
]
const _data = await this.api.solar.getYears({ MerchantId }) const _data = await this.api.solar.getYears({ MerchantId })
const _yearList = _data.data.dataList[0].year.reverse() const _yearList = _data.data.dataList[0].year.reverse()
_yearList.forEach(item => { _yearList.forEach(item => {
...@@ -221,6 +234,11 @@ export default { ...@@ -221,6 +234,11 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 1.78vh 24px; padding: 1.78vh 24px;
gap: 0 16px; gap: 0 16px;
&-bottom {
margin-top: 1.78vh;
display: flex;
justify-content: space-between;
}
.statistic-box { .statistic-box {
margin-top: 1.78vh; margin-top: 1.78vh;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!