diff --git a/src/modules/scheduling/SuggestionDetail.tsx b/src/modules/scheduling/SuggestionDetail.tsx index 3349b4d..f4f5e6b 100644 --- a/src/modules/scheduling/SuggestionDetail.tsx +++ b/src/modules/scheduling/SuggestionDetail.tsx @@ -1,7 +1,6 @@ import { useState, useMemo } from 'react'; import { - X, MapPin, AlertTriangle, CheckCircle, ArrowDown, ArrowUp, ArrowRight, ArrowUpDown, - TrendingUp, TrendingDown, Minus, Lock, + X, MapPin, AlertTriangle, CheckCircle, ArrowDown, ArrowUp, ArrowRight, ArrowUpDown, Lock, } from 'lucide-react'; import { motion } from 'motion/react'; import type { SchedulingSuggestion, CandidateVehicle } from './types'; @@ -189,27 +188,8 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce {v.manager && {v.manager}} {(v.department || v.manager) && |} 客户 {v.customer || '-'} - + 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; - })()}