feat(admin): full repair of order module including list, statistics, aftersales, cashier, and write-off records with real RPC integration

This commit is contained in:
comlibmb
2026-02-10 23:01:23 +08:00
parent 1d9915cd77
commit cd7b92d496
12 changed files with 397 additions and 138 deletions

View File

@@ -121,6 +121,13 @@ export async function fetchOrderSourceStats(startTime: string, endTime: string):
} as any)) as any
}
export async function fetchOrderTypeStats(startTime: string, endTime: string): Promise<Array<any>> {
return (await rpcOrEmptyArray('rpc_admin_order_type_stats', {
p_start_time: startTime,
p_end_time: endTime
} as any)) as any
}
export async function getOrderSettings(): Promise<UTSJSONObject | null> {
const res = await rpcOrValue('rpc_admin_system_config_get', {
p_key: 'order_settings'