|
@@ -29,11 +29,13 @@
|
|
|
</el-link>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <PatentMark :patentNo="patent.patentNo" @biaozhu="getBiaoZhu"></PatentMark> -->
|
|
|
<div v-if="outside">
|
|
|
<el-button type="primary" size="small" @click="importToProject">导入专利</el-button>
|
|
|
</div>
|
|
|
<div style="display: flex;justify-content: space-between;margin-right: 10px;align-items: center;" v-else>
|
|
|
+ <!-- <div>
|
|
|
+ <PatentMark :patentNo="patent.patentNo" :reportType="reportType" @biaozhu="getBiaoZhu"></PatentMark>
|
|
|
+ </div> -->
|
|
|
<el-dropdown size="medium" style="margin-right:10px">
|
|
|
<el-button type="primary" size="small">
|
|
|
创建报告<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -81,7 +83,7 @@
|
|
|
<my-view :position="this.positionList.find(item => item.value == radio).position"
|
|
|
:showView="radio != 1 && activeMenu != activeMenu2">
|
|
|
<div slot="left">
|
|
|
- <component :activeName="activeMenu" style="width:100%;padding-right: 10px;" :is="activeMenu"
|
|
|
+ <component :activeName="activeName" style="width:100%;padding-right: 10px;" :is="activeMenu"
|
|
|
:evidence="evidence" :signPatentNo="signPatentNo" :reportType="reportType" :project-id="projectId"
|
|
|
:outside="outside" :projectType="projectType" :patent="patent" :patentNo="patent.patentNo"
|
|
|
:domId="$commonJS.uuid(36)" @refresh="getPatent()"></component>
|
|
@@ -144,6 +146,7 @@ import { projectData, handleData } from '../../patentCollection/components/mixin
|
|
|
import PatentField from './PatentField.vue'
|
|
|
import addAndEditReport from '@/views/report/components/dialog/addAndEditReport.vue'
|
|
|
import projectListDialog from "@/views/components/import/conditionImport/components/projectListDialog.vue";
|
|
|
+import PatentMark from './PatentMark.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
PatentBasic,
|
|
@@ -164,7 +167,8 @@ export default {
|
|
|
|
|
|
PatentField,
|
|
|
addAndEditReport,
|
|
|
- projectListDialog
|
|
|
+ projectListDialog,
|
|
|
+ PatentMark
|
|
|
},
|
|
|
mixins: [projectData, handleData],
|
|
|
props: {
|
|
@@ -310,13 +314,13 @@ export default {
|
|
|
activeMenu: 'PatentBasic',
|
|
|
activeMenu2: '',
|
|
|
patent: {},
|
|
|
+ activeName:'0',
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
patentNo(val) {
|
|
|
if (val && !this.fix) {
|
|
|
this.getPatent()
|
|
|
- this.getPiZhuData(val)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -329,7 +333,7 @@ export default {
|
|
|
mounted() {
|
|
|
this.getSignPermission()
|
|
|
this.getPatent()
|
|
|
- this.getPiZhuData()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
async getSignPermission(){
|
|
@@ -339,25 +343,7 @@ export default {
|
|
|
this.signPermission = false
|
|
|
}
|
|
|
},
|
|
|
- // 获取批注
|
|
|
- getPiZhuData(val) {
|
|
|
- let params = {
|
|
|
- patentNo: val ? val : this.patentNo,
|
|
|
- projectId: this.projectId,
|
|
|
- }
|
|
|
- this.$api.queryScratchWords(params).then(response => {
|
|
|
- if (response.code == 200) {
|
|
|
- if (this.highlight.piZhuContrastList.length > 0) {
|
|
|
- var a = this.highlight.piZhuContrastList.filter(item => {
|
|
|
- return item.patentNo != params.patentNo
|
|
|
- }).concat(response.data.data)
|
|
|
- } else {
|
|
|
- var a = response.data.data
|
|
|
- }
|
|
|
- this.$store.commit('SET_PATENT_PIZHU_CONTRAST', a)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+
|
|
|
// 获取外部摘要附图的guid,获取外部的法律状态
|
|
|
getData() {
|
|
|
var params = {
|
|
@@ -383,8 +369,42 @@ export default {
|
|
|
}
|
|
|
this.$refs.projectListDialog.open(form);
|
|
|
},
|
|
|
- getBiaoZhu() {
|
|
|
-
|
|
|
+ //获取需要跳转的批注
|
|
|
+ getBiaoZhu(val) {
|
|
|
+ if (val.fieldName.indexOf('摘要')!=-1) {
|
|
|
+ this.activeMenu = 'PatentBasic'
|
|
|
+ } else {
|
|
|
+ this.activeMenu = this.menuList.find(item => {
|
|
|
+ return val.fieldName.indexOf(item.label)!=-1
|
|
|
+ }).value
|
|
|
+ if (val.fieldName.indexOf('译文') !=-1) {
|
|
|
+ this.activeName = '1'
|
|
|
+ } else {
|
|
|
+ this.activeName='0'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.handleSelect(this.activeMenu)
|
|
|
+
|
|
|
+ this.tiaozhuan(val)
|
|
|
+ },
|
|
|
+ tiaozhuan(val) {
|
|
|
+ var dom = `.${val.highlightType}${val.id}`
|
|
|
+ let target = document.querySelector(dom)
|
|
|
+ target.scrollIntoView({
|
|
|
+ block: 'start',
|
|
|
+ inline: 'nearest',
|
|
|
+ behavior: 'smooth'
|
|
|
+ })
|
|
|
+ // const href = `#${id}`
|
|
|
+ // const anchor = document.createElement('a');
|
|
|
+ // anchor.href = href;
|
|
|
+ // anchor.style.display = "none";
|
|
|
+ // document.body.appendChild(anchor);
|
|
|
+ // setTimeout(function () {
|
|
|
+ // anchor.click();
|
|
|
+ // document.body.removeChild(anchor);
|
|
|
+ // }, 66);
|
|
|
+ // return true;
|
|
|
},
|
|
|
//获取专利信息
|
|
|
getPatent() {
|