From 8c8f65be7f4cb87a33a3e7ff8d4fedc58219f26a Mon Sep 17 00:00:00 2001 From: dzq Date: Tue, 3 Jun 2025 17:34:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=E8=AE=A2=E5=8D=95=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=92=8C=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在商品详情页添加订单记录分页表格,展示关联订单信息 - 新增商品编辑按钮和编辑模态框功能 - 扩展OrderQuery接口添加goodsId字段用于订单查询 - 修复商品详情页点击商品名称跳转错误的问题 --- src/api/shop/order.ts | 1 + src/views/shop/goods/detail.vue | 127 +++++++++++++++++++++- src/views/shop/goods/goods-edit-modal.vue | 1 + src/views/shop/goods/index.vue | 2 +- 4 files changed, 124 insertions(+), 7 deletions(-) diff --git a/src/api/shop/order.ts b/src/api/shop/order.ts index 99fa120..de5dc56 100644 --- a/src/api/shop/order.ts +++ b/src/api/shop/order.ts @@ -15,6 +15,7 @@ export interface OrderQuery extends BasePageQuery { cabinetId?: number; /** 格口id */ cellId?: number; + goodsId?: number; /** * 订单状态 * @remarks diff --git a/src/views/shop/goods/detail.vue b/src/views/shop/goods/detail.vue index a8c688f..21da73e 100644 --- a/src/views/shop/goods/detail.vue +++ b/src/views/shop/goods/detail.vue @@ -1,8 +1,18 @@