R102/A1-A8 优化报销主流程

这个提交包含在:
2026-05-06 23:06:12 +08:00
父节点 ed35967a65
当前提交 9a9def6286
共修改 10 个文件,包含 608 行新增和 54 行删除
@@ -72,24 +72,26 @@ export function ReimbursementActions({
</p>
) : null}
<div className="space-y-2 rounded-lg border border-zinc-200 p-4">
<p className="text-sm font-medium text-zinc-800">撤回报销</p>
<Textarea
data-testid="reimbursement-withdraw-comment"
onChange={(event) => setWithdrawComment(event.target.value)}
rows={2}
value={withdrawComment}
/>
<Button
data-testid="reimbursement-withdraw"
variant="secondary"
disabled={isPending || status !== "reviewing" || withdrawComment.trim().length < 1}
onClick={() => onWithdraw(withdrawComment.trim())}
type="button"
>
撤回
</Button>
</div>
{status === "reviewing" ? (
<div className="space-y-2 rounded-lg border border-zinc-200 p-4">
<p className="text-sm font-medium text-zinc-800">撤回报销</p>
<Textarea
data-testid="reimbursement-withdraw-comment"
onChange={(event) => setWithdrawComment(event.target.value)}
rows={2}
value={withdrawComment}
/>
<Button
data-testid="reimbursement-withdraw"
variant="secondary"
disabled={isPending || withdrawComment.trim().length < 1}
onClick={() => onWithdraw(withdrawComment.trim())}
type="button"
>
撤回
</Button>
</div>
) : null}
{canPay ? (
<div className="space-y-2 rounded-lg border border-zinc-200 p-4">
@@ -114,11 +116,11 @@ export function ReimbursementActions({
}
value={paymentChannel}
>
<option value="bank">bank</option>
<option value="alipay">alipay</option>
<option value="wechat">wechat</option>
<option value="cash">cash</option>
<option value="other">other</option>
<option value="bank">银行转账</option>
<option value="alipay">支付宝</option>
<option value="wechat">微信</option>
<option value="cash">现金</option>
<option value="other">其他</option>
</select>
<Button
data-testid="reimbursement-pay"