column.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. export const FormColumns = [
  2. {
  3. key: "puOrgName",
  4. title: "采购组织",
  5. },
  6. // {
  7. // key: "puOrg",
  8. // title: "采购组织编码",
  9. // },
  10. { key: "materialName", title: "物料" },
  11. { key: "materialCode", title: "物料编码" },
  12. { key: "materialClassifyName", title: "物料一级分类" },
  13. { key: "manufacturerName", title: "生产厂家名称" },
  14. // { key: "manufacturer", title: "生产厂家" },
  15. { key: "model", title: "物料型号" },
  16. { key: "specification", title: "物料规格" },
  17. // { key: "supplier", title: "供应商" },
  18. {
  19. key: "supplierName",
  20. title: "供应商名称",
  21. },
  22. // { key: "customer", title: "客户" },
  23. { key: "customerName", title: "客户" },
  24. {
  25. key: "taxPrice",
  26. title: "主含税单价",
  27. formatter: (prop) => (prop ? prop.toFixed(6) : null),
  28. },
  29. // { key: "unit", title: "主单位" },
  30. { key: "unitName", title: "主单位" },
  31. { key: "effectiveDate", title: "价格生效日期" },
  32. { key: "endDate", title: "价格失效日期" },
  33. // { key: "buyer", title: "采购员" },
  34. { key: "buyerName", title: "采购员" },
  35. { key: "source", title: "来源单据编号" },
  36. {
  37. key: "convertRate",
  38. title: "换算率",
  39. formatter: (prop) => (prop ? prop.toFixed(6) : null),
  40. },
  41. {
  42. key: "status",
  43. title: "有效状态",
  44. inputType: "Select",
  45. referName: "is_effective",
  46. width: 100,
  47. },
  48. {
  49. key: "enableStatus",
  50. title: "启用状态",
  51. inputType: "Select",
  52. referName: "is_effective",
  53. width: 100,
  54. },
  55. {
  56. key: "materialStatus",
  57. title: "物料启用状态",
  58. inputType: "Select",
  59. referName: "is_effective",
  60. },
  61. {
  62. key: "isDistribution",
  63. title: "配送价",
  64. inputType: "Select",
  65. referName: "is_effective",
  66. },
  67. {
  68. key: "priceType",
  69. title: "价格类型",
  70. inputType: "Select",
  71. referName: "sys_price_type",
  72. },
  73. { key: "demandCode", title: "采购需求单号" },
  74. { key: "expiryEarly", title: "效期预警" },
  75. { key: "priority", title: "含税/无税优先" },
  76. { key: "createByName", title: "创建人" },
  77. { key: "updateByName", title: "更新人名称" },
  78. ];
  79. export const SearchColumns = [
  80. {
  81. key: "puOrgName",
  82. title: "采购组织",
  83. inputType: "PopoverSelect",
  84. referName: "ORG_PARAM",
  85. dataMapping: {
  86. puOrg: "id",
  87. puOrgName: "name",
  88. },
  89. },
  90. {
  91. key: "manufacturer",
  92. title: "生产厂家",
  93. inputType: "Input",
  94. },
  95. {
  96. key: "supplierName",
  97. title: "供应商",
  98. inputType: "PopoverSelect",
  99. referName: "SUPPLIER_PARAM",
  100. dataMapping: {
  101. supplier: "id",
  102. supplierName: "name",
  103. },
  104. },
  105. { key: "source", title: "来源单据编号", inputType: "Input" },
  106. {
  107. key: "materialCode",
  108. title: "物料编码",
  109. inputType: "PopoverSelect",
  110. referName: "MATERIAL_PARAM",
  111. dataMapping: {
  112. material: "id",
  113. materialCode: "code",
  114. },
  115. },
  116. {
  117. key: "status",
  118. title: "有效状态",
  119. inputType: "Select",
  120. referName: "is_effective",
  121. },
  122. {
  123. key: "enableStatus",
  124. title: "启用状态",
  125. inputType: "Select",
  126. referName: "is_effective",
  127. },
  128. ];
  129. export default { FormColumns, SearchColumns };