columns.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. { id: "8", name: "已下线" },
  46. ]
  47. //是否库存品
  48. const options9 = [
  49. { id: "0", name: "非库存品" },
  50. { id: "1", name: "库存品" },
  51. ]
  52. const listCol = [
  53. {
  54. prop: "skuCode",
  55. label: "编号",
  56. fixed: "left",
  57. width: "160px",
  58. },
  59. {
  60. prop: "platform_name",
  61. label: "平台名称",
  62. width: "110px",
  63. },
  64. {
  65. prop: "good_thumb_img",
  66. label: "图片",
  67. _slot_: "good_thumb_img",
  68. width: "45px",
  69. },
  70. {
  71. prop: "good_name",
  72. label: "名称",
  73. "min-width": "160px",
  74. },
  75. // {
  76. // prop: "platform_code_en",
  77. // label: "平台编号",
  78. // width: "170px",
  79. // },
  80. // {
  81. // prop: "status",
  82. // label: "状态",
  83. // _slot_: "status",
  84. // width: "118px",
  85. // },
  86. {
  87. prop: "cat_name",
  88. label: "分类",
  89. width: "140px",
  90. },
  91. {
  92. prop: "good_type",
  93. label: "定制",
  94. _slot_: "good_type",
  95. width: "70px",
  96. },
  97. {
  98. prop: "is_stock",
  99. label: "库存类型",
  100. _slot_: "is_stock",
  101. width: "70px",
  102. },
  103. {
  104. prop: "brand_name",
  105. label: "品牌",
  106. },
  107. {
  108. prop: "plat_code",
  109. label: "平台商品编号",
  110. width: "100px",
  111. },
  112. {
  113. prop: "moq",
  114. label: "最小起订量",
  115. width: "85px",
  116. },
  117. {
  118. prop: "market_price",
  119. label: "售价",
  120. width: "70px",
  121. },
  122. {
  123. prop: "stock_total",
  124. label: "可用库存",
  125. width: "70px",
  126. },
  127. {
  128. prop: "purchase",
  129. label: "采购员",
  130. width: "70px",
  131. },
  132. {
  133. prop: "creater",
  134. label: "创建人",
  135. width: "70px",
  136. },
  137. {
  138. prop: "companyNo",
  139. label: "业务公司编号",
  140. width: "155px",
  141. },
  142. {
  143. prop: "company",
  144. label: "业务公司名称",
  145. width: "150px",
  146. },
  147. // {
  148. // prop: "addtime",
  149. // label: "创建时间",
  150. // width: "140px",
  151. // },
  152. {
  153. prop: "",
  154. label: "操作",
  155. fixed: "right",
  156. _noset_: true,
  157. width: "50px",
  158. _slot_: "operation",
  159. },
  160. ]
  161. const rules = {
  162. platform: [
  163. {
  164. required: true,
  165. message: "请选择所属平台",
  166. trigger: "change",
  167. },
  168. ],
  169. online_reason: [
  170. {
  171. required: true,
  172. message: "上线原因不能为空",
  173. trigger: "blur",
  174. },
  175. ],
  176. online_remark: [
  177. {
  178. required: true,
  179. message: "上线备注不能为空",
  180. trigger: "blur",
  181. },
  182. ],
  183. }
  184. export { options1, options2, options3, options4, options5, options6, options7, options8, options9, listCol, rules }