columns.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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: "cgdNo",
  39. label: "采购单编号",
  40. width: "160px",
  41. },
  42. {
  43. prop: "apply_name",
  44. label: "申请人",
  45. width: "65px",
  46. },
  47. {
  48. prop: "good_code",
  49. label: "商品编码",
  50. width: "150px",
  51. },
  52. {
  53. prop: "good_name",
  54. label: "商品名称",
  55. },
  56. {
  57. prop: "class_cat",
  58. label: "商品分类",
  59. },
  60. {
  61. prop: "good_weight",
  62. label: "商品总重量(g)",
  63. width: "110px",
  64. },
  65. {
  66. prop: "diff_weight",
  67. label: "工差总重量(g)",
  68. width: "110px",
  69. },
  70. {
  71. prop: "status",
  72. label: "状态",
  73. _slot_: "status",
  74. width: "120px",
  75. },
  76. {
  77. prop: "addtime",
  78. label: "创建时间",
  79. width: "140px",
  80. sortable: true,
  81. },
  82. {
  83. prop: "",
  84. label: "操作",
  85. fixed: "right",
  86. _noset_: true,
  87. width: "52px",
  88. _slot_: "operation",
  89. },
  90. ]
  91. export { options1, options2, options3, options4, options5, options6, options7, listCol }