feat: 创建三步式快速记账表单组件,支持金额、类型、分类、账户、备注和标签等录入。
This commit is contained in:
@@ -241,11 +241,6 @@ export const TransactionForm: React.FC<TransactionFormProps> = ({
|
||||
);
|
||||
|
||||
// Helpers
|
||||
const toLocalISOString = (date: Date) => {
|
||||
const pad = (n: number) => n.toString().padStart(2, '0');
|
||||
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
||||
};
|
||||
|
||||
const selectedAccount = accounts.find((a) => a.id === formData.accountId);
|
||||
const selectedCategory = categories.find((c) => c.id === formData.categoryId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user