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(); } // 重新查询数据