From 1d82d1a5beb873debfdfa074fcdb0b16b238b866 Mon Sep 17 00:00:00 2001 From: dzq Date: Tue, 17 Jun 2025 15:10:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E6=B7=BB=E5=8A=A0=E6=9C=BA?= =?UTF-8?q?=E6=9F=9C=E6=95=B0=E9=87=8F=E6=98=BE=E7=A4=BA=E5=8F=8A=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=85=8D=E7=BD=AE=E5=BC=B9=E7=AA=97=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在ShopDTO接口中添加cabinetCount字段 - 在商店卡片中显示机柜数量 - 将配置弹窗从dialog改为drawer并优化样式 - 为网关配置弹窗应用相同样式优化 --- src/api/shop/shop.ts | 2 + src/views/cabinet/shop/card.vue | 3 +- .../smart-cabinet/GatewayConfigModal.vue | 46 ++++++++++++------- .../cabinet/smart-cabinet/ShopConfigModal.vue | 41 +++++++++++------ 4 files changed, 59 insertions(+), 33 deletions(-) diff --git a/src/api/shop/shop.ts b/src/api/shop/shop.ts index f7ec002..3c9e644 100644 --- a/src/api/shop/shop.ts +++ b/src/api/shop/shop.ts @@ -25,6 +25,8 @@ export interface ShopDTO { mode?: number; /** 借呗支付(1-正常使用 0-禁止使用) */ balanceEnable?: number; + /** 机柜数量 */ + cabinetCount?: number; } /** 新增商店命令 */ diff --git a/src/views/cabinet/shop/card.vue b/src/views/cabinet/shop/card.vue index 0b73bd0..a0ba1e0 100644 --- a/src/views/cabinet/shop/card.vue +++ b/src/views/cabinet/shop/card.vue @@ -148,7 +148,8 @@ function getPaymentMethods(mode: number): Array<{ label: string; type: string }> 运行模式:{{ - getModeText(item.mode) }} + getModeText(item.mode) }} + 机柜数量:{{ item.cabinetCount }}