compSubjectSetting.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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: 110,
  12. menuWidth: 140,
  13. dialogClickModal: false,
  14. dialogWidth: 500,
  15. dialogType: "drawer",
  16. column: [
  17. {
  18. label: '科目代码',
  19. prop: 'code',
  20. type: 'input',
  21. span: 24,
  22. search: true,
  23. width: 140,
  24. align: 'center',
  25. showOverflowTooltip: true,
  26. rules: [
  27. {
  28. required: true,
  29. message: '请输入科目代码',
  30. trigger: 'blur',
  31. },
  32. ],
  33. },
  34. {
  35. label: '科目名称',
  36. prop: 'name',
  37. type: 'input',
  38. span: 24,
  39. width: 160,
  40. search: true,
  41. showOverflowTooltip: true,
  42. rules: [
  43. {
  44. required: true,
  45. message: '请输入科目名称',
  46. trigger: 'blur',
  47. },
  48. ],
  49. },
  50. {
  51. label: "对应会计科目",
  52. prop: "subjectId",
  53. type: "tree",
  54. dicData: [],
  55. span: 24,
  56. hide: true,
  57. props: {
  58. value: "id",
  59. label: "name"
  60. },
  61. rules: [
  62. {
  63. required: true,
  64. message: "请选择对应会计科目",
  65. trigger: "click"
  66. }
  67. ]
  68. },
  69. {
  70. label: '对应会计科目',
  71. prop: 'subjectName',
  72. minWidth: 160,
  73. search: true,
  74. showOverflowTooltip: true,
  75. display: false
  76. },
  77. {
  78. label: '对应高新研发费用科目',
  79. prop: 'rdSubject',
  80. minWidth: 160,
  81. showOverflowTooltip: true,
  82. display: false
  83. },
  84. {
  85. label: '对应加计扣除研发费用科目',
  86. prop: 'adSubject',
  87. minWidth: 160,
  88. showOverflowTooltip: true,
  89. display: false
  90. },
  91. ],
  92. };