config.js 11 KB

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