优化报销审批证据布局(reimbursement-form-shared-component-migration)

这个提交包含在:
2026-09-02 12:55:24 +08:00
父节点 9fc3b76438
当前提交 4b974fd87c
共修改 17 个文件,包含 291 行新增和 243 行删除
@@ -32,6 +32,7 @@ export interface ReimbursementItemEditorProps {
initialValues: ItemEditorInitialValues;
onSave: (data: ItemEditorSaveData) => void;
onCancel: () => void;
onDelete?: () => void;
isPending: boolean;
}
@@ -44,6 +45,7 @@ export function ReimbursementItemEditor({
initialValues,
onSave,
onCancel,
onDelete,
isPending,
}: ReimbursementItemEditorProps) {
const [expenseTypeId, setExpenseTypeId] = useState(initialValues.expenseTypeId);
@@ -216,6 +218,11 @@ export function ReimbursementItemEditor({
>
取消
</Button>
{mode === "edit" && onDelete ? (
<Button data-testid="reimbursement-item-delete" disabled={isPending} onClick={onDelete} type="button" variant="destructive">
删除明细
</Button>
) : null}
</div>
</div>
);