recording.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. import { t } from '@/utils/i18n'
  2. export const columnList = {
  3. 1: [
  4. { prop: 'platform', label: t('Ib.Recording.Platform') },
  5. {
  6. prop: 'accountType', label: t('Ib.Recording.AccountType'),
  7. type: 'tag',
  8. tagMap: {
  9. 1: t('AccountType.ClassicAccount'),
  10. 2: t('AccountType.SeniorAccount'),
  11. 7: t('AccountType.StandardAccount'),
  12. 8: t('AccountType.CentAccount'),
  13. },
  14. },
  15. { prop: 'currency', label: t('Ib.Recording.CurrencyType') },
  16. {
  17. prop: 'leverage', label: t('Ib.Recording.Lever'),
  18. formatter: ({ row }) => row.leverage ? `1:${row.leverage}` : '--',
  19. },
  20. { prop: 'commission', label: t('Ib.Recording.Commission') },
  21. { prop: 'addTime', label: t('Ib.Recording.ApplicationDate') },
  22. {
  23. prop: 'status', label: t('Ib.Recording.Status'),
  24. type: 'tag',
  25. tagMap: {
  26. 1: t('State.ToBeProcessed'),
  27. 2: t('State.Completed'),
  28. 3: t('State.Refused'),
  29. },
  30. },
  31. {
  32. prop: 'approveDesc', label: t('Ib.Recording.Note'),
  33. slot: 'approveDesc',
  34. },
  35. ],
  36. 2: [
  37. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  38. {
  39. prop: 'oldLeverage', label: t('Ib.Recording.OldLever'),
  40. formatter: ({ row }) => row.oldLeverage ? `1:${row.oldLeverage}` : '--',
  41. },
  42. {
  43. prop: 'newLeverage', label: t('Ib.Recording.NewLever'),
  44. formatter: ({ row }) => row.newLeverage ? `1:${row.newLeverage}` : '--',
  45. },
  46. { prop: 'addTime', label: t('Ib.Recording.ApplicationDate') },
  47. {
  48. prop: 'status', label: t('Ib.Recording.Status'),
  49. type: 'tag',
  50. tagMap: {
  51. 1: t('State.ToBeProcessed'),
  52. 2: t('State.Completed'),
  53. 3: t('State.Refused'),
  54. },
  55. },
  56. {
  57. prop: 'approveDesc', label: t('Ib.Recording.Note'),
  58. slot: 'approveDesc',
  59. },
  60. ],
  61. 3: [
  62. { prop: 'ibNo', label: t('Ib.Recording.TransferAccounts') },
  63. { prop: 'to', label: t('Ib.Recording.IntoAccount') },
  64. { prop: 'currency', label: t('Ib.Recording.CurrencyType') },
  65. {
  66. prop: 'amount', label: t('Ib.Recording.Amount'),
  67. formatter: ({ row }) => numberFormat(row.amount ?? 0),
  68. },
  69. { prop: 'addTime', label: t('Ib.Recording.ApplicationDate') },
  70. {
  71. prop: 'status', label: t('Ib.Recording.Status'),
  72. type: 'tag',
  73. tagMap: {
  74. 1: t('State.ToBeProcessed'),
  75. 2: t('State.Completed'),
  76. 3: t('State.Refused'),
  77. },
  78. },
  79. {
  80. prop: 'approveDesc', label: t('Ib.Recording.Note'),
  81. slot: 'approveDesc',
  82. },
  83. ],
  84. 4: [
  85. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  86. {
  87. prop: 'loginType', label: t('Ib.Recording.AccountType'),
  88. type: 'tag',
  89. tagMap: {
  90. 1: t('AccountType.ClassicAccount'),
  91. 2: t('AccountType.SeniorAccount'),
  92. 7: t('AccountType.StandardAccount'),
  93. 8: t('AccountType.CentAccount'),
  94. },
  95. },
  96. { prop: 'title', label: t('Label.Describe') },
  97. { prop: 'addTime', label: t('Ib.Recording.ApplicationDate') },
  98. {
  99. prop: 'status', label: t('Ib.Recording.Status'),
  100. type: 'tag',
  101. tagMap: {
  102. 1: t('State.ToBeProcessed'),
  103. 2: t('State.Completed'),
  104. 3: t('State.Refused'),
  105. },
  106. },
  107. {
  108. prop: 'approveDesc', label: t('Ib.Recording.Note'),
  109. slot: 'approveDesc',
  110. },
  111. ],
  112. 5: [
  113. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  114. {
  115. prop: 'oldPoint', label: t('Ib.Recording.OldPoint'),
  116. formatter: ({ row }) => row.oldPoint || '0',
  117. },
  118. {
  119. prop: 'newPoint', label: t('Ib.Recording.NewPoint'),
  120. formatter: ({ row }) => row.newPoint || '0',
  121. },
  122. {
  123. prop: 'oldHide', label: t('Drawer.Label.OldHide'),
  124. formatter: ({ row }) => row.oldHide || '0',
  125. },
  126. {
  127. prop: 'newHide', label: t('Drawer.Label.NewHide'),
  128. formatter: ({ row }) => row.newHide || '0',
  129. },
  130. { prop: 'addTime', label: t('Ib.Recording.ApplicationDate') },
  131. {
  132. prop: 'status', label: t('Ib.Recording.Status'),
  133. type: 'tag',
  134. tagMap: {
  135. 1: t('State.ToBeProcessed'),
  136. 2: t('State.Completed'),
  137. 3: t('State.Refused'),
  138. },
  139. },
  140. {
  141. prop: 'approveDesc', label: t('Ib.Recording.Note'),
  142. slot: 'approveDesc',
  143. },
  144. ],
  145. 6: [
  146. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  147. { prop: 'oldAgentIbNo', label: t('Ib.Recording.OldBelong') },
  148. { prop: 'newAgentIbNo', label: t('Ib.Recording.NewBelong') },
  149. { prop: 'addTime', label: t('Ib.Recording.ApplicationDate') },
  150. {
  151. prop: 'status', label: t('Ib.Recording.Status'),
  152. type: 'tag',
  153. tagMap: {
  154. 1: t('State.ToBeProcessed'),
  155. 2: t('State.Completed'),
  156. 3: t('State.Refused'),
  157. },
  158. },
  159. { prop: 'approveDesc', label: t('Ib.Recording.Note') },
  160. ],
  161. 7: [
  162. { prop: 'typeName', label: t('Label.Type') },
  163. { prop: 'newPercent', label: t('Label.NewPercentage') },
  164. { prop: 'newClassicFx', label: t('Label.NewClassicForex') },
  165. { prop: 'newVipFx', label: t('Label.NewAdvancedForex') },
  166. { prop: 'newClassicCfd', label: t('Label.NewClassicCFD') },
  167. { prop: 'newVipCfd', label: t('Label.NewAdvancedCFD') },
  168. { prop: 'newComPointOne', label: t('Label.NewCommission10') },
  169. { prop: 'newComPointTwo', label: t('Label.NewCommission20') },
  170. { prop: 'newComPointThree', label: t('Label.NewCommission30') },
  171. { prop: 'newInstantFx', label: t('Label.NewSpeedForex') },
  172. { prop: 'newInstantMetal', label: t('Label.NewSpeedMetal') },
  173. ],
  174. 8: [
  175. { prop: 'cId', label: t('Label.CidAccount') },
  176. { prop: 'ibNo', label: t('Label.IBAccount') },
  177. {
  178. prop: 'amount', label: t('Label.AmountMoney'),
  179. formatter: ({ row }) => numberFormat(row.amount ?? '--'),
  180. },
  181. { prop: 'currency', label: t('Label.Currency') },
  182. { prop: 'serial', label: t('Label.SerialNumber') },
  183. {
  184. prop: 'remitChannelName', label: t('Label.WithdrawalWay'),
  185. slot: 'remitChannelName',
  186. },
  187. { prop: 'addTime', label: t('Label.ApplyTime') },
  188. {
  189. prop: 'status', label: t('Label.State'),
  190. slot: 'status',
  191. },
  192. {
  193. prop: 'approveDesc', label: t('Label.Note'),
  194. slot: 'approveDesc',
  195. },
  196. ],
  197. 9: [
  198. { prop: 'cId', label: t('Label.CidAccount') },
  199. { prop: 'mam', label: 'MAM' },
  200. { prop: 'platform', label: t('Label.Platform') },
  201. { prop: 'sub', label: t('Ib.Settings.HangUndo') },
  202. {
  203. prop: 'type', label: t('Label.Type'),
  204. type: 'tag',
  205. tagMap: {
  206. 1: t('Ib.Settings.Hang'),
  207. 2: t('Ib.Settings.Undo'),
  208. },
  209. },
  210. { prop: 'addTime', label: t('Label.ApplyTime') },
  211. {
  212. prop: 'status', label: t('Label.State'),
  213. type: 'tag',
  214. tagMap: {
  215. 1: t('State.ToBeProcessed'),
  216. 2: t('State.Completed'),
  217. 3: t('State.Refused'),
  218. },
  219. },
  220. { prop: 'approveDesc', label: t('Label.Note'), slot: 'approveDesc' },
  221. ],
  222. 10: [
  223. { prop: 'withdrawLogin', label: t('Custom.Recording.TransferAccounts') },
  224. { prop: 'depositLogin', label: t('Custom.Recording.IntoAccount') },
  225. { prop: 'withdrawCurrency', label: t('Custom.Recording.CurrencyType') },
  226. {
  227. prop: 'withdrawAmount', label: t('Custom.Recording.Amount'),
  228. formatter: ({ row }) => numberFormat(row.withdrawAmount ?? '--'),
  229. },
  230. { prop: 'addTime', label: t('Custom.Recording.ApplicationDate') },
  231. {
  232. prop: 'status', label: t('Custom.Recording.Status'),
  233. formatter: ({ row }) => {
  234. if (row.status == 1) {
  235. return t('State.ToBeProcessed')
  236. }
  237. if (row.status == 2 && row.withdrawStatus == 2 &&
  238. row.depositStatus == 2) {
  239. return t('State.Completed')
  240. }
  241. if (row.status == 2 && (row.withdrawStatus == 1 ||
  242. row.depositStatus == 1)) {
  243. return t('State.InTheProcessing')
  244. }
  245. if (row.status == 3 || row.withdrawStatus == 3 || row.depositStatus == 3) {
  246. return t('State.Refused')
  247. }
  248. },
  249. },
  250. { prop: 'approveDesc', label: t('Custom.Recording.Note'), slot: 'approveDesc' },
  251. ],
  252. 11: [
  253. { prop: 'cId', label: t('Label.CidAccount') },
  254. { prop: 'pIbNo', label: t('Label.AttributionNumber') },
  255. { prop: 'email', label: t('Label.Email') },
  256. { prop: 'addTime', label: t('Label.ApplyTime') },
  257. { prop: 'ownerId', label: t('Ib.PammManager.ownerId') },
  258. { prop: 'accountId', label: t('Ib.PammManager.accountId') },
  259. { prop: 'percent', label: t('Ib.PammManager.percent') },
  260. {
  261. prop: 'status', label: t('Label.State'),
  262. type: 'tag',
  263. tagMap: {
  264. 1: t('State.ToBeProcessed'),
  265. 2: t('State.Completed'),
  266. 3: t('State.Refused'),
  267. },
  268. },
  269. { prop: 'approveDesc', label: t('Label.Descr'), slot: 'approveDesc' },
  270. ],
  271. 12: [
  272. { prop: 'cId', label: t('Label.CidAccount') },
  273. { prop: 'pIbNo', label: t('Label.AttributionNumber') },
  274. { prop: 'ownerId', label: t('Ib.PammManager.ownerId') },
  275. { prop: 'accountId', label: t('Ib.PammManager.accountId') },
  276. { prop: 'percent', label: t('Ib.PammManager.percent') },
  277. { prop: 'platform', label: t('Label.Platform') },
  278. { prop: 'addTime', label: t('Label.ApplyTime') },
  279. { prop: 'sub', label: t('Label.ApplicationAccount') },
  280. {
  281. prop: 'type', label: t('Label.Type'),
  282. type: 'tag',
  283. tagMap: {
  284. 1: t('Ib.Settings.Hang'),
  285. 2: t('Ib.Settings.Undo'),
  286. },
  287. },
  288. {
  289. prop: 'status', label: t('Label.State'),
  290. type: 'tag',
  291. tagMap: {
  292. 1: t('State.ToBeProcessed'),
  293. 2: t('State.Completed'),
  294. 3: t('State.Refused'),
  295. },
  296. },
  297. { prop: 'approveDesc', label: t('Label.Descr'), slot: 'approveDesc' },
  298. { prop: 'approveTime', label: t('Label.ProcessingDate') },
  299. ],
  300. 13: [
  301. { prop: 'withdrawIbNo', label: t('AmountLabel.item4') },
  302. { prop: 'depositIbNo', label: t('AmountLabel.item5') },
  303. {
  304. prop: 'amount', label: t('Ib.Recording.Amount'),
  305. formatter: ({ row }) => numberFormat(row.amount ?? '--'),
  306. },
  307. { prop: 'currency', label: t('Ib.Recording.CurrencyType') },
  308. { prop: 'addTime', label: t('Ib.Recording.ApplicationDate') },
  309. { prop: 'approveDesc', label: t('Ib.Recording.Note'), slot: 'approveDesc' },
  310. ],
  311. }
  312. export const mobileList = {
  313. 1: [
  314. { prop: 'platform', label: t('Ib.Recording.Platform') },
  315. {
  316. prop: 'accountType', label: t('Ib.Recording.AccountType'),
  317. type: 'tag',
  318. tagMap: {
  319. 1: t('AccountType.ClassicAccount'),
  320. 2: t('AccountType.SeniorAccount'),
  321. 7: t('AccountType.StandardAccount'),
  322. 8: t('AccountType.CentAccount'),
  323. },
  324. },
  325. { prop: 'currency', label: t('Ib.Recording.CurrencyType') },
  326. ],
  327. 2: [
  328. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  329. {
  330. prop: 'oldLeverage', label: t('Ib.Recording.OldLever'),
  331. formatter: ({ row }) => row.oldLeverage ? `1:${row.oldLeverage}` : '--',
  332. },
  333. {
  334. prop: 'newLeverage', label: t('Ib.Recording.NewLever'),
  335. formatter: ({ row }) => row.newLeverage ? `1:${row.newLeverage}` : '--',
  336. },
  337. ],
  338. 3: [
  339. { prop: 'ibNo', label: t('Ib.Recording.TransferAccounts') },
  340. { prop: 'to', label: t('Ib.Recording.IntoAccount') },
  341. { prop: 'currency', label: t('Ib.Recording.CurrencyType') },
  342. ],
  343. 4: [
  344. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  345. {
  346. prop: 'loginType', label: t('Ib.Recording.AccountType'),
  347. type: 'tag',
  348. tagMap: {
  349. 1: t('AccountType.ClassicAccount'),
  350. 2: t('AccountType.SeniorAccount'),
  351. 7: t('AccountType.StandardAccount'),
  352. 8: t('AccountType.CentAccount'),
  353. },
  354. },
  355. { prop: 'title', label: t('Label.Describe') },
  356. ],
  357. 5: [
  358. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  359. {
  360. prop: 'oldPoint', label: t('Ib.Recording.OldPoint'),
  361. formatter: ({ row }) => row.oldPoint || '0',
  362. },
  363. {
  364. prop: 'newPoint', label: t('Ib.Recording.NewPoint'),
  365. formatter: ({ row }) => row.newPoint || '0',
  366. },
  367. ],
  368. 6: [
  369. { prop: 'login', label: t('Ib.Recording.TradingAccount') },
  370. { prop: 'oldAgentIbNo', label: t('Ib.Recording.OldBelong') },
  371. { prop: 'newAgentIbNo', label: t('Ib.Recording.NewBelong') },
  372. ],
  373. 7: [
  374. { prop: 'typeName', label: t('Label.Type') },
  375. { prop: 'newPercent', label: t('Label.NewPercentage') },
  376. { prop: 'newClassicFx', label: t('Label.NewClassicForex') },
  377. ],
  378. 8: [
  379. { prop: 'cId', label: t('Label.CidAccount') },
  380. { prop: 'ibNo', label: t('Label.IBAccount') },
  381. {
  382. prop: 'amount', label: t('Label.AmountMoney'),
  383. formatter: ({ row }) => numberFormat(row.amount ?? '--'),
  384. },
  385. ],
  386. 9: [
  387. { prop: 'cId', label: t('Label.CidAccount') },
  388. { prop: 'mam', label: 'MAM' },
  389. { prop: 'platform', label: t('Label.Platform') },
  390. ],
  391. 10: [
  392. { prop: 'withdrawLogin', label: t('Custom.Recording.TransferAccounts') },
  393. { prop: 'depositLogin', label: t('Custom.Recording.IntoAccount') },
  394. { prop: 'withdrawCurrency', label: t('Custom.Recording.CurrencyType') },
  395. ],
  396. 11: [
  397. { prop: 'cId', label: t('Label.CidAccount') },
  398. { prop: 'pIbNo', label: t('Label.AttributionNumber') },
  399. { prop: 'email', label: t('Label.Email') },
  400. ],
  401. 12: [
  402. { prop: 'cId', label: t('Label.CidAccount') },
  403. { prop: 'pIbNo', label: t('Label.AttributionNumber') },
  404. { prop: 'ownerId', label: t('Ib.PammManager.ownerId') },
  405. ],
  406. 13: [
  407. { prop: 'withdrawIbNo', label: t('AmountLabel.item4') },
  408. { prop: 'depositIbNo', label: t('AmountLabel.item5') },
  409. {
  410. prop: 'amount', label: t('Ib.Recording.Amount'),
  411. formatter: ({ row }) => numberFormat(row.amount ?? '--'),
  412. },
  413. ],
  414. }
  415. // api 列表
  416. export const apiList = {
  417. 1: 'mamApplyList',
  418. 2: 'mamLeverageApplyList',
  419. 3: 'agentBalanceTransferList',
  420. 4: 'CustomRecordAccount',
  421. 5: 'customCommissionApplyList',
  422. 6: 'agentBelongChangeList',
  423. 7: 'agentPointChangeList',
  424. 8: 'agentWithdrawList',
  425. 9: 'mamSubsApplyRecording',
  426. 10: 'agentTransferList',
  427. 11: 'mamApplyList',
  428. 12: 'mamSubsApplyRecording',
  429. 13: 'agentBalanceCommissionSearchList',
  430. }