Commit 4fe51791b57fa0c04fbf8e38bdefb14d2d7186c6
1 parent
afa19485
feat: 银行流水查询条件修改。
Showing
1 changed file
with
29 additions
and
0 deletions
src/pages/Invoice/constant.tsx
@@ -23,6 +23,11 @@ export const INVOICE_STATUS = { | @@ -23,6 +23,11 @@ export const INVOICE_STATUS = { | ||
23 | PARTIAL_VERIFICATION: '部分核销', | 23 | PARTIAL_VERIFICATION: '部分核销', |
24 | }; | 24 | }; |
25 | 25 | ||
26 | +export const BANKSTATEMENT_STATUS = { | ||
27 | + VERIFIED: '已核销', | ||
28 | + ABNORMAL: '异常', | ||
29 | +}; | ||
30 | + | ||
26 | export const INVOICE_COLUMNS = [ | 31 | export const INVOICE_COLUMNS = [ |
27 | { | 32 | { |
28 | dataIndex: 'invoiceId', | 33 | dataIndex: 'invoiceId', |
@@ -130,6 +135,13 @@ export const INVOICE_COLUMNS = [ | @@ -130,6 +135,13 @@ export const INVOICE_COLUMNS = [ | ||
130 | }, | 135 | }, |
131 | ]; | 136 | ]; |
132 | 137 | ||
138 | +const convertToObjectWithTextAndStatus = (obj) => { | ||
139 | + const newObj = {}; | ||
140 | + for (const [key, value] of Object.entries(obj)) { | ||
141 | + newObj[key] = { text: value, status: key }; | ||
142 | + } | ||
143 | + return newObj; | ||
144 | +}; | ||
133 | export const BANK_STATEMENT_COLUMNS = [ | 145 | export const BANK_STATEMENT_COLUMNS = [ |
134 | { | 146 | { |
135 | dataIndex: 'id', | 147 | dataIndex: 'id', |
@@ -147,6 +159,13 @@ export const BANK_STATEMENT_COLUMNS = [ | @@ -147,6 +159,13 @@ export const BANK_STATEMENT_COLUMNS = [ | ||
147 | valueType: 'select', | 159 | valueType: 'select', |
148 | width: 100, | 160 | width: 100, |
149 | editable: false, | 161 | editable: false, |
162 | + hideInSearch: true, | ||
163 | + }, | ||
164 | + { | ||
165 | + title: '状态', | ||
166 | + width: 80, | ||
167 | + dataIndex: 'status', | ||
168 | + valueEnum: convertToObjectWithTextAndStatus(BANKSTATEMENT_STATUS), | ||
150 | }, | 169 | }, |
151 | { | 170 | { |
152 | dataIndex: 'serialNumber', | 171 | dataIndex: 'serialNumber', |
@@ -183,6 +202,13 @@ export const BANK_STATEMENT_COLUMNS = [ | @@ -183,6 +202,13 @@ export const BANK_STATEMENT_COLUMNS = [ | ||
183 | title: '收款方', | 202 | title: '收款方', |
184 | valueType: 'text', | 203 | valueType: 'text', |
185 | width: 100, | 204 | width: 100, |
205 | + hideInSearch: true, | ||
206 | + }, | ||
207 | + { | ||
208 | + title: '收款方', | ||
209 | + width: 80, | ||
210 | + dataIndex: 'payee', | ||
211 | + valueEnum: convertToObjectWithTextAndStatus(PAYEE_OPTIONS), | ||
186 | }, | 212 | }, |
187 | { | 213 | { |
188 | dataIndex: 'payer', | 214 | dataIndex: 'payer', |
@@ -195,17 +221,20 @@ export const BANK_STATEMENT_COLUMNS = [ | @@ -195,17 +221,20 @@ export const BANK_STATEMENT_COLUMNS = [ | ||
195 | title: '金额', | 221 | title: '金额', |
196 | valueType: 'text', | 222 | valueType: 'text', |
197 | width: 100, | 223 | width: 100, |
224 | + hideInSearch: true, | ||
198 | }, | 225 | }, |
199 | { | 226 | { |
200 | dataIndex: 'remark', | 227 | dataIndex: 'remark', |
201 | title: '备注', | 228 | title: '备注', |
202 | valueType: 'text', | 229 | valueType: 'text', |
203 | width: 100, | 230 | width: 100, |
231 | + hideInSearch: true, | ||
204 | }, | 232 | }, |
205 | { | 233 | { |
206 | dataIndex: 'remarkNote', | 234 | dataIndex: 'remarkNote', |
207 | title: '附言', | 235 | title: '附言', |
208 | valueType: 'text', | 236 | valueType: 'text', |
209 | width: 100, | 237 | width: 100, |
238 | + hideInSearch: true, | ||
210 | }, | 239 | }, |
211 | ]; | 240 | ]; |