columns.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //是否定制
  2. const options1 = [
  3. { id: "0", name: "否" },
  4. { id: "1", name: "是" },
  5. ]
  6. //专属类型
  7. const options2 = [
  8. { id: "0", name: "非泰康" },
  9. { id: "1", name: "泰康" },
  10. ]
  11. //销售权限
  12. const options3 = [
  13. { id: "0", name: "无销售权限" },
  14. { id: "1", name: "有销售权限" },
  15. ]
  16. //是否库存品
  17. const options4 = [
  18. { id: "0", name: "非库存品" },
  19. { id: "1", name: "库存品" },
  20. ]
  21. //是否启用实时金价
  22. const options5 = [
  23. { id: "0", name: "否" },
  24. { id: "1", name: "是" },
  25. ]
  26. //供货区域
  27. const options6 = [
  28. { id: "1", name: "全国" },
  29. { id: "2", name: "全国除偏远" },
  30. ]
  31. //是否启用阶梯
  32. const options7 = [
  33. { id: "0", name: "否" },
  34. { id: "1", name: "是" },
  35. ]
  36. const listCol = [
  37. {
  38. prop: "spuCode",
  39. label: "编号",
  40. width: "160px",
  41. },
  42. {
  43. prop: "good_thumb_img",
  44. label: "图片",
  45. _slot_: "good_thumb_img",
  46. width: "45px",
  47. },
  48. {
  49. prop: "good_name",
  50. label: "名称",
  51. "min-width": "160px",
  52. },
  53. {
  54. prop: "cat_name",
  55. label: "分类",
  56. },
  57. {
  58. prop: "brand_name",
  59. label: "品牌",
  60. },
  61. {
  62. prop: "good_type",
  63. label: "是否定制",
  64. _slot_: "good_type",
  65. width: "70px",
  66. },
  67. {
  68. prop: "status",
  69. label: "状态",
  70. _slot_: "status",
  71. width: "118px",
  72. },
  73. {
  74. prop: "supplierNo",
  75. label: "供应商编号",
  76. width: "110px",
  77. },
  78. {
  79. prop: "supplier_name",
  80. label: "供应商名称",
  81. width: "110px",
  82. },
  83. {
  84. prop: "companyNo",
  85. label: "业务公司编号",
  86. width: "110px",
  87. },
  88. {
  89. prop: "company",
  90. label: "业务公司名称",
  91. width: "110px",
  92. },
  93. {
  94. prop: "addtime",
  95. label: "创建时间",
  96. width: "140px",
  97. },
  98. {
  99. prop: "",
  100. label: "操作",
  101. fixed: "right",
  102. _noset_: true,
  103. width: "150px",
  104. _slot_: "operation",
  105. },
  106. ]
  107. const rules = {
  108. platform: [
  109. {
  110. type: "array",
  111. required: true,
  112. message: "请选择所属平台",
  113. trigger: "change",
  114. },
  115. ],
  116. online_reason: [
  117. {
  118. required: true,
  119. message: "上线原因不能为空",
  120. trigger: "blur",
  121. },
  122. ],
  123. online_remark: [
  124. {
  125. required: true,
  126. message: "上线备注不能为空",
  127. trigger: "blur",
  128. },
  129. ],
  130. }
  131. export { options1, options2, options3, options4, options5, options6, options7, listCol, rules }