feat(scheduling): add km unit to 客户日均; move 年度考核 to top-right of list item
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -88,19 +88,20 @@ export default function SuggestionList({ suggestions, onSelect }: Props) {
|
||||
|
||||
{/* Info */}
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<span className="text-xs font-black text-slate-900 font-mono">
|
||||
<Blur>{v.plateNumber}</Blur>
|
||||
</span>
|
||||
<span className={`text-[9px] px-1.5 py-px rounded font-bold ${
|
||||
isRescue ? 'bg-blue-50 text-blue-600' : 'bg-amber-50 text-amber-600'
|
||||
}`}>
|
||||
{isRescue ? '里程低·换走' : '里程高·换下'}
|
||||
</span>
|
||||
<span className="text-[9px] text-slate-400">{v.vehicleType}</span>
|
||||
<span className="text-[9px] text-slate-300">·</span>
|
||||
<span className="text-[9px] text-slate-400">{v.region}</span>
|
||||
</div>
|
||||
<span className="text-[10px] flex-shrink-0">
|
||||
<span className="text-slate-500">年度考核 </span>
|
||||
<span className={`font-medium ${v.completionRate >= 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-500'}`}>{fmtRate(v.completionRate)}</span>
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center justify-between mt-0.5 text-[10px] overflow-hidden">
|
||||
<div className="flex items-center gap-1.5 text-slate-400 truncate">
|
||||
{v.department && <span className="text-slate-500 font-medium">{v.department.replace('业务', '')}</span>}
|
||||
@@ -108,8 +109,7 @@ export default function SuggestionList({ suggestions, onSelect }: Props) {
|
||||
<span className="truncate"><Blur>{v.customer || '-'}</Blur></span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 flex-shrink-0 ml-2">
|
||||
<span className="text-slate-500">客户日均 <span className="text-slate-700 font-medium">{Math.round(v.customerAvgDaily)}</span></span>
|
||||
<span className={`font-medium ${v.completionRate >= 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-500'}`}>{fmtRate(v.completionRate)}</span>
|
||||
<span className="text-slate-500">客户日均 <span className="text-slate-700 font-medium">{Math.round(v.customerAvgDaily)}</span> km</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user