refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components

This commit is contained in:
2026-06-11 18:02:02 +08:00
parent 44ad51698f
commit 1eb6702c51
54 changed files with 1888 additions and 1103 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import { Plus } from "lucide-react";
import { useEffect, useMemo, useState } from "react";
import { useEffect, useMemo, useState, type ReactNode } from "react";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
@@ -51,6 +51,7 @@ type SettlementPeriodWorkbenchProps = {
currencyCode: string;
canManage: boolean;
periods: SettlementPeriodRow[];
headerActions?: ReactNode;
onViewDetail: (periodId: number) => void;
onReloadPeriods: () => Promise<SettlementPeriodRow[]>;
onPeriodOpened?: (periodId: number) => void;
@@ -62,6 +63,7 @@ export function SettlementPeriodWorkbench({
currencyCode,
canManage,
periods,
headerActions,
onViewDetail,
onReloadPeriods,
onPeriodOpened,
@@ -257,6 +259,7 @@ export function SettlementPeriodWorkbench({
<AdminPageCard
title={t("periodTable.title", { defaultValue: "账期管理" })}
description={cardDescription}
actions={headerActions}
>
<div className="admin-list-toolbar">
<div className="admin-list-field">