kyDeviceList.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. import { ZC_STATUS } from "@/config/dict";
  2. export default {
  3. height: 'auto',
  4. calcHeight: 30,
  5. tip: false,
  6. searchShow: true,
  7. searchMenuSpan: 6,
  8. border: true,
  9. index: true,
  10. delBtn: false,
  11. menu: false,
  12. selection: true,
  13. labelWidth: 120,
  14. menuWidth: 220,
  15. dialogClickModal: false,
  16. dialogWidth: 500,
  17. dialogType: "drawer",
  18. column: [
  19. {
  20. label: '月份',
  21. prop: 'yearAndMonth',
  22. width: 65,
  23. align: 'center',
  24. showOverflowTooltip: true,
  25. display: false
  26. },
  27. {
  28. label: '研发项目编号',
  29. prop: 'xmbh',
  30. type: 'input',
  31. span: 24,
  32. width: 100,
  33. align: 'center',
  34. showOverflowTooltip: true,
  35. display: false,
  36. },
  37. {
  38. label: '研发项目名称',
  39. prop: 'xmId',
  40. span: 24,
  41. hide: true,
  42. rules: [{
  43. required: true,
  44. message: '请选择资产名称',
  45. trigger: 'blur'
  46. }]
  47. },
  48. {
  49. label: '研发项目名称',
  50. prop: 'xmmc',
  51. type: 'input',
  52. span: 24,
  53. search: true,
  54. width: 120,
  55. showOverflowTooltip: true,
  56. display: false,
  57. },
  58. {
  59. label: '资产编码',
  60. prop: 'zcbm',
  61. type: 'input',
  62. span: 24,
  63. width: 100,
  64. align: 'center',
  65. showOverflowTooltip: true,
  66. display: false,
  67. },
  68. {
  69. label: '资产名称',
  70. prop: 'assetId',
  71. span: 24,
  72. hide: true,
  73. rules: [{
  74. required: true,
  75. message: '请选择资产名称',
  76. trigger: 'blur'
  77. }]
  78. },
  79. {
  80. label: '资产名称',
  81. prop: 'zcmc',
  82. type: 'input',
  83. span: 24,
  84. minWidth: 140,
  85. search: true,
  86. showOverflowTooltip: true,
  87. display: false,
  88. },
  89. {
  90. label: '资产类别',
  91. prop: 'zclb',
  92. type: 'select',
  93. dicUrl: '/api/kd-system/dict-biz/dictionary?code=zclb',
  94. props: {
  95. label: 'dictValue',
  96. value: 'dictKey',
  97. },
  98. span: 24,
  99. width: 85,
  100. align: 'center',
  101. showOverflowTooltip: true,
  102. display: false,
  103. },
  104. {
  105. label: '功率',
  106. prop: 'gl',
  107. type: 'input',
  108. span: 24,
  109. width: 70,
  110. align: 'center',
  111. showOverflowTooltip: true,
  112. display: false,
  113. },
  114. {
  115. label: '用途',
  116. prop: 'yt',
  117. type: 'select',
  118. dicUrl: '/api/kd-system/dict-biz/dictionary?code=zcyt',
  119. props: {
  120. label: 'dictValue',
  121. value: 'dictKey',
  122. },
  123. search: true,
  124. span: 24,
  125. width: 60,
  126. align: 'center',
  127. showOverflowTooltip: true,
  128. display: false,
  129. },
  130. {
  131. label: '折旧开始时间',
  132. prop: 'kssj',
  133. type: 'date',
  134. valueFormat: 'yyyy-MM-dd',
  135. span: 24,
  136. width: 95,
  137. align: 'center',
  138. showOverflowTooltip: true,
  139. display: false,
  140. },
  141. {
  142. label: '使用寿命',
  143. prop: 'sysm',
  144. type: 'number',
  145. span: 24,
  146. width: 70,
  147. search: true,
  148. align: 'center',
  149. showOverflowTooltip: true,
  150. display: false,
  151. },
  152. {
  153. label: '已使用月数',
  154. prop: 'ysysm',
  155. type: 'number',
  156. span: 24,
  157. width: 85,
  158. align: 'center',
  159. display: false,
  160. search: true,
  161. showOverflowTooltip: true,
  162. display: false,
  163. },
  164. {
  165. label: '资产原值(元)',
  166. prop: 'zcyz',
  167. type: 'number',
  168. span: 24,
  169. width: 95,
  170. align: 'center',
  171. search: true,
  172. showOverflowTooltip: true,
  173. display: false,
  174. },
  175. {
  176. label: '净残值(%)',
  177. prop: 'jcz',
  178. type: 'number',
  179. span: 24,
  180. width: 80,
  181. align: 'center',
  182. showOverflowTooltip: true,
  183. display: false,
  184. },
  185. {
  186. label: '月折旧额(每台/套)(K)',
  187. prop: 'yzje',
  188. type: 'number',
  189. span: 24,
  190. width: 120,
  191. align: 'center',
  192. search: true,
  193. showOverflowTooltip: true,
  194. display: false,
  195. },
  196. {
  197. label: '状态',
  198. prop: 'status',
  199. type: 'select',
  200. dicData: ZC_STATUS,
  201. search: true,
  202. span: 24,
  203. width: 90,
  204. align: 'center',
  205. showOverflowTooltip: true,
  206. display: false,
  207. }
  208. ],
  209. };