feat:个人中心完成

This commit is contained in:
李伊帆
2026-09-16 15:21:41 +08:00
parent 56eb59ed5d
commit 8394da7ecb
34 changed files with 3415 additions and 18 deletions

47
src/constants/invoice.ts Normal file
View File

@@ -0,0 +1,47 @@
import type { InvoiceRecordItem, InvoiceRecordStatus } from '@/types/invoice'
export const INVOICE_RECORD_TABS: Array<{ value: InvoiceRecordStatus, label: string }> = [
{ value: 'all', label: '全部' },
{ value: 'invoiced', label: '已开票' },
{ value: 'not_invoiced', label: '未开票' },
{ value: 'invoicing', label: '开票中' },
]
export const INVOICE_RECORD_STATUS_LABEL: Record<InvoiceRecordItem['status'], string> = {
invoiced: '已开票',
not_invoiced: '未开票',
invoicing: '开票中',
}
export const INVOICE_RECORD_LIST: InvoiceRecordItem[] = [
{
id: '1',
title: '第一期·预付款',
ratio: '比例33%',
amount: 20100,
transactionNo: 'T20260819153035678K2M001',
relatedProject: '社区康养智慧系统',
invoiceTime: '2026-08-14 15:00',
status: 'invoiced',
},
{
id: '2',
title: '第一期·预付款',
ratio: '比例33%',
amount: 20100,
transactionNo: 'T20260819153035678K2M002',
relatedProject: '社区康养智慧系统',
invoiceTime: '2026-08-14 15:00',
status: 'invoiced',
},
{
id: '3',
title: '第一期·预付款',
ratio: '比例33%',
amount: 20100,
transactionNo: 'T20260819153035678K2M003',
relatedProject: '社区康养智慧系统',
invoiceTime: '2026-08-14 15:00',
status: 'not_invoiced',
},
]