feat(scheduling): show department and manager in list items and detail card
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -101,8 +101,11 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
|
||||
{fmtRate(v.completionRate)}
|
||||
</span>
|
||||
</div>
|
||||
{/* Customer info */}
|
||||
<div className="px-3 pb-1.5 flex items-center gap-2 text-[10px] text-slate-500">
|
||||
{/* Customer + dept/manager info */}
|
||||
<div className="px-3 pb-1.5 flex items-center gap-2 text-[10px] text-slate-500 flex-wrap">
|
||||
{v.department && <span><b className="text-slate-700">{v.department}</b></span>}
|
||||
{v.manager && <span><b className="text-slate-700">{v.manager}</b></span>}
|
||||
{(v.department || v.manager) && <span className="text-slate-200">|</span>}
|
||||
<span>客户 <b className="text-slate-700"><Blur>{v.customer || '-'}</Blur></b></span>
|
||||
<span>日均 <b className="text-slate-700">{Math.round(v.customerAvgDaily)}</b> km</span>
|
||||
</div>
|
||||
|
||||
@@ -56,8 +56,10 @@ export default function SuggestionList({ suggestions, onSelect }: Props) {
|
||||
<span className="text-[9px] text-slate-400">{v.region}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 mt-0.5 text-[10px] text-slate-400 overflow-hidden">
|
||||
<span className="truncate max-w-[40%] flex-shrink"><Blur>{v.customer || '-'}</Blur></span>
|
||||
<span className="flex-shrink-0">日均 <span className="text-slate-600 font-medium">{Math.round(v.customerAvgDaily)}</span> km</span>
|
||||
{v.department && <span className="flex-shrink-0 text-slate-500">{v.department}</span>}
|
||||
{v.manager && <span className="flex-shrink-0 text-slate-500">{v.manager}</span>}
|
||||
<span className="truncate max-w-[35%] flex-shrink"><Blur>{v.customer || '-'}</Blur></span>
|
||||
<span className="flex-shrink-0">日均 <span className="text-slate-600 font-medium">{Math.round(v.customerAvgDaily)}</span></span>
|
||||
<span className="flex-shrink-0">完成 <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>
|
||||
|
||||
Reference in New Issue
Block a user