|
@@ -32,7 +32,6 @@
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
权要{{ scope.row.sysOrder+1 }}
|
|
|
- <!-- <span v-if="!getClaimDel(scope.row)"><el-button type="text" size="small" @click="delClaim(scope.row)">删除</el-button></span> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -62,32 +61,16 @@
|
|
|
<my-RichText v-if="editMessage && editMessage.field == item.field && editMessage.row.sysOrder == scope.row.sysOrder" :autoFocus="true" :value="getModifyDescription(scope.row,2)" @blur="(value)=>changeMessage(item.field,scope.row,value)"></my-RichText>
|
|
|
<div v-else v-html="getModifyDescription(scope.row,2)"></div>
|
|
|
</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!-- <el-table-column prop="1" label="修改后权要内容" >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- <my-RichText v-if="editMessage && editMessage.field == '1' && editMessage.row.sysOrder == scope.row.sysOrder" :autoFocus="true" :value="getModifyClaim(scope.row)" @blur="(value)=>changeMessage('1',scope.row,value)"></my-RichText>
|
|
|
- <div v-else v-html="getModifyClaim(scope.row)"></div>
|
|
|
+ <div v-if="item.field == 'historyContent3'">
|
|
|
+ <my-RichText v-if="editMessage && editMessage.field == item.field && editMessage.row.sysOrder == scope.row.sysOrder" :autoFocus="true" :value="getModifyClaim(scope.row,3)" @blur="(value)=>changeMessage(item.field,scope.row,value)"></my-RichText>
|
|
|
+ <div v-else v-html="getModifyClaim(scope.row,3)"></div>
|
|
|
</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="2" label="修改说明">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- <my-RichText v-if="editMessage && editMessage.field == '2' && editMessage.row.sysOrder == scope.row.sysOrder" :autoFocus="true" :value="getModifyDescription(scope.row,1)" @blur="(value)=>changeMessage('2',scope.row,value)"></my-RichText>
|
|
|
- <div v-else v-html="getModifyDescription(scope.row,1)"></div>
|
|
|
+ <div v-if="item.field == 'historyDescription3'">
|
|
|
+ <my-RichText v-if="editMessage && editMessage.field == item.field && editMessage.row.sysOrder == scope.row.sysOrder" :autoFocus="true" :value="getModifyDescription(scope.row,3)" @blur="(value)=>changeMessage(item.field,scope.row,value)"></my-RichText>
|
|
|
+ <div v-else v-html="getModifyDescription(scope.row,3)"></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="3" label="第二次修改说明" v-if="secondModify">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- <my-RichText v-if="editMessage && editMessage.field == '3' && editMessage.row.sysOrder == scope.row.sysOrder" :autoFocus="true" :value="getModifyDescription(scope.row,2)" @blur="(value)=>changeMessage('3',scope.row,value)"></my-RichText>
|
|
|
- <div v-else v-html="getModifyDescription(scope.row,2)"></div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column prop="parentOrder" label="父权要" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
@@ -168,8 +151,6 @@ export default {
|
|
|
label:'附属权利要求'
|
|
|
}
|
|
|
],
|
|
|
- firstModify:false,
|
|
|
- secondModify:false,
|
|
|
editMessage:{
|
|
|
field:'',
|
|
|
row:{}
|
|
@@ -246,20 +227,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- //添加权要删除历史
|
|
|
- delClaim(row){
|
|
|
- var params = {
|
|
|
- claimId:row.id,
|
|
|
- ifFirst:!this.secondModify
|
|
|
- }
|
|
|
- this.$api.deletePatentClaim(params).then(response=>{
|
|
|
- if(response.code == 200){
|
|
|
- this.getList()
|
|
|
- }
|
|
|
- }).catch(response=>{
|
|
|
|
|
|
- })
|
|
|
- },
|
|
|
//双击单元格进行编辑
|
|
|
cellDblclick(row, column, cell, event){
|
|
|
this.editMessage = {
|
|
@@ -279,15 +247,23 @@ export default {
|
|
|
case 'historyContent1'://第一次修改后权利要求
|
|
|
obj = this.getModifyClaim(row,1,'object')
|
|
|
params.content = value
|
|
|
- params.ifFirst = true
|
|
|
+ params.ifFirst = 1
|
|
|
if(obj){
|
|
|
params.description = obj.description
|
|
|
}
|
|
|
break;
|
|
|
- case 'historyContent2'://第一次修改后权利要求
|
|
|
+ case 'historyContent2': //第二次修改后权利要求
|
|
|
obj = this.getModifyClaim(row,2,'object')
|
|
|
params.content = value
|
|
|
- params.ifFirst = false
|
|
|
+ params.ifFirst = 0
|
|
|
+ if(obj){
|
|
|
+ params.description = obj.description
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 'historyContent3'://第三次修改后权利要求
|
|
|
+ obj = this.getModifyClaim(row,3,'object')
|
|
|
+ params.content = value
|
|
|
+ params.ifFirst = 2
|
|
|
if(obj){
|
|
|
params.description = obj.description
|
|
|
}
|
|
@@ -295,7 +271,7 @@ export default {
|
|
|
case 'historyDescription1'://第一次修改说明
|
|
|
obj = this.getModifyDescription(row,1,'object')
|
|
|
params.description = value
|
|
|
- params.ifFirst = true
|
|
|
+ params.ifFirst = 1
|
|
|
if(obj){
|
|
|
params.content = obj.content
|
|
|
}
|
|
@@ -303,7 +279,15 @@ export default {
|
|
|
case 'historyDescription2'://第二次修改说明
|
|
|
obj = this.getModifyDescription(row,2,'object')
|
|
|
params.description = value
|
|
|
- params.ifFirst = false
|
|
|
+ params.ifFirst = 0
|
|
|
+ if(obj){
|
|
|
+ params.content = obj.content
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 'historyDescription3'://第三次修改说明
|
|
|
+ obj = this.getModifyDescription(row,3,'object')
|
|
|
+ params.description = value
|
|
|
+ params.ifFirst = 2
|
|
|
if(obj){
|
|
|
params.content = obj.content
|
|
|
}
|
|
@@ -357,9 +341,11 @@ export default {
|
|
|
if(row.patentClaimHistoryList){
|
|
|
var obj = row.patentClaimHistoryList.find(item=>{
|
|
|
if(type == 1){
|
|
|
- return item.operateType != 2 && item.ifFirst
|
|
|
+ return item.operateType != 2 && item.ifFirst==1
|
|
|
}else if(type == 2){
|
|
|
- return item.operateType != 2 && !item.ifFirst
|
|
|
+ return item.operateType != 2 && item.ifFirst==0
|
|
|
+ }else if(type == 3){
|
|
|
+ return item.operateType != 2 && item.ifFirst==2
|
|
|
}
|
|
|
})
|
|
|
if(obj){
|
|
@@ -379,9 +365,11 @@ export default {
|
|
|
if(row.patentClaimHistoryList){
|
|
|
var obj = row.patentClaimHistoryList.find(item=>{
|
|
|
if(type == 1){
|
|
|
- return item.operateType != 2 && item.ifFirst
|
|
|
+ return item.operateType != 2 && item.ifFirst == 1
|
|
|
}else if(type == 2){
|
|
|
- return item.operateType != 2 && !item.ifFirst
|
|
|
+ return item.operateType != 2 && item.ifFirst == 0
|
|
|
+ }else if(type == 3){
|
|
|
+ return item.operateType != 2 && item.ifFirst == 2
|
|
|
}
|
|
|
})
|
|
|
if(obj){
|
|
@@ -404,30 +392,6 @@ export default {
|
|
|
this.loading = true
|
|
|
this.$api.queryClaim(params).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
- var data = response.data.data
|
|
|
- var first = false
|
|
|
- var second = false
|
|
|
- for(var i = 0;i<data.length;i++){
|
|
|
-
|
|
|
- if(data[i].patentClaimHistoryList){
|
|
|
- var history = data[i].patentClaimHistoryList
|
|
|
- if(!first){
|
|
|
- first = history.find(item=>{
|
|
|
- return item.ifFirst
|
|
|
- })
|
|
|
- }
|
|
|
- if(!second){
|
|
|
- second = history.find(item=>{
|
|
|
- return !item.ifFirst
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- if(first && second){
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- this.firstModify = first
|
|
|
- this.secondModify = second
|
|
|
this.tableData = response.data.data
|
|
|
this.loading = false
|
|
|
}
|