From aee87723f416927b5a1e57c09ee6136699ffc14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Tue, 14 Apr 2026 22:48:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E5=95=86=E5=93=81=E4=BF=A1=E6=81=AF=E5=88=97=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=82=AC=E5=81=9C=E8=AF=A6=E6=83=85=E5=92=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 商品信息列增加 popover 显示完整信息(名称/链接名称/编码) - 店铺名称和商品名称均可点击跳转对应详情页 - 规格信息列保留 popover 显示链接名称和规格编码 - ProductVO/SpecInfo 类型定义补充 linkName 字段 --- .../api/ecommerce/product/types/types.vo.ts | 4 + .../src/views/ecommerce/order/index.vue | 77 ++++++++++++++++--- 2 files changed, 71 insertions(+), 10 deletions(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts index 9cfbaf45..312cb764 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/product/types/types.vo.ts @@ -11,6 +11,8 @@ export namespace ProductVO { companyId: number; /** 商品名称 */ name: string; + /** 链接商品名称 */ + linkName?: string; /** 商品编码 */ productCode?: string; /** 主图URL */ @@ -61,6 +63,8 @@ export namespace ProductVO { productName: string; /** 规格名称 */ name: string; + /** 链接规格名称 */ + linkName?: string; /** 规格编码 */ specCode?: string; /** 商品成本 */ diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/order/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/order/index.vue index 50efbc57..6b82bfe9 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/order/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/order/index.vue @@ -7,10 +7,12 @@ import type { PageQueryDTO } from '#/types/common'; import { computed, onMounted, ref } from 'vue'; +import { useRouter } from 'vue-router'; + import { Page } from '@vben/common-ui'; import { createIconifyIcon } from '@vben/icons'; -import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue'; +import { Button, message, Popconfirm, Popover, Space, Tag } from 'ant-design-vue'; import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { deleteOrderApi, getOrderPageApi } from '#/api/ecommerce/order'; @@ -22,6 +24,15 @@ import OrderFormModal from './components/OrderFormModal.vue'; defineOptions({ name: 'OrderManagement' }); // 创建图标组件 const PlusIcon = createIconifyIcon('lucide:plus'); +const router = useRouter(); + +function goToShopDetail(shopId: number) { + router.push(`/ecom/shop/overview/${shopId}`); +} + +function goToProductDetail(productId: number) { + router.push(`/ecom/product/details/${productId}`); +} // 响应式数据 const loading = ref(false); @@ -122,15 +133,23 @@ const gridOptions: VxeGridProps = { { field: 'shopName', title: '店铺名称', - minWidth: 'auto', - showOverflow: 'tooltip' as const, + minWidth: 140, + showOverflow: false, sortable: true, + slots: { default: 'shopName' }, }, { title: '商品信息', - minWidth: 'auto', + minWidth: 160, + showOverflow: false, slots: { default: 'productInfo' }, }, + { + title: '规格信息', + minWidth: 160, + showOverflow: false, + slots: { default: 'specInfo' }, + }, { field: 'quantity', title: '数量', @@ -406,17 +425,55 @@ onMounted(async () => { + + + + + +