From 3fa6aa7014ec06c133dd8c34fbb999a14a83d193 Mon Sep 17 00:00:00 2001 From: dzq Date: Fri, 13 Jun 2025 09:00:29 +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=BA=97=E9=93=BA=E5=90=8D=E7=A7=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=B9=B6=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在商品详情页添加店铺名称字段显示,并调整商品详情布局,增加关联状态、柜体名称和柜体格号信息展示 --- src/api/shop/goods.ts | 2 ++ src/views/shop/goods/detail.vue | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/api/shop/goods.ts b/src/api/shop/goods.ts index 85446b2..0ab6d12 100644 --- a/src/api/shop/goods.ts +++ b/src/api/shop/goods.ts @@ -56,6 +56,8 @@ export interface GoodsDTO { cellNo?: number; /** 单元格编号(字符串形式) */ cellNoStr?: string; + /** 所属店铺名称 */ + shopNameStr?: string; /** 总库存量(含所有仓库) */ totalStock?: number; /** 商品使用说明 */ diff --git a/src/views/shop/goods/detail.vue b/src/views/shop/goods/detail.vue index ba1ee8d..1692406 100644 --- a/src/views/shop/goods/detail.vue +++ b/src/views/shop/goods/detail.vue @@ -118,7 +118,8 @@ watch(goodsId, () => { - + 编辑商品 @@ -134,9 +135,12 @@ watch(goodsId, () => {
- - {{ goodsInfo.usageInstruction || '暂无说明' }} + + {{ goodsInfo.cellNoStr ? '已上柜' : '未上柜' }} + {{ goodsInfo.shopNameStr }} + {{ goodsInfo.cabinetName }} + {{ goodsInfo.cellNoStr }}