From 3f69ebd3ba8c8e2888627fc5f0d0d824a3d4d8f8 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Sun, 2 Nov 2025 16:32:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(CarouselBoard):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BF=91=E4=B8=A4=E5=91=A8=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E5=B9=B6=E6=9B=B4=E6=96=B0=E4=B8=8D=E5=90=88?= =?UTF-8?q?=E6=A0=BC=E5=93=81=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在质量统计卡片中增加"近两周"时间范围选项,方便查看更长时间段的数据 将"报废总数"标签更新为更准确的"不合格品总数" --- .../components/QualityStatisticsCard.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue b/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue index fc7a86b..472b6c0 100644 --- a/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue +++ b/src/views/kanbanManagement/CarouselBoard/components/QualityStatisticsCard.vue @@ -32,7 +32,7 @@
{{ statistics.totalGrind }}
-
报废总数
+
不合格品总数
{{ statistics.totalScrap }}
@@ -55,6 +55,13 @@ > 每周 +
+ 近两周 +
@@ -302,6 +309,10 @@ export default { // 本周(周一到周日)- 设置周起始日为周一 this.search.startTime = today.startOf("week", { weekStart: 1 }).toDate(); this.search.endTime = today.endOf("week", { weekStart: 1 }).toDate(); + } else if (type === "twoweekly") { + // 近两周(当前日期向前推14天) + this.search.startTime = today.subtract(14, 'day').startOf('day').toDate(); + this.search.endTime = today.endOf('day').toDate(); } // 重新查询数据