admin模块接入数据库

This commit is contained in:
comlibmb
2026-02-13 17:29:50 +08:00
parent 56209b7a75
commit ec636dc703
58 changed files with 5586 additions and 1394 deletions

View File

@@ -55,12 +55,16 @@ export async function fetchRefundOrderPage(
export async function fetchWriteOffRecordPage(
page: number,
pageSize: number,
search: string | null = null
search: string | null = null,
startTime: string | null = null,
endTime: string | null = null
): Promise<{ total: number; items: Array<any> }> {
const res = await rpcOrNull('rpc_admin_write_off_record_list', {
p_page: page,
p_page_size: pageSize,
p_search: search
p_search: search,
p_start_time: startTime,
p_end_time: endTime
} as any)
if (res == null) return { total: 0, items: [] as Array<any> }
@@ -78,13 +82,17 @@ export async function fetchCashierOrderPage(
page: number,
pageSize: number,
orderNo: string | null = null,
username: string | null = null
username: string | null = null,
startTime: string | null = null,
endTime: string | null = null
): Promise<{ total: number; items: Array<any> }> {
const res = await rpcOrNull('rpc_admin_cashier_order_list', {
p_page: page,
p_page_size: pageSize,
p_search_order_no: orderNo,
p_search_username: username
p_search_username: username,
p_start_time: startTime,
p_end_time: endTime
} as any)
if (res == null) return { total: 0, items: [] as Array<any> }