columns.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. export const TableColumns = [
  2. { item: { key: "createName", title: "创建人" ,width:150, }, attr: {} },
  3. { item: { key: "createTime", title: "创建时间" ,width:150,}, attr: {} },
  4. { item: { key: "billCode", title: "单据编码" }, attr: {} },
  5. {
  6. item: { key: "proposerName", title: "申请人",width:150, },
  7. attr: { },
  8. },
  9. { item: { key: "status", title: "单据状态",width:120, },
  10. attr: {
  11. is: "el-dict-tag",
  12. dictName: "documents_status", // 字典名
  13. }
  14. },
  15. { item: { key: "oneClassify", title: "物料一级分类" ,width:150,}, attr: {} },
  16. { item: { key: "materialType", title: "物料基本分类" ,width:150,}, attr: {} },
  17. {
  18. item: { key: "code", title: "物料编码" },
  19. attr: {
  20. }
  21. },
  22. { item: { key: "name", title: "物料名称" }, attr: {} },
  23. { item: { key: "specification", title: "规格" ,width:150,}, attr: {} },
  24. { item: { key: "manufacturerName", title: "生产厂家/代理人" ,width:150,}, attr: {} },
  25. { item: { key: "registrationNo", title: "注册证号" ,width:150,}, attr: {} },
  26. { item: { key: "registrant", title: "注册人" ,width:150,}, attr: {} },
  27. { item: { key: "updateTime", title: "最后修改时间" ,width:150,}, attr: {} },
  28. { item: { key: "reviewedName", title: "最后审批人" ,width:150,}, attr: {} },
  29. { item: { key: "auditTime", title: "最后审批时间" ,width:150,}, attr: {} },
  30. // { item: { key: "orgName", title: "审批语" ,width:150,}, attr: {} },
  31. // { item: { key: "orgName", title: "所属组织" ,width:150,}, attr: {} },
  32. // { item: { key: "createTime", title: "申请时间",width:150, }, attr: {} },
  33. // {
  34. // item: { key: "updateName", title: "最后修改人" ,width:150, },
  35. // attr: { },
  36. // },
  37. ].map(({ item, attr }) => ({
  38. attr,
  39. item: { ...item, hidden: true, fixed: false },
  40. }));
  41. export const SearchColumns = [
  42. {
  43. item: { key: "billCode", title: "单据编码" },
  44. attr: {
  45. is: "el-input",
  46. clearable:true,
  47. },
  48. },
  49. {
  50. item: { key: "status", title: "单据状态" },
  51. attr: {
  52. is: "el-select",
  53. dictName: "documents_status",
  54. clearable: true,
  55. },
  56. },
  57. {
  58. item: { key: "name", title: "物料名称" },
  59. attr: {
  60. is: "el-popover-select-v2",
  61. referName: "MATERIAL_PARAM",
  62. valueKey: "name",
  63. clearable:true,
  64. },
  65. },
  66. {
  67. item: { key: "code", title: "物料编码" },
  68. attr: {
  69. is: "el-popover-select-v2",
  70. referName: "MATERIAL_PARAM",
  71. valueKey: "code",
  72. clearable:true,
  73. },
  74. },
  75. {
  76. item: { key: "classifySearchList", title: "品类" },
  77. attr: {
  78. is: "el-popover-multiple-tree-select",
  79. referName: "MATERIALCLASSIFY_PARAM",
  80. valueKey: "id",
  81. clearable:true,
  82. },
  83. },
  84. {
  85. item: { key: "proposerName", title: "申请人" },
  86. attr: {
  87. is: "el-popover-select-v2",
  88. referName: "CONTACTS_PARAM",
  89. valueKey: "name",
  90. dataMapping: {
  91. proposerId: "code",
  92. },
  93. clearable: true,
  94. },
  95. },
  96. {
  97. item: { key: "createTimeString", title: "申请时间" },
  98. attr: {
  99. is: "el-date-picker",
  100. valueFormat: "yyyy-MM-dd" ,
  101. clearable: true,
  102. },
  103. },
  104. {
  105. item: { key: "reviewedName", title: "最后审批人" },
  106. attr: {
  107. is: "el-popover-select-v2",
  108. referName: "CONTACTS_PARAM",
  109. valueKey: "name",
  110. dataMapping: {
  111. reviewedBy: "code",
  112. },
  113. clearable: true,
  114. },
  115. },
  116. {
  117. item: { key: "auditTimeString", title: "审批时间" },
  118. attr: {
  119. is: "el-date-picker",
  120. valueFormat: "yyyy-MM-dd" ,
  121. clearable: true,
  122. },
  123. },
  124. {
  125. item: { key: "manufacturerName", title: "生产厂家/代理人" },
  126. attr: {
  127. clearable:true,
  128. is: "el-popover-select-v2",
  129. valueKey: "name",
  130. referName: "MANUFACTURER_PARAM",
  131. dataMapping: {
  132. manufacturerId: "id",
  133. },
  134. },
  135. },
  136. // {
  137. // item: { key: "registrationNo", title: "注册证号" },
  138. // attr: {
  139. // clearable:true,
  140. // is: "el-input",
  141. // },
  142. // },
  143. ].map(({ item, attr }) => ({
  144. attr,
  145. item: { ...item, hidden: true, span: item.span || 6 },
  146. }));