projectOption.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "headerAlign": "center",
  3. "align": "center",
  4. "border": true,
  5. "index": true,
  6. "lazy": true,
  7. "tip": false,
  8. "searchShow": true,
  9. "searchMenuPosition": "right",
  10. "tree": true,
  11. "selection": true,
  12. "viewBtn": false,
  13. "editBtn": true,
  14. "delBtn": true,
  15. "menuWidth": 150,
  16. "column": [
  17. {
  18. "label": "项目编码",
  19. "prop": "code",
  20. "index": 1,
  21. "width": 150,
  22. "rules": [
  23. {
  24. "required": true,
  25. "message": "请输入项目编码",
  26. "trigger": "blur"
  27. }
  28. ]
  29. },
  30. {
  31. "label": "项目名称",
  32. "prop": "cname",
  33. "search": true,
  34. "index": 1,
  35. "width": 150,
  36. "rules": [
  37. {
  38. "required": true,
  39. "message": "请输入项目名称",
  40. "trigger": "blur"
  41. }
  42. ]
  43. },
  44. {
  45. "label": "服务类别",
  46. "prop": "goodsTypeId",
  47. "dicData": [],
  48. "type": "tree",
  49. "hide": true,
  50. "multiple": true,
  51. "props": {
  52. "label": "title"
  53. },
  54. "rules": [{
  55. "required": true,
  56. "message": " ",
  57. "trigger": "click"
  58. }]
  59. },
  60. {
  61. "label": "收费建议",
  62. "prop": "remarks",
  63. "index": 2,
  64. "width": 150
  65. },
  66. {
  67. "label": "单价",
  68. "prop": "price",
  69. "index": 3,
  70. "width": 120
  71. },
  72. {
  73. "label": "计价单位",
  74. "prop": "unit",
  75. "index": 3,
  76. "width": 120
  77. },
  78. {
  79. "label": "频率",
  80. "prop": "rate",
  81. "index": 5,
  82. "width": 120
  83. },
  84. {
  85. "label": "质保期",
  86. "type":"date",
  87. "prop": "warrantyPeriod",
  88. "format": "yyyy-MM-dd",
  89. "valueFormat": "timestamp",
  90. "index": 6,
  91. "width": 150
  92. },
  93. {
  94. "label": "标准工时",
  95. "prop": "workingHours",
  96. "index": 7,
  97. "width": 80,
  98. "rules": [
  99. {
  100. "pattern": "/^(([1-9][0-9]*)|(([0]\\.\\d{1,2}|[1-9][0-9]*\\.\\d{1,2})))$/",
  101. "message":"请输入数字或小数,且小数位不超过两位",
  102. "trigger": "blur"
  103. }
  104. ]
  105. },
  106. {
  107. "label": "创建人",
  108. "prop": "createUser",
  109. "addDisplay": false,
  110. "editDisplay": false,
  111. "index": 8,
  112. "width": 150
  113. },
  114. {
  115. "label": "创建时间",
  116. "prop": "createTime",
  117. "editDisplay": false,
  118. "addDisplay": false,
  119. "index": 9,
  120. "width": 150
  121. },
  122. {
  123. "label": "状态",
  124. "prop": "status",
  125. "hide": true,
  126. "editDisplay": false,
  127. "addDisplay": false,
  128. "search": true
  129. }
  130. ]
  131. }