fix(filter): daterangeinput
This commit is contained in:
@@ -399,7 +399,7 @@ export default function PersonReportPage() {
|
||||
title: "工时",
|
||||
width: 90,
|
||||
sortable: true,
|
||||
footer: sum(records.map((r) => r.work_time ?? 0)),
|
||||
footer: sum(records.map((r) => r.work_time ?? 0)).toLocaleString(),
|
||||
},
|
||||
{ accessor: "rate", title: "额定倍率", width: 90 },
|
||||
{
|
||||
@@ -407,28 +407,30 @@ export default function PersonReportPage() {
|
||||
title: "标准量",
|
||||
width: 90,
|
||||
sortable: true,
|
||||
footer: sum(records.map((r) => r.standard_size ?? 0)),
|
||||
footer: sum(records.map((r) => r.standard_size ?? 0)).toLocaleString(),
|
||||
},
|
||||
{
|
||||
accessor: "completed_size",
|
||||
title: "完成量",
|
||||
width: 90,
|
||||
sortable: true,
|
||||
footer: sum(records.map((r) => r.completed_size ?? 0)),
|
||||
footer: sum(records.map((r) => r.completed_size ?? 0)).toLocaleString(),
|
||||
},
|
||||
{
|
||||
accessor: "residual_size",
|
||||
title: "余量",
|
||||
width: 90,
|
||||
sortable: true,
|
||||
footer: sum(records.map((r) => r.residual_size ?? 0)),
|
||||
footer: sum(records.map((r) => r.residual_size ?? 0)).toLocaleString(),
|
||||
},
|
||||
{
|
||||
accessor: "residual_work_time",
|
||||
title: "余量工时",
|
||||
width: 110,
|
||||
sortable: true,
|
||||
footer: sum(records.map((r) => r.residual_work_time ?? 0)),
|
||||
footer: sum(
|
||||
records.map((r) => r.residual_work_time ?? 0)
|
||||
).toLocaleString(),
|
||||
},
|
||||
{
|
||||
accessor: "remarks",
|
||||
@@ -437,6 +439,7 @@ export default function PersonReportPage() {
|
||||
render: (record) => (
|
||||
<Text
|
||||
size="sm"
|
||||
title={record.remarks ?? "-"}
|
||||
className={classes.ellipsisText}
|
||||
style={{ maxWidth: 200 }}>
|
||||
{record.remarks ?? "-"}
|
||||
|
||||
Reference in New Issue
Block a user