|
@@ -5,7 +5,7 @@
|
|
|
<el-aside class="height_100" :width="showLeft ? '300px' : '0px'" v-show="showLeft">
|
|
|
<div class="height_100">
|
|
|
<customFields ref="customFields" :projectId="projectId" :searchOption="searchStr" :customFields="customFields"
|
|
|
- @customTab="handleCustomFields" :searchPatentCheck="searchPatentCheck">
|
|
|
+ @customTab="handleCustomFields" :searchPatentCheck="searchPatentCheck" :groupField="queryParams.groupField">
|
|
|
</customFields>
|
|
|
</div>
|
|
|
</el-aside>
|
|
@@ -48,7 +48,8 @@
|
|
|
</el-button>
|
|
|
</el-tooltip>
|
|
|
</el-button-group>
|
|
|
- <el-dropdown trigger="click" split-button type="primary" size="small">
|
|
|
+ <el-button class="margin-left_10" type="primary" size="small" @click="handleFieldManage" v-if="toProjectId && toProjectName">显示栏位管理</el-button>
|
|
|
+ <el-dropdown v-else trigger="click" split-button type="primary" size="small">
|
|
|
<span @click="handleFieldManage">显示栏位管理</span>
|
|
|
<el-dropdown-menu slot="dropdown" class="text-align_center">
|
|
|
<el-dropdown-item @click.native="handleFile">报告文档</el-dropdown-item>
|
|
@@ -177,9 +178,13 @@
|
|
|
:disabled="!$permission('/workspace/folder/isRead')">已读</el-dropdown-item>
|
|
|
<el-dropdown-item @click.native="handleRead(0)"
|
|
|
:disabled="!$permission('/workspace/folder/isRead')">未读</el-dropdown-item> -->
|
|
|
- <el-dropdown-item @click.native="handleIndex">批量标引</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="checkPatentWorth">价值曲线</el-dropdown-item>
|
|
|
- <el-dropdown-item @click.native="deletePatents">删除</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="toProjectId && toProjectName" @click.native="addPatentToReport(toProjectId)">加入到报告({{ toProjectName }})中</el-dropdown-item>
|
|
|
+ <template v-else>
|
|
|
+ <el-dropdown-item @click.native="handleIndex">批量标引</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="checkPatentWorth">价值曲线</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="deletePatents">删除</el-dropdown-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
@@ -206,7 +211,7 @@
|
|
|
<!-- 报告文档 -->
|
|
|
<reportFileDrawer ref="reportFileDrawer"></reportFileDrawer>
|
|
|
<!-- 创建FTO报告 -->
|
|
|
- <addAndEditReport ref="addAndEditReport"></addAndEditReport>
|
|
|
+ <addAndEditReport ref="addAndEditReport" @addPatentToReport="addPatentToReport"></addAndEditReport>
|
|
|
<!-- 批量那个标引 -->
|
|
|
<PatentBatchIndexVue ref="PatentBatchIndexVue" @submit="submitIndex" :projectId="projectId"></PatentBatchIndexVue>
|
|
|
<!-- 单个栏位标引 -->
|
|
@@ -319,6 +324,12 @@ export default {
|
|
|
projectName() {
|
|
|
return this.$route.query.projectName
|
|
|
},
|
|
|
+ toProjectId(){
|
|
|
+ return this.$route.query.toProjectId
|
|
|
+ },
|
|
|
+ toProjectName(){
|
|
|
+ return this.$route.query.toProjectName
|
|
|
+ },
|
|
|
},
|
|
|
created() { },
|
|
|
async mounted() {
|
|
@@ -384,6 +395,7 @@ export default {
|
|
|
searchOption: {
|
|
|
searchQuery: this.searchStr || '',
|
|
|
customFields: this.customFields,
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
orderDTOList: this.sort,
|
|
|
moreConditions:true
|
|
|
},
|
|
@@ -617,14 +629,65 @@ export default {
|
|
|
signPatentNo: '',
|
|
|
matterId: [],
|
|
|
scenarioId: [],
|
|
|
+ assoReportId: this.projectId,
|
|
|
}
|
|
|
- this.$refs.addAndEditReport.open(form)
|
|
|
+ var havePatent = this.selectedTotal>0
|
|
|
+ this.$refs.addAndEditReport.open(form,havePatent)
|
|
|
+ },
|
|
|
+ //添加专利到报告中
|
|
|
+ addPatentToReport(reportId){
|
|
|
+ if(!reportId){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var params = {
|
|
|
+ stringRequest:{
|
|
|
+ projectId: this.projectId,
|
|
|
+ searchQuery: this.searchStr,
|
|
|
+ customFields: this.customFields,
|
|
|
+ orderDTOList:this.sort,
|
|
|
+ groupField:this.queryParams.groupField
|
|
|
+ },
|
|
|
+ fromProjectId:this.projectId, //来源专题库项目id
|
|
|
+ startNumber:this.startNumber, //开始位置
|
|
|
+ endNumber:this.endNumber,//结束位置
|
|
|
+ toProjectId:reportId, //目标报告项目id
|
|
|
+ isAdd:this.queryParams.isAdd, //去除专利号
|
|
|
+ isDelete:this.queryParams.isDelete, //附加专利号
|
|
|
+ }
|
|
|
+ var message = this.$message({
|
|
|
+ type:'warning',
|
|
|
+ message: '正在将专利导入报告中...',
|
|
|
+ duration: 0 // 设置为0表示不自动关闭
|
|
|
+ })
|
|
|
+
|
|
|
+ this.$api.addProjectPatentToReport(params).then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ message.close()
|
|
|
+ this.$message(
|
|
|
+ {
|
|
|
+ type:'success',
|
|
|
+ message:'导入成功'
|
|
|
+ }
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }).catch(error=>{
|
|
|
+ message.close()
|
|
|
+ this.$message(
|
|
|
+ {
|
|
|
+ type:'error',
|
|
|
+ message:'导入失败'
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
},
|
|
|
//切换同族
|
|
|
onChangeFamily(key) {
|
|
|
this.queryParams.current = 1
|
|
|
this.queryParams.groupField = key
|
|
|
this.getList()
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$refs.customFields.close()
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
//价值曲线
|
|
@@ -636,6 +699,7 @@ export default {
|
|
|
endNumber: this.endNumber,
|
|
|
searchQuery: this.searchStr,
|
|
|
customFields: this.customFields,
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
orderDTOList:this.sort,
|
|
|
projectId: this.projectId,
|
|
|
}
|
|
@@ -663,6 +727,7 @@ export default {
|
|
|
endNumber: this.endNumber,
|
|
|
searchQuery: this.searchStr,
|
|
|
customFields: this.customFields,
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
orderDTOList:this.sort,
|
|
|
}
|
|
|
if (!val) {
|
|
@@ -691,6 +756,7 @@ export default {
|
|
|
projectId: this.projectId,
|
|
|
searchQuery: this.searchStr || '',//检索条件
|
|
|
customFields: this.customFields || [],//自定义字段的检索
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
isAdd: this.queryParams.isAdd,
|
|
|
isDelete: this.queryParams.isDelete,
|
|
|
startNumber: this.startNumber,
|
|
@@ -702,6 +768,7 @@ export default {
|
|
|
projectId: this.projectId,
|
|
|
searchQuery: this.searchStr || '',//检索条件
|
|
|
customFields: this.customFields || [],//自定义字段的检索
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
isAdd: [],
|
|
|
isDelete: [],
|
|
|
startNumber: 1,
|
|
@@ -745,6 +812,7 @@ export default {
|
|
|
var params = {
|
|
|
searchQuery: this.searchStr || '',//检索条件
|
|
|
customFields: this.customFields || [],
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
orderDTOList: this.sort,//排序信息
|
|
|
projectId:this.projectId
|
|
|
}
|
|
@@ -766,6 +834,7 @@ export default {
|
|
|
query: {
|
|
|
projectId: this.projectId,
|
|
|
searchOption: this.searchStr,//输入框检索条件
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
customFields: JSON.stringify(this.customFields),//右侧勾选自定义栏位的条件
|
|
|
projectType:1
|
|
|
}
|
|
@@ -830,6 +899,7 @@ export default {
|
|
|
endNumber: 0,
|
|
|
searchQuery: this.searchStr,
|
|
|
customFields: this.customFields,
|
|
|
+ groupField:this.queryParams.groupField,
|
|
|
orderDTOList:this.sort,
|
|
|
}
|
|
|
if (field) {
|