File tree Expand file tree Collapse file tree 6 files changed +343
-16
lines changed Expand file tree Collapse file tree 6 files changed +343
-16
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,28 @@ export interface ProductPropertiesVO {
108
108
valueName ?: string // 属性值的名称
109
109
}
110
110
111
+ /** 交易订单统计 */
112
+ export interface TradeOrderSummaryRespVO {
113
+ /** 订单数量 */
114
+ orderCount ?: number
115
+ /** 订单金额 */
116
+ orderPayPrice ?: string
117
+ /** 退款单数 */
118
+ afterSaleCount ?: number
119
+ /** 退款金额 */
120
+ afterSalePrice ?: string
121
+ }
122
+
111
123
// 查询交易订单列表
112
- export const getOrderPage = async ( params ) => {
124
+ export const getOrderPage = async ( params : any ) => {
113
125
return await request . get ( { url : `/trade/order/page` , params } )
114
126
}
115
127
128
+ // 查询交易订单统计
129
+ export const getOrderSummary = async ( params : any ) => {
130
+ return await request . get < TradeOrderSummaryRespVO > ( { url : `/trade/order/summary` , params } )
131
+ }
132
+
116
133
// 查询交易订单详情
117
134
export const getOrder = async ( id : number | null ) => {
118
135
return await request . get ( { url : `/trade/order/get-detail?id=` + id } )
Original file line number Diff line number Diff line change 35
35
import { propTypes } from ' @/utils/propTypes'
36
36
import { toNumber } from ' lodash-es'
37
37
38
- /** 交易状况统计值组件 */
39
- defineOptions ({ name: ' TradeTrendValue ' })
38
+ /** 统计卡片 */
39
+ defineOptions ({ name: ' SummaryCard ' })
40
40
41
41
defineProps ({
42
42
title: propTypes .string .def (' ' ),
Original file line number Diff line number Diff line change 2
2
<div class =" flex flex-col" >
3
3
<el-row :gutter =" 16" class =" summary" >
4
4
<el-col :sm =" 6" :xs =" 12" v-loading =" loading" >
5
- <TradeTrendValue
5
+ <SummaryCard
6
6
title =" 累计会员数"
7
7
icon =" fa-solid:users"
8
8
icon-color =" bg-blue-100"
11
11
/>
12
12
</el-col >
13
13
<el-col :sm =" 6" :xs =" 12" v-loading =" loading" >
14
- <TradeTrendValue
14
+ <SummaryCard
15
15
title =" 累计充值人数"
16
16
icon =" fa-solid:user"
17
17
icon-color =" bg-purple-100"
20
20
/>
21
21
</el-col >
22
22
<el-col :sm =" 6" :xs =" 12" v-loading =" loading" >
23
- <TradeTrendValue
23
+ <SummaryCard
24
24
title =" 累计充值金额"
25
25
icon =" fa-solid:money-check-alt"
26
26
icon-color =" bg-yellow-100"
31
31
/>
32
32
</el-col >
33
33
<el-col :sm =" 6" :xs =" 12" v-loading =" loading" >
34
- <TradeTrendValue
34
+ <SummaryCard
35
35
title =" 累计消费金额"
36
36
icon =" fa-solid:yen-sign"
37
37
icon-color =" bg-green-100"
120
120
</template >
121
121
<script lang="ts" setup>
122
122
import * as MemberStatisticsApi from ' @/api/mall/statistics/member'
123
- import TradeTrendValue from ' ../trade/ components/TradeTrendValue .vue'
123
+ import SummaryCard from ' @/ components/SummaryCard/index .vue'
124
124
import { EChartsOption } from ' echarts'
125
125
import china from ' @/assets/map/json/china.json'
126
126
import { fenToYuan } from ' @/utils'
Original file line number Diff line number Diff line change 76
76
<!-- 统计值 -->
77
77
<el-row :gutter =" 16" >
78
78
<el-col :md =" 6" :sm =" 12" :xs =" 24" >
79
- <TradeTrendValue
79
+ <SummaryCard
80
80
title =" 营业额"
81
81
tooltip =" 商品支付金额、充值金额"
82
82
icon =" fa-solid:yen-sign"
94
94
/>
95
95
</el-col >
96
96
<el-col :md =" 6" :sm =" 12" :xs =" 24" >
97
- <TradeTrendValue
97
+ <SummaryCard
98
98
title =" 商品支付金额"
99
99
tooltip =" 用户购买商品的实际支付金额,包括微信支付、余额支付、支付宝支付、线下支付金额(拼团商品在成团之后计入,线下支付订单在后台确认支付后计入)"
100
100
icon =" fa-solid:shopping-cart"
112
112
/>
113
113
</el-col >
114
114
<el-col :md =" 6" :sm =" 12" :xs =" 24" >
115
- <TradeTrendValue
115
+ <SummaryCard
116
116
title =" 充值金额"
117
117
tooltip =" 用户成功充值的金额"
118
118
icon =" fa-solid:money-check-alt"
130
130
/>
131
131
</el-col >
132
132
<el-col :md =" 6" :sm =" 12" :xs =" 24" >
133
- <TradeTrendValue
133
+ <SummaryCard
134
134
title =" 支出金额"
135
135
tooltip =" 余额支付金额、支付佣金金额、商品退款金额"
136
136
icon =" ep:warning-filled"
148
148
/>
149
149
</el-col >
150
150
<el-col :md =" 6" :sm =" 12" :xs =" 24" >
151
- <TradeTrendValue
151
+ <SummaryCard
152
152
title =" 余额支付金额"
153
153
tooltip =" 用户下单时使用余额实际支付的金额"
154
154
icon =" fa-solid:wallet"
166
166
/>
167
167
</el-col >
168
168
<el-col :md =" 6" :sm =" 12" :xs =" 24" >
169
- <TradeTrendValue
169
+ <SummaryCard
170
170
title =" 支付佣金金额"
171
171
tooltip =" 后台给推广员支付的推广佣金,以实际支付为准"
172
172
icon =" fa-solid:award"
184
184
/>
185
185
</el-col >
186
186
<el-col :md =" 6" :sm =" 12" :xs =" 24" >
187
- <TradeTrendValue
187
+ <SummaryCard
188
188
title =" 商品退款金额"
189
189
tooltip =" 用户成功退款的商品金额"
190
190
icon =" fa-solid:times-circle"
212
212
<script lang="ts" setup>
213
213
import * as TradeStatisticsApi from ' @/api/mall/statistics/trade'
214
214
import TradeStatisticValue from ' ./components/TradeStatisticValue.vue'
215
- import TradeTrendValue from ' . /components/TradeTrendValue .vue'
215
+ import SummaryCard from ' @ /components/SummaryCard/index .vue'
216
216
import { EChartsOption } from ' echarts'
217
217
import { DataComparisonRespVO } from ' @/api/mall/statistics/common'
218
218
import { TradeSummaryRespVO , TradeTrendSummaryRespVO } from ' @/api/mall/statistics/trade'
You can’t perform that action at this time.
0 commit comments