Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cd4b4cd3
authored
Oct 16, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计:Review修改
parent
7b9ea62e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
13 deletions
+20
-13
src/api/mall/statistics/member.ts
+5
-5
src/api/mall/statistics/pay.ts
+7
-1
src/api/mall/statistics/trade.ts
+1
-1
src/views/mall/home/components/OperationDataCard.vue
+2
-1
src/views/mall/home/index.vue
+2
-2
src/views/mall/statistics/trade/index.vue
+3
-3
No files found.
src/api/mall/statistics/member.ts
View file @
cd4b4cd3
...
...
@@ -58,8 +58,8 @@ export interface MemberTerminalStatisticsRespVO {
export
interface
MemberCountRespVO
{
/** 用户访问量 */
visitUserCount
:
string
/**
新增
用户数量 */
create
UserCount
:
number
/**
注册
用户数量 */
register
UserCount
:
number
}
/** 会员注册数量 Response VO */
...
...
@@ -86,21 +86,21 @@ export const getMemberAnalyse = (params: MemberAnalyseReqVO) => {
// 按照省份,查询会员统计列表
export
const
getMemberAreaStatisticsList
=
()
=>
{
return
request
.
get
<
MemberAreaStatisticsRespVO
[]
>
({
url
:
'/statistics/member/
get-
area-statistics-list'
url
:
'/statistics/member/area-statistics-list'
})
}
// 按照性别,查询会员统计列表
export
const
getMemberSexStatisticsList
=
()
=>
{
return
request
.
get
<
MemberSexStatisticsRespVO
[]
>
({
url
:
'/statistics/member/
get-
sex-statistics-list'
url
:
'/statistics/member/sex-statistics-list'
})
}
// 按照终端,查询会员统计列表
export
const
getMemberTerminalStatisticsList
=
()
=>
{
return
request
.
get
<
MemberTerminalStatisticsRespVO
[]
>
({
url
:
'/statistics/member/
get-
terminal-statistics-list'
url
:
'/statistics/member/terminal-statistics-list'
})
}
...
...
src/api/mall/statistics/pay.ts
View file @
cd4b4cd3
import
request
from
'@/config/axios'
/** 支付统计 */
export
interface
PaySummaryRespVO
{
/** 充值金额,单位分 */
rechargePrice
:
number
}
/** 获取钱包充值金额 */
export
const
getWalletRechargePrice
=
async
()
=>
{
return
await
request
.
get
<
number
>
({
url
:
`/statistics/pay/wallet-recharge-price
`
})
return
await
request
.
get
<
PaySummaryRespVO
>
({
url
:
`/statistics/pay/summary
`
})
}
src/api/mall/statistics/trade.ts
View file @
cd4b4cd3
...
...
@@ -25,7 +25,7 @@ export interface TradeTrendSummaryRespVO {
expensePrice
:
number
orderWalletPayPrice
:
number
brokerageSettlementPrice
:
number
order
RefundPrice
:
number
afterSale
RefundPrice
:
number
}
/** 交易订单数量 Response VO */
...
...
src/views/mall/home/components/OperationDataCard.vue
View file @
cd4b4cd3
...
...
@@ -70,7 +70,8 @@ const getProductData = async () => {
/** 查询钱包充值数据 */
const
getWalletRechargeData
=
async
()
=>
{
data
.
rechargePrice
.
value
=
await
PayStatisticsApi
.
getWalletRechargePrice
()
const
paySummary
=
await
PayStatisticsApi
.
getWalletRechargePrice
();
data
.
rechargePrice
.
value
=
paySummary
.
rechargePrice
}
/**
...
...
src/views/mall/home/index.vue
View file @
cd4b4cd3
...
...
@@ -32,8 +32,8 @@
<ComparisonCard
tag=
"今日"
title=
"新增用户"
:value=
"userComparison?.value?.
create
UserCount || 0"
:reference=
"userComparison?.reference?.
create
UserCount || 0"
:value=
"userComparison?.value?.
register
UserCount || 0"
:reference=
"userComparison?.reference?.
register
UserCount || 0"
/>
</el-col>
</el-row>
...
...
src/views/mall/statistics/trade/index.vue
View file @
cd4b4cd3
...
...
@@ -192,11 +192,11 @@
icon-bg-color=
"text-blue-500"
prefix=
"¥"
:decimals=
"2"
:value=
"fenToYuan(trendSummary?.value?.
order
RefundPrice || 0)"
:value=
"fenToYuan(trendSummary?.value?.
afterSale
RefundPrice || 0)"
:percent=
"
calculateRelativeRate(
trendSummary?.value?.
order
RefundPrice,
trendSummary?.reference?.
order
RefundPrice
trendSummary?.value?.
afterSale
RefundPrice,
trendSummary?.reference?.
afterSale
RefundPrice
)
"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment