carrier.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import tools from 'submodule/utils/tools'
  2. const dr = tools.getDateRange()
  3. var getDate = () => {
  4. return [dr.startdate, dr.enddate]
  5. }
  6. export default {
  7. carrier_account: [
  8. {
  9. field: 'orgName',
  10. name: '物流公司名称',
  11. search: { type: 'text', placeholder: '请输入 物流公司' }
  12. },
  13. {
  14. field: 'tradeType',
  15. name: '物流充值交易模式',
  16. width: 80,
  17. formatter: 'tradeType',
  18. search: { type: 'select', obj: 'searchTradeType', placeholder: '物流充值交易模式', style: 'width:210px' }
  19. },
  20. {
  21. field: 'p2pEnable',
  22. name: '物流充值工具',
  23. formatter: 'p2pEnable',
  24. search: { type: 'select', obj: 'p2pEnable', placeholder: '物流充值工具' }
  25. },
  26. {
  27. field: 'otherPay',
  28. name: '其他付款启用状态',
  29. width: 80,
  30. stype: 'slot',
  31. slot: 'otherPay',
  32. search: { type: 'select', obj: 'otherPay', placeholder: '其他付款启用状态', style: 'width:210px' }
  33. },
  34. {
  35. field: 'rechargeAmount',
  36. name: '近 30 日充值(元)',
  37. stype: 'slot',
  38. slot: 'rechargeAmount'
  39. },
  40. {
  41. field: 'mainAccountBalance',
  42. name: '主户余额(元)'
  43. },
  44. {
  45. field: 'truckBalance',
  46. name: '车辆总余额(元)'
  47. },
  48. {
  49. field: 'updateDate',
  50. name: '更新时间',
  51. stype: 'format',
  52. formatFun: 'formateTData all'
  53. },
  54. {
  55. name: '操作',
  56. stype: 'opt',
  57. list: [{ type: 'set', name: '设置' }, { type: 'refresh', name: '刷新' }]
  58. }
  59. ],
  60. get recharge_log() {
  61. return [
  62. { field: 'createDate', hide: true, search: { type: 'date-picker', model: '', value: getDate(), dtime: ['00:00:00', '23:59:59'], findField: 'createDate', clearable: false } },
  63. {
  64. field: 'orgName',
  65. name: '物流公司名称',
  66. search: { type: 'text', placeholder: '请输入 物流公司' }
  67. },
  68. {
  69. field: 'changeAmount',
  70. name: '充值金额(元)'
  71. },
  72. {
  73. field: 'rechargeType',
  74. name: '充值工具',
  75. formatter: 'rechargeType',
  76. search: { type: 'select', obj: 'rechargeType', placeholder: '充值工具' }
  77. },
  78. { field: 'createDate', width: 140, name: '记录时间', stype: 'format', formatFun: 'formateTData all' }
  79. ]
  80. }
  81. }