leaseRecords.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. selection: true,
  10. searchLabelWidth: 140,
  11. labelWidth: 130,
  12. menuWidth: 140,
  13. dialogClickModal: false,
  14. dialogWidth: 500,
  15. dialogType: "drawer",
  16. showSummary: true,
  17. sumColumnList: [
  18. {
  19. name: 'dj',
  20. type: 'sum',
  21. },
  22. {
  23. name: 'zj',
  24. type: 'sum'
  25. }
  26. ],
  27. column: [
  28. {
  29. label: '日期',
  30. prop: 'rq',
  31. type: 'date',
  32. valueFormat: 'yyyy-MM-dd',
  33. span: 24,
  34. width: 100,
  35. align: 'center',
  36. showOverflowTooltip: true,
  37. rules: [
  38. {
  39. required: true,
  40. message: '请选择日期',
  41. trigger: 'blur',
  42. },
  43. ],
  44. },
  45. {
  46. label: '研发项目编号',
  47. prop: 'xmbh',
  48. type: 'input',
  49. span: 24,
  50. search: true,
  51. width: 100,
  52. align: 'center',
  53. showOverflowTooltip: true,
  54. display: false,
  55. },
  56. {
  57. label: '研发项目名称',
  58. prop: 'xmId',
  59. type: 'select',
  60. span: 24,
  61. minWidth: 160,
  62. search: true,
  63. showOverflowTooltip: true,
  64. rules: [
  65. {
  66. required: true,
  67. message: '请选择研发项目名称',
  68. trigger: 'blur',
  69. },
  70. ],
  71. },
  72. {
  73. label: '租赁资产类型',
  74. prop: 'zlzclx',
  75. type: 'select',
  76. span: 24,
  77. width: 100,
  78. align: 'center',
  79. search: true,
  80. dicUrl: '/api/kd-system/dict-biz/dictionary?code=renyuanleixing',
  81. props: {
  82. label: 'dictValue',
  83. value: 'dictKey',
  84. },
  85. showOverflowTooltip: true,
  86. rules: [
  87. {
  88. required: true,
  89. message: '请选择租赁资产类型',
  90. trigger: 'blur',
  91. },
  92. ],
  93. },
  94. {
  95. label: '租赁资产名称',
  96. prop: 'zlzcmc',
  97. type: 'input',
  98. span: 24,
  99. search: true,
  100. width: 160,
  101. align: 'center',
  102. showOverflowTooltip: true,
  103. rules: [
  104. {
  105. required: true,
  106. message: '请输入租赁资产名称',
  107. trigger: 'blur',
  108. },
  109. ],
  110. },
  111. {
  112. label: '型号规格',
  113. prop: 'xhgg',
  114. type: 'input',
  115. span: 24,
  116. search: true,
  117. minWidth: 140,
  118. showOverflowTooltip: true,
  119. },
  120. {
  121. label: '使用天数或使用量',
  122. prop: 'dw',
  123. type: 'number',
  124. span: 24,
  125. width: 140,
  126. align: 'center',
  127. min: 0,
  128. precision: 0,
  129. showOverflowTooltip: true,
  130. },
  131. {
  132. label: '单价(元)',
  133. prop: 'dj',
  134. type: 'number',
  135. span: 24,
  136. width: 100,
  137. align: 'center',
  138. min: 0,
  139. precision: 2,
  140. showOverflowTooltip: true,
  141. },
  142. {
  143. label: '总价(不含税)',
  144. prop: 'zj',
  145. type: 'number',
  146. span: 24,
  147. width: 120,
  148. align: 'center',
  149. min: 0,
  150. precision: 2,
  151. showOverflowTooltip: true,
  152. display: false
  153. },
  154. ],
  155. };