v3.5.8和v3.5.9版本更新
CI / verify (pull_request) Waiting to run

This commit is contained in:
2026-08-25 09:20:32 +08:00
parent 7304c7a8e1
commit 5935024ea8
101 changed files with 7640 additions and 5364 deletions
+9 -3
View File
@@ -30,6 +30,8 @@ import { request } from '../lib/api';
import { fmtTime } from '../lib/constants';
import { useAdminList } from '../lib/useAdminList';
import { uploadFileToOss } from '../lib/upload';
import { useAdminListColumns } from '../lib/useAdminListColumns';
type Row = {
id: string;
@@ -181,7 +183,7 @@ export default function InvoicesPage() {
}
}
const columns: ColumnsType<Row> = [
const baseColumns: ColumnsType<Row> = [
{ title: '申请单号', dataIndex: 'invoiceNo', width: 180 },
{ title: '订单号', dataIndex: 'orderNo', width: 160 },
{
@@ -202,7 +204,7 @@ export default function InvoicesPage() {
? INVOICE_CATEGORY_LABELS[r.invoiceCategory] ?? r.invoiceCategory
: '—',
},
{ title: '名称', dataIndex: 'titleName', ellipsis: true },
{ title: '名称', dataIndex: 'titleName' },
{
title: '状态',
width: 110,
@@ -227,8 +229,11 @@ export default function InvoicesPage() {
},
];
const { columns, settingsButton, settingsModal } = useAdminListColumns('invoices', baseColumns, { page, pageSize });
return (
<div>
{settingsModal}
<div
style={{
display: 'flex',
@@ -240,6 +245,7 @@ export default function InvoicesPage() {
<Typography.Title level={4} style={{ margin: 0 }}>
</Typography.Title>
{settingsButton}
<Button
type="primary"
onClick={() => {
@@ -286,7 +292,7 @@ export default function InvoicesPage() {
loading={loading}
columns={columns}
dataSource={data?.items ?? []}
scroll={{ x: 1000 }}
scroll={{ x: 'max-content' }}
rowClassName={(r) => (r.overdue ? 'ant-table-row-overdue' : '')}
pagination={{
current: page,