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/api/erp/purchase/in/index.ts b/apps/web-antd/src/api/erp/purchase/in/index.ts index 060e1bcb8..df23762ad 100644 --- a/apps/web-antd/src/api/erp/purchase/in/index.ts +++ b/apps/web-antd/src/api/erp/purchase/in/index.ts @@ -28,6 +28,7 @@ export namespace ErpPurchaseInApi { export interface PurchaseInItem { count?: number; id?: number; + seq?: number; // 前端行号 orderItemId?: number; productBarCode?: string; productId?: number; diff --git a/apps/web-antd/src/api/erp/purchase/order/index.ts b/apps/web-antd/src/api/erp/purchase/order/index.ts index e59dcf68e..66954dc08 100644 --- a/apps/web-antd/src/api/erp/purchase/order/index.ts +++ b/apps/web-antd/src/api/erp/purchase/order/index.ts @@ -34,6 +34,7 @@ export namespace ErpPurchaseOrderApi { /** 采购订单项信息 */ export interface PurchaseOrderItem { id?: number; // 订单项编号 + seq?: number; // 前端行号 orderId?: number; // 采购订单编号 productId?: number; // 产品编号 productName?: string; // 产品名称 diff --git a/apps/web-antd/src/api/erp/purchase/return/index.ts b/apps/web-antd/src/api/erp/purchase/return/index.ts index 315ceeadb..3e1a26739 100644 --- a/apps/web-antd/src/api/erp/purchase/return/index.ts +++ b/apps/web-antd/src/api/erp/purchase/return/index.ts @@ -11,6 +11,7 @@ export namespace ErpPurchaseReturnApi { returnTime?: Date; // 退货时间 totalCount?: number; // 合计数量 totalPrice: number; // 合计金额,单位:元 + refundPrice?: number; // 已退款金额,单位:元 discountPercent?: number; // 折扣百分比 discountPrice?: number; // 折扣金额 status?: number; // 状态 @@ -24,6 +25,7 @@ export namespace ErpPurchaseReturnApi { export interface PurchaseReturnItem { count?: number; id?: number; + seq?: number; // 前端行号 orderItemId?: number; productBarCode?: string; productId?: number; diff --git a/apps/web-antd/src/api/erp/sale/order/index.ts b/apps/web-antd/src/api/erp/sale/order/index.ts index c190a3dc1..ec46d9fbf 100644 --- a/apps/web-antd/src/api/erp/sale/order/index.ts +++ b/apps/web-antd/src/api/erp/sale/order/index.ts @@ -28,6 +28,7 @@ export namespace ErpSaleOrderApi { /** 销售订单项 */ export interface SaleOrderItem { id?: number; // 订单项编号 + seq?: number; // 前端行号 orderId?: number; // 采购订单编号 productId?: number; // 产品编号 productName?: string; // 产品名称 diff --git a/apps/web-antd/src/api/erp/sale/out/index.ts b/apps/web-antd/src/api/erp/sale/out/index.ts index a3e335af6..85f5a6686 100644 --- a/apps/web-antd/src/api/erp/sale/out/index.ts +++ b/apps/web-antd/src/api/erp/sale/out/index.ts @@ -12,6 +12,7 @@ export namespace ErpSaleOutApi { outTime?: Date; // 出库时间 totalCount?: number; // 合计数量 totalPrice?: number; // 合计金额,单位:元 + receiptPrice?: number; // 已收款金额,单位:元 status?: number; // 状态 remark?: string; // 备注 discountPercent?: number; // 折扣百分比 @@ -28,6 +29,7 @@ export namespace ErpSaleOutApi { export interface SaleOutItem { count?: number; id?: number; + seq?: number; // 前端行号 orderItemId?: number; productBarCode?: string; productId?: number; diff --git a/apps/web-antd/src/api/erp/sale/return/index.ts b/apps/web-antd/src/api/erp/sale/return/index.ts index a0624cba2..18af37581 100644 --- a/apps/web-antd/src/api/erp/sale/return/index.ts +++ b/apps/web-antd/src/api/erp/sale/return/index.ts @@ -11,6 +11,7 @@ export namespace ErpSaleReturnApi { returnTime?: Date; // 退货时间 totalCount?: number; // 合计数量 totalPrice?: number; // 合计金额,单位:元 + refundPrice?: number; // 已退款金额,单位:元 status?: number; // 状态 remark?: string; // 备注 discountPercent?: number; // 折扣百分比 @@ -27,6 +28,7 @@ export namespace ErpSaleReturnApi { export interface SaleReturnItem { count?: number; id?: number; + seq?: number; // 前端行号 orderItemId?: number; productBarCode?: string; productId?: number; diff --git a/apps/web-antd/src/api/erp/stock/check/index.ts b/apps/web-antd/src/api/erp/stock/check/index.ts index b6f9d0bea..c67ea62b1 100644 --- a/apps/web-antd/src/api/erp/stock/check/index.ts +++ b/apps/web-antd/src/api/erp/stock/check/index.ts @@ -21,6 +21,7 @@ export namespace ErpStockCheckApi { /** 库存盘点项 */ export interface StockCheckItem { id?: number; // 编号 + seq?: number; // 前端行号 warehouseId?: number; // 仓库编号 productId?: number; // 产品编号 productName?: string; // 产品名称 diff --git a/apps/web-antd/src/api/erp/stock/in/index.ts b/apps/web-antd/src/api/erp/stock/in/index.ts index e68c05b36..b6e4a50ef 100644 --- a/apps/web-antd/src/api/erp/stock/in/index.ts +++ b/apps/web-antd/src/api/erp/stock/in/index.ts @@ -23,15 +23,16 @@ export namespace ErpStockInApi { /** 其它入库单产品信息 */ export interface StockInItem { id?: number; // 编号 - warehouseId: number; // 仓库编号 - productId: number; // 产品编号 + seq?: number; // 前端行号 + warehouseId?: number; // 仓库编号 + productId?: number; // 产品编号 productName?: string; // 产品名称 productUnitId?: number; // 产品单位编号 productUnitName?: string; // 产品单位名称 productBarCode?: string; // 产品条码 - count: number; // 数量 - productPrice: number; // 产品单价 - totalPrice: number; // 总价 + count?: number; // 数量 + productPrice?: number; // 产品单价 + totalPrice?: number; // 总价 stockCount?: number; // 库存数量 remark?: string; // 备注 } diff --git a/apps/web-antd/src/api/erp/stock/move/index.ts b/apps/web-antd/src/api/erp/stock/move/index.ts index 0120a9b45..aaf09b22f 100644 --- a/apps/web-antd/src/api/erp/stock/move/index.ts +++ b/apps/web-antd/src/api/erp/stock/move/index.ts @@ -26,6 +26,7 @@ export namespace ErpStockMoveApi { count: number; // 数量 fromWarehouseId?: number; // 来源仓库ID id?: number; // ID + seq?: number; // 前端行号 productBarCode: string; // 产品条形码 productId?: number; // 产品ID productName?: string; // 产品名称 diff --git a/apps/web-antd/src/api/erp/stock/out/index.ts b/apps/web-antd/src/api/erp/stock/out/index.ts index 1ecb89233..94588e1bb 100644 --- a/apps/web-antd/src/api/erp/stock/out/index.ts +++ b/apps/web-antd/src/api/erp/stock/out/index.ts @@ -20,6 +20,7 @@ export namespace ErpStockOutApi { /** 其它出库单产品信息 */ export interface StockOutItem { id?: number; // 编号 + seq?: number; // 前端行号 warehouseId?: number; // 仓库编号 productId?: number; // 产品编号 productName?: string; // 产品名称 diff --git a/apps/web-antd/src/api/mp/freePublish/index.ts b/apps/web-antd/src/api/mp/freePublish/index.ts index bc50efe96..fd7b2596c 100644 --- a/apps/web-antd/src/api/mp/freePublish/index.ts +++ b/apps/web-antd/src/api/mp/freePublish/index.ts @@ -3,6 +3,19 @@ import type { PageParam, PageResult } from '@vben/request'; import { requestClient } from '#/api/request'; export namespace MpFreePublishApi { + /** 图文文章内容 */ + export interface FreePublishArticle { + title?: string; + thumbUrl?: string; + picUrl?: string; + url?: string; + } + + /** 图文内容 */ + export interface FreePublishContent { + newsItem?: FreePublishArticle[]; + } + /** 自由发布文章信息 */ export interface FreePublish { id?: number; @@ -12,7 +25,7 @@ export namespace MpFreePublishApi { title: string; author: string; digest: string; - content: string; + content?: FreePublishContent; thumbUrl: string; status: number; publishTime?: Date; 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) { -
+