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 92c7fcaf
authored
Jul 27, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v1.0.0
2 parents
95383a2c
506cc2ab
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
70 additions
and
23 deletions
src/api/modules/boutique.js
src/views/boutique/BoutiqueLeft.vue
src/views/boutiqueDetail/BoutiqueDetailLeft.vue
src/views/boutiqueDetail/BoutiqueDetailRight.vue
src/views/boutiqueDetail/BusinessDetailTrends.vue
src/views/boutiqueDetail/GoodsPayPropertion.vue
src/views/boutiqueDetail/GoodsRanking.vue
src/views/boutiqueDetail/GoodsSupplierPropertion.vue
src/views/boutiqueDetail/index.vue
src/api/modules/boutique.js
View file @
92c7fca
...
...
@@ -58,6 +58,11 @@ const getSpringbudTrend = params => {
return
window
.
$HTTP
.
get
(
'upgrade/getSpringbudTrend'
,
params
)
}
// 总 - 获取年份
const
getYears
=
params
=>
{
return
window
.
$HTTP
.
get
(
'upgrade/getYears'
,
params
)
}
export
default
{
getAllMerchantRank
,
getAllOverview
,
...
...
@@ -70,5 +75,6 @@ export default {
getMerchantSupply
,
getMerchantTrend
,
getRegionMerchant
,
getSpringbudTrend
getSpringbudTrend
,
getYears
}
src/views/boutique/BoutiqueLeft.vue
View file @
92c7fca
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditTime: 2023-07-2
6 17:25:03
* @LastEditTime: 2023-07-2
7 16:51:18
-->
<
template
>
<div
class=
"left"
>
...
...
@@ -49,9 +49,6 @@ export default {
yearList
:
[{
label
:
'全部'
,
value
:
''
},
{
label
:
'2023'
,
value
:
'2023'
}],
channelList
:
[{
label
:
'全部渠道'
,
...
...
@@ -146,6 +143,7 @@ export default {
},
init
()
{
this
.
getAllOverview
()
this
.
getYears
()
},
async
getAllOverview
()
{
const
{
boutique
}
=
this
.
$store
.
state
.
app
...
...
@@ -164,6 +162,21 @@ export default {
item
.
ratioRightValue
=
_dataList
[
item
.
ratioRightValueName
]
}
})
},
async
getYears
()
{
this
.
yearList
=
[{
label
:
'全部'
,
value
:
''
}]
const
_data
=
await
this
.
api
.
boutique
.
getYears
({})
console
.
log
(
_data
)
const
_yearList
=
_data
.
data
.
dataList
[
0
].
year
_yearList
.
forEach
(
item
=>
{
this
.
yearList
.
push
({
label
:
item
,
value
:
item
+
''
})
})
}
}
}
...
...
src/views/boutiqueDetail/BoutiqueDetailLeft.vue
View file @
92c7fca
<
template
>
<div
class=
"detail-left-box"
>
<StatisticsBox
:list=
"boutiqueDetailList"
></StatisticsBox>
<BusinessDetailTrends
class=
"trends-charts"
:merchantid=
"merchantid"
></BusinessDetailTrends>
<BusinessDetailTrends
class=
"trends-charts"
:
year=
"year"
:
merchantid=
"merchantid"
></BusinessDetailTrends>
</div>
</
template
>
...
...
@@ -77,6 +77,7 @@ export default {
created
()
{
const
{
merchantid
,
year
}
=
this
.
$route
.
query
this
.
merchantid
=
merchantid
this
.
year
=
year
this
.
getMerchantOverview
(
merchantid
,
year
)
},
...
...
src/views/boutiqueDetail/BoutiqueDetailRight.vue
View file @
92c7fca
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-20 15:27:55
* @LastEditors: huyue
* @LastEditTime: 2023-07-27 16:18:19
-->
<
template
>
<div
class=
"detail-right-box"
>
<!-- 商品供应方占比 -->
<GoodsSupplierPropertion
:merchantid=
"merchantid"
></GoodsSupplierPropertion>
<GoodsSupplierPropertion
:
year=
"year"
:
merchantid=
"merchantid"
></GoodsSupplierPropertion>
<!-- 订单支付方式占比 -->
<GoodsPayPropertion
:merchantid=
"merchantid"
></GoodsPayPropertion>
<GoodsPayPropertion
:
year=
"year"
:
merchantid=
"merchantid"
></GoodsPayPropertion>
<!-- 商品销售排行 -->
<GoodsRanking
:merchantid=
"merchantid"
></GoodsRanking>
<GoodsRanking
:
year=
"year"
:
merchantid=
"merchantid"
></GoodsRanking>
</div>
</
template
>
...
...
@@ -22,13 +29,15 @@ export default {
},
data
()
{
return
{
merchantid
:
''
merchantid
:
''
,
year
:
''
,
}
},
created
()
{
const
{
merchantid
}
=
this
.
$route
.
query
const
{
merchantid
,
year
}
=
this
.
$route
.
query
this
.
merchantid
=
merchantid
this
.
year
=
year
},
methods
:
{}
...
...
src/views/boutiqueDetail/BusinessDetailTrends.vue
View file @
92c7fca
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-19 17:18:33
* @LastEditors: huyue
* @LastEditTime: 2023-07-2
1 16:32:58
* @LastEditTime: 2023-07-2
7 16:22:05
-->
<
template
>
<div
class=
"trends-box"
>
...
...
@@ -41,7 +41,8 @@ export default {
},
mixins
:
[
boutiqueMixin
],
props
:
{
merchantid
:
String
merchantid
:
String
,
year
:
String
},
data
()
{
return
{
...
...
@@ -71,7 +72,7 @@ export default {
},
async
getDataList
()
{
this
.
dataList
=
[]
const
_data
=
await
this
.
api
.
boutique
.
getMerchantTrend
({
year
:
this
.
$store
.
state
.
app
.
solarY
ear
,
MerchantId
:
this
.
merchantid
})
const
_data
=
await
this
.
api
.
boutique
.
getMerchantTrend
({
year
:
this
.
y
ear
,
MerchantId
:
this
.
merchantid
})
const
_dataList
=
_data
.
data
.
dataList
if
(
!
_dataList
.
length
)
{
this
.
isEmpty
=
true
...
...
src/views/boutiqueDetail/GoodsPayPropertion.vue
View file @
92c7fca
...
...
@@ -25,7 +25,8 @@ export default {
RightViewContent
},
props
:
{
merchantid
:
String
merchantid
:
String
,
year
:
String
},
data
()
{
return
{
...
...
@@ -61,7 +62,7 @@ export default {
methods
:
{
init
()
{
const
_year
=
this
.
$store
.
state
.
app
.
solarY
ear
const
_year
=
this
.
y
ear
this
.
getMerchantPay
(
_year
)
},
// 获取门店支付方式占比
...
...
src/views/boutiqueDetail/GoodsRanking.vue
View file @
92c7fca
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-20 15:27:55
* @LastEditors: huyue
* @LastEditTime: 2023-07-27 16:19:13
-->
<
template
>
<div
class=
"goods-rank-box"
>
<box-title
title=
"商品销售排行"
></box-title>
...
...
@@ -16,7 +23,8 @@ export default {
name
:
'GoodsRanking'
,
mixins
:
[
boutiqueMixin
],
props
:
{
merchantid
:
String
merchantid
:
String
,
year
:
String
},
data
()
{
return
{
...
...
@@ -46,7 +54,7 @@ export default {
methods
:
{
init
()
{
const
_year
=
this
.
$store
.
state
.
app
.
solarY
ear
const
_year
=
this
.
y
ear
this
.
getMerchantGoodsRank
(
_year
)
},
// 获取门店商品销售排行
...
...
@@ -54,7 +62,7 @@ export default {
const
_data
=
await
this
.
api
.
boutique
.
getMerchantGoodsRank
({
year
,
MerchantId
:
this
.
merchantid
})
console
.
log
(
_data
);
this
.
goodsRankingList
=
_data
.
data
.
dataList
}
,
}
}
}
</
script
>
...
...
src/views/boutiqueDetail/GoodsSupplierPropertion.vue
View file @
92c7fca
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-20 15:27:55
* @LastEditors: huyue
* @LastEditTime: 2023-07-27 16:19:47
-->
<
template
>
<div
class=
"goods-supply-box"
>
<box-title
title=
"商品供应方占比"
></box-title>
...
...
@@ -25,7 +32,8 @@ export default {
RightViewContent
},
props
:
{
merchantid
:
String
merchantid
:
String
,
year
:
String
},
data
()
{
return
{
...
...
@@ -61,7 +69,7 @@ export default {
methods
:
{
init
()
{
const
_year
=
this
.
$store
.
state
.
app
.
solarY
ear
const
_year
=
this
.
y
ear
this
.
getMerchantSupply
(
_year
)
},
// 获取门店商品供应方占比
...
...
src/views/boutiqueDetail/index.vue
View file @
92c7fca
...
...
@@ -74,9 +74,9 @@ export default {
const
{
merchantid
,
merchantName
,
year
}
=
this
.
$route
.
query
// 获取门店列表
const
_merchantList
=
await
this
.
getMerchant
(
merchantName
)
console
.
log
(
_merchantList
,
'====='
)
;
console
.
log
(
_merchantList
,
'====='
)
this
.
merchantList
=
_merchantList
this
.
getYears
(
merchantid
)
//
this.getYears(merchantid)
},
// 获取门店列表
getMerchant
(
merchantName
)
{
...
...
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