column.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. import CONFIG from "@/config";
  2. export const TableColumns = [
  3. // {
  4. // item: { key: "puOrgName", title: "采购组织" },
  5. // attr: {},
  6. // },
  7. // {
  8. // item: { key: "manufacturerName", title: "生产厂商" },
  9. // attr: {},
  10. // },
  11. // {
  12. // item: { key: "materialName", title: "物料名称" },
  13. // attr: {},
  14. // },
  15. {
  16. item: { key: "supplierName", title: "供应商", filterabled:true, },
  17. attr: {
  18. },
  19. },
  20. // {
  21. // item: { key: "customerName", title: "客户" },
  22. // attr: {},
  23. // },
  24. {
  25. item: { key: "priceType", title: "价格类型" ,width:145},
  26. attr: { is: "el-dict-tag", dictName: "sys_price_type" },
  27. },
  28. {
  29. item: { key: "effectiveDate", title: "价格生效日期",width:160 },
  30. attr: {},
  31. },
  32. {
  33. item: { key: "endDate", title: "价格失效日期" ,width:160},
  34. attr: {},
  35. },
  36. {
  37. item: { key: "tax", title: "税率 (%)" ,width:120},
  38. attr: {
  39. is: "el-computed-input-v2",
  40. formatter: (prop) => {
  41. return (prop * 1);
  42. },
  43. },
  44. },
  45. {
  46. item: { key: "taxFreePrice", title: "无税单价" ,width:150},
  47. attr: {
  48. is: "el-computed-input-v2",
  49. formatter: (prop) => {
  50. return (prop * 1);
  51. },
  52. },
  53. },
  54. {
  55. item: { key: "taxPrice", title: "主含税单价",width:150 },
  56. attr: {
  57. is: "el-computed-input-v2",
  58. formatter: (prop) => {
  59. return (prop * 1);
  60. },
  61. },
  62. },
  63. {
  64. item: { key: "purchaseQuantity", title: "本次采购数量", fixed: true ,width:160},
  65. attr: {
  66. is: "el-input-number",
  67. min: 0,
  68. max: (prop) => {
  69. const { puQty = 0, executeQty = 0 } = prop;
  70. return puQty - executeQty;
  71. },
  72. controlsPosition: "right",
  73. },
  74. },
  75. {
  76. item: { key: "arrivalDatePlan", title: "计划到货日期", fixed: true ,width:160},
  77. attr: {
  78. is: "el-date-picker",
  79. valueFormat: "yyyy-MM-dd",
  80. pickerOptions: {
  81. disabledDate(time) {
  82. return time.getTime() < Date.now();
  83. },
  84. },
  85. },
  86. },
  87. {
  88. item: { key: "note", title: "备注", fixed: true ,width:160},
  89. attr: {
  90. is: "el-input",
  91. autosize: true,
  92. type: "textarea",
  93. },
  94. },
  95. ];
  96. export const BasicColumns = [
  97. {
  98. item: { key: "materialCode", title: "物料编码" },
  99. attr: {},
  100. },
  101. {
  102. item: { key: "materialName", title: "物料名称" },
  103. attr: {},
  104. },
  105. {
  106. item: { key: "puOrgName", title: "采购组织" },
  107. attr: {},
  108. },
  109. {
  110. item: { key: "manufacturerName", title: "生产厂商" },
  111. attr: {},
  112. },
  113. {
  114. item: { key: "customerName", title: "需求客户" },
  115. attr: {},
  116. },
  117. {
  118. item: { key: "demandDate", title: "需求时间" },
  119. attr: {},
  120. },
  121. ]