patentAchievement.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. labelWidth: 120,
  13. menuWidth: 140,
  14. dialogClickModal: false,
  15. dialogWidth: 760,
  16. dialogType: "drawer",
  17. column: [
  18. {
  19. label: "专利号",
  20. prop: "zlh",
  21. span: 12,
  22. width: 120,
  23. align: "center",
  24. showOverflowTooltip: true,
  25. rules: [
  26. {
  27. required: true,
  28. message: "请输入专利号",
  29. trigger: "blur",
  30. },
  31. ],
  32. },
  33. {
  34. label: "专利名称",
  35. prop: "zlmc",
  36. span: 12,
  37. search: true,
  38. minWidth: 160,
  39. showOverflowTooltip: true,
  40. rules: [
  41. {
  42. required: true,
  43. message: "请输入专利名称",
  44. trigger: "blur",
  45. },
  46. ],
  47. },
  48. {
  49. label: "专利类型",
  50. prop: "zllx",
  51. type: "select",
  52. span: 12,
  53. search: true,
  54. dicUrl: "/api/kd-system/dict-biz/dictionary?code=patent_type",
  55. width: 100,
  56. align: "center",
  57. showOverflowTooltip: true,
  58. props:{
  59. label: 'dictValue',
  60. value: 'dictKey'
  61. },
  62. rules: [
  63. {
  64. required: false,
  65. message: "请选择专利类型",
  66. trigger: "blur",
  67. },
  68. ],
  69. },
  70. {
  71. label: "是否国防专利",
  72. prop: "sfgfzl",
  73. type: "select",
  74. span: 12,
  75. width: 100,
  76. search: true,
  77. align: "center",
  78. showOverflowTooltip: true,
  79. dicUrl: "/api/kd-system/dict-biz/dictionary?code=yes_or_no",
  80. props:{
  81. label: 'dictValue',
  82. value: 'dictKey'
  83. },
  84. rules: [
  85. {
  86. required: false,
  87. message: "请选择是否国防专利",
  88. trigger: "blur",
  89. },
  90. ],
  91. },
  92. {
  93. label: "国别",
  94. prop: "gb",
  95. type: "select",
  96. span: 12,
  97. width: 70,
  98. search: true,
  99. dicUrl: "/api/kd-system/dict-biz/dictionary?code=countries",
  100. props:{
  101. label: 'dictValue',
  102. value: 'dictKey'
  103. },
  104. align: "center",
  105. showOverflowTooltip: true,
  106. rules: [
  107. {
  108. required: false,
  109. message: "请选择国别",
  110. trigger: "blur",
  111. },
  112. ],
  113. },
  114. {
  115. label: "申请号/专利号",
  116. prop: "sqhZlh",
  117. type: "input",
  118. span: 12,
  119. width: 100,
  120. align: "center",
  121. search: true,
  122. showOverflowTooltip: true,
  123. },
  124. {
  125. label: "申请日",
  126. prop: "shenqingRq",
  127. type: "date",
  128. span: 12,
  129. width: 85,
  130. search: false,
  131. format: "yyyy-MM-dd",
  132. valueFormat: "yyyy-MM-dd",
  133. showOverflowTooltip: true,
  134. align: "center",
  135. },
  136. {
  137. label: "授权日",
  138. prop: "shouquanRq",
  139. type: "date",
  140. span: 12,
  141. width: 85,
  142. align: "center",
  143. search: false,
  144. valueFormat: "yyyy-MM-DD",
  145. showOverflowTooltip: true,
  146. },
  147. {
  148. label: "申请单位",
  149. prop: "sqdw",
  150. type: "input",
  151. span: 12,
  152. width: 120,
  153. align: "center",
  154. search: true,
  155. showOverflowTooltip: true,
  156. },
  157. {
  158. label: "专利权人",
  159. prop: "zlqr",
  160. type: "input",
  161. span: 12,
  162. width: 80,
  163. align: "center",
  164. search: true,
  165. showOverflowTooltip: true,
  166. },
  167. {
  168. label: "共有权人",
  169. prop: "gyqr",
  170. type: "input",
  171. span: 12,
  172. width: 80,
  173. align: "center",
  174. search: false,
  175. showOverflowTooltip: true,
  176. },
  177. {
  178. label: "发明人",
  179. prop: "fmr",
  180. type: "input",
  181. span: 12,
  182. width: 80,
  183. align: "center",
  184. search: false,
  185. showOverflowTooltip: true,
  186. },
  187. {
  188. label: "法律状态",
  189. prop: "flzt",
  190. type: "select",
  191. span: 12,
  192. width: 80,
  193. align: "center",
  194. search: true,
  195. dicUrl: "/api/kd-system/dict-biz/dictionary?code=legal_status",
  196. props: {
  197. label: "dictValue",
  198. value: "dictKey",
  199. },
  200. showOverflowTooltip: true,
  201. },
  202. {
  203. label: "关联研发项目情况",
  204. prop: "canyunZhuchi",
  205. align: 'center',
  206. children: [
  207. {
  208. label: "研发项目名称",
  209. prop: 'xmId',
  210. width: 120,
  211. span: 12,
  212. hide: true
  213. },
  214. {
  215. label: "研发项目名称",
  216. prop: 'xmmc',
  217. width: 120,
  218. search: true,
  219. showOverflowTooltip: true,
  220. display: false
  221. },
  222. {
  223. label: "研发项目编号",
  224. prop: 'xmbh',
  225. width: 100,
  226. align: 'center',
  227. search: true,
  228. showOverflowTooltip: true,
  229. display: false
  230. },
  231. ],
  232. },
  233. {
  234. label: "附件信息",
  235. prop: "attachment",
  236. minWidth: 200,
  237. type: "upload",
  238. multiple: true,
  239. span: 24,
  240. dataType: "object",
  241. action: '/api/kd-resource/oss/endpoint/put-file',
  242. uploadPreview: (file, column, done) => {
  243. console.log(file)
  244. window.open(file.url, "_blank");
  245. return;
  246. },
  247. propsHttp: {
  248. url: "link",
  249. name: "originalName",
  250. res: "data",
  251. },
  252. showOverflowTooltip: true,
  253. },
  254. {
  255. label: "收件人邮箱",
  256. prop: "sjryx",
  257. type: "input",
  258. span: 24,
  259. width: 150,
  260. align: "center",
  261. search: false,
  262. showOverflowTooltip: true,
  263. rules: [{
  264. type: 'email',
  265. message: '请输入正确的邮箱地址',
  266. trigger: 'blur',
  267. }]
  268. },
  269. {
  270. label: "专利提醒功能",
  271. prop: "zltxgn",
  272. type: "select",
  273. span: 12,
  274. width: 90,
  275. align: "center",
  276. display: false,
  277. dicUrl: "/api/kd-system/dict-biz/dictionary?code=zltx",
  278. props: {
  279. label: "dictValue",
  280. value: "dictKey",
  281. },
  282. showOverflowTooltip: true,
  283. fixed: 'right'
  284. },
  285. ],
  286. };