assetLegder.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. export default {
  2. height: 'auto',
  3. calcHeight: 30,
  4. tip: false,
  5. searchShow: true,
  6. searchMenuSpan: 6,
  7. border: true,
  8. index: true,
  9. addBtn: false,
  10. menu: false,
  11. selection: false,
  12. searchLabelWidth: 140,
  13. labelWidth: 140,
  14. menuWidth: 220,
  15. dialogClickModal: false,
  16. dialogWidth: 760,
  17. dialogType: "drawer",
  18. column: [
  19. {
  20. label: '月份',
  21. prop: 'month',
  22. type: 'input',
  23. width: 100,
  24. align: 'center',
  25. showOverflowTooltip: true,
  26. },
  27. {
  28. label: '研发项目编号',
  29. prop: 'yfzcbh',
  30. type: 'input',
  31. width: 160,
  32. align: 'center',
  33. search: true,
  34. showOverflowTooltip: true,
  35. },
  36. {
  37. label: '研发项目名称',
  38. prop: 'yfxmmc',
  39. type: 'input',
  40. search: true,
  41. width: 160,
  42. showOverflowTooltip: true,
  43. },
  44. {
  45. label: '资产编码',
  46. prop: 'zcbm',
  47. type: 'select',
  48. width: 120,
  49. align: 'center',
  50. showOverflowTooltip: true,
  51. },
  52. {
  53. label: '资产名称',
  54. prop: 'zcmc',
  55. width: 140,
  56. align: 'center',
  57. showOverflowTooltip: true,
  58. },
  59. {
  60. label: '资产类别',
  61. prop: 'zclb',
  62. type: 'select',
  63. width: 120,
  64. align: 'center',
  65. dicUrl: '/api/kd-system/dict/dictionary?code=asset_category',
  66. search: true,
  67. props: {
  68. label: 'dictValue',
  69. value: 'dictKey',
  70. },
  71. showOverflowTooltip: true,
  72. },
  73. {
  74. label: '功率',
  75. prop: 'gl',
  76. type: 'input',
  77. width: 90,
  78. align: 'center',
  79. showOverflowTooltip: true,
  80. },
  81. {
  82. label: '用途',
  83. prop: 'yt',
  84. type: 'select',
  85. width: 90,
  86. dicUrl: '/api/kd-system/dict/dictionary?code=asset_category',
  87. search: true,
  88. props: {
  89. label: 'dictValue',
  90. value: 'dictKey',
  91. },
  92. align: 'center',
  93. showOverflowTooltip: true,
  94. },
  95. {
  96. label: '折旧开始时间',
  97. prop: 'zjkssj',
  98. type: 'date',
  99. valueFormat: 'yyyy-MM-dd',
  100. width: 120,
  101. search: true,
  102. align: 'center',
  103. showOverflowTooltip: true,
  104. },
  105. {
  106. label: '使用寿命(月)',
  107. prop: 'sysm',
  108. type: 'number',
  109. width: 90,
  110. search: true,
  111. align: 'center',
  112. showOverflowTooltip: true,
  113. },
  114. {
  115. label: '已使用月数',
  116. prop: 'ysyys',
  117. type: 'number',
  118. width: 110,
  119. search: true,
  120. align: 'center',
  121. showOverflowTooltip: true,
  122. },
  123. {
  124. label: '资产原值(元)',
  125. prop: 'zcyz',
  126. type: 'number',
  127. width: 110,
  128. search: true,
  129. align: 'center',
  130. showOverflowTooltip: true,
  131. },
  132. {
  133. label: '净残值率(%)',
  134. prop: 'jcz',
  135. type: 'number',
  136. width: 110,
  137. search: true,
  138. align: 'center',
  139. showOverflowTooltip: true,
  140. formatter:(row, value)=>{
  141. return value+'%'
  142. }
  143. },
  144. {
  145. label: '月折旧额/月摊销额(元)',
  146. prop: 'zje',
  147. type: 'number',
  148. width: 150,
  149. search: true,
  150. align: 'center',
  151. showOverflowTooltip: true,
  152. },
  153. ],
  154. };