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 () => { + + + + + +