constant.tsx
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
export type InvoiceItem = {
id: number; //id
invoiceStatus: string; //发票类型:专票/普票
invoiceNumber: string; //发票号码
status: string; //状态
purchaser: string; //购买方
payee: string; //收款单位
contacts: string; //联系人
sale: string; //销售
money: number; //金额
invoicingTime: string; //开票日期
collectionTime: string; //收款时间
notes: string; //备注
};
export const INVOICE_COLUMNS = [
{
dataIndex: 'invoiceNumber',
title: '发票号码',
valueType: 'text',
width: 100,
},
{
dataIndex: 'invoiceStatus',
title: '发票类型',
valueType: 'select',
width: 100,
},
{
title: '状态',
dataIndex: 'status',
valueType: 'text',
width: 100,
},
{
title: '购买方',
dataIndex: 'purchaser',
valueType: 'text',
width: 180,
},
{
title: '收款单位',
dataIndex: 'payee',
valueType: 'text',
width: 180,
},
{
title: '联系人',
dataIndex: 'contacts',
valueType: 'text',
width: 100,
},
{
title: '销售',
dataIndex: 'sale',
valueType: 'text',
width: 100,
},
{
title: '金额',
dataIndex: 'money',
valueType: 'money',
width: 100,
},
{
title: '开票日期',
dataIndex: 'invoicingTime',
valueType: 'date',
width: 150,
},
{
title: '收款时间',
dataIndex: 'collectionTime',
valueType: 'dateTime',
width: 200,
},
{
title: '备注',
dataIndex: 'notes',
valueType: 'text',
width: 250,
},
];
export const INVOICE_STATUS = {
UNVERIFIED: '未核销',
VERIFIED: '已核销',
};