From 1d2cd48a7fa617f752aa716744293bc7c8205edf Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 11 Jun 2025 16:25:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=95=86=E5=93=81=E6=A8=A1=E5=BC=8F):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=E6=A8=A1=E5=BC=8F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=8F=8A=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在商店管理页面添加商品模式列显示 - 在商店表单中增加商品模式选择字段 - 更新API接口定义包含商品模式字段 - 在智能柜相关页面统一商品模式显示和编辑功能 --- src/api/shop/shop.ts | 8 ++++++++ src/views/cabinet/shop/index.vue | 5 +++++ src/views/cabinet/shop/shop-form-modal.vue | 12 ++++++++++-- src/views/cabinet/smart-cabinet-card/detail.vue | 8 ++++---- .../smart-cabinet-card/edit-cabinet-drawer.vue | 14 +++++++------- .../smart-cabinet-card-form-modal.vue | 14 +++++++------- src/views/system/role/index.vue | 12 +++++++++++- 7 files changed, 52 insertions(+), 21 deletions(-) diff --git a/src/api/shop/shop.ts b/src/api/shop/shop.ts index 3959675..3805665 100644 --- a/src/api/shop/shop.ts +++ b/src/api/shop/shop.ts @@ -4,6 +4,8 @@ import { http } from '@/utils/http'; export interface ShopQuery extends BasePageQuery { shopName?: string; corpid?: string; + /** 归属类型(0-借还柜 1-固资通) */ + belongType?: number; } /** 商店DTO */ @@ -11,12 +13,16 @@ export interface ShopDTO { shopId: number; shopName: string; corpid?: string; + /** 归属类型(0-借还柜 1-固资通) */ + belongType?: number; } /** 新增商店命令 */ export interface AddShopCommand { shopName: string; corpid: string; + /** 归属类型(0-借还柜 1-固资通) */ + belongType?: number; } /** 更新商店命令 */ @@ -24,6 +30,8 @@ export interface UpdateShopCommand { corpid: string; shopId: number; shopName: string; + /** 归属类型(0-借还柜 1-固资通) */ + belongType?: number; } /** 获取商店列表 */ diff --git a/src/views/cabinet/shop/index.vue b/src/views/cabinet/shop/index.vue index cda170e..a418774 100644 --- a/src/views/cabinet/shop/index.vue +++ b/src/views/cabinet/shop/index.vue @@ -166,6 +166,11 @@ getList(); + + +