Columns.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. export const AttributeColumns = [
  2. { type: 'seq', title: 'No.', width: 70, align: 'center', fixed: 'left' },
  3. {
  4. field: 'name', title: '属性名称', align: 'center', fixed: 'left',
  5. slots: { default: 'name' }
  6. },
  7. {
  8. field: 'key', title: '属性标识', align: 'center',
  9. slots: { default: 'key' }
  10. },
  11. {
  12. field: 'update_datetime', title: '更新时间', align: 'center',
  13. slots: { default: 'update_datetime' }
  14. },
  15. {
  16. field: 'create_datetime', title: '创建时间', align: 'center',
  17. slots: { default: 'create_datetime' }
  18. },
  19. {
  20. field: 'operate', title: '操 作', width: 175, align: 'center', fixed: 'right',
  21. slots: { default: 'operate' }
  22. }
  23. ];
  24. export const ProductBrandColumns = [
  25. { type: 'seq', title: 'No.', width: 70, align: 'center', fixed: 'left' },
  26. {
  27. field: 'brand_name', title: '品牌名称', align: 'center', fixed: 'left',
  28. slots: { default: 'brand_name' }
  29. },
  30. {
  31. field: 'update_datetime', title: '更新时间', align: 'center',
  32. slots: { default: 'update_datetime' }
  33. },
  34. { field: 'create_datetime', title: '创建时间', align: 'center', slots: { default: 'create_datetime' } },
  35. {
  36. field: 'operate', title: '操 作', width: 100, align: 'center', fixed: 'right',
  37. slots: { default: 'operate' }
  38. }
  39. ];
  40. export const ProductCategoryColumns = [
  41. { type: 'seq', title: 'No.', width: 70, align: 'center', fixed: 'left' },
  42. {
  43. field: 'name', title: '种类名称', align: 'center', minWidth: 130, fixed: 'left',
  44. slots: { default: 'name' }
  45. },
  46. {
  47. field: 'main', title: '主属性', align: 'center', width: 500,
  48. slots: { default: 'main' }
  49. },
  50. {
  51. field: 'status', title: '状 态', width: 100, align: 'center',
  52. slots: { default: 'status' }
  53. },
  54. {
  55. field: 'update_datetime', title: '更新时间', width: 170, align: 'center',
  56. slots: { default: 'update_datetime' }
  57. },
  58. { field: 'create_datetime', title: '创建时间', width: 170, align: 'center', slots: { default: 'create_datetime' } },
  59. {
  60. field: 'operate', title: '操 作', width: 130, align: 'center', fixed: 'right',
  61. slots: { default: 'operate' }
  62. }
  63. ];
  64. export const CompanySkuColumns = [
  65. { type: 'checkbox', width: 50, align: 'center', fixed: 'left' },
  66. {
  67. field: 'sku', title: 'SKU', align: 'center', minWidth: 220, fixed: 'left',
  68. slots: { default: 'sku' }
  69. },
  70. {
  71. field: 'brand', title: '品牌名称', align: 'center', minWidth: 80,
  72. slots: { default: 'brand' }
  73. },
  74. {
  75. field: 'kind', title: '种 类', align: 'center', minWidth: 150,
  76. slots: { default: 'kind' }
  77. },
  78. {
  79. field: 'version_feature', title: '版本特性', align: 'center', minWidth: 180,
  80. slots: { default: 'version_feature' }
  81. },
  82. {
  83. field: 'status', title: '状 态', width: 100, align: 'center',
  84. slots: { default: 'status' }
  85. },
  86. {
  87. field: 'update_datetime', title: '更新时间', width: 170, align: 'center',
  88. slots: { default: 'update_datetime' }
  89. },
  90. { field: 'create_datetime', title: '创建时间', width: 170, align: 'center', slots: { default: 'create_datetime' } },
  91. {
  92. field: 'operate', title: '操 作', width: 175, align: 'center', fixed: 'right',
  93. slots: { default: 'operate' }
  94. }
  95. ];
  96. export const EnumColumns = [
  97. { field: 'label', title: '名称', minWidth: 'auto', align: 'center' },
  98. { field: 'value', title: '数据值', minWidth: 'auto', align: 'center' },
  99. { field: 'status', title: '状态', minWidth: 'auto', align: 'center', slots: { default: 'status' } },
  100. { field: 'operate', title: '操作', align: 'center', width: 130, slots: { default: 'operate' } }
  101. ];
  102. export const AttributeManageColumns = [
  103. { type: 'seq', title: 'No.', width: 70, align: 'center', fixed: 'left' },
  104. { field: 'placement', title: '位 置', align: 'center', slots: { default: 'placement' } },
  105. { field: 'attribute', title: '属 性', align: 'center', slots: { default: 'attribute' } },
  106. { field: 'order', title: '顺 序', align: 'center', slots: { default: 'order' } },
  107. { field: 'update_datetime', title: '更新时间', width: 170, align: 'center', slots: { default: 'update_datetime' } },
  108. { field: 'create_datetime', title: '创建时间', width: 170, align: 'center', slots: { default: 'create_datetime' } },
  109. { field: 'operate', title: '操 作', width: 175, align: 'center', fixed: 'right', slots: { default: 'operate' } }
  110. ];