From f4fd1f39a35df0c7b72020dc60a4b127a121dcb9 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 13 Nov 2025 14:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=9F=E8=BF=9B=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 12 +++++ .../customer-form/CustomerBasicInfo.vue | 7 +++ .../customer-form/CustomerPickers.vue | 44 +++++++++++++++++ pages/customer/add/index.vue | 48 ++++++++++++++++--- 4 files changed, 104 insertions(+), 7 deletions(-) diff --git a/api/user.js b/api/user.js index 3f59f0b..c2eda64 100644 --- a/api/user.js +++ b/api/user.js @@ -60,3 +60,15 @@ export const logout = () => { }); }; +/** + * 获取所有用户列表 + * @returns {Promise} 返回用户列表 + */ +export const getUserListAll = () => { + return uni.$uv.http.get('system/user/listAll', { + custom: { + auth: true // 启用 token 认证 + } + }); +}; + diff --git a/components/customer/customer-form/CustomerBasicInfo.vue b/components/customer/customer-form/CustomerBasicInfo.vue index ab53123..a0b6472 100644 --- a/components/customer/customer-form/CustomerBasicInfo.vue +++ b/components/customer/customer-form/CustomerBasicInfo.vue @@ -88,6 +88,13 @@ 选择微信好友 + + + + {{ formData.followName }} + 选择跟进人 + + diff --git a/components/customer/customer-form/CustomerPickers.vue b/components/customer/customer-form/CustomerPickers.vue index 26660af..7d58a28 100644 --- a/components/customer/customer-form/CustomerPickers.vue +++ b/components/customer/customer-form/CustomerPickers.vue @@ -174,6 +174,29 @@ + + + + + 选择跟进人 + + + {{ item.nickName }} + + + + + + + + +