config.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. export const columns = [
  2. {
  3. title: window.$t("lotCard.iccid"),
  4. dataIndex: "iccid",
  5. align: "center",
  6. ellipsis: true,
  7. maxWidth:200
  8. },
  9. {
  10. title: window.$t("lotCard.sourcePlan"),
  11. dataIndex: "source",
  12. align: "center",
  13. ellipsis: true,
  14. },
  15. {
  16. title: window.$t("lotCard.userName"),
  17. dataIndex: "userName",
  18. align: "center",
  19. ellipsis: true,
  20. },
  21. { title: "IMSI", dataIndex: "currentImsi", align: "center", ellipsis: true },
  22. {
  23. title: window.$t("lotCard.bind"),
  24. dataIndex: "currentImsi",
  25. align: "center",
  26. ellipsis: true,
  27. },
  28. {
  29. title: window.$t("lotCard.SimStatus"),
  30. slotName: "iccidStatus",
  31. align: "center",
  32. ellipsis: true,
  33. },
  34. {
  35. title: window.$t("lotCard.DatapackageStatus"),
  36. slotName: "DatapackageStatus",
  37. align: "center",
  38. ellipsis: true,
  39. },
  40. {
  41. title: window.$t("lotCard.TotalFlow"),
  42. dataIndex: "dataUsageTotal",
  43. align: "center",
  44. ellipsis: true,
  45. },
  46. {
  47. title: window.$t("lotCard.NumberTextMessagesSent"),
  48. dataIndex: "smsTotal",
  49. align: "center",
  50. ellipsis: true,
  51. },
  52. {
  53. title: window.$t("lotCard.validity") + window.$t("lotCard.month"),
  54. dataIndex: "expireDay",
  55. align: "center",
  56. ellipsis: true,
  57. },
  58. {
  59. title: window.$t("lotCard.ClosingDate"),
  60. dataIndex: "closeTime",
  61. align: "center",
  62. ellipsis: true,
  63. },
  64. {
  65. title: "SIM" + window.$t("lotCard.ActivationDate"),
  66. dataIndex: "activeTime",
  67. align: "center",
  68. ellipsis: true,
  69. },
  70. {
  71. title: window.$t("lotCard.CardPackage"),
  72. dataIndex: "tariffName",
  73. align: "center",
  74. ellipsis: true,
  75. },
  76. {
  77. title:'流量包名称',
  78. dataIndex: "productName",
  79. align: "center",
  80. ellipsis: true,
  81. },
  82. {
  83. title: window.$t("lotCard.EarlyWarningState"),
  84. dataIndex: "forewarningStatus",
  85. align: "center",
  86. width: 200,
  87. ellipsis: true,
  88. },
  89. {
  90. title: window.$t("lotCard.PoolName_Number"),
  91. dataIndex: "poolName",
  92. align: "center",
  93. width: 200,
  94. ellipsis: true,
  95. },
  96. {
  97. title: window.$t("lotCard.TheExpirationTime"),
  98. dataIndex: "periodOfSilence",
  99. align: "center",
  100. width: 200,
  101. ellipsis: true,
  102. },
  103. {
  104. title: window.$t("global.common.operations"),
  105. dataIndex: "id",
  106. slotName: "id",
  107. align: "center",
  108. width: 200,
  109. fixed: "right",
  110. },
  111. ];
  112. export const columnsTrafficUse = [
  113. {
  114. title: window.$t("lotCard.appName"),
  115. dataIndex: "appName",
  116. align: "center",
  117. },
  118. {
  119. title: window.$t("lotCard.mcc"),
  120. dataIndex: "mcc",
  121. align: "center",
  122. width: 100,
  123. },
  124. {
  125. title: window.$t("lotCard.qtaconsumption"),
  126. dataIndex: "qtaconsumption",
  127. align: "center",
  128. },
  129. { title: window.$t("lotCard.time"), dataIndex: "time", align: "center" },
  130. ];
  131. export const SearchForm = [
  132. {
  133. type: "input",
  134. label: "ICCID",
  135. field: "iccid",
  136. value: "", // 双向绑定的值
  137. },
  138. {
  139. type: "select",
  140. label: "供应商",
  141. field: "source",
  142. options: [], // 默认空,后面会通过字典加载
  143. dict: "source",
  144. value: "", // 双向绑定的值
  145. width: "200",
  146. },
  147. {
  148. type: "input",
  149. label: "客户名称",
  150. field: "username",
  151. value: "", // 双向绑定的值
  152. },
  153. {
  154. type: "input",
  155. label: "IMSI",
  156. field: "currentImsi",
  157. value: "", // 双向绑定的值
  158. },
  159. {
  160. type: "select",
  161. label: "流量包状态",
  162. field: "packageStatus",
  163. options: [], // 默认空,后面会通过字典加载
  164. dict: "packageStatus",
  165. value: "", // 双向绑定的值
  166. width: "200",
  167. },
  168. {
  169. type: "select",
  170. label: "SIM状态",
  171. field: "status",
  172. options: [], // 默认空,后面会通过字典加载
  173. dict: "account",
  174. value: "", // 双向绑定的值
  175. width: "200",
  176. },
  177. {
  178. type: "date-picker",
  179. label: "SIM激活日期",
  180. field: "activeTime",
  181. options: [], // 默认空,后面会通过字典加载
  182. dict: "source",
  183. value: "", // 双向绑定的值
  184. width: "200",
  185. },
  186. {
  187. type: "date-picker",
  188. label: "SIM关闭日期",
  189. field: "closeTime",
  190. options: [], // 默认空,后面会通过字典加载
  191. dict: "source",
  192. value: "", // 双向绑定的值
  193. width: "200",
  194. },
  195. {
  196. type: "input",
  197. label: "IMSI所属供应商名称 ",
  198. field: "currentImsiProvider",
  199. options: [], // 默认空,后面会通过字典加载
  200. dict: "source",
  201. value: "", // 双向绑定的值
  202. width: "200",
  203. },
  204. ];
  205. export const columnsCard = [
  206. {
  207. title: window.$t('lotCard.PackageName'),
  208. slotName: 'name',
  209. align: 'center', ellipsis: true
  210. }, {
  211. title: window.$t('lotCard.PackageStatus'),
  212. dataIndex: 'status',
  213. align: 'center', ellipsis: true
  214. },
  215. {
  216. title: window.$t('lotCard.validity') + (window.$t('lotCard.month')),
  217. dataIndex: 'validDays',
  218. align: 'center', ellipsis: true
  219. },
  220. {
  221. title: window.$t('lotCard.AvailableFlow'),
  222. dataIndex: 'dataTotal',
  223. align: 'center', ellipsis: true
  224. },
  225. {
  226. title: window.$t('lotCard.Usedflow'),
  227. dataIndex: 'dataUsage',
  228. align: 'center', ellipsis: true
  229. },
  230. {
  231. title: window.$t('lotCard.TrafficUsedToday'),
  232. dataIndex: 'dataToday',
  233. align: 'center', ellipsis: true
  234. },
  235. {
  236. title: window.$t('lotCard.ActivationDate'),
  237. dataIndex: 'activeTime',
  238. align: 'center', ellipsis: true
  239. },
  240. {
  241. title: window.$t('lotCard.DueDate'),
  242. dataIndex: 'expiryTime',
  243. align: 'center', ellipsis: true
  244. },
  245. ]
  246. export const columnsTopup = [
  247. {
  248. title: window.$t('lotCard.OrderNumber'),
  249. dataIndex: 'orderId',
  250. ellipsis: true,
  251. align: 'center',
  252. },
  253. {
  254. title: window.$t('lotCard.PurchasePackage'),
  255. dataIndex: 'trafficName',
  256. ellipsis: true,
  257. align: 'center',
  258. },
  259. {
  260. title: window.$t('lotCard.PackagePrice'),
  261. dataIndex: 'payAmount',
  262. ellipsis: true,
  263. align: 'center',
  264. },
  265. {
  266. title: window.$t('lotCard.operator'),
  267. dataIndex: 'source',
  268. ellipsis: true,
  269. align: 'center',
  270. },
  271. {
  272. title: window.$t('lotCard.PaymentStatus'),
  273. slotName: 'puyStatus',
  274. ellipsis: true,
  275. align: 'center',
  276. },
  277. {
  278. title: window.$t('lotCard.OrderDate'),
  279. dataIndex: 'createdAt',
  280. ellipsis: true,
  281. align: 'center',
  282. },
  283. ]
  284. export const columnsAmount = [
  285. // {
  286. // title: window.$t('lotCard.ID'),
  287. // dataIndex: 'productId',
  288. // align: 'center', ellipsis: true
  289. // },
  290. // {
  291. // title: 'IMIS',
  292. // dataIndex: 'imsi',
  293. // align: 'center', ellipsis: true
  294. // },
  295. {
  296. title: 'ICCID',
  297. dataIndex: 'ICCID',
  298. align: 'center', ellipsis: true
  299. },
  300. {
  301. title: `${window.$t('lotCard.FlowRate')}(MB)`,
  302. dataIndex: 'dataVolTotalKb',
  303. align: 'center', ellipsis: true
  304. },
  305. {
  306. title: window.$t('lotCard.CargoAreaCode'),
  307. dataIndex: 'mcc',
  308. align: 'center', ellipsis: true
  309. },
  310. {
  311. title: window.$t('lotCard.DetailDate'),
  312. dataIndex: 'startTime',
  313. align: 'center', ellipsis: true
  314. },
  315. ]
  316. export const columnsOperation = [
  317. {
  318. title: window.$t('lotCard.settingUser'),
  319. dataIndex: 'userId',
  320. ellipsis: true,
  321. align: 'center',
  322. },
  323. {
  324. title: 'iccid',
  325. dataIndex: 'iccid',
  326. ellipsis: true,
  327. align: 'center',
  328. },
  329. {
  330. title: window.$t('lotCard.source'),
  331. dataIndex: 'source',
  332. ellipsis: true,
  333. align: 'center',
  334. },
  335. {
  336. title: window.$t('lotCard.Controls'),
  337. dataIndex: 'operation',
  338. ellipsis: true,
  339. align: 'center',
  340. },
  341. {
  342. title: window.$t('lotCard.remark'),
  343. dataIndex: 'remark',
  344. ellipsis: true,
  345. align: 'center',
  346. },
  347. ]