diff --git a/apps/web-antd/src/api/crm/receivable/index.ts b/apps/web-antd/src/api/crm/receivable/index.ts index 6823170da..36b3db081 100644 --- a/apps/web-antd/src/api/crm/receivable/index.ts +++ b/apps/web-antd/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 }, diff --git a/apps/web-antd/src/components/map/src/map-dialog.vue b/apps/web-antd/src/components/map/src/map-dialog.vue index 7b8c0bd87..805d60797 100644 --- a/apps/web-antd/src/components/map/src/map-dialog.vue +++ b/apps/web-antd/src/components/map/src/map-dialog.vue @@ -136,9 +136,13 @@ function autoSearch(queryValue: string) { } /** 处理地址选择 */ -function handleAddressSelect(value: string) { - if (value) { - regeoCode(value); +function handleAddressSelect(value: unknown) { + const selectedValue = + typeof value === 'object' && value !== null && 'value' in value + ? (value as { value?: number | string }).value + : value; + if (selectedValue !== undefined && selectedValue !== null) { + regeoCode(String(selectedValue)); } } diff --git a/apps/web-antd/src/views/ai/chat/index/modules/message/knowledge.vue b/apps/web-antd/src/views/ai/chat/index/modules/message/knowledge.vue index 960188c04..d9fde40da 100644 --- a/apps/web-antd/src/views/ai/chat/index/modules/message/knowledge.vue +++ b/apps/web-antd/src/views/ai/chat/index/modules/message/knowledge.vue @@ -22,8 +22,6 @@ const document = ref(null); // 知识库文档列表 -const dialogVisible = ref(false); // 知识引用详情弹窗 -const documentRef = ref(); // 知识引用详情弹窗 Ref /** 按照 document 聚合 segments */ const documentList = computed(() => { @@ -49,7 +47,6 @@ const documentList = computed(() => { /** 点击 document 处理 */ function handleClick(doc: any) { document.value = doc; - dialogVisible.value = true; } @@ -79,7 +76,7 @@ function handleClick(doc: any) { -
+