chore: add env example and fix default sort order
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ const COLUMNS = [
|
||||
{ key: "paichan", label: "排产号", mono: true, align: "left" },
|
||||
{ key: "zongpai", label: "总排号", mono: true, align: "left" },
|
||||
{ key: "workshop", label: "车间", align: "left" },
|
||||
{ key: "model", label: "产品型号", align: "left" },
|
||||
{ key: "model", label: "产品型号", strong: true, align: "left" },
|
||||
{ key: "range", label: "量程", align: "left" },
|
||||
{ key: "qty", label: "数量", num: true, align: "right" },
|
||||
{ key: "boxNo", label: "箱号", mono: true, align: "left" },
|
||||
@@ -374,7 +374,9 @@ export default function WarehouseDashboard() {
|
||||
const align = col.align === "right" ? "text-right" : "text-left";
|
||||
const font = col.mono ? "font-mono" : "";
|
||||
const num = col.num ? "tabular-nums" : "";
|
||||
const color = col.mono ? "text-slate-600" : "text-slate-700";
|
||||
const color = col.strong
|
||||
? "font-medium text-slate-900"
|
||||
: col.mono ? "text-slate-600" : "text-slate-700";
|
||||
return (
|
||||
<td key={col.key} className={`whitespace-nowrap border-b border-slate-100 px-4 py-2.5 ${align} ${font} ${num} ${color}`}>
|
||||
{empty ? <span className="text-slate-300">—</span> : String(raw)}
|
||||
|
||||
Reference in New Issue
Block a user