wwCostLedger.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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: 'amount',
  20. type: 'sum',
  21. },
  22. ],
  23. column: [
  24. {
  25. label: '研发项目编号',
  26. prop: 'xmbh',
  27. type: 'input',
  28. span: 24,
  29. width: 100,
  30. align: 'center',
  31. showOverflowTooltip: true,
  32. display: false,
  33. },
  34. {
  35. label: '研发项目名称',
  36. prop: 'xmmc',
  37. span: 24,
  38. minWidth: 160,
  39. search: true,
  40. showOverflowTooltip: true,
  41. display: false
  42. },
  43. {
  44. label: '研发项目名称',
  45. prop: 'xmId',
  46. type: 'select',
  47. span: 24,
  48. showOverflowTooltip: true,
  49. rules: [
  50. {
  51. required: true,
  52. message: '请选择研发项目名称',
  53. trigger: 'blur',
  54. },
  55. ],
  56. hide: true,
  57. },
  58. {
  59. label: '费用类型',
  60. prop: 'type',
  61. span: 24,
  62. width: 100,
  63. align: 'center',
  64. display: false,
  65. showOverflowTooltip: true,
  66. },
  67. {
  68. label: '日期',
  69. prop: 'rq',
  70. type: 'date',
  71. valueFormat: 'yyyy-MM-dd',
  72. span: 24,
  73. width: 90,
  74. align: 'center',
  75. search: true,
  76. showOverflowTooltip: true,
  77. rules: [{
  78. required: true,
  79. message: '请选择日期',
  80. trigger: 'blur'
  81. }]
  82. },
  83. {
  84. label: '受托方全称',
  85. prop: 'stfqcId',
  86. type: 'select',
  87. dicData: [],
  88. props: {
  89. label: 'stfqc',
  90. value: 'id'
  91. },
  92. span: 24,
  93. width: 140,
  94. hide: true,
  95. showOverflowTooltip: true,
  96. rules: [{
  97. required: true,
  98. message: '请选择受托方全称',
  99. trigger: 'blur'
  100. }]
  101. },
  102. {
  103. label: '受托方全称',
  104. prop: 'stfqc',
  105. span: 24,
  106. width: 140,
  107. display: false,
  108. showOverflowTooltip: true,
  109. },
  110. {
  111. label: '受托方类型',
  112. prop: 'stflx',
  113. span: 24,
  114. type: 'select',
  115. width: 100,
  116. align: 'center',
  117. dicUrl: '/api/kd-system/dict-biz/dictionary?code=trustee_type',
  118. props: {
  119. label: 'dictValue',
  120. value: 'dictKey',
  121. },
  122. display: false,
  123. search: true,
  124. showOverflowTooltip: true,
  125. },
  126. {
  127. label: '合同名称',
  128. prop: 'htmc',
  129. width: 110,
  130. span: 24,
  131. display: false,
  132. showOverflowTooltip: true,
  133. },
  134. {
  135. label: '委外费用金额(元)',
  136. prop: 'wwje',
  137. width: 100,
  138. align: 'center',
  139. span: 24,
  140. type: 'number',
  141. min: 0,
  142. precision: 2,
  143. showOverflowTooltip: true,
  144. rules: [{
  145. required: true,
  146. message: '请输入委外费用金额',
  147. trigger: 'blur'
  148. }]
  149. },
  150. {
  151. label: '是否完成技术合同登记',
  152. prop: 'sfwcjshtdj',
  153. width: 100,
  154. align: 'center',
  155. span: 24,
  156. type: 'select',
  157. dicUrl: '/api/kd-system/dict-biz/dictionary?code=yes_or_no',
  158. props: {
  159. label: 'dictValue',
  160. value: 'dictKey',
  161. },
  162. display: false,
  163. search: true,
  164. showOverflowTooltip: true,
  165. },
  166. {
  167. label: '技术合同类型',
  168. prop: 'jshtdjlx',
  169. width: 100,
  170. align: 'center',
  171. span: 24,
  172. type: 'select',
  173. dicUrl: '/api/kd-system/dict-biz/dictionary?code=contract_registration_type',
  174. props: {
  175. label: 'dictValue',
  176. value: 'dictKey',
  177. },
  178. display: false,
  179. search: true,
  180. showOverflowTooltip: true,
  181. },
  182. {
  183. label: '技术合同登记金额(万元)',
  184. prop: 'jshtdjje',
  185. width: 130,
  186. align: 'center',
  187. span: 24,
  188. type: 'number',
  189. min: 0,
  190. precision: 2,
  191. display: false,
  192. showOverflowTooltip: true,
  193. },
  194. ],
  195. };