patentDetails.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <template>
  2. <div class="height_100">
  3. <el-container>
  4. <el-header style="min-height: 100px !important;height: auto;">
  5. <div style="width:100%">
  6. <div style="display: flex;justify-content: space-between;align-items: center;height:50px">
  7. <div style="text-align: start;padding-left: 10px;position: relative;">
  8. <div style="width: 260px;">
  9. <img src="@/assets/visual/fixed.png" width="20px" height="20px"
  10. v-if="fix === true && value == true" @click="qx" style="" />
  11. <img src="@/assets/visual/unfixed.png" width="20px" height="20px"
  12. v-if="fix === false && value == true" @click="gd" style="" />
  13. <span v-html="getViewDom(patent.patentNo)"></span>
  14. <el-tag type="primary" effect="dark" size="mini" class="margin-left_10" v-if="patent.simpleStatus">{{
  15. patent.simpleStatus }}</el-tag>
  16. </div>
  17. <div style="color: #6b6868; font-size: 15px;padding-bottom: 5px;">
  18. <span v-html="getView(patent, 'title')"></span>
  19. <el-link v-if="projectId" type="primary" @click.native="handleChange(patent, 'name')"
  20. style="margin-left: 10px;margin-top: -3px;">
  21. <span v-if="!patent.change">切换译文</span>
  22. <span v-else>切换原文</span>
  23. </el-link>
  24. </div>
  25. </div>
  26. <PatentMark :patentNo="patent.patentNo" @biaozhu="getBiaoZhu"></PatentMark>
  27. <div style="display: flex;justify-content: space-between;margin-right: 10px;align-items: center;">
  28. <el-dropdown size="medium" style="margin-right:10px" v-if="$permission('/workspace/createReport')">
  29. <el-button type="primary" size="small">
  30. 创建报告<i class="el-icon-arrow-down el-icon--right"></i>
  31. </el-button>
  32. <el-dropdown-menu slot="dropdown" style="margin-top:0px">
  33. <!-- 遍历按钮 -->
  34. <el-dropdown-item @click.native="handleAnalyse(0)"
  35. v-if="$permission('/workspace/createReport/invalid')">无效分析</el-dropdown-item>
  36. <el-dropdown-item @click.native="handleAnalyse(1)"
  37. v-if="$permission('/workspace/createReport/invalid')">第三方意见</el-dropdown-item>
  38. <el-dropdown-item @click.native="handleAnalyse(2)"
  39. v-if="$permission('/workspace/createReport/invalid')">稳定性分析</el-dropdown-item>
  40. <el-dropdown-item @click.native="handleAnalyse(4)"
  41. v-if="$permission('/workspace/createReport/tort')">侵权分析</el-dropdown-item>
  42. <el-dropdown-item @click.native="handleAnalyse(5)"
  43. v-if="$permission('/workspace/createReport/avoidDesign')">回避设计</el-dropdown-item>
  44. <el-dropdown-item @click.native="handleAnalyse(7)"
  45. v-if="$permission('/workspace/createReport/reInvalid')">无效应对</el-dropdown-item>
  46. </el-dropdown-menu>
  47. </el-dropdown>
  48. <el-button type="primary" size="small" @click="handleSelect('PatentExport')">导出文档</el-button>
  49. </div>
  50. </div>
  51. <div style=" position: relative; border-top: 1px solid #e6e6e6;text-align: center;" class="menu">
  52. <el-link v-for="item in menuList" :type="activeMenu === item.value ? 'primary' : undefined" :key="item.value" v-if="!item.show"
  53. :disabled="item.value === 'PatentPDF' ? !(patent.pdf && patent.pdf.length > 0) : false"
  54. @click.native="handleSelect(item.value)">
  55. {{ item.label }}
  56. <span v-if="item.value == 'PatentImage' || item.value == 'PatentPDF'" @click.stop="ending(item.value)">
  57. <el-popover placement="right" width="400" trigger="click">
  58. <el-radio v-for="(item, index) in positionList" :key="index" v-model="radio" @input="changePosition"
  59. :label="item.value">{{ item.label }}</el-radio>
  60. <i class="el-icon-setting" slot="reference"></i>
  61. </el-popover>
  62. </span>
  63. </el-link>
  64. <el-link v-for="item in menuList2" :type="activeMenu === item.value ? 'primary' : undefined"
  65. :key="item.value" @click.native="handleSelect(item.value)">{{ item.label }}</el-link>
  66. <el-tooltip class="item" effect="dark" :content="(showRight ? '隐藏' : '显示') + '右侧菜单'" placement="top">
  67. <i :class="showRight ? 'el-icon-s-unfold' : 'el-icon-s-fold'"
  68. style="font-size: 25px;position: absolute; right: 10px; margin-top: 5px;color: #2f2f2f; cursor: pointer"
  69. @click="showRight = !showRight"></i>
  70. </el-tooltip>
  71. </div>
  72. </div>
  73. </el-header>
  74. <el-main>
  75. <div>
  76. <div class="patent-article-left" :style="{ width: showRight ? 'calc(100% - 321px)' : 'calc(100% - 21px)' }">
  77. <my-view :position="this.positionList.find(item=>item.value == radio).position" :showView="radio!=1 && activeMenu != activeMenu2">
  78. <div slot="left">
  79. <component :activeName="activeMenu" style="width:100%;padding-right: 10px;"
  80. :is="activeMenu" :project-id="projectId" :patent="patent" :patentNo="[patent.patentNo]"
  81. :domId="patent.patentNo + '1'"
  82. @refresh="getPatent()"></component>
  83. </div>
  84. <div slot="right">
  85. <component :is="activeMenu2" :project-id="projectId" :patent="patent" :sign="true"></component>
  86. </div>
  87. </my-view>
  88. </div>
  89. <div class="patent-article-right" v-if="showRight">
  90. <el-container>
  91. <el-header>
  92. <div class="patent-articles-option">
  93. <el-tabs v-model="activeOption" type="card">
  94. <el-tab-pane label="标引" name="PatentField"></el-tab-pane>
  95. <el-tab-pane label="注释" name="PatentAnnotation"
  96. :disabled="!($permission('/workspace/details/notes') && $r(projectId, [1, 2]))"></el-tab-pane>
  97. </el-tabs>
  98. </div>
  99. </el-header>
  100. <el-main>
  101. <keep-alive>
  102. <component :is="activeOption" :project-id="projectId" :patentNo="patent.patentNo"></component>
  103. </keep-alive>
  104. </el-main>
  105. </el-container>
  106. </div>
  107. </div>
  108. </el-main>
  109. </el-container>
  110. </div>
  111. </template>
  112. <script>
  113. import PatentBasic from './patentMessage/PatentBasic.vue'
  114. import PatentRight from './patentMessage/PatentRight.vue'
  115. import PatentImage from './patentMessage/PatentImage.vue'
  116. import PatentInstruction from './patentMessage/PatentInstruction.vue'
  117. import PatentFamily from './patentMessage/PatentFamily.vue'
  118. import PatentStatus from './patentMessage/PatentStatus.vue'
  119. import PatentPDF from './patentMessage/PatentPDF.vue'
  120. import {projectData,handleData} from '../../patentCollection/components/mixins/index'
  121. export default {
  122. components: {
  123. PatentBasic,
  124. PatentRight,
  125. PatentImage,
  126. PatentInstruction,
  127. PatentFamily,
  128. PatentStatus,
  129. PatentPDF
  130. },
  131. mixins: [projectData,handleData],
  132. props: {
  133. projectId:{
  134. default:0
  135. },
  136. patentNo:{
  137. type:String
  138. }
  139. },
  140. data() {
  141. return {
  142. radio: 1,
  143. positionList: [
  144. {
  145. label: 'tab展示',
  146. value: 1,
  147. position:'row'
  148. },
  149. {
  150. label: '上边展示',
  151. value: 2,
  152. position:'column-reverse'
  153. },
  154. {
  155. label: '下边展示',
  156. value: 3,
  157. position:'column'
  158. },
  159. {
  160. label: '左边展示',
  161. value: 4,
  162. position:'row-reverse'
  163. },
  164. {
  165. label: '右边展示',
  166. value: 5,
  167. position:'row'
  168. },
  169. ],
  170. menuList: [
  171. {
  172. value: 'PatentBasic',
  173. label: '基础信息'
  174. },
  175. {
  176. value: 'PatentRight',
  177. label: '权利要求'
  178. },
  179. {
  180. value: 'PatentImage',
  181. label: '附图'
  182. },
  183. {
  184. value: 'PatentInstruction',
  185. label: '说明书文本'
  186. },
  187. {
  188. value: 'PatentFamily',
  189. label: '同族专利'
  190. },
  191. {
  192. value: 'PatentStatus',
  193. label: '法律状态'
  194. },
  195. {
  196. value: 'PatentPDF',
  197. label: '说明书'
  198. },
  199. {
  200. value: 'Permit',
  201. show: this.$permission('/workspace/patent/worth') ? false : true,
  202. label: '许可历史'
  203. },
  204. {
  205. value: 'ProductManage',
  206. show: this.$permission('/workspace/product') ? false : true,
  207. label: '商品化'
  208. },
  209. {
  210. value: 'patentWorth',
  211. show: this.$permission('/workspace/patent/worth') ? false : true,
  212. label: '价值曲线'
  213. }
  214. ],
  215. menuList2: [
  216. {
  217. value: 'Examination',
  218. label: '审查历史'
  219. },
  220. {
  221. value: 'Invalid',
  222. label: '被无效历史'
  223. },
  224. {
  225. value: 'HistoryOfInvalidEvidence',
  226. label: '作为无效证据使用历史'
  227. },
  228. {
  229. value: 'InvalidEvidencePush',
  230. label: '无效证据推荐'
  231. },
  232. {
  233. value: 'Litigation',
  234. label: '诉讼历史'
  235. },
  236. {
  237. value: 'Other',
  238. label: '其他参考资料'
  239. },
  240. ],
  241. fix: false,
  242. showRight: false,
  243. activeOption: 'PatentField',
  244. activeMenu: 'PatentBasic',
  245. activeMenu2: '',
  246. value:false,
  247. patent:{}
  248. };
  249. },
  250. watch: {
  251. patentNo(val){
  252. if(val){
  253. this.getPatent()
  254. }
  255. }
  256. },
  257. computed: {},
  258. created() {},
  259. mounted() {
  260. this.getPatent()
  261. },
  262. methods: {
  263. getBiaoZhu(){
  264. },
  265. //获取专利信息
  266. getPatent(){
  267. var params= {
  268. patentNo:this.patentNo
  269. }
  270. this.$api.selectPatentDetail(params).then(response=>{
  271. if(response.code == 200){
  272. this.patent = response.data
  273. }
  274. })
  275. },
  276. // 创建报告:无效分析等点击事件
  277. handleAnalyse(id) {
  278. this.$api.getProject({ id: this.projectId }).then(response => {
  279. var form = {
  280. type: id,
  281. signPatentNo: this.pNo,
  282. projectId: this.projectId,
  283. departmentId: response.data[0].departmentId,
  284. personId: response.data[0].personnelId,
  285. clientId: response.data[0].clientId,
  286. proTec: response.data[0].technicalTheme,
  287. scenarioList: response.data[0].scenarioList
  288. }
  289. this.$refs.ReportForm.open(form)
  290. })
  291. },
  292. handleSelect(index) {
  293. if (index === 'PatentExport') {
  294. const router = this.$router.resolve({
  295. path: '/workspace/folder/export/patent',
  296. query: {
  297. id: this.projectId,
  298. patent: this.patent.id
  299. }
  300. })
  301. window.open(router.href, '_blank');
  302. return false
  303. }
  304. if (index == this.activeMenu2) {
  305. this.activeMenu2 = ''
  306. this.radio = 1
  307. this.changePosition(this.radio)
  308. }
  309. this.activeMenu = index
  310. },
  311. ending(val) {
  312. this.activeMenu2 = val
  313. return false
  314. },
  315. changePosition(val){
  316. }
  317. },
  318. };
  319. </script>
  320. <style lang="scss" scoped>
  321. .menu{
  322. .el-link{
  323. margin-right: 20px;
  324. }
  325. }
  326. </style>