数据分析ui补充完善,接入数据库

This commit is contained in:
comlibmb
2026-01-31 21:47:42 +08:00
parent 8f181b2b6a
commit 6716398175
71 changed files with 6501 additions and 10593 deletions

22
types/analytics/sales.uts Normal file
View File

@@ -0,0 +1,22 @@
// types/analytics/sales.uts
// Re-exporting shared types from dashboard for semantic clarity in the sales context.
import type { TrendData, TopProductItem, TopMerchantItem } from './dashboard.uts'
export type SalesTrendData = TrendData
export type ProductRank = TopProductItem
export type MerchantRank = TopMerchantItem
/**
* Key Performance Indicators for the Sales Report page.
*/
export type SalesData = {
gmv: number
gmv_growth: number
orders: number
order_growth: number
conversion_rate: number
conversion_growth: number
avg_order_amount: number
avg_order_growth: number
}