修复前端降噪审计问题(frontend-simplification-audit-fixes)

这个提交包含在:
2026-05-29 14:34:06 +08:00
父节点 6cb26798d0
当前提交 7b6e7050d2
共修改 10 个文件,包含 203 行新增和 3 行删除
@@ -6,6 +6,10 @@ import { Textarea } from "../../components/ui/textarea";
type PaymentChannel = "bank" | "alipay" | "wechat" | "cash" | "other";
function todayDateString() {
return new Date().toISOString().slice(0, 10);
}
export type PayPayload = {
paymentVoucherNo: string;
paymentDate: string;
@@ -46,7 +50,7 @@ export function ReimbursementActions({
}: ReimbursementActionsProps) {
const [withdrawComment, setWithdrawComment] = useState("申请撤回并补充说明后重提");
const [paymentVoucherNo, setPaymentVoucherNo] = useState("");
const [paymentDate, setPaymentDate] = useState("2026-02-08");
const [paymentDate, setPaymentDate] = useState(todayDateString);
const [paymentChannel, setPaymentChannel] = useState<PaymentChannel>("bank");
const [paymentNote, setPaymentNote] = useState("");
const canShowSubmit = showSubmitAction && ["draft", "rejected"].includes(status);