add date filter for CustomerList.vue

This commit is contained in:
Timi
2026-09-11 23:34:53 +08:00
parent d036d756f4
commit 3d1c030a6f
3 changed files with 222 additions and 29 deletions
+4
View File
@@ -9,6 +9,8 @@ export type CustomerPage = Page<Customer> & {
keyword?: string;
storeId?: string;
tagIdList?: string[];
beginCreatedAt?: number;
endCreatedAt?: number;
};
async function list(page: CustomerPage): Promise<PageResult<Customer>> {
@@ -19,6 +21,8 @@ async function list(page: CustomerPage): Promise<PageResult<Customer>> {
keyword: page.keyword || page.likesExample?.code || page.likesExample?.name || page.likesExample?.telephone,
storeId: page.storeId || req.equalsExample?.storeId,
tagIdList: page.tagIdList || [],
beginCreatedAt: page.beginCreatedAt,
endCreatedAt: page.endCreatedAt,
orderMap: page.orderMap || {}
});
}