From 8a184a90d28cc02c1e444df5936289c85de5b0dd Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Mon, 10 Nov 2025 14:41:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AE=A2=E6=88=B7=E8=B7=9F?= =?UTF-8?q?=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/customer.js | 16 ++++++++ components/customer-detail/FollowupTab.vue | 46 ++++++++++++++++++++-- pages/customer/detail/index.vue | 1 + 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/common/api/customer.js b/common/api/customer.js index d5bfc7e..9549d25 100644 --- a/common/api/customer.js +++ b/common/api/customer.js @@ -187,6 +187,22 @@ export const updateFollowup = (data) => { }); }; +/** + * 删除跟进记录 + * @param {string|string[]} followIds 跟进ID或ID数组(多个ID用逗号分隔或传入数组) + * @returns {Promise} 返回删除结果 + */ +export const deleteFollowup = (followIds) => { + // 如果传入的是数组,转换为逗号分隔的字符串 + const idsParam = Array.isArray(followIds) ? followIds.join(',') : followIds; + + return uni.$uv.http.delete(`bst/customerFollow/${idsParam}`, {}, { + custom: { + auth: true + } + }); +}; + /** * 获取客户项目列表 * @param {string} customerId 客户ID diff --git a/components/customer-detail/FollowupTab.vue b/components/customer-detail/FollowupTab.vue index fa7137f..67461c7 100644 --- a/components/customer-detail/FollowupTab.vue +++ b/components/customer-detail/FollowupTab.vue @@ -27,6 +27,9 @@ ✏️ + + 🗑️ + @@ -47,6 +50,7 @@