fix: 日期格式化为yyyy-MM-dd、出勤说明另起一行
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- 本周还车/交车/替换的日期从ISO格式截取前10位
- 出勤说明移到切换按钮下方单独一行

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-03-29 09:50:45 +08:00
parent 3e4122caec
commit dbf3f3becb

View File

@@ -1456,8 +1456,6 @@ export default function App() {
</button>
</div>
<span className="text-[10px] text-gray-400 font-medium">*&gt;0</span>
<div className="flex-1 max-w-[240px]">
{deptViewMode === 'manager' && (
<div className="relative">
@@ -1479,6 +1477,9 @@ export default function App() {
)}
</div>
</div>
<div className="px-2 mb-2">
<span className="text-[10px] text-gray-400 font-medium">*&gt;0</span>
</div>
{/* Desktop Table View */}
<div className="hidden lg:block overflow-x-auto">
@@ -2657,7 +2658,7 @@ export default function App() {
<tr key={`${v.truck_id}-${i}`} className={`border-b border-gray-100 hover:bg-blue-50/50 transition-colors ${i % 2 === 0 ? 'bg-white' : 'bg-gray-50/30'}`}>
<td className="p-2 border-r border-gray-100 font-mono font-bold text-blue-700 text-center">{v.plate_number}</td>
<td className="p-2 border-r border-gray-100 text-gray-600 text-center">{v.customer_name || '—'}</td>
<td className="p-2 text-gray-500 text-center">{v.handover_date || '—'}</td>
<td className="p-2 text-gray-500 text-center">{v.handover_date ? v.handover_date.slice(0, 10) : '—'}</td>
</tr>
))}
</tbody>