+
30日均 {Math.round(v.customerAvgDaily)} km
- {v.customerAvgDaily > 0 && v.customerAvgDaily7d > 0 && (() => {
- const diff = (v.customerAvgDaily7d - v.customerAvgDaily) / v.customerAvgDaily;
- const pct = Math.round(diff * 100);
- if (diff >= 0.1) return (
-
- 7日 +{pct}%
-
- );
- if (diff <= -0.1) return (
-
- 7日 {pct}%
-
- );
- return (
-
- 7日平稳
-
- );
- })()}
{/* Metrics */}
diff --git a/src/modules/scheduling/SuggestionList.tsx b/src/modules/scheduling/SuggestionList.tsx
index 9d467a0..4e6d478 100644
--- a/src/modules/scheduling/SuggestionList.tsx
+++ b/src/modules/scheduling/SuggestionList.tsx
@@ -1,5 +1,5 @@
import { useState, useMemo } from 'react';
-import { ArrowRightLeft, ChevronRight, ArrowDown, ArrowUp, ArrowUpDown, CheckCircle, Check, TrendingUp, TrendingDown } from 'lucide-react';
+import { ArrowRightLeft, ChevronRight, ArrowDown, ArrowUp, ArrowUpDown, CheckCircle, Check } from 'lucide-react';
import { motion } from 'motion/react';
import type { SchedulingSuggestion } from './types';
import Blur from '../../components/Blur';
@@ -149,14 +149,8 @@ export default function SuggestionList({ suggestions, onSelect, selectMode = fal
{v.customer || '-'}
-
+
客户日均 {Math.round(v.customerAvgDaily)} km
- {v.customerAvgDaily > 0 && v.customerAvgDaily7d > 0 && (() => {
- const diff = (v.customerAvgDaily7d - v.customerAvgDaily) / v.customerAvgDaily;
- if (diff >= 0.1) return ;
- if (diff <= -0.1) return ;
- return null;
- })()}