Columns.ts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. { field: 'brand_name', title: '品牌名称', align: 'center', fixed: 'left',
  27. slots: { default: 'brand_name' }
  28. },
  29. {
  30. field: 'update_datetime', title: '更新时间', align: 'center',
  31. slots: { default: 'update_datetime' }
  32. },
  33. { field: 'create_datetime', title: '创建时间', align: 'center', slots: { default: 'create_datetime' } },
  34. {
  35. field: 'operate', title: '操 作', width: 100 ,align: 'center', fixed: 'right',
  36. slots: { default: 'operate' }
  37. }
  38. ];
  39. export const ProductCategoryColumns = [
  40. { type: 'seq', title: 'No.', width: 70, align: 'center', fixed: 'left' },
  41. { field: 'name', title: '种类名称', align: 'center', fixed: 'left',
  42. slots: { default: 'name' }
  43. },
  44. {
  45. field: 'main', title: '主属性', align: 'center', width: 500,
  46. slots: { default: 'main' }
  47. },
  48. {
  49. field: 'status', title: '状 态', align: 'center',
  50. slots: { default: 'status' }
  51. },
  52. {
  53. field: 'update_datetime', title: '更新时间', align: 'center',
  54. slots: { default: 'update_datetime' }
  55. },
  56. { field: 'create_datetime', title: '创建时间', align: 'center', slots: { default: 'create_datetime' } },
  57. {
  58. field: 'operate', title: '操 作', width: 130, align: 'center', fixed: 'right',
  59. slots: { default: 'operate' }
  60. }
  61. ];
  62. export const CompanySkuColumns = [
  63. { type: 'checkbox', width: 50, align: 'center', fixed: 'left' },
  64. { field: 'sku', title: 'SKU', width: 'auto', align: 'center', fixed: 'left',
  65. slots: { default: 'sku' }
  66. },
  67. {
  68. field: 'brand', title: '品牌名称', align: 'center', width: 'auto',
  69. slots: { default: 'brand' }
  70. },
  71. {
  72. field: 'kind', title: '种 类', align: 'center', width: 'auto',
  73. slots: { default: 'kind' }
  74. },
  75. {
  76. field: 'version_feature', title: '版本特性', align: 'center', minWidth: 'auto',
  77. slots: { default: 'version_feature' }
  78. },
  79. {
  80. field: 'status', title: '状 态', width: 100, align: 'center',
  81. slots: { default: 'status' }
  82. },
  83. {
  84. field: 'update_datetime', title: '更新时间', width: 170, align: 'center',
  85. slots: { default: 'update_datetime' }
  86. },
  87. { field: 'create_datetime', title: '创建时间', width: 170, align: 'center', slots: { default: 'create_datetime' } },
  88. {
  89. field: 'operate', title: '操 作', width: 175, align: 'center', fixed: 'right',
  90. slots: { default: 'operate' }
  91. }
  92. ];
  93. export const EnumColumns = [
  94. {field:'label',title: '名称',minWidth: 100,align: 'center',},
  95. {field:'value',title: '数据值',minWidth: 76,align: 'center',},
  96. {field:'status',title: '状态',minWidth: 120,align: 'center',slots: { default: 'status' }},
  97. {field:'operate',title: '操作',align: 'center',slots: { default: 'operate' }}
  98. ]
  99. export const AttributeManageColumns = [
  100. { type: 'seq', title: 'No.', width: 70, align: 'center', fixed: 'left' },
  101. { field: 'placement', title: '位 置', align: 'center', slots: { default: 'placement' } },
  102. { field: 'attribute', title: '属 性', align: 'center', slots: { default: 'attribute' } },
  103. { field: 'order', title: '顺 序', align: 'center', slots: { default: 'order' } },
  104. { field: 'update_datetime', title: '更新时间', width: 170, align: 'center', slots: { default: 'update_datetime' } },
  105. { field: 'create_datetime', title: '创建时间', width: 170, align: 'center', slots: { default: 'create_datetime' } },
  106. { field: 'operate', title: '操 作', width: 175, align: 'center', fixed: 'right', slots: { default: 'operate' } }
  107. ]