From fad67cdbada107133ab4683e1f6990c437648a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 29 Jan 2026 20:43:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E6=B7=BB=E5=8A=A0=E9=85=8D?= =?UTF-8?q?=E9=80=81=E5=91=98=E5=92=8C=E9=97=A8=E5=BA=97=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在ShopDealerUser模型中新增dealerName和community字段 - 添加realName和mobile搜索参数支持 - 将经销商类型重命名为分销商,并添加配送员类型 - 新增配送员管理页面(src/views/shop/shopDealerUserDelivery) - 新增门店管理页面(src/views/shop/shopDealerUserShop) - 为不同类型的用户创建独立的搜索组件 - 实现配送员编辑弹窗功能 - 更新表格显示逻辑以支持不同类型用户过滤 --- src/api/shop/shopDealerUser/model/index.ts | 6 + .../shop/shopDealerUser/components/search.vue | 29 +- .../components/shopDealerUserEdit.vue | 4 +- src/views/shop/shopDealerUser/index.vue | 4 +- .../components/search.vue | 51 ++ .../components/shopDealerUserEdit.vue | 466 +++++++++++++++++ .../shop/shopDealerUserDelivery/index.vue | 351 +++++++++++++ .../shopDealerUserShop/components/search.vue | 51 ++ .../components/shopDealerUserEdit.vue | 472 ++++++++++++++++++ src/views/shop/shopDealerUserShop/index.vue | 370 ++++++++++++++ 10 files changed, 1790 insertions(+), 14 deletions(-) create mode 100644 src/views/shop/shopDealerUserDelivery/components/search.vue create mode 100644 src/views/shop/shopDealerUserDelivery/components/shopDealerUserEdit.vue create mode 100644 src/views/shop/shopDealerUserDelivery/index.vue create mode 100644 src/views/shop/shopDealerUserShop/components/search.vue create mode 100644 src/views/shop/shopDealerUserShop/components/shopDealerUserEdit.vue create mode 100644 src/views/shop/shopDealerUserShop/index.vue diff --git a/src/api/shop/shopDealerUser/model/index.ts b/src/api/shop/shopDealerUser/model/index.ts index 4f57555..51234dd 100644 --- a/src/api/shop/shopDealerUser/model/index.ts +++ b/src/api/shop/shopDealerUser/model/index.ts @@ -12,6 +12,10 @@ export interface ShopDealerUser { userId?: number; // 头像 avatar?: string; + // 店铺名称 + dealerName?: string; + // 小区名称 + community?: string; // 姓名 realName?: string; // 手机号 @@ -60,5 +64,7 @@ export interface ShopDealerUser { */ export interface ShopDealerUserParam extends PageParam { id?: number; + realName?: string; + mobile?: string; keywords?: string; } diff --git a/src/views/shop/shopDealerUser/components/search.vue b/src/views/shop/shopDealerUser/components/search.vue index 82fea9d..5aafbfc 100644 --- a/src/views/shop/shopDealerUser/components/search.vue +++ b/src/views/shop/shopDealerUser/components/search.vue @@ -1,19 +1,21 @@ - - - - - 添加 - + diff --git a/src/views/shop/shopDealerUserDelivery/components/shopDealerUserEdit.vue b/src/views/shop/shopDealerUserDelivery/components/shopDealerUserEdit.vue new file mode 100644 index 0000000..48bf7c5 --- /dev/null +++ b/src/views/shop/shopDealerUserDelivery/components/shopDealerUserEdit.vue @@ -0,0 +1,466 @@ + + + + + + + + + + + + + + + + + + + 基础信息 + + + + + + + + + + + + 分销商 + 门店 + 配送员 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 佣金信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/shop/shopDealerUserDelivery/index.vue b/src/views/shop/shopDealerUserDelivery/index.vue new file mode 100644 index 0000000..2ce9f61 --- /dev/null +++ b/src/views/shop/shopDealerUserDelivery/index.vue @@ -0,0 +1,351 @@ + + $router.go(-1)"> + + + + + + + + + + + 分销商 + 门店 + 配送员 + + + + + + 显示 + 隐藏 + + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + + + 复制链接 + 打开原图 + + + + + + + + + + + diff --git a/src/views/shop/shopDealerUserShop/components/search.vue b/src/views/shop/shopDealerUserShop/components/search.vue new file mode 100644 index 0000000..5aafbfc --- /dev/null +++ b/src/views/shop/shopDealerUserShop/components/search.vue @@ -0,0 +1,51 @@ + + + + + + + + diff --git a/src/views/shop/shopDealerUserShop/components/shopDealerUserEdit.vue b/src/views/shop/shopDealerUserShop/components/shopDealerUserEdit.vue new file mode 100644 index 0000000..94542ac --- /dev/null +++ b/src/views/shop/shopDealerUserShop/components/shopDealerUserEdit.vue @@ -0,0 +1,472 @@ + + + + + + 店铺信息 + + + + + + + + + + + + + + + + + 基础信息 + + + + + + + + + + + + 经销商 + 门店 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 佣金信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/shop/shopDealerUserShop/index.vue b/src/views/shop/shopDealerUserShop/index.vue new file mode 100644 index 0000000..5661a56 --- /dev/null +++ b/src/views/shop/shopDealerUserShop/index.vue @@ -0,0 +1,370 @@ + + $router.go(-1)"> + + + + + + + + + + + {{ record.dealerName || '-' }} + + + 分销商 + 门店 + 配送员 + + + + + + 显示 + 隐藏 + + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + + + 复制链接 + 打开原图 + + + + + + + + + + +