config.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. export const columns = [
  2. {
  3. title: window.$t("financialManagement.orderNumber"),
  4. dataIndex: "index",
  5. align: "center",
  6. render: ({ rowIndex }) => rowIndex + 1,
  7. width: 60,
  8. ellipsis: true,
  9. tooltip: true,
  10. },
  11. {
  12. title: window.$t("financialManagement.customerId"),
  13. dataIndex: "id",
  14. ellipsis: true,
  15. tooltip: true,
  16. width: 180,
  17. align: "center",
  18. },
  19. {
  20. title: window.$t("financialManagement.customerName"),
  21. dataIndex: "name",
  22. align: "center",
  23. slotName: "name",
  24. },
  25. {
  26. title: window.$t("financialManagement.customerAccount"),
  27. dataIndex: "username",
  28. align: "center",
  29. },
  30. {
  31. title: window.$t("financialManagement.rechargeAmountTab"),
  32. dataIndex: "rechargeAmount",
  33. align: "center",
  34. },
  35. {
  36. title: window.$t("financialManagement.availableAmountTab"),
  37. dataIndex: "availableAmount",
  38. width: 140,
  39. align: "center",
  40. },
  41. {
  42. title: window.$t("financialManagement.rechargeType"),
  43. dataIndex: "status",
  44. align: "center",
  45. slotName: "status",
  46. filterable: {
  47. filters: [
  48. {
  49. text: window.$t("financialManagement.recharge"),
  50. value: "1",
  51. },
  52. {
  53. text: window.$t("financialManagement.offset"),
  54. value: "2",
  55. },
  56. {
  57. text: window.$t("financialManagement.deduct"),
  58. value: "3",
  59. },
  60. ],
  61. filter: (value, record) => {
  62. return record.status === value[0];
  63. },
  64. multiple: true,
  65. },
  66. },
  67. {
  68. title: "凭证",
  69. slotName: "image",
  70. width: 180,
  71. align: "center",
  72. ellipsis: true,
  73. tooltip: true,
  74. },
  75. {
  76. title: window.$t("financialManagement.updatedAt"),
  77. dataIndex: "updatedAt",
  78. width: 180,
  79. align: "center",
  80. },
  81. ];
  82. export const handleStatusTxt = (status) => {
  83. const obj = {
  84. 1: window.$t("financialManagement.recharge"),
  85. 2: window.$t("financialManagement.offset"),
  86. 3: window.$t("financialManagement.deduct"),
  87. };
  88. return obj[status];
  89. };
  90. export const statusOptions = [
  91. { label: window.$t("financialManagement.recharge"), value: "1" },
  92. { label: window.$t("financialManagement.offset"), value: "2" },
  93. { label: window.$t("financialManagement.deduct"), value: "3" },
  94. ];
  95. // h5充值
  96. export const UserAdiroColumns = [
  97. {
  98. title: "ICCID",
  99. dataIndex: "iccid",
  100. align: "center",
  101. ellipsis: true,
  102. tooltip: true,
  103. },
  104. {
  105. title: "资费名称",
  106. dataIndex: "trafficName",
  107. align: "center",
  108. ellipsis: true,
  109. tooltip: true,
  110. },
  111. {
  112. title: "套餐名称",
  113. dataIndex: "productName",
  114. align: "center",
  115. ellipsis: true,
  116. tooltip: true,
  117. },
  118. {
  119. title: "订单ID",
  120. dataIndex: "orderId",
  121. align: "center",
  122. ellipsis: true,
  123. tooltip: true,
  124. },
  125. {
  126. title: "支付状态",
  127. slotName: "puyStatus",
  128. align: "center",
  129. ellipsis: true,
  130. tooltip: true,
  131. },
  132. {
  133. title: "支付渠道",
  134. dataIndex: "payChannel",
  135. align: "center",
  136. ellipsis: true,
  137. tooltip: true,
  138. },
  139. {
  140. title: "支付金额",
  141. dataIndex: "payAmount",
  142. align: "center",
  143. ellipsis: true,
  144. tooltip: true,
  145. },
  146. {
  147. title: "币种",
  148. dataIndex: "currency",
  149. align: "center",
  150. ellipsis: true,
  151. tooltip: true,
  152. },
  153. {
  154. title: "充值时间",
  155. dataIndex: "createdAt",
  156. align: "center",
  157. ellipsis: true,
  158. tooltip: true,
  159. },
  160. {
  161. title: "备注",
  162. dataIndex: "remark",
  163. align: "center",
  164. ellipsis: true,
  165. tooltip: true,
  166. },
  167. ];
  168. // 账户余额搜索
  169. export const AccountBalanceSearch = [
  170. {
  171. type: "input",
  172. label: "账单号",
  173. field: "id",
  174. value: "", // 双向绑定的值
  175. },
  176. {
  177. type: "input",
  178. label: "客户名称",
  179. field: "id",
  180. value: "", // 双向绑定的值
  181. },
  182. {
  183. type: "range-picker",
  184. label: "账单生成时间",
  185. field: "id",
  186. value: "", // 双向绑定的值
  187. },
  188. {
  189. type: "range-picker",
  190. label: "结算周期时间段",
  191. field: "id",
  192. value: "", // 双向绑定的值
  193. },
  194. {
  195. type: "select",
  196. label: "状态",
  197. field: "moderationStatus",
  198. options: [], // 默认空,后面会通过字典加载
  199. dict: "orderType",
  200. value: "", // 双向绑定的值
  201. width: "200",
  202. },
  203. ];
  204. // 平台端搜索
  205. export const AdminSearchForm = [
  206. {
  207. type: "input",
  208. label: "客户账号",
  209. field: "id",
  210. value: "", // 双向绑定的值
  211. },
  212. {
  213. type: "input",
  214. label: "客户名称",
  215. field: "id",
  216. value: "", // 双向绑定的值
  217. }
  218. ]
  219. // 客户端搜索
  220. export const ClientSearchForm = [
  221. {
  222. type: "input",
  223. label: "ICCID",
  224. field: "iccid",
  225. value: "", // 双向绑定的值
  226. },
  227. {
  228. type: "input",
  229. label: "资费名称",
  230. field: "tariffName",
  231. value: "", // 双向绑定的值
  232. },
  233. {
  234. type: "input",
  235. label: "套餐名称",
  236. field: "productName",
  237. value: "", // 双向绑定的值
  238. },
  239. // {
  240. // type: "select",
  241. // label: "运营商名称",
  242. // field: "source",
  243. // options: [], // 默认空,后面会通过字典加载
  244. // dict: "source",
  245. // value: "", // 双向绑定的值
  246. // width: "200",
  247. // },
  248. {
  249. type: "input",
  250. label: "订单ID",
  251. field: "id",
  252. value: "", // 双向绑定的值
  253. },
  254. {
  255. type: "select",
  256. label: "支付状态",
  257. field: "payStatus",
  258. options: [], // 默认空,后面会通过字典加载
  259. dict: "puyType",
  260. value: "", // 双向绑定的值
  261. width: "200",
  262. },
  263. {
  264. type: "select",
  265. label: "币种",
  266. field: "currency",
  267. options: [], // 默认空,后面会通过字典加载
  268. dict: "currencyType",
  269. value: "", // 双向绑定的值
  270. width: "200",
  271. }
  272. ]