columns.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 options8 = [
  37. { id: "0", name: "待提交" },
  38. { id: "1", name: "待完善成本" },
  39. { id: "2", name: "待产品审核" },
  40. { id: "3", name: "待财务定价" },
  41. { id: "4", name: "待财务审核定价" },
  42. { id: "5", name: "待上线" },
  43. { id: "6", name: "上线成功" },
  44. { id: "7", name: "审核失败" },
  45. ]
  46. const listCol = [
  47. {
  48. prop: "skuCode",
  49. label: "编号",
  50. fixed: "left",
  51. width: "160px",
  52. },
  53. {
  54. prop: "good_thumb_img",
  55. label: "图片",
  56. _slot_: "good_thumb_img",
  57. width: "45px",
  58. },
  59. {
  60. prop: "good_name",
  61. label: "名称",
  62. "min-width": "160px",
  63. },
  64. // {
  65. // prop: "platform_code_en",
  66. // label: "平台编号",
  67. // width: "170px",
  68. // },
  69. {
  70. prop: "platform_name",
  71. label: "平台名称",
  72. width: "118px",
  73. },
  74. {
  75. prop: "status",
  76. label: "状态",
  77. _slot_: "status",
  78. width: "118px",
  79. },
  80. {
  81. prop: "cat_name",
  82. label: "分类",
  83. width: "118px",
  84. },
  85. {
  86. prop: "good_type",
  87. label: "是否定制",
  88. _slot_: "good_type",
  89. width: "70px",
  90. },
  91. // {
  92. // prop: "good_type",
  93. // label: "库存类型",
  94. // _slot_: "good_type",
  95. // width: "70px",
  96. // },
  97. {
  98. prop: "brand_name",
  99. label: "品牌",
  100. },
  101. // {
  102. // prop: "supplierNo",
  103. // label: "供应商编号",
  104. // width: "110px",
  105. // },
  106. // {
  107. // prop: "supplier_name",
  108. // label: "供应商名称",
  109. // width: "110px",
  110. // },
  111. {
  112. prop: "companyNo",
  113. label: "业务公司编号",
  114. width: "110px",
  115. },
  116. {
  117. prop: "company",
  118. label: "业务公司名称",
  119. width: "110px",
  120. },
  121. {
  122. prop: "creater",
  123. label: "创建人",
  124. width: "70px",
  125. },
  126. {
  127. prop: "addtime",
  128. label: "创建时间",
  129. width: "140px",
  130. },
  131. {
  132. prop: "",
  133. label: "操作",
  134. fixed: "right",
  135. _noset_: true,
  136. width: "50px",
  137. _slot_: "operation",
  138. },
  139. ]
  140. const rules = {
  141. platform: [
  142. {
  143. type: "array",
  144. required: true,
  145. message: "请选择所属平台",
  146. trigger: "change",
  147. },
  148. ],
  149. online_reason: [
  150. {
  151. required: true,
  152. message: "上线原因不能为空",
  153. trigger: "blur",
  154. },
  155. ],
  156. online_remark: [
  157. {
  158. required: true,
  159. message: "上线备注不能为空",
  160. trigger: "blur",
  161. },
  162. ],
  163. }
  164. export { options1, options2, options3, options4, options5, options6, options7, options8, listCol, rules }