import { useState } from "react"; import type { ReimbursementStatus } from "../../api/reimbursements"; import { Button } from "../../components/ui/button"; import { Input } from "../../components/ui/input"; import { Textarea } from "../../components/ui/textarea"; type PaymentChannel = "bank" | "alipay" | "wechat" | "cash" | "other"; export type PayPayload = { paymentVoucherNo: string; paymentDate: string; paymentChannel: PaymentChannel; }; export interface ReimbursementActionsProps { status: ReimbursementStatus; canPay: boolean; actionError: string; submitDisabled?: boolean; submitHint?: string; submitNotice?: string; isPending: boolean; onSubmit: () => void; onWithdraw: (comment: string) => void; onPay: (payload: PayPayload) => void; } export function ReimbursementActions({ status, canPay, actionError, submitDisabled = false, submitHint = "", submitNotice = "", isPending, onSubmit, onWithdraw, onPay, }: ReimbursementActionsProps) { const [withdrawComment, setWithdrawComment] = useState("申请撤回并补充说明后重提"); const [paymentVoucherNo, setPaymentVoucherNo] = useState(""); const [paymentDate, setPaymentDate] = useState("2026-02-08"); const [paymentChannel, setPaymentChannel] = useState("bank"); return (

可执行动作

{actionError ? (

{actionError}

) : null}
{submitHint ?

{submitHint}

: null} {submitNotice ? (

{submitNotice}

) : null}

撤回报销