wxzcDetail.js 4.6 KB

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