constant.tsx
6.73 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
import { enumToProTableEnumValue } from '@/utils';
import { PAYEE_OPTIONS } from '../Order/constant';
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_STATUS = {
UNVERIFIED: '未核销',
VERIFIED: '已核销',
ABNORMAL: '异常',
PARTIAL_VERIFICATION: '部分核销',
};
export const INVOICE_COLUMNS = [
{
dataIndex: 'invoiceId',
title: 'id',
valueType: 'text',
hideInTable: true,
hideInSearch: true,
width: 100,
},
{
dataIndex: 'invoiceNumber',
title: '发票号码',
valueType: 'text',
width: 100,
},
{
dataIndex: 'invoiceStatus',
title: '发票类型',
valueType: 'select',
width: 100,
valueEnum: enumToProTableEnumValue({
SPECIALLY_INVOICED: '专票',
COMMON_INVOICED: '普票',
}),
},
{
title: '状态',
dataIndex: 'status',
valueType: 'text',
width: 100,
valueEnum: enumToProTableEnumValue({
UNVERIFIED: '未核销',
VERIFIED: '已核销',
PARTIAL_VERIFICATION: '部分核销',
}),
},
{
title: '购买方',
dataIndex: 'purchaser',
valueType: 'text',
width: 180,
},
{
title: '收款单位',
dataIndex: 'payee',
valueType: 'text',
width: 180,
valueEnum: enumToProTableEnumValue(PAYEE_OPTIONS),
},
{
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: 'dateRange',
width: 150,
search: {
transform: (value) => {
if (value) {
return {
invoicingBeginTime: value[0],
invoicingEndTime: value[1],
};
}
},
},
},
{
title: '收款时间',
dataIndex: 'collectionTime',
valueType: 'dateRange',
width: 200,
search: {
transform: (value) => {
if (value) {
return {
collectionBeginTime: value[0],
collectionEndTime: value[1],
};
}
},
},
},
{
title: '备注',
dataIndex: 'notes',
valueType: 'text',
width: 250,
},
];
export const BANK_STATEMENT_COLUMNS = [
{
dataIndex: 'id',
title: '编号',
valueType: 'text',
width: 160,
copyable: true,
// hideInTable: true,
// hideInSearch: true,
editable: false,
},
{
dataIndex: 'status',
title: '状态',
valueType: 'select',
width: 100,
editable: false,
valueEnum: enumToProTableEnumValue({
ABNORMAL: '异常',
VERIFIED: '已核销',
}),
},
{
dataIndex: 'serialNumber',
title: '流水号',
valueType: 'text',
width: 100,
},
{
dataIndex: 'merchantOrderNumber',
title: '商户订单号',
valueType: 'text',
width: 100,
},
{
dataIndex: 'bankOrderNumber',
title: '银行订单号',
valueType: 'text',
width: 100,
},
{
dataIndex: 'thirdPartyOrderNumber',
title: '第三方订单号',
valueType: 'text',
width: 100,
},
{
dataIndex: 'accountNumber',
title: '账号',
valueType: 'text',
width: 180,
},
{
dataIndex: 'accountName',
title: '帐号名称',
valueType: 'text',
width: 260,
},
{
dataIndex: 'currency',
title: '币种',
valueType: 'text',
width: 100,
},
{
dataIndex: 'transactionDate',
title: '交易日',
valueType: 'dateRange',
width: 100,
search: {
transform: (value) => {
if (value) {
return {
beginTransactionDate: value[0],
endTransactionDate: value[1],
};
}
},
},
},
{
dataIndex: 'transactionTime',
title: '交易时间',
valueType: 'text',
hideInSearch: true,
width: 100,
},
{
dataIndex: 'transactionType',
title: '交易类型',
valueType: 'text',
width: 100,
},
{
dataIndex: 'transactionBankBranch',
title: '交易行所',
valueType: 'text',
width: 100,
},
{
dataIndex: 'valueDate',
title: '起息日',
valueType: 'dateRange',
width: 100,
search: {
transform: (value) => {
if (value) {
return {
beginValueDate: value[0],
endValueDate: value[1],
};
}
},
},
},
{
dataIndex: 'loanAmount',
title: '贷方金额',
valueType: 'money',
width: 100,
},
{
dataIndex: 'borrowedAmount',
title: '借方金额',
valueType: 'money',
width: 100,
},
{
dataIndex: 'transactionAmount',
title: '交易金额',
valueType: 'money',
width: 100,
},
{
dataIndex: 'balance',
title: '余额',
valueType: 'money',
width: 100,
},
{
dataIndex: 'actualPaymentAmount',
title: '实付金额',
valueType: 'money',
width: 100,
},
{
dataIndex: 'collectionChannel',
title: '收款渠道',
valueType: 'text',
width: 100,
},
{
dataIndex: 'paymentType',
title: '支付类型',
valueType: 'text',
width: 100,
},
{
dataIndex: 'summary',
title: '摘要',
valueType: 'text',
width: 300,
},
{
dataIndex: 'cashier',
title: '收银员',
valueType: 'text',
width: 100,
},
{
dataIndex: 'payeePayerUnit',
title: '收(付)方单位',
valueType: 'text',
width: 260,
},
{
dataIndex: 'payeePayerName',
title: '收(付)方名称',
valueType: 'text',
width: 260,
},
{
dataIndex: 'payeePayerAccountNumber',
title: '收(付)方账号',
valueType: 'text',
width: 260,
},
{
dataIndex: 'payeePayerBankBranchCode',
title: '收(付)方开户行行号',
valueType: 'text',
width: 260,
},
{
dataIndex: 'payeePayerBankName',
title: '收(付)方开户行名',
valueType: 'text',
width: 260,
},
{
dataIndex: 'payeePayerBankAddress',
title: '收(付)方开户行地址',
valueType: 'text',
width: 260,
},
{
dataIndex: 'extendedSummary',
title: '扩展摘要',
valueType: 'text',
width: 100,
},
{
dataIndex: 'transactionAnalysisCode',
title: '交易分析码',
valueType: 'text',
width: 100,
},
{
dataIndex: 'remarkNote',
title: '附言',
valueType: 'text',
width: 100,
},
];