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
pull/369/head
XuZhiqiang 2026-06-20 23:55:12 +08:00
parent 29d943ae03
commit 3c146eb925
1 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,7 @@ export namespace CrmReceivableApi {
customerId?: number; customerId?: number;
customerName?: string; customerName?: string;
contractId?: number; contractId?: number;
contractNo?: string;
contract?: Contract; contract?: Contract;
auditStatus: number; auditStatus: number;
processInstanceId: number; processInstanceId: number;
@ -34,6 +35,11 @@ export namespace CrmReceivableApi {
no: string; no: string;
totalPrice: number; 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<PageResult<CrmReceivableApi.Receivable>>( return requestClient.get<PageResult<CrmReceivableApi.Receivable>>(
'/crm/receivable/page-by-customer', '/crm/receivable/page-by-customer',
{ params }, { params },