From 3c146eb925359c8c483e3555c325d758a179bfb1 Mon Sep 17 00:00:00 2001 From: XuZhiqiang Date: Sat, 20 Jun 2026 23:55:12 +0800 Subject: [PATCH] fix(@vben/web-antdv-next): align CRM receivable query types - add contract number to receivable type - add receivable page params for customer and contract filters --- apps/web-antdv-next/src/api/crm/receivable/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/web-antdv-next/src/api/crm/receivable/index.ts b/apps/web-antdv-next/src/api/crm/receivable/index.ts index 6823170da..36b3db081 100644 --- a/apps/web-antdv-next/src/api/crm/receivable/index.ts +++ b/apps/web-antdv-next/src/api/crm/receivable/index.ts @@ -12,6 +12,7 @@ export namespace CrmReceivableApi { customerId?: number; customerName?: string; contractId?: number; + contractNo?: string; contract?: Contract; auditStatus: number; processInstanceId: number; @@ -34,6 +35,11 @@ export namespace CrmReceivableApi { no: string; totalPrice: number; } + + export interface ReceivablePageParam extends PageParam { + contractId?: number; + customerId?: number; + } } /** 查询回款列表 */ @@ -45,7 +51,9 @@ export function getReceivablePage(params: PageParam) { } /** 查询回款列表,基于指定客户 */ -export function getReceivablePageByCustomer(params: PageParam) { +export function getReceivablePageByCustomer( + params: CrmReceivableApi.ReceivablePageParam, +) { return requestClient.get>( '/crm/receivable/page-by-customer', { params },