recording.ts 14 KB

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