From cf138f67c03ebadbae60ca88221bf51bbbf3340b Mon Sep 17 00:00:00 2001 From: kkfluous Date: Fri, 17 Apr 2026 10:00:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(scheduling):=20remove=207=E6=97=A5=20?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=97=A5=E5=9D=87=20=E8=B6=8B=E5=8A=BF?= =?UTF-8?q?=E5=BE=BD=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 详情页和列表里的 ↗ 7日 +X% / ↘ 7日 -X% 徽章移除,客户日均只保留 30 日均这一项。 Co-Authored-By: Claude Opus 4.7 --- src/modules/scheduling/SuggestionDetail.tsx | 24 ++------------------- src/modules/scheduling/SuggestionList.tsx | 10 ++------- 2 files changed, 4 insertions(+), 30 deletions(-) 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; - })()}