feat(table): sum

This commit is contained in:
zhangheng
2026-04-23 17:44:09 +08:00
parent 5b38f684c3
commit 6e20d1996a
2 changed files with 49 additions and 26 deletions

View File

@@ -21,8 +21,10 @@ import {
Text,
TextInput,
} from "@mantine/core"
import { DateInput } from "@mantine/dates"
import { useForm } from "@mantine/form"
import { notifications } from "@mantine/notifications"
import "dayjs/locale/zh-cn"
import { useEffect, useMemo } from "react"
import {
accountTypeOpts,
@@ -365,9 +367,9 @@ export default function DailyReportModal(props: {
<Stack gap="md" className={classes.formPanel}>
<SimpleGrid cols={{ base: 1, sm: 3 }} spacing="sm">
<TextInput label="姓名" value={form.values.user_name} readOnly />
<TextInput
<DateInput
label="日期"
type="date"
locale="zh-cn"
withAsterisk
{...form.getInputProps("date")}
/>