config.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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.billingCycle"),
  39. dataIndex: "billingCycleName",
  40. align: "center",
  41. width: 200,
  42. ellipsis: true,
  43. },
  44. {
  45. title: window.$t("tariffManagement.BillingMode"),
  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: "label",
  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. ];