filling.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import {
  2. neurogen
  3. } from '@/assets/js/blockSort'
  4. import {
  5. urbanArea
  6. } from '@/assets/js/districtCode'
  7. export const employee = () => {
  8. return [{
  9. field: 'index',
  10. label: '编号',
  11. align: 'center',
  12. }, {
  13. field: 'station.name',
  14. operation: true,
  15. label: '充装气站',
  16. align: 'center',
  17. }, {
  18. field: 'company.name',
  19. label: '充装企业',
  20. align: 'center',
  21. }, {
  22. field: 'area',
  23. label: '所在区',
  24. align: 'center',
  25. options: urbanArea(),
  26. }, {
  27. field: 'city',
  28. label: '所在市',
  29. align: 'center',
  30. options: urbanArea(),
  31. }, {
  32. field: 'user.nickName',
  33. label: '充装人员',
  34. align: 'center',
  35. }, {
  36. field: 'tbFillData.innerCode',
  37. label: '单位内编号',
  38. align: 'center',
  39. }, {
  40. field: 'tbFillData.chipId',
  41. label: '高频编码',
  42. align: 'center',
  43. }, {
  44. field: 'tbFillData.productId',
  45. label: '产品类型',
  46. align: 'center',
  47. }, {
  48. field: 'tbFillData.productMediaId',
  49. label: '充装介质',
  50. align: 'center',
  51. colWidth: '100px',
  52. options: neurogen(),
  53. }, {
  54. field: 'tbFillData.fillTime',
  55. label: '充装时间',
  56. align: 'center',
  57. colWidth: '170px',
  58. }, {
  59. field: 'tbFillData.createTime',
  60. label: '创建时间',
  61. align: 'center',
  62. colWidth: '170px',
  63. }]
  64. }
  65. export const formRules = () => {
  66. return [{
  67. field: 'T_sn',
  68. label: '充装枪编号',
  69. placeholder: '充装枪编号',
  70. type: 'input',
  71. colWidth: 24,
  72. rules: [{
  73. required: true,
  74. message: '请输入充装枪编号',
  75. trigger: 'blur'
  76. }]
  77. }, {
  78. field: 'T_sn',
  79. label: '芯片编号',
  80. placeholder: '芯片编号',
  81. type: 'input',
  82. colWidth: 24,
  83. rules: [{
  84. required: true,
  85. message: '请输入芯片编号',
  86. trigger: 'blur'
  87. }]
  88. }, {
  89. field: 'T_online',
  90. type: 'select',
  91. label: '充装人员',
  92. placeholder: '请选择',
  93. colWidth: 24,
  94. rules: [{
  95. required: true,
  96. message: '请选择充装人员',
  97. trigger: 'change'
  98. }],
  99. options: [],
  100. }, {
  101. field: 'T_sn',
  102. label: '备注',
  103. placeholder: '地址',
  104. type: 'textarea',
  105. colWidth: 24,
  106. }, ]
  107. }