otherAchivement.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. import { downloadFileByUrl } from "@/util/util";
  2. export default {
  3. height: "auto",
  4. calcHeight: 30,
  5. tip: false,
  6. searchShow: true,
  7. searchMenuSpan: 6,
  8. border: true,
  9. index: true,
  10. selection: true,
  11. addBtn: true,
  12. delBtn: true,
  13. searchLabelWidth: 140,
  14. labelWidth: 110,
  15. menuWidth: 160,
  16. dialogClickModal: false,
  17. dialogWidth: 560,
  18. dialogType: "drawer",
  19. column: [
  20. {
  21. label: "成果编号",
  22. prop: "cgbh",
  23. span: 24,
  24. width: 100,
  25. align: "center",
  26. search: true,
  27. showOverflowTooltip: true,
  28. rules: [
  29. {
  30. required: true,
  31. message: "请输入成果编号",
  32. trigger: "blur",
  33. },
  34. ],
  35. },
  36. {
  37. label: "成果名称",
  38. prop: "cgmc",
  39. span: 24,
  40. search: true,
  41. width: 140,
  42. showOverflowTooltip: true,
  43. rules: [
  44. {
  45. required: true,
  46. message: "请输入成果名称",
  47. trigger: "blur",
  48. },
  49. ],
  50. },
  51. {
  52. label: "成果类型",
  53. prop: "cmlx",
  54. span: 24,
  55. search: true,
  56. type: 'select',
  57. dicUrl: '/api/kd-system/dict/dictionary?code=achievement_type',
  58. props: {
  59. label: 'dictValue',
  60. value: 'dictKey',
  61. },
  62. width: 150,
  63. showOverflowTooltip: true,
  64. rules: [
  65. {
  66. required: true,
  67. message: "请选择成果类型",
  68. trigger: "blur",
  69. },
  70. ],
  71. },
  72. {
  73. label: "颁布部门",
  74. prop: "bbbm",
  75. span: 24,
  76. width: 140,
  77. search: true,
  78. align: "center",
  79. showOverflowTooltip: true,
  80. // rules: [
  81. // {
  82. // required: true,
  83. // message: "请输入颁布部门",
  84. // trigger: "blur",
  85. // },
  86. // ],
  87. },
  88. {
  89. label: "权利人",
  90. prop: "qlr",
  91. span: 24,
  92. width: 70,
  93. search: true,
  94. align: "center",
  95. showOverflowTooltip: true,
  96. },
  97. {
  98. label: "发明人",
  99. prop: "fmr",
  100. span: 24,
  101. width: 70,
  102. align: "center",
  103. showOverflowTooltip: true,
  104. },
  105. {
  106. label: "申请日期",
  107. prop: "shenqingRq",
  108. type: "date",
  109. valueFormat: 'yyyy-MM-dd',
  110. span: 24,
  111. width: 85,
  112. search: true,
  113. showOverflowTooltip: true,
  114. align: "center",
  115. rules: [
  116. {
  117. required: true,
  118. message: "请选择申请日期",
  119. trigger: "blur",
  120. },
  121. ],
  122. },
  123. {
  124. label: "授权日期",
  125. prop: "shouquanRq",
  126. type: "date",
  127. valueFormat: 'yyyy-MM-dd',
  128. span: 24,
  129. width: 85,
  130. align: "center",
  131. search: true,
  132. showOverflowTooltip: true,
  133. rules: [
  134. {
  135. required: true,
  136. message: "请选择授权日期",
  137. trigger: "blur",
  138. },
  139. ],
  140. },
  141. {
  142. label: "参与/主持",
  143. prop: "canyunZhuchi",
  144. span: 24,
  145. width: 90,
  146. align: "center",
  147. showOverflowTooltip: true,
  148. },
  149. {
  150. label: "关联研发项目情况",
  151. prop: "canyunZhuchi",
  152. align: 'center',
  153. children: [
  154. {
  155. label: "研发项目名称",
  156. prop: 'xmId',
  157. width: 120,
  158. span: 24,
  159. hide: true,
  160. // rules: [
  161. // {
  162. // required: true,
  163. // message: "请选择项目",
  164. // trigger: "blur",
  165. // },
  166. // ],
  167. },
  168. {
  169. label: "研发项目名称",
  170. prop: 'xmmc',
  171. width: 120,
  172. search: true,
  173. showOverflowTooltip: true,
  174. display: false
  175. },
  176. {
  177. label: "研发项目编号",
  178. prop: 'xmbh',
  179. width: 100,
  180. align: 'center',
  181. search: true,
  182. showOverflowTooltip: true,
  183. display: false
  184. },
  185. ],
  186. },
  187. {
  188. label: "附件信息",
  189. prop: "attachment",
  190. minWidth: 200,
  191. type: "upload",
  192. multiple: true,
  193. span: 24,
  194. dataType: "object",
  195. action: '/api/kd-resource/oss/endpoint/put-file',
  196. uploadPreview: (file, column, done) => {
  197. downloadFileByUrl(file.url, file.name);
  198. return;
  199. },
  200. propsHttp: {
  201. url: "link",
  202. name: "originalName",
  203. res: "data",
  204. },
  205. showOverflowTooltip: true,
  206. },
  207. ],
  208. };