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 | 23 | PARTIAL_VERIFICATION: '部分核销', |
24 | 24 | }; |
25 | 25 | |
26 | +export const BANKSTATEMENT_STATUS = { | |
27 | + VERIFIED: '已核销', | |
28 | + ABNORMAL: '异常', | |
29 | +}; | |
30 | + | |
26 | 31 | export const INVOICE_COLUMNS = [ |
27 | 32 | { |
28 | 33 | dataIndex: 'invoiceId', |
... | ... | @@ -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 | 145 | export const BANK_STATEMENT_COLUMNS = [ |
134 | 146 | { |
135 | 147 | dataIndex: 'id', |
... | ... | @@ -147,6 +159,13 @@ export const BANK_STATEMENT_COLUMNS = [ |
147 | 159 | valueType: 'select', |
148 | 160 | width: 100, |
149 | 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 | 171 | dataIndex: 'serialNumber', |
... | ... | @@ -183,6 +202,13 @@ export const BANK_STATEMENT_COLUMNS = [ |
183 | 202 | title: '收款方', |
184 | 203 | valueType: 'text', |
185 | 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 | 214 | dataIndex: 'payer', |
... | ... | @@ -195,17 +221,20 @@ export const BANK_STATEMENT_COLUMNS = [ |
195 | 221 | title: '金额', |
196 | 222 | valueType: 'text', |
197 | 223 | width: 100, |
224 | + hideInSearch: true, | |
198 | 225 | }, |
199 | 226 | { |
200 | 227 | dataIndex: 'remark', |
201 | 228 | title: '备注', |
202 | 229 | valueType: 'text', |
203 | 230 | width: 100, |
231 | + hideInSearch: true, | |
204 | 232 | }, |
205 | 233 | { |
206 | 234 | dataIndex: 'remarkNote', |
207 | 235 | title: '附言', |
208 | 236 | valueType: 'text', |
209 | 237 | width: 100, |
238 | + hideInSearch: true, | |
210 | 239 | }, |
211 | 240 | ]; | ... | ... |