From 7af2ee9e254b6d597dd1e936978d494159207d34 Mon Sep 17 00:00:00 2001 From: lbw_9527443 <780139497@qq.com> Date: Mon, 1 Sep 2025 17:14:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=BE=85=E5=85=A5?= =?UTF-8?q?=E7=BE=A4=E5=92=8C=E5=BE=85=E8=81=94=E7=B3=BB=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E7=9A=84=E7=99=BE=E5=88=86=E6=AF=94=E8=AE=A1=E7=AE=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SalesTimelineWithTaskList.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue b/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue index cecc573..8042881 100644 --- a/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue +++ b/my-vue-app/src/views/person/components/SalesTimelineWithTaskList.vue @@ -559,6 +559,20 @@ const getPercentage = (count, stageId, stageName) => { return Math.round((totalCustomers.value - count) / totalCustomers.value * 100); } + // 待入群阶段特殊计算:(总数-待加微人数-待入群人数)/总数 + if (stageName === '待入群') { + const waitAddWechatCount = getStageCount('待加微'); + const waitJoinGroupCount = getStageCount('待入群'); + return Math.round((totalCustomers.value - waitAddWechatCount - waitJoinGroupCount) / totalCustomers.value * 100); + } + + // 待联系阶段特殊计算:(总数-待加微人数-待联系人数)/总数 + if (stageName === '待联系') { + const waitAddWechatCount = getStageCount('待加微'); + const waitContactCount = getStageCount('待联系'); + return Math.round((totalCustomers.value - waitAddWechatCount - waitContactCount) / totalCustomers.value * 100); + } + // 待到课阶段特殊计算:(总数-有到课数据人数)/总数 if (stageName === '待到课') { return Math.round((totalCustomers.value - count) / totalCustomers.value * 100);