projectZjtrCost.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. label: '合计:',
  20. name: 'amount',
  21. type: 'sum',
  22. },
  23. ],
  24. column: [
  25. {
  26. label: '日期',
  27. prop: 'useDate',
  28. type: 'date',
  29. valueFormat: 'yyyy-MM-dd',
  30. span: 24,
  31. width: 90,
  32. align: 'center',
  33. showOverflowTooltip: true,
  34. rules: [
  35. {
  36. required: true,
  37. message: '请选择日期',
  38. trigger: 'blur',
  39. },
  40. ],
  41. },
  42. {
  43. label: '研发项目编号',
  44. prop: 'xmbh',
  45. type: 'input',
  46. span: 24,
  47. search: true,
  48. width: 100,
  49. align: 'center',
  50. showOverflowTooltip: true,
  51. display: false,
  52. },
  53. {
  54. label: '研发项目名称',
  55. prop: 'xmmc',
  56. span: 24,
  57. minWidth: 160,
  58. search: true,
  59. showOverflowTooltip: true,
  60. display: false
  61. },
  62. {
  63. label: '研发项目名称',
  64. prop: 'xmId',
  65. type: 'select',
  66. span: 24,
  67. showOverflowTooltip: true,
  68. rules: [
  69. {
  70. required: true,
  71. message: '请选择研发项目名称',
  72. trigger: 'blur',
  73. },
  74. ],
  75. hide: true,
  76. },
  77. {
  78. label: '直投费用类型',
  79. prop: 'type',
  80. type: 'select',
  81. span: 24,
  82. minWidth: 260,
  83. search: true,
  84. dicUrl: '/api/kd-system/dict-biz/dictionary?code=zhitoufeiyong_lx',
  85. props: {
  86. label: 'dictValue',
  87. value: 'dictKey',
  88. },
  89. showOverflowTooltip: true,
  90. rules: [
  91. {
  92. required: true,
  93. message: '请选择直投费用类型',
  94. trigger: 'blur',
  95. },
  96. ],
  97. },
  98. {
  99. label: '金额',
  100. prop: 'amount',
  101. type: 'number',
  102. span: 24,
  103. width: 130,
  104. align: 'center',
  105. min: 0,
  106. precision: 2,
  107. showOverflowTooltip: true,
  108. rules: [
  109. {
  110. required: true,
  111. message: '请输入金额',
  112. trigger: 'blur',
  113. },
  114. ],
  115. },
  116. ],
  117. };