1
This commit is contained in:
+13
-13
File diff suppressed because one or more lines are too long
Vendored
+35
-35
@@ -1,36 +1,36 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==" id="favicon" />
|
||||
<script>
|
||||
// 立即从 localStorage 设置 favicon,避免闪烁
|
||||
(function() {
|
||||
try {
|
||||
var cached = localStorage.getItem('siteInfo');
|
||||
if (cached) {
|
||||
var info = JSON.parse(cached);
|
||||
if (info.siteLogo) {
|
||||
var link = document.getElementById('favicon');
|
||||
link.href = info.siteLogo;
|
||||
link.type = 'image/png';
|
||||
}
|
||||
if (info.siteName) {
|
||||
document.title = info.siteName;
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
|
||||
<title>民众智创</title>
|
||||
<script type="module" crossorigin src="/assets/index-iE7Cff-b.js"></script>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==" id="favicon" />
|
||||
<script>
|
||||
// 立即从 localStorage 设置 favicon,避免闪烁
|
||||
(function() {
|
||||
try {
|
||||
var cached = localStorage.getItem('siteInfo');
|
||||
if (cached) {
|
||||
var info = JSON.parse(cached);
|
||||
if (info.siteLogo) {
|
||||
var link = document.getElementById('favicon');
|
||||
link.href = info.siteLogo;
|
||||
link.type = 'image/png';
|
||||
}
|
||||
if (info.siteName) {
|
||||
document.title = info.siteName;
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
|
||||
<title>民众智创</title>
|
||||
<script type="module" crossorigin src="/assets/index-DUrk5OjS.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DtYH0-uL.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>␍
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -8,12 +8,15 @@ interface InvoiceRecord {
|
||||
orderNo: string;
|
||||
orderType: string;
|
||||
amount: number;
|
||||
createTime: string;
|
||||
createTime?: string;
|
||||
createdAt?: string;
|
||||
status: 'pending' | 'processing' | 'issued' | 'rejected';
|
||||
headerName?: string;
|
||||
headerType?: string;
|
||||
headerTaxNo?: string;
|
||||
selectedOrders?: any[];
|
||||
email?: string;
|
||||
failureReason?: string;
|
||||
}
|
||||
|
||||
interface InvoiceHeader {
|
||||
@@ -95,14 +98,14 @@ const InvoicePage: React.FC = () => {
|
||||
setRecordsLoading(true);
|
||||
try {
|
||||
const data = await getInvoices({ page: 1, pageSize: 50 });
|
||||
const items = (data.items || []).map((item: any) => ({
|
||||
const items: InvoiceRecord[] = (data.items || []).map((item: any) => ({
|
||||
id: item.id,
|
||||
orderNo: item.invoiceNo,
|
||||
orderType: item.headerType === 'company' ? '企业' : '个人',
|
||||
amount: item.totalAmount,
|
||||
createdAt: item.createdAt,
|
||||
// 后端状态映射:processing→processing, success→issued, failed→rejected
|
||||
status: item.status === 'success' ? 'issued' : item.status === 'failed' ? 'rejected' : 'processing',
|
||||
status: (item.status === 'success' ? 'issued' : item.status === 'failed' ? 'rejected' : 'processing') as InvoiceRecord['status'],
|
||||
headerName: item.headerName,
|
||||
headerType: item.headerType,
|
||||
headerTaxNo: item.headerTaxNo,
|
||||
|
||||
Reference in New Issue
Block a user