carrier.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. /** 物流审核 */
  8. get page_list_unauth_carrier() {
  9. return [
  10. {
  11. field: 'orgName',
  12. name: '物流公司名称',
  13. search: { type: 'text', placeholder: '请输入 公司名称' }
  14. },
  15. {
  16. field: 'authStatus',
  17. name: '企业认证',
  18. stype: 'slot',
  19. slot: 'authStatus'
  20. },
  21. {
  22. field: 'roadTransportStatus',
  23. name: '资质审核',
  24. stype: 'slot',
  25. slot: 'roadTransportStatus',
  26. search: { type: 'select', obj: 'roadTransportStatus', placeholder: '资质审核状态' }
  27. },
  28. {
  29. field: 'createrName',
  30. name: '发起人'
  31. },
  32. {
  33. field: 'updateDate',
  34. name: '更新时间',
  35. formatFun: 'formateTData all',
  36. stype: 'format'
  37. },
  38. {
  39. field: 'useropts',
  40. stype: 'opt',
  41. ispush: false,
  42. name: '操作',
  43. fixed: 'right',
  44. list(args) {
  45. const rv = [{ type: 'details', name: '详情' }]
  46. if (args.row.roadTransportStatus === 1) {
  47. rv.unshift({ type: 'review', name: '审核' })
  48. }
  49. return rv
  50. }
  51. }
  52. ]
  53. },
  54. /** 物流公司资料 */
  55. get page_list_carrier() {
  56. return [
  57. {
  58. field: 'orgName',
  59. name: '物流公司名称',
  60. search: { type: 'text', placeholder: '请输入 公司名称' },
  61. width: '200px'
  62. },
  63. {
  64. field: 'status',
  65. name: '物流公司启用状态',
  66. stype: 'slot',
  67. slot: 'status',
  68. search: { type: 'select', obj: 'status', placeholder: '公司启用状态' },
  69. width: '80px'
  70. },
  71. {
  72. field: 'tradeType',
  73. name: '物流充值交易模式',
  74. stype: 'slot',
  75. slot: 'tradeType',
  76. search: { type: 'select', obj: 'tradeType', placeholder: '物流充值交易模式', style: 'width:210px' },
  77. width: '80px'
  78. },
  79. {
  80. field: 'authStatus',
  81. name: '企业认证',
  82. stype: 'slot',
  83. slot: 'authStatus'
  84. },
  85. {
  86. field: 'roadTransportStatus',
  87. name: '资质审核',
  88. stype: 'slot',
  89. slot: 'roadTransportStatus'
  90. },
  91. {
  92. field: 'contractStatus',
  93. name: '合同签约',
  94. stype: 'slot',
  95. slot: 'contractStatus'
  96. },
  97. {
  98. field: 'authorizeStatus',
  99. name: '平台账户授权',
  100. stype: 'slot',
  101. slot: 'authorizeStatus'
  102. },
  103. {
  104. field: 'accountStatus',
  105. name: '平台提现公户',
  106. stype: 'slot',
  107. slot: 'accountStatus'
  108. },
  109. {
  110. field: 'createrName',
  111. name: '创建人',
  112. width: '200px'
  113. },
  114. {
  115. field: 'updateDate',
  116. name: '更新时间',
  117. formatFun: 'formateTData all',
  118. stype: 'format',
  119. width: '140px'
  120. },
  121. {
  122. field: 'useropts',
  123. stype: 'opt',
  124. name: '操作',
  125. fixed: 'right',
  126. list: [{ type: 'details', name: '详情' }]
  127. }
  128. ]
  129. },
  130. /** 物流资金管理 */
  131. get carrier_account() {
  132. return [
  133. {
  134. field: 'orgName',
  135. name: '物流公司名称',
  136. search: { type: 'text', placeholder: '请输入 物流公司' }
  137. },
  138. {
  139. field: 'tradeType',
  140. name: '物流充值交易模式',
  141. width: 80,
  142. formatter: 'tradeType',
  143. search: { type: 'select', obj: 'searchTradeType', placeholder: '物流充值交易模式', style: 'width:210px' }
  144. },
  145. {
  146. field: 'p2pEnable',
  147. name: '物流充值工具',
  148. formatter: 'p2pEnable',
  149. search: { type: 'select', obj: 'p2pEnable', placeholder: '物流充值工具' }
  150. },
  151. {
  152. field: 'otherPay',
  153. name: '其他付款启用状态',
  154. width: 80,
  155. stype: 'slot',
  156. slot: 'otherPay',
  157. search: { type: 'select', obj: 'otherPay', placeholder: '其他付款启用状态', style: 'width:210px' }
  158. },
  159. {
  160. field: 'rechargeAmount',
  161. name: '近 30 日充值(元)',
  162. stype: 'slot',
  163. slot: 'rechargeAmount'
  164. },
  165. {
  166. field: 'mainAccountBalance',
  167. name: '主户余额(元)'
  168. },
  169. {
  170. field: 'truckBalance',
  171. name: '车辆总余额(元)'
  172. },
  173. {
  174. field: 'updateDate',
  175. name: '更新时间',
  176. stype: 'format',
  177. formatFun: 'formateTData all'
  178. },
  179. {
  180. name: '操作',
  181. stype: 'opt',
  182. list: [{ type: 'set', name: '设置' }, { type: 'refresh', name: '刷新' }]
  183. }
  184. ]
  185. },
  186. /** 物流资金管理 · 物流充值记录 */
  187. get recharge_log() {
  188. return [
  189. { field: 'createDate', hide: true, search: { type: 'date-picker', model: '', value: getDate(), dtime: ['00:00:00', '23:59:59'], findField: 'createDate', clearable: false } },
  190. {
  191. field: 'orgName',
  192. name: '物流公司名称',
  193. search: { type: 'text', placeholder: '请输入 物流公司' }
  194. },
  195. {
  196. field: 'changeAmount',
  197. name: '充值金额(元)'
  198. },
  199. {
  200. field: 'rechargeType',
  201. name: '充值工具',
  202. formatter: 'rechargeType',
  203. search: { type: 'select', obj: 'rechargeType', placeholder: '充值工具' }
  204. },
  205. { field: 'createDate', width: 140, name: '记录时间', stype: 'format', formatFun: 'formateTData all' }
  206. ]
  207. }
  208. }