leaseRecords.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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: 'quantity',
  20. type: 'sum',
  21. },
  22. {
  23. name: 'amount',
  24. type: 'sum'
  25. }
  26. ],
  27. column: [
  28. {
  29. label: '租赁日期',
  30. prop: 'leaseDate',
  31. type: 'date',
  32. valueFormat: 'yyyy-MM-dd',
  33. span: 24,
  34. width: 90,
  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: 'xmmc',
  59. type: 'input',
  60. span: 24,
  61. minWidth: 160,
  62. search: true,
  63. showOverflowTooltip: true,
  64. display: false
  65. },
  66. {
  67. label: '研发项目名称',
  68. prop: 'xmId',
  69. type: 'select',
  70. span: 24,
  71. minWidth: 160,
  72. search: false,
  73. showOverflowTooltip: true,
  74. rules: [
  75. {
  76. required: true,
  77. message: '请选择研发项目名称',
  78. trigger: 'blur',
  79. },
  80. ],
  81. hide: true,
  82. },
  83. {
  84. label: '租赁资产类型',
  85. prop: 'type',
  86. type: 'select',
  87. span: 24,
  88. width: 100,
  89. align: 'center',
  90. search: true,
  91. dicUrl: '/api/kd-system/dict-biz/dictionary?code=zulinzichan_lx',
  92. props: {
  93. label: 'dictValue',
  94. value: 'dictKey',
  95. },
  96. showOverflowTooltip: true,
  97. rules: [
  98. {
  99. required: true,
  100. message: '请选择租赁资产类型',
  101. trigger: 'blur',
  102. },
  103. ],
  104. },
  105. {
  106. label: '租赁资产名称',
  107. prop: 'name',
  108. type: 'input',
  109. span: 24,
  110. search: true,
  111. width: 160,
  112. showOverflowTooltip: true,
  113. rules: [
  114. {
  115. required: true,
  116. message: '请输入租赁资产名称',
  117. trigger: 'blur',
  118. },
  119. ],
  120. },
  121. {
  122. label: '型号规格',
  123. prop: 'model',
  124. type: 'input',
  125. span: 24,
  126. search: true,
  127. minWidth: 140,
  128. showOverflowTooltip: true,
  129. },
  130. {
  131. label: '使用天数或使用量',
  132. prop: 'quantity',
  133. type: 'number',
  134. span: 24,
  135. width: 120,
  136. align: 'center',
  137. min: 0,
  138. precision: 0,
  139. showOverflowTooltip: true,
  140. rules: [
  141. {
  142. required: true,
  143. message: '请输入使用天数或使用量',
  144. trigger: 'blur',
  145. },
  146. ],
  147. },
  148. {
  149. label: '单价(元)',
  150. prop: 'unitPrice',
  151. type: 'number',
  152. span: 24,
  153. width: 100,
  154. align: 'center',
  155. min: 0,
  156. precision: 2,
  157. showOverflowTooltip: true,
  158. rules: [
  159. {
  160. required: true,
  161. message: '请输入单价',
  162. trigger: 'blur',
  163. },
  164. ],
  165. },
  166. {
  167. label: '总价(不含税)',
  168. prop: 'amount',
  169. type: 'number',
  170. span: 24,
  171. width: 120,
  172. align: 'center',
  173. min: 0,
  174. precision: 2,
  175. showOverflowTooltip: true,
  176. display: false
  177. },
  178. ],
  179. };