config.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. // 资费套餐
  115. export const planColumns = [
  116. {
  117. title: window.$t("tariffManagement.feeCode"),
  118. dataIndex: "feeCode",
  119. align: "center",
  120. width: 200,
  121. },
  122. {
  123. title: window.$t("tariffManagement.label"),
  124. dataIndex: "label",
  125. align: "center",
  126. width: 200,
  127. },
  128. {
  129. title: window.$t("tariffManagement.source"),
  130. dataIndex: "sourceName",
  131. align: "center",
  132. width: 200,
  133. },
  134. {
  135. title: window.$t("tariffManagement.bagSize"),
  136. dataIndex: "bag_size",
  137. align: "center",
  138. width: 200,
  139. },
  140. ];
  141. // 资费搜索字段
  142. export const trafficSearchFrom = [
  143. {
  144. type: "input",
  145. label: "客户名称",
  146. field: "username",
  147. value: "", // 双向绑定的值
  148. },
  149. {
  150. type: "input",
  151. label: "资费名称",
  152. field: "label",
  153. value: "", // 双向绑定的值
  154. },
  155. {
  156. type: "select",
  157. label: "供应商名称",
  158. field: "source",
  159. options: [], // 默认空,后面会通过字典加载
  160. dict: "source",
  161. value: "", // 双向绑定的值
  162. width: "200",
  163. },
  164. {
  165. type: "select",
  166. label: "计费方式",
  167. field: "billingMethod",
  168. options: [], // 默认空,后面会通过字典加载
  169. dict: "billingMethod",
  170. value: "", // 双向绑定的值
  171. width: "200",
  172. },
  173. {
  174. type: "select",
  175. label: "计费周期",
  176. field: "BillingCycle",
  177. options: [], // 默认空,后面会通过字典加载
  178. dict: "BillingCycle",
  179. value: "", // 双向绑定的值
  180. width: "200",
  181. },
  182. {
  183. type: "date-picker",
  184. label: "有效期",
  185. field: "endDate",
  186. value: "", // 双向绑定的值
  187. width: "200",
  188. },
  189. ];
  190. // 客户搜索字段
  191. export const UserSearchForm = [
  192. {
  193. type: "input",
  194. label: "客户名称",
  195. field: "name",
  196. value: "", // 双向绑定的值
  197. },
  198. {
  199. type: "input",
  200. label: "客户账号",
  201. field: "username",
  202. value: "", // 双向绑定的值
  203. },
  204. {
  205. type: "select",
  206. label: "客户状态",
  207. field: "state",
  208. options: [], // 默认空,后面会通过字典加载
  209. dict: "userType",
  210. value: "", // 双向绑定的值
  211. width: "200",
  212. },
  213. {
  214. type: "range-picker",
  215. label: "创建时间",
  216. field: "createdAt",
  217. value: [], // 双向绑定的值
  218. width: "300",
  219. Custom: 'mode="month"', // 自定义值
  220. },
  221. ];
  222. export const UserColumns = [
  223. {
  224. title: window.$t("customer.id"),
  225. dataIndex: "id",
  226. align: "center",
  227. ellipsis: true,
  228. },
  229. {
  230. title: window.$t("customer.customerName"),
  231. dataIndex: "name",
  232. align: "center",
  233. ellipsis: true,
  234. },
  235. {
  236. title: window.$t("customer.userAdmin"),
  237. dataIndex: "username",
  238. align: "center",
  239. },
  240. {
  241. title: window.$t("customer.customerStatus"),
  242. slotName: "state",
  243. align: "center",
  244. ellipsis: true,
  245. },
  246. { title: "app_key ", dataIndex: "appKey", align: "center", ellipsis: true },
  247. {
  248. title: "app_secret",
  249. dataIndex: "appSecret",
  250. align: "center",
  251. ellipsis: true,
  252. },
  253. {
  254. title: window.$t("customer.startTime"),
  255. dataIndex: "createdAt",
  256. align: "center",
  257. ellipsis: true,
  258. },
  259. {
  260. title: window.$t("customer.updateTime"),
  261. dataIndex: "updatedAt",
  262. align: "center",
  263. ellipsis: true,
  264. },
  265. {
  266. title: window.$t("global.common.operations"),
  267. slotName: "operation",
  268. align: "center",
  269. ellipsis: true,
  270. },
  271. ];