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 }, diff --git a/apps/web-antdv-next/src/api/mes/wm/sn/index.ts b/apps/web-antdv-next/src/api/mes/wm/sn/index.ts index 6970a796a..c0de18db4 100644 --- a/apps/web-antdv-next/src/api/mes/wm/sn/index.ts +++ b/apps/web-antdv-next/src/api/mes/wm/sn/index.ts @@ -17,6 +17,21 @@ export namespace MesWmSnApi { createTime?: Date; // 生成时间 } + /** MES SN 码明细 */ + export interface Sn { + id?: number; // 编号 + uuid?: string; // 批次 UUID + code?: string; // SN 码 + itemId?: number; // 物料编号 + itemCode?: string; // 物料编码 + itemName?: string; // 物料名称 + specification?: string; // 规格型号 + unitName?: string; // 单位名称 + batchCode?: string; // 批次号 + workOrderId?: number; // 生产工单编号 + createTime?: Date; // 生成时间 + } + /** MES SN 码生成参数 */ export interface SnGenerate { itemId?: number; // 物料编号 @@ -48,6 +63,13 @@ export function getSnGroupPage(params: MesWmSnApi.PageParams) { ); } +/** 查询批次 SN 码明细列表 */ +export function getSnListByUuid(uuid: string) { + return requestClient.get('/mes/wm/sn/list-by-uuid', { + params: { uuid }, + }); +} + /** 批量删除 SN 码(按批次 UUID) */ export function deleteSnBatch(uuid: string) { return requestClient.delete('/mes/wm/sn/delete-batch', { diff --git a/apps/web-antdv-next/src/components/map/src/map-dialog.vue b/apps/web-antdv-next/src/components/map/src/map-dialog.vue index e9b0640db..305c0a533 100644 --- a/apps/web-antdv-next/src/components/map/src/map-dialog.vue +++ b/apps/web-antdv-next/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-antdv-next/src/views/ai/chat/index/modules/message/knowledge.vue b/apps/web-antdv-next/src/views/ai/chat/index/modules/message/knowledge.vue index 6f09c3cb2..6b74e24a1 100644 --- a/apps/web-antdv-next/src/views/ai/chat/index/modules/message/knowledge.vue +++ b/apps/web-antdv-next/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) { -
+