technicalStandard.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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: true,
  11. delBtn: true,
  12. searchLabelWidth: 140,
  13. labelWidth: 110,
  14. menuWidth: 160,
  15. dialogClickModal: false,
  16. dialogWidth: 500,
  17. dialogType: "drawer",
  18. column: [
  19. {
  20. label: "标准号",
  21. prop: "zbh",
  22. span: 24,
  23. width: 100,
  24. align: "center",
  25. search: true,
  26. showOverflowTooltip: true,
  27. rules: [
  28. {
  29. required: true,
  30. message: "请输入标准号",
  31. trigger: "blur",
  32. },
  33. ],
  34. },
  35. {
  36. label: "标准名称",
  37. prop: "zbmc",
  38. span: 24,
  39. search: true,
  40. width: 140,
  41. showOverflowTooltip: true,
  42. rules: [
  43. {
  44. required: true,
  45. message: "请输入标准名称",
  46. trigger: "blur",
  47. },
  48. ],
  49. },
  50. {
  51. label: "标准类别",
  52. prop: "bzlb",
  53. span: 24,
  54. search: true,
  55. type: 'select',
  56. dicUrl: '/api/kd-system/dict/dictionary?code=technical_standard_type',
  57. props: {
  58. label: 'dictValue',
  59. value: 'dictKey',
  60. },
  61. width: 100,
  62. showOverflowTooltip: true,
  63. rules: [
  64. {
  65. required: true,
  66. message: "请选择标准类别",
  67. trigger: "blur",
  68. },
  69. ],
  70. },
  71. {
  72. label: "颁布部门",
  73. prop: "bbbm",
  74. span: 24,
  75. width: 120,
  76. align: "center",
  77. showOverflowTooltip: true,
  78. },
  79. {
  80. label: "起草单位",
  81. prop: "qlr",
  82. span: 24,
  83. width: 100,
  84. search: true,
  85. align: "center",
  86. showOverflowTooltip: true,
  87. },
  88. {
  89. label: "参与人",
  90. prop: "cyr",
  91. span: 24,
  92. width: 70,
  93. align: "center",
  94. search: true,
  95. showOverflowTooltip: true,
  96. },
  97. {
  98. label: "实施日期",
  99. prop: "ssrq",
  100. type: "date",
  101. valueFormat: 'yyyy-MM-dd',
  102. span: 24,
  103. width: 100,
  104. showOverflowTooltip: true,
  105. align: "center",
  106. },
  107. {
  108. label: "状态",
  109. prop: "state",
  110. type: 'select',
  111. dicUrl: '/api/kd-system/dict/dictionary?code=technical_standard_state',
  112. props: {
  113. label: 'dictValue',
  114. value: 'dictKey',
  115. },
  116. width: 100,
  117. align: "center",
  118. search: true,
  119. span: 24,
  120. showOverflowTooltip: true,
  121. rules: [
  122. {
  123. required: true,
  124. message: "请选择状态",
  125. trigger: "blur",
  126. },
  127. ],
  128. },
  129. {
  130. label: "参与/主持",
  131. prop: "canyunZhuchi",
  132. span: 24,
  133. width: 90,
  134. align: "center",
  135. showOverflowTooltip: true,
  136. },
  137. {
  138. label: "关联研发项目情况",
  139. prop: "canyunZhuchi",
  140. align: 'center',
  141. children: [
  142. {
  143. label: "研发项目名称",
  144. prop: 'xmId',
  145. width: 120,
  146. span: 24,
  147. hide: true,
  148. // rules: [
  149. // {
  150. // required: true,
  151. // message: "请选择项目",
  152. // trigger: "blur",
  153. // },
  154. // ],
  155. },
  156. {
  157. label: "研发项目名称",
  158. prop: 'xmmc',
  159. width: 120,
  160. search: true,
  161. showOverflowTooltip: true,
  162. display: false
  163. },
  164. {
  165. label: "研发项目编号",
  166. prop: 'xmbh',
  167. width: 100,
  168. align: 'center',
  169. search: true,
  170. showOverflowTooltip: true,
  171. display: false
  172. },
  173. ],
  174. },
  175. {
  176. label: "附件信息",
  177. prop: "attachment",
  178. minWidth: 200,
  179. type: "upload",
  180. multiple: true,
  181. span: 24,
  182. dataType: "object",
  183. action: '/api/kd-resource/oss/endpoint/put-file',
  184. uploadPreview: (file, column, done) => {
  185. window.open(file.url, "_blank");
  186. return;
  187. },
  188. propsHttp: {
  189. url: "link",
  190. name: "originalName",
  191. res: "data",
  192. },
  193. showOverflowTooltip: true,
  194. },
  195. ],
  196. };