Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c1022afa
authored
Sep 12, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
178 additions
and
13 deletions
src/views/internal/components/ViewIntersts.vue
src/views/solarDetail/MerchantsPropotion.vue
src/views/solarDetail/MerchantsPurchaseTrends.vue
src/views/solarDetail/PerchaseStorageSituation.vue
src/views/solarDetail/PurchaseStorageTable.vue
src/views/solarDetail/index.vue
src/views/internal/components/ViewIntersts.vue
View file @
c1022af
<
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>
...
...
src/views/solarDetail/MerchantsPropotion.vue
View file @
c1022af
...
@@ -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.78
vw
;
width
:
31.46
vw
;
height
:
25.33
vh
;
height
:
31.56
vh
;
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
;
...
...
src/views/solarDetail/MerchantsPurchaseTrends.vue
View file @
c1022af
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
商城采购占比
商城采购占比
</div>
</div>
</div>
</div>
<BarLineChart
ref=
"purchaseTrend"
height=
"
36.45
vh"
domId=
"purchaseTrend"
:dataList
.
sync=
"dataList"
:tooltipFormatterObj=
"tooltipFormatterObj"
></BarLineChart>
<BarLineChart
ref=
"purchaseTrend"
height=
"
29.11
vh"
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.67
vw
;
width
:
64.03
vw
;
height
:
3
9.78
vh
;
height
:
3
3.56
vh
;
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
;
...
...
src/views/solarDetail/PerchaseStorageSituation.vue
0 → 100644
View file @
c1022af
<
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
>
src/views/solarDetail/PurchaseStorageTable.vue
0 → 100644
View file @
c1022af
<
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
>
src/views/solarDetail/index.vue
View file @
c1022af
...
@@ -8,11 +8,18 @@
...
@@ -8,11 +8,18 @@
<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"
>
<div
class=
"solar-detail-left"
>
<!-- 采购趋势 -->
<!-- 采购趋势 -->
<MerchantsPurchaseTrends
ref=
"merchantsTrends"
:dataList=
"dataList"
:isEmpty=
"isEmpty"
></MerchantsPurchaseTrends>
<MerchantsPurchaseTrends
ref=
"merchantsTrends"
:dataList=
"dataList"
:isEmpty=
"isEmpty"
></MerchantsPurchaseTrends>
<!-- 商品占比 -->
<!-- 商品占比 -->
<MerchantsPropotion
:shopmallData=
"shopmallData"
:selfPickData=
"selfPickData"
></MerchantsPropotion>
<MerchantsPropotion
:shopmallData=
"shopmallData"
:selfPickData=
"selfPickData"
></MerchantsPropotion>
</div>
</div>
<div
class=
"solar-detail-right"
>
<PerchaseStorageSituation></PerchaseStorageSituation>
</div>
</div>
</div>
</
template
>
</
template
>
</view-container>
</view-container>
</div>
</div>
...
@@ -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
:
'全部'
,
label
:
'全部'
,
value
:
''
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
:
'全部'
,
label
:
'全部'
,
value
:
''
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
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment