workHoursRecords.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. addBtn: false,
  11. delBtnText: '清除工时数据',
  12. searchLabelWidth: 140,
  13. labelWidth: 100,
  14. menuWidth: 190,
  15. dialogClickModal: false,
  16. dialogWidth: 500,
  17. dialogType: "drawer",
  18. column: [
  19. {
  20. label: '研发项目编号',
  21. prop: 'xmbh',
  22. span: 24,
  23. width: 100,
  24. align: 'center',
  25. type: 'input',
  26. showOverflowTooltip: true,
  27. disabled: true,
  28. },
  29. {
  30. label: '研发项目名称',
  31. prop: 'xmmc',
  32. type: 'input',
  33. span: 24,
  34. width: 110,
  35. align: 'center',
  36. search: true,
  37. showOverflowTooltip: true,
  38. disabled: true,
  39. },
  40. {
  41. label: '姓名',
  42. prop: 'name',
  43. span: 24,
  44. search: true,
  45. width: 90,
  46. cell: true,
  47. align: 'center',
  48. // type: 'select',
  49. showOverflowTooltip: true,
  50. // dicUrl: '',
  51. // dicFlag: true,
  52. // dicFormatter:(res)=>{
  53. // return res.data.records
  54. // },
  55. // dicQuery: {
  56. // current: 1,
  57. // size: 99999,
  58. // yearAndMonth: ''
  59. // },
  60. // props: {
  61. // label: 'name',
  62. // value: 'id',
  63. // },
  64. disabled: true,
  65. rules: [
  66. {
  67. required: true,
  68. message: '请选择技术人员',
  69. trigger: 'blur',
  70. },
  71. ],
  72. },
  73. {
  74. label: '工号',
  75. prop: 'number',
  76. type: 'input',
  77. span: 24,
  78. width: 90,
  79. align: 'center',
  80. search: true,
  81. disabled: true,
  82. showOverflowTooltip: true,
  83. },
  84. {
  85. label: '身份证号',
  86. prop: 'idCard',
  87. type: 'input',
  88. span: 24,
  89. search: true,
  90. disabled: true,
  91. width: 150,
  92. align: 'center',
  93. showOverflowTooltip: true,
  94. },
  95. {
  96. label: '科研人员类别',
  97. prop: 'personnelType',
  98. type: 'select',
  99. span: 24,
  100. width: 100,
  101. align: 'center',
  102. search: true,
  103. disabled: true,
  104. dicUrl: '/api/kd-system/dict-biz/dictionary?code=renyuanleixing',
  105. props: {
  106. label: 'dictValue',
  107. value: 'dictKey',
  108. },
  109. showOverflowTooltip: true,
  110. },
  111. ],
  112. };