column.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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: "demandDate", title: "需求时间" },
  17. attr: {},
  18. },
  19. {
  20. item: { key: "supplierName", title: "供应商", filterabled:true, },
  21. attr: {
  22. },
  23. },
  24. {
  25. item: { key: "customerName", title: "客户" },
  26. attr: {},
  27. },
  28. {
  29. item: { key: "priceType", title: "价格类型" },
  30. attr: { is: "el-dict-tag", dictName: "sys_price_type" },
  31. },
  32. {
  33. item: { key: "effectiveDate", title: "价格生效日期" },
  34. attr: {},
  35. },
  36. {
  37. item: { key: "endDate", title: "价格失效日期" },
  38. attr: {},
  39. },
  40. {
  41. item: { key: "tax", title: "税率 (%)" },
  42. attr: {
  43. is: "el-computed-input-v2",
  44. formatter: (prop) => {
  45. return (prop * 1);
  46. },
  47. },
  48. },
  49. {
  50. item: { key: "taxFreePrice", title: "无税单价" },
  51. attr: {
  52. is: "el-computed-input-v2",
  53. formatter: (prop) => {
  54. return (prop * 1);
  55. },
  56. },
  57. },
  58. {
  59. item: { key: "taxPrice", title: "主含税单价" },
  60. attr: {
  61. is: "el-computed-input-v2",
  62. formatter: (prop) => {
  63. return (prop * 1);
  64. },
  65. },
  66. },
  67. {
  68. item: { key: "purchaseQuantity", title: "本次采购数量", fixed: true },
  69. attr: {
  70. is: "el-input-number",
  71. min: 0,
  72. max: (prop) => {
  73. const { puQty = 0, executeQty = 0 } = prop;
  74. return puQty - executeQty;
  75. },
  76. controlsPosition: "right",
  77. },
  78. },
  79. {
  80. item: { key: "arrivalDatePlan", title: "计划到货日期", fixed: true },
  81. attr: {
  82. is: "el-date-picker",
  83. valueFormat: "yyyy-MM-dd",
  84. pickerOptions: {
  85. disabledDate(time) {
  86. return time.getTime() < Date.now();
  87. },
  88. },
  89. },
  90. },
  91. {
  92. item: { key: "note", title: "备注", fixed: true },
  93. attr: {
  94. is: "el-input",
  95. autosize: true,
  96. type: "textarea",
  97. },
  98. },
  99. ];