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 @@