From 2de2714d00402b0a9783c14dd0acabc5059d8b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Sat, 21 Nov 2026 03:09:35 +0800 Subject: [PATCH] =?UTF-8?q?chore(fe):=20JdCollectTab=20=E8=AE=A1=E6=95=B0?= =?UTF-8?q?=E6=96=87=E6=A1=88=E6=B3=A8=E9=87=8A=E5=8E=8B=203=20=E8=A1=8C?= =?UTF-8?q?=E2=80=94=E2=80=94=E5=87=80=E5=A2=9E=E5=8E=8B=E5=88=B0=20+3=20?= =?UTF-8?q?=E9=85=8D=E5=90=88=20ops=20=E5=8F=AF=E8=AF=BB=E5=9F=BA=E7=BA=BF?= =?UTF-8?q?=E7=82=B9=E5=90=8D=201086=E2=86=921089=EF=BC=882026-11-21=20?= =?UTF-8?q?=E6=9C=AC=E7=AA=97=EF=BC=9AprogressCountLabel=20=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E6=A1=A3=E9=98=B2=E8=AF=AF=E5=88=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend-vue/src/pages/jd/JdCollectTab.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend-vue/src/pages/jd/JdCollectTab.vue b/frontend-vue/src/pages/jd/JdCollectTab.vue index 8d6f2693e..757e59e96 100644 --- a/frontend-vue/src/pages/jd/JdCollectTab.vue +++ b/frontend-vue/src/pages/jd/JdCollectTab.vue @@ -403,12 +403,9 @@ function progressPercent(item: JdCollectHistoryItemVo) { return Math.max(0, Math.min(99, Math.round((done * 100) / total))) } -/** 计数文案:有 total 带分母和百分比「已采集 30/100 个商品(30%)」——TaskItemCard 的 - * countLabel 会顶掉「总进度 X%」那行字,百分比只能随 countLabel 一起出; - * 没有 total 保持只报行数,不编造分母(与本页 progressPercent 同一口径)。 - * 2026-11-21 35089 实录补进行时档:首批分片被服务端收下前 itemsReceived 恒 0(页内 - * 详情采集要 1-3 分钟)、「已采集 0 个商品」像卡死,用户误以为失败点了删除(35088/ - * 35089/35090 三单都被这样删掉,数据采集成功但随删除清库)。0 行时改报进行时文案。 */ +/** 计数文案:有 total 带分母和百分比(TaskItemCard 的 countLabel 顶掉「总进度」行, + * 百分比只能随 countLabel 出);没有 total 只报行数。0 行且未终态报进行时文案—— + * 35089 实录:首批落库前 1-3 分钟「已采集 0 个商品」像卡死,用户误删了采集成功的三单。 */ function progressCountLabel(item: JdCollectHistoryItemVo) { const received = collectedCount(item) const total = typeof item.total === 'number' && item.total > 0 ? item.total : null