From e5c6da07bda55e0fa584ec220821ecb9604b7459 Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 4 Jun 2025 16:45:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=99=BA=E8=83=BD=E6=9F=9C=E5=8D=A1?= =?UTF-8?q?=E7=89=87):=20=E4=BC=98=E5=8C=96=E6=99=BA=E8=83=BD=E6=9F=9C?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E5=8F=8A=E5=8D=95=E5=85=83=E6=A0=BC=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在商品图片SVG中添加"小格"文字标识 - 将柜体名称从描述项移至详情按钮文本 - 优化单元格卡片布局,添加虚线分隔线和格口号显示 - 调整单元格操作按钮样式为链接样式并显示商品名称 - 改进单元格信息区域的间距和排版 --- public/img/product-image.svg | 12 +++-- .../cabinet/smart-cabinet-card/detail.vue | 54 ++++++++++++++----- .../cabinet/smart-cabinet-card/index.vue | 10 ++-- 3 files changed, 56 insertions(+), 20 deletions(-) diff --git a/public/img/product-image.svg b/public/img/product-image.svg index f12a898..568f6e0 100644 --- a/public/img/product-image.svg +++ b/public/img/product-image.svg @@ -1,6 +1,8 @@ - - 空闲 - \ No newline at end of file + + 空闲 + 小格 + \ No newline at end of file diff --git a/src/views/cabinet/smart-cabinet-card/detail.vue b/src/views/cabinet/smart-cabinet-card/detail.vue index 9d6aac8..1e11698 100644 --- a/src/views/cabinet/smart-cabinet-card/detail.vue +++ b/src/views/cabinet/smart-cabinet-card/detail.vue @@ -267,7 +267,7 @@ onMounted(() => { {{ cabinetInfo.cabinetName }} {{ getModeText(cabinetInfo.mode) }} {{ CabinetImgMap[cabinetInfo.templateNo]?.name || '-' - }} + }} {{ cabinetInfo.usedCells || '0' }} {{ cabinetInfo.availableCells || '0' }} {{ cabinetInfo.shopName || '-' }} @@ -293,7 +293,7 @@ onMounted(() => { {{ cabinetInfo.cabinetName || '-' }} {{ getModeText(cabinetInfo.mode) }} {{ CabinetImgMap[cabinetInfo.templateNo]?.name || '-' - }} + }} {{ cabinetInfo.shopName || '-' }} 配置 @@ -303,7 +303,7 @@ onMounted(() => { 配置 {{ getBalanceEnableText(cabinetInfo.balanceEnable) - }} + }} @@ -331,24 +331,37 @@ onMounted(() => {
- + + + + + + 空闲 + {{ switchCellType(item.cellType) }} +
格口号: {{ item.cellNo }}
-
{{ item.goodsId ? item.goodsName : '未配置商品' }}
价格: {{ item.price }}
库存: {{ item.stock }}
-
类型: {{ switchCellType(item.cellType) }}
+
+ +
+
+ + {{ item.cellNo }}
- 商品配置 - - 编辑格口 + {{ item.goodsName }} @@ -145,7 +143,9 @@ onMounted(() => {
- + + {{ item.cabinetName }} +
@@ -229,6 +229,10 @@ onMounted(() => { border: 0; margin-top: auto; padding: 8px 0; + + &:hover { + color: var(--el-color-primary); + } } }