Commit d49fb0f1a206cc57ba3ff124610551bf5bf3f9f6
1 parent
6cf7bc97
fix: 增加两列包装费,包装费用总数
Showing
1 changed file
with
24 additions
and
22 deletions
src/views/project/order/tableData.tsx
@@ -291,28 +291,30 @@ export const ORDER_LIST_PROFIT_FIELDS = [ | @@ -291,28 +291,30 @@ export const ORDER_LIST_PROFIT_FIELDS = [ | ||
291 | // : ''; | 291 | // : ''; |
292 | }, | 292 | }, |
293 | }, | 293 | }, |
294 | - // { | ||
295 | - // title: '包装费用$', | ||
296 | - // width: 150, | ||
297 | - // dataIndex: 'packetPrice', | ||
298 | - // customRender: (column) => { | ||
299 | - // const { record } = column || {}; | ||
300 | - // return record?.profitAnalysisInfo?.packetPrice !== undefined; | ||
301 | - // // ? `$ ${record?.profitAnalysisInfo?.packetPrice}` | ||
302 | - // // : ''; | ||
303 | - // }, | ||
304 | - // }, | ||
305 | - // { | ||
306 | - // title: '包装费用合计$', | ||
307 | - // width: 150, | ||
308 | - // dataIndex: 'packetTotalPrice', | ||
309 | - // customRender: (column) => { | ||
310 | - // const { record } = column || {}; | ||
311 | - // return record?.profitAnalysisInfo?.packetTotalPrice !== undefined; | ||
312 | - // // ? '$ ' + record?.profitAnalysisInfo?.packetTotalPrice.toFixed(2) | ||
313 | - // // : ''; | ||
314 | - // }, | ||
315 | - // }, | 294 | + { |
295 | + title: '包装费用$', | ||
296 | + width: 150, | ||
297 | + dataIndex: 'packetPrice', | ||
298 | + customRender: (column) => { | ||
299 | + const { record } = column || {}; | ||
300 | + return record?.profitAnalysisInfo?.packetPrice; | ||
301 | + // ? `$ ${record?.profitAnalysisInfo?.packetPrice}` | ||
302 | + // : ''; | ||
303 | + }, | ||
304 | + }, | ||
305 | + { | ||
306 | + title: '包装费用合计$', | ||
307 | + width: 150, | ||
308 | + dataIndex: 'packetTotalPrice', | ||
309 | + customRender: (column) => { | ||
310 | + const { record } = column || {}; | ||
311 | + return record?.profitAnalysisInfo?.packetTotalPrice !== undefined | ||
312 | + ? record?.profitAnalysisInfo?.packetTotalPrice.toFixed(2) | ||
313 | + : ''; | ||
314 | + // ? '$ ' + record?.profitAnalysisInfo?.packetTotalPrice.toFixed(2) | ||
315 | + // : ''; | ||
316 | + }, | ||
317 | + }, | ||
316 | { | 318 | { |
317 | title: '汇率', | 319 | title: '汇率', |
318 | width: 150, | 320 | width: 150, |