columns.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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: "class_cat",
  55. label: "分类",
  56. },
  57. {
  58. prop: "class_cat",
  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: "120px",
  72. },
  73. {
  74. prop: "good_weight",
  75. label: "供应商编号",
  76. width: "110px",
  77. },
  78. {
  79. prop: "good_weight",
  80. label: "供应商名称",
  81. width: "110px",
  82. },
  83. {
  84. prop: "good_weight",
  85. label: "业务公司编号",
  86. width: "110px",
  87. },
  88. {
  89. prop: "good_weight",
  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. cat_id: [
  109. {
  110. type: "array",
  111. required: true,
  112. message: "商品分类",
  113. trigger: "change",
  114. },
  115. ],
  116. brandid: [
  117. {
  118. type: "array",
  119. required: false,
  120. message: "商品品牌",
  121. trigger: "change",
  122. },
  123. ],
  124. noble_weight: [
  125. {
  126. required: true,
  127. message: "贵金属重量为合法数字",
  128. trigger: "blur",
  129. },
  130. ],
  131. weight: [
  132. {
  133. required: true,
  134. message: "商品总重量为合法数字",
  135. trigger: "blur",
  136. },
  137. ],
  138. good_type: [
  139. {
  140. required: true,
  141. message: "请选择是否定制",
  142. trigger: "change",
  143. },
  144. ],
  145. is_stock: [
  146. {
  147. required: true,
  148. message: "请选择是否库存品",
  149. trigger: "change",
  150. },
  151. ],
  152. company_id: [
  153. {
  154. required: true,
  155. message: "请选择业务公司",
  156. trigger: "change",
  157. },
  158. ],
  159. supplierNo: [
  160. {
  161. type: "array",
  162. required: true,
  163. message: "请选择供应商",
  164. trigger: "change",
  165. },
  166. ],
  167. is_auth: [
  168. {
  169. required: true,
  170. message: "商品主图",
  171. trigger: "change",
  172. },
  173. ],
  174. tax: [
  175. {
  176. required: true,
  177. message: "请选择税率",
  178. trigger: "change",
  179. },
  180. ],
  181. good_name: [
  182. {
  183. required: true,
  184. message: "请输入商品名称",
  185. trigger: "blur",
  186. },
  187. ],
  188. unit: [
  189. {
  190. type: "array",
  191. required: true,
  192. message: "请输入商品单位",
  193. trigger: "blur",
  194. },
  195. ],
  196. is_exclusive: [
  197. {
  198. required: true,
  199. message: "请选择专属类型",
  200. trigger: "change",
  201. },
  202. ],
  203. noble_metal: [
  204. {
  205. required: true,
  206. message: "请选择贵金属种类",
  207. trigger: "change",
  208. },
  209. ],
  210. is_gold_price: [
  211. {
  212. required: true,
  213. message: "请选择是否启用实时金价",
  214. trigger: "change",
  215. },
  216. ],
  217. moq: [
  218. {
  219. required: true,
  220. message: "定制起订量应为合法数字",
  221. trigger: "blur",
  222. },
  223. ],
  224. customized: [
  225. {
  226. required: true,
  227. message: "定制工期为合法数字",
  228. trigger: "blur",
  229. },
  230. ],
  231. after_sales: [
  232. {
  233. required: true,
  234. message: "售后说明不能为空",
  235. trigger: "blur",
  236. },
  237. ],
  238. good_remark: [
  239. {
  240. required: true,
  241. message: "商品备注不能为空",
  242. trigger: "blur",
  243. },
  244. ],
  245. //包装/发货/图片
  246. packing_list: [
  247. {
  248. required: true,
  249. message: "请输入包装清单",
  250. trigger: "blur",
  251. },
  252. ],
  253. packing_way: [
  254. {
  255. required: true,
  256. message: "请输入包装方式",
  257. trigger: "blur",
  258. },
  259. ],
  260. packing_spec: [
  261. {
  262. required: true,
  263. message: "请输入装箱规格",
  264. trigger: "blur",
  265. },
  266. ],
  267. packing_weight: [
  268. {
  269. required: true,
  270. message: "请输入装箱重量",
  271. trigger: "blur",
  272. },
  273. ],
  274. packing_szie: [
  275. {
  276. required: true,
  277. message: "请输入装箱尺寸",
  278. trigger: "blur",
  279. },
  280. ],
  281. supply_area: [
  282. {
  283. required: true,
  284. message: "请选择供货区域",
  285. trigger: "change",
  286. },
  287. ],
  288. delivery_place: [
  289. {
  290. type: "array",
  291. required: true,
  292. message: "请选择发货地",
  293. trigger: "change",
  294. },
  295. ],
  296. origin_place: [
  297. {
  298. type: "array",
  299. required: true,
  300. message: "请选择产地",
  301. trigger: "change",
  302. },
  303. ],
  304. delivery_day: [
  305. {
  306. required: true,
  307. message: "请输入物流时间",
  308. trigger: "blur",
  309. },
  310. ],
  311. lead_time: [
  312. {
  313. required: true,
  314. message: "请输入供货周期",
  315. trigger: "blur",
  316. },
  317. ],
  318. sample_day: [
  319. {
  320. required: true,
  321. message: "请输入调样周期",
  322. trigger: "blur",
  323. },
  324. ],
  325. packing_size: [
  326. {
  327. required: true,
  328. message: "请输入装箱尺寸",
  329. trigger: "blur",
  330. },
  331. ],
  332. good_thumb_img: [
  333. {
  334. required: true,
  335. message: "商品缩略图",
  336. trigger: "change",
  337. },
  338. ],
  339. // good_img: [
  340. // {
  341. // required: true,
  342. // message: "商品详情主图",
  343. // trigger: "change",
  344. // },
  345. // ],
  346. good_info_img: [
  347. {
  348. type: "array",
  349. required: true,
  350. message: "商品详情介绍图",
  351. trigger: "change",
  352. },
  353. ],
  354. //固定成本
  355. cert_fee: [
  356. {
  357. required: true,
  358. message: "证书费应为合法数字",
  359. trigger: "blur",
  360. },
  361. ],
  362. packing_fee: [
  363. {
  364. required: true,
  365. message: "包装费应为合法数字",
  366. trigger: "blur",
  367. },
  368. ],
  369. cost_fee: [
  370. {
  371. required: true,
  372. message: "成本工艺费应为合法数字",
  373. trigger: "blur",
  374. },
  375. ],
  376. mark_fee: [
  377. {
  378. required: true,
  379. message: "加标费应为合法数字",
  380. trigger: "blur",
  381. },
  382. ],
  383. demo_fee: [
  384. {
  385. required: true,
  386. message: "打样应为合法数字",
  387. trigger: "blur",
  388. },
  389. ],
  390. open_fee: [
  391. {
  392. required: true,
  393. message: "开模费应为合法数字",
  394. trigger: "blur",
  395. },
  396. ],
  397. sample_fee: [
  398. {
  399. required: true,
  400. message: "调样费应为合法数字",
  401. trigger: "blur",
  402. },
  403. ],
  404. market_price: [
  405. {
  406. required: true,
  407. message: "市场价应为合法数字",
  408. trigger: "blur",
  409. },
  410. ],
  411. nake_price: [
  412. {
  413. required: true,
  414. message: "含税成本合计应为合法数字",
  415. trigger: "blur",
  416. },
  417. ],
  418. is_step: {
  419. required: true,
  420. message: "请选择是否启用阶梯",
  421. trigger: "change",
  422. },
  423. }
  424. export { options1, options2, options3, options4, options5, options6, options7, listCol, rules }