config.js 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. export let columns = [
  2. {
  3. title: window.$t("tariffManagement.id"),
  4. dataIndex: "Number",
  5. align: "center",
  6. width: 200,
  7. ellipsis: true,
  8. },
  9. // { title: window.$t('tariffManagement.feeCode'), dataIndex: 'feeCode', align: 'center', width: 200 },
  10. {
  11. title: window.$t("tariffManagement.userName"),
  12. dataIndex: "userName",
  13. align: "center",
  14. width: 200,
  15. ellipsis: true,
  16. },
  17. {
  18. title: window.$t("tariffManagement.label"),
  19. dataIndex: "label",
  20. align: "center",
  21. width: 200,
  22. ellipsis: true,
  23. },
  24. {
  25. title: window.$t("tariffManagement.source"),
  26. dataIndex: "sourceName",
  27. align: "center",
  28. width: 200,
  29. ellipsis: true,
  30. },
  31. {
  32. title: window.$t("tariffManagement.simDataPlanIdName"),
  33. dataIndex: "metadataPackagesName",
  34. align: "center",
  35. width: 200,
  36. ellipsis: true,
  37. },
  38. {
  39. title: window.$t("tariffManagement.TestFlowPacketName"),
  40. dataIndex: "testMetadataPackagesName",
  41. align: "center",
  42. width: 200,
  43. ellipsis: true,
  44. },
  45. // { title: window.$t('tariffManagement.trafficType'), dataIndex: 'trafficTypeName', align: 'center', width: 200 },
  46. // { title: window.$t('tariffManagement.billingType'), dataIndex: 'billingTypeName', align: 'center', width: 200 },
  47. {
  48. title: window.$t("tariffManagement.billingCycle"),
  49. dataIndex: "billingCycleName",
  50. align: "center",
  51. width: 200,
  52. ellipsis: true,
  53. },
  54. {
  55. title: window.$t("tariffManagement.BillingMode"),
  56. dataIndex: "billingMethodName",
  57. align: "center",
  58. width: 200,
  59. ellipsis: true,
  60. },
  61. // { title: window.$t('tariffManagement.bagSize'), dataIndex: 'bagSize', align: 'center', width: 200 },
  62. {
  63. title: window.$t("tariffManagement.pricing"),
  64. dataIndex: "pricingName",
  65. align: "center",
  66. width: 200,
  67. ellipsis: true,
  68. },
  69. // { title: window.$t('tariffManagement.billingMethod'), dataIndex: 'billing_method', align: 'center', width: 200 },
  70. {
  71. title: window.$t("tariffManagement.ActivatedNames"),
  72. dataIndex: "Activated",
  73. align: "center",
  74. width: 200,
  75. ellipsis: true,
  76. },
  77. {
  78. title: window.$t("tariffManagement.feeStatus"),
  79. dataIndex: "status",
  80. align: "center",
  81. width: 200,
  82. ellipsis: true,
  83. },
  84. {
  85. title: window.$t("tariffManagement.MRCName"),
  86. dataIndex: "mrcAmount",
  87. align: "center",
  88. width: 200,
  89. ellipsis: true,
  90. },
  91. {
  92. title: window.$t("tariffManagement.networkName"),
  93. dataIndex: "networkAccessFee",
  94. align: "center",
  95. width: 200,
  96. ellipsis: true,
  97. },
  98. {
  99. title: window.$t("tariffManagement.endDate"),
  100. dataIndex: "endDate",
  101. align: "center",
  102. width: 200,
  103. ellipsis: true,
  104. },
  105. {
  106. title: window.$t("global.common.operations"),
  107. dataIndex: "id",
  108. slotName: "id",
  109. align: "center",
  110. width: 180,
  111. fixed: "right",
  112. },
  113. ];
  114. export const userClounms = [
  115. {
  116. title: window.$t("tariffManagement.id"),
  117. dataIndex: "Number",
  118. align: "center",
  119. width: 200,
  120. ellipsis: true,
  121. },
  122. {
  123. title: window.$t("tariffManagement.label"),
  124. dataIndex: "label",
  125. align: "center",
  126. width: 200,
  127. ellipsis: true,
  128. },
  129. {
  130. title: window.$t("tariffManagement.source"),
  131. dataIndex: "sourceName",
  132. align: "center",
  133. width: 200,
  134. ellipsis: true,
  135. },
  136. {
  137. title: window.$t("tariffManagement.TestFlowPacketName"),
  138. dataIndex: "testMetadataPackagesName",
  139. align: "center",
  140. width: 200,
  141. ellipsis: true,
  142. },
  143. {
  144. title: window.$t("tariffManagement.billingCycleUser"),
  145. dataIndex: "billingCycleName",
  146. align: "center",
  147. width: 200,
  148. ellipsis: true,
  149. },
  150. {
  151. title: window.$t("tariffManagement.pricingUser"),
  152. dataIndex: "billingMethodName",
  153. align: "center",
  154. width: 200,
  155. ellipsis: true,
  156. },
  157. {
  158. title: window.$t("tariffManagement.pricing"),
  159. dataIndex: "pricingName",
  160. align: "center",
  161. width: 200,
  162. ellipsis: true,
  163. },
  164. {
  165. title: window.$t("tariffManagement.feeStatus"),
  166. dataIndex: "status",
  167. align: "center",
  168. width: 200,
  169. ellipsis: true,
  170. },
  171. {
  172. title: window.$t("tariffManagement.MRCName"),
  173. dataIndex: "mrcAmount",
  174. align: "center",
  175. width: 200,
  176. ellipsis: true,
  177. },
  178. {
  179. title: window.$t("tariffManagement.networkName"),
  180. dataIndex: "networkAccessFee",
  181. align: "center",
  182. width: 200,
  183. ellipsis: true,
  184. },
  185. {
  186. title: window.$t("tariffManagement.endDate"),
  187. dataIndex: "endDate",
  188. align: "center",
  189. width: 200,
  190. ellipsis: true,
  191. },
  192. ]
  193. // 资费套餐
  194. export const planColumns = [
  195. {
  196. title: window.$t("tariffManagement.feeCode"),
  197. dataIndex: "feeCode",
  198. align: "center",
  199. width: 200,
  200. },
  201. {
  202. title: window.$t("tariffManagement.label"),
  203. dataIndex: "label",
  204. align: "center",
  205. width: 200,
  206. },
  207. {
  208. title: window.$t("tariffManagement.source"),
  209. dataIndex: "sourceName",
  210. align: "center",
  211. width: 200,
  212. },
  213. {
  214. title: window.$t("tariffManagement.bagSize"),
  215. dataIndex: "bag_size",
  216. align: "center",
  217. width: 200,
  218. },
  219. ];
  220. // 资费搜索字段
  221. export const trafficSearchFrom = [
  222. {
  223. type: "input",
  224. label: "客户名称",
  225. field: "username",
  226. value: "", // 双向绑定的值
  227. },
  228. {
  229. type: "input",
  230. label: "资费名称",
  231. field: "label",
  232. value: "", // 双向绑定的值
  233. },
  234. {
  235. type: "select",
  236. label: "供应商名称",
  237. field: "source",
  238. options: [], // 默认空,后面会通过字典加载
  239. dict: "source",
  240. value: "", // 双向绑定的值
  241. width: "200",
  242. },
  243. {
  244. type: "select",
  245. label: "计费方式",
  246. field: "billingMethod",
  247. options: [], // 默认空,后面会通过字典加载
  248. dict: "billingMethod",
  249. value: "", // 双向绑定的值
  250. width: "200",
  251. },
  252. {
  253. type: "select",
  254. label: "计费周期",
  255. field: "BillingCycle",
  256. options: [], // 默认空,后面会通过字典加载
  257. dict: "BillingCycle",
  258. value: "", // 双向绑定的值
  259. width: "200",
  260. },
  261. {
  262. type: "date-picker",
  263. label: "有效期",
  264. field: "endDate",
  265. value: "", // 双向绑定的值
  266. width: "200",
  267. },
  268. ];
  269. export const SetMealSearchForm = [
  270. {
  271. type: "input",
  272. label: "套餐名称",
  273. field: "label",
  274. value: "", // 双向绑定的值
  275. },
  276. {
  277. type: "input",
  278. label: "套餐ID",
  279. field: "label",
  280. value: "", // 双向绑定的值
  281. },
  282. {
  283. type: "input",
  284. label: "所属客户",
  285. field: "name",
  286. value: "", // 双向绑定的值
  287. },
  288. {
  289. type: "range-picker",
  290. label: "创建时间",
  291. field: "createdAt",
  292. value: [], // 双向绑定的值
  293. width: "300",
  294. Custom: 'mode="month"', // 自定义值
  295. },
  296. {
  297. type: "select",
  298. label: "状态",
  299. field: "state",
  300. options: [
  301. { label: "上架", value: 1 },
  302. { label: "下架", value: 2 },
  303. ], // 默认空,后面会通过字典加载
  304. dict: "userType",
  305. value: "", // 双向绑定的值
  306. width: "200",
  307. },
  308. ];
  309. export const columnsSetMeal = [
  310. {
  311. title: "序号",
  312. dataIndex: "index",
  313. align: "center",
  314. ellipsis: true,
  315. render: ({ rowIndex }) => rowIndex + 1,
  316. },
  317. {
  318. title: "套餐计划名称",
  319. dataIndex: "label",
  320. align: "center",
  321. ellipsis: true,
  322. },
  323. {
  324. title: "所属客户",
  325. dataIndex: "userName",
  326. align: "center",
  327. ellipsis: true,
  328. },
  329. {
  330. title: "状态",
  331. slotName: "status",
  332. align: "center",
  333. ellipsis: true,
  334. },
  335. {
  336. title: "创建时间",
  337. dataIndex: "createdAt",
  338. align: "center",
  339. ellipsis: true,
  340. },
  341. {
  342. title: "更新时间",
  343. dataIndex: "updatedAt",
  344. align: "center",
  345. ellipsis: true,
  346. },
  347. {
  348. title: "操作",
  349. align: "center",
  350. ellipsis: true,
  351. slotName: 'Controls',
  352. fixed: 'right'
  353. },
  354. ];
  355. export const columnsTarrit = [
  356. {
  357. title: "序号",
  358. dataIndex: "index",
  359. align: "center",
  360. ellipsis: true,
  361. render: ({ rowIndex }) => rowIndex + 1,
  362. },
  363. {
  364. title: "套餐名称",
  365. dataIndex: "label",
  366. align: "center",
  367. ellipsis: true,
  368. },
  369. {
  370. title: "所属套餐计划",
  371. dataIndex: "terminalName",
  372. align: "center",
  373. ellipsis: true,
  374. },
  375. {
  376. title: "资费名称",
  377. dataIndex: "trafficName",
  378. align: "center",
  379. ellipsis: true,
  380. },
  381. {
  382. title: "套餐类型",
  383. dataIndex: "typeName",
  384. align: "center",
  385. ellipsis: true,
  386. },
  387. {
  388. title: "充值币种",
  389. dataIndex: "currency",
  390. align: "center",
  391. ellipsis: true,
  392. },
  393. {
  394. title: "原价",
  395. dataIndex: "oldPrice",
  396. align: "center",
  397. ellipsis: true,
  398. },
  399. {
  400. title: "成本",
  401. dataIndex: "costPrice",
  402. align: "center",
  403. ellipsis: true,
  404. },
  405. {
  406. title: "售价(终端充值)",
  407. dataIndex: "price",
  408. align: "center",
  409. ellipsis: true,
  410. },
  411. {
  412. title: "利润",
  413. dataIndex: "profitPrice",
  414. align: "center",
  415. ellipsis: true,
  416. },
  417. {
  418. title: "流量成本结算方式",
  419. dataIndex: "billingMethod",
  420. align: "center",
  421. ellipsis: true,
  422. },
  423. {
  424. title: "创建时间",
  425. dataIndex: "createdAt",
  426. align: "center",
  427. ellipsis: true,
  428. },
  429. {
  430. title: "更新时间",
  431. dataIndex: "updatedAt",
  432. align: "center",
  433. ellipsis: true,
  434. },
  435. {
  436. title: "状态",
  437. slotName: "status",
  438. align: "center",
  439. ellipsis: true,
  440. },
  441. {
  442. title: "操作",
  443. align: "center",
  444. slotName: 'options',
  445. fixed: 'right'
  446. },
  447. ]