columns.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. // 是否定制 是否合规
  2. const options1 = [
  3. { id: '0', name: '否' },
  4. { id: '1', name: '是' }
  5. ]
  6. export const options01 = [
  7. { id: '0', name: '未设置' },
  8. { id: '1', name: '合规' },
  9. { id: '2', name: '不合规' }
  10. ]
  11. // 专属类型
  12. const options2 = [
  13. { id: '0', name: '非泰康' },
  14. { id: '1', name: '泰康' }
  15. ]
  16. // 销售权限
  17. const options3 = [
  18. { id: '0', name: '无销售权限' },
  19. { id: '1', name: '有销售权限' }
  20. ]
  21. // 是否库存品
  22. const options4 = [
  23. { id: '0', name: '非库存品' },
  24. { id: '1', name: '库存品' }
  25. ]
  26. // 是否启用实时金价
  27. const options5 = [
  28. { id: '0', name: '否' },
  29. { id: '1', name: '是' }
  30. ]
  31. // 供货区域
  32. const options6 = [
  33. { id: '1', name: '全国' },
  34. { id: '2', name: '全国除偏远' }
  35. ]
  36. // 是否启用阶梯
  37. const options7 = [
  38. { id: '0', name: '否' },
  39. { id: '1', name: '是' }
  40. ]
  41. const options8 = [
  42. { id: '1', name: '待完善成本', type: 'info' },
  43. { id: '2', name: '待产品审核', type: 'warning' },
  44. { id: '3', name: '上线已成功', type: 'success' },
  45. { id: '4', name: '上线已驳回', type: 'danger' },
  46. { id: '5', name: '商品已下线', type: 'info' }
  47. ]
  48. const listCol = [
  49. {
  50. prop: 'skuCode',
  51. label: '上线商品编号',
  52. fixed: 'left',
  53. width: '160px'
  54. },
  55. {
  56. prop: 'spuCode',
  57. label: '成本商品编号',
  58. width: '160px'
  59. },
  60. {
  61. prop: 'good_thumb_img',
  62. label: '图片',
  63. _slot_: 'good_thumb_img',
  64. width: '45px'
  65. },
  66. {
  67. prop: 'good_name',
  68. label: '名称',
  69. 'min-width': '160px'
  70. },
  71. // {
  72. // prop: "platform_code_en",
  73. // label: "平台编号",
  74. // width: "170px",
  75. // },
  76. // {
  77. // prop: 'supplierName',
  78. // label: '供应商',
  79. // width: '150px'
  80. // },
  81. {
  82. prop: 'platform_name',
  83. label: '平台名称',
  84. width: '100px'
  85. },
  86. {
  87. prop: 'is_stock',
  88. label: '商品类型',
  89. _slot_: 'is_stock',
  90. width: '90px'
  91. },
  92. {
  93. prop: 'status',
  94. label: '状态',
  95. _slot_: 'status',
  96. width: '118px'
  97. },
  98. {
  99. prop: 'cat_name',
  100. label: '分类',
  101. width: '118px'
  102. },
  103. {
  104. prop: 'good_type',
  105. label: '是否定制',
  106. _slot_: 'good_type',
  107. width: '70px'
  108. },
  109. {
  110. prop: 'is_compliance',
  111. label: '是否合规',
  112. _slot_: 'is_compliance',
  113. width: '70'
  114. },
  115. {
  116. prop: 'brand_name',
  117. label: '品牌'
  118. },
  119. {
  120. prop: 'companyNo',
  121. label: '业务公司编号',
  122. width: '160px'
  123. },
  124. {
  125. prop: 'company',
  126. label: '业务公司名称',
  127. width: '150px'
  128. },
  129. {
  130. prop: 'plat_code',
  131. label: '平台商品编号',
  132. width: '150px'
  133. },
  134. {
  135. prop: 'purchase',
  136. label: '成本创建人',
  137. width: '95'
  138. },
  139. {
  140. prop: 'company_name',
  141. label: '上线创建人部门',
  142. minWidth: '150px'
  143. },
  144. {
  145. prop: 'creater',
  146. label: '上线创建人',
  147. width: '90px'
  148. },
  149. {
  150. prop: 'addtime',
  151. label: '创建时间',
  152. width: '140px'
  153. },
  154. {
  155. prop: '',
  156. label: '操作',
  157. fixed: 'right',
  158. _noset_: true,
  159. width: '150px',
  160. _slot_: 'operation'
  161. }
  162. ]
  163. const rules = {
  164. platform: [
  165. {
  166. required: true,
  167. message: '请选择所属平台',
  168. trigger: 'change'
  169. }
  170. ],
  171. online_reason: [
  172. {
  173. required: true,
  174. message: '上线原因不能为空',
  175. trigger: 'blur'
  176. }
  177. ],
  178. online_remark: [
  179. {
  180. required: true,
  181. message: '上线备注不能为空',
  182. trigger: 'blur'
  183. }
  184. ]
  185. }
  186. export { options1, options2, options3, options4, options5, options6, options7, options8, listCol, rules }