feat:添加订单销售统计
This commit is contained in:
1 parent
2c0490327a
commit
00f2b94b6a
3 files changed
+184
-1
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 订单销售统计查询参数
|
||||
export interface GetSalesStatisticsReqVO {
|
||||
pageNo?: number // 页码,从 1 开始
|
||||
pageSize?: number // 每页条数
|
||||
deviceId?: string // 设备IMEI
|
||||
barCode?: string // 物料编码
|
||||
spuName?: string // 商品名称
|
||||
createTime?: string[] // 创建时间范围
|
||||
}
|
||||
|
||||
// 订单销售统计响应接口
|
||||
export interface GetSalesStatisticsRes {
|
||||
list: {
|
||||
deviceId: string // 设备IMEI
|
||||
barCode: string // 物料编码
|
||||
spuName: string // 商品名称
|
||||
orderCount: number // 销售数量
|
||||
}[]
|
||||
total: number // 总量
|
||||
}
|
||||
|
||||
// 订单销售统计 API
|
||||
export const OrderSalesStatisticsApi = {
|
||||
// 获取订单销售统计数据
|
||||
getSalesStatistics: async (params: GetSalesStatisticsReqVO) => {
|
||||
return await request.get<GetSalesStatisticsRes>({
|
||||
url: '/trade/order/sales-statistics',
|
||||
params
|
||||
})
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user