Blame view

src/pages/Invoice/constant.tsx 5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 = [
  {
zhongnanhuang authored
18
19
20
21
22
23
24
25
    dataIndex: 'invoiceId',
    title: 'id',
    valueType: 'text',
    hideInTable: true,
    hideInSearch: true,
    width: 100,
  },
  {
26
27
28
    dataIndex: 'invoiceNumber',
    title: '发票号码',
    valueType: 'text',
zhongnanhuang authored
29
    width: 100,
30
31
32
33
34
  },
  {
    dataIndex: 'invoiceStatus',
    title: '发票类型',
    valueType: 'select',
zhongnanhuang authored
35
    width: 100,
36
37
38
39
40
  },
  {
    title: '状态',
    dataIndex: 'status',
    valueType: 'text',
zhongnanhuang authored
41
    width: 100,
42
43
44
45
46
  },
  {
    title: '购买方',
    dataIndex: 'purchaser',
    valueType: 'text',
zhongnanhuang authored
47
    width: 180,
48
49
50
51
52
  },
  {
    title: '收款单位',
    dataIndex: 'payee',
    valueType: 'text',
zhongnanhuang authored
53
    width: 180,
54
55
56
57
58
  },
  {
    title: '联系人',
    dataIndex: 'contacts',
    valueType: 'text',
zhongnanhuang authored
59
    width: 100,
60
61
62
63
64
  },
  {
    title: '销售',
    dataIndex: 'sale',
    valueType: 'text',
zhongnanhuang authored
65
    width: 100,
66
67
68
69
70
  },
  {
    title: '金额',
    dataIndex: 'money',
    valueType: 'money',
zhongnanhuang authored
71
    width: 100,
72
73
74
75
76
  },
  {
    title: '开票日期',
    dataIndex: 'invoicingTime',
    valueType: 'date',
zhongnanhuang authored
77
    width: 150,
78
79
80
81
82
  },
  {
    title: '收款时间',
    dataIndex: 'collectionTime',
    valueType: 'dateTime',
zhongnanhuang authored
83
    width: 200,
84
85
86
87
88
  },
  {
    title: '备注',
    dataIndex: 'notes',
    valueType: 'text',
zhongnanhuang authored
89
    width: 250,
90
91
  },
];
92
93
94
95

export const INVOICE_STATUS = {
  UNVERIFIED: '未核销',
  VERIFIED: '已核销',
zhongnanhuang authored
96
  ABNORMAL: '异常',
97
};
zhongnanhuang authored
98
99
100
101
102
103
104
105

export const BANK_STATEMENT_COLUMNS = [
  {
    dataIndex: 'id',
    title: '主键ID',
    valueType: 'text',
    width: 100,
    hideInTable: true,
zhongnanhuang authored
106
    hideInSearch: true,
zhongnanhuang authored
107
    editable: false,
zhongnanhuang authored
108
109
110
111
112
113
  },
  {
    dataIndex: 'status',
    title: '状态',
    valueType: 'text',
    width: 100,
zhongnanhuang authored
114
    editable: false,
zhongnanhuang authored
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
  },
  {
    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: 'text',
    width: 100,
  },
  {
    dataIndex: 'transactionTime',
    title: '交易时间',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'transactionType',
    title: '交易类型',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'transactionBankBranch',
    title: '交易行所',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'valueDate',
    title: '起息日',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'loanAmount',
    title: '贷方金额',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'borrowedAmount',
    title: '借方金额',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'transactionAmount',
    title: '交易金额',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'balance',
    title: '余额',
    valueType: 'text',
    width: 100,
  },
  {
    dataIndex: 'actualPaymentAmount',
    title: '实付金额',
    valueType: 'text',
    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,
  },
];