From 56435b45f8e137ae808fee6ad1cf6d6037e4d5e8 Mon Sep 17 00:00:00 2001 From: XuZhiqiang Date: Fri, 19 Jun 2026 11:36:04 +0800 Subject: [PATCH] fix(@vben/web-antd): resolve typecheck issues blocking pre-commit - fix map Select handler value typing - remove unused AI template refs and normalize v-for indexes - clean stale BPMN form field editor code - type BPMN listener helpers and modal grid rows - preserve node-name input focus with function refs - add CRM receivable list fields and query param types --- apps/web-antd/src/api/crm/receivable/index.ts | 10 +- .../src/components/map/src/map-dialog.vue | 10 +- .../chat/index/modules/message/knowledge.vue | 5 +- .../src/views/ai/image/index/modules/card.vue | 4 +- .../src/views/ai/image/index/modules/list.vue | 2 - .../document/form/modules/split-step.vue | 7 +- .../document/form/modules/upload-step.vue | 9 +- .../package/penal/form/ElementForm.vue | 393 ------------------ .../penal/listeners/ElementListeners.vue | 2 +- .../penal/listeners/UserTaskListeners.vue | 2 +- .../penal/properties/ElementProperties.vue | 4 +- .../bpmn-process-designer/package/utils.ts | 41 +- .../child-process-node-config.vue | 5 +- .../nodes-config/copy-task-node-config.vue | 5 +- .../nodes-config/delay-timer-node-config.vue | 5 +- .../nodes-config/modules/condition.vue | 12 +- .../modules/http-request-setting.vue | 4 +- .../nodes-config/router-node-config.vue | 5 +- .../nodes-config/start-user-node-config.vue | 5 +- .../components/nodes/trigger-node.vue | 5 +- .../components/select-modal.vue | 4 +- .../processInstance/create/modules/form.vue | 2 - .../components/select-modal.vue | 7 +- 23 files changed, 105 insertions(+), 443 deletions(-) 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) { -
+