|
@@ -22,7 +22,7 @@
|
|
|
<el-container style=" border: 1px solid #eee">
|
|
|
<!-- <el-container :style="{width:width}" > -->
|
|
|
<el-aside style="margin:0;" :style="{ width: width }">
|
|
|
- <Patent-Features v-if="type == '2'||type=='1'" :taskId="taskId" :patentNo="patentNo1" :reportId="reportId" :coordination="coordinationA" :FeaturesNumber="FeaturesNumber" :taskWorkRemak="taskWorkRemakA" :type="type" @isRead="isRead" ></Patent-Features>
|
|
|
+ <Patent-Features v-if="type == '2'||type=='1' || reportType == 4" :taskId="taskId" :patentNo="patentNo1" :reportId="reportId" :coordination="coordinationA" :FeaturesNumber="FeaturesNumber" :taskWorkRemak="taskWorkRemakA" :type="type" @isRead="isRead" ></Patent-Features>
|
|
|
<patent-Message v-else :publicNo="patentNo1" :reportId="reportId" :taskId="taskId" @patentStatusEmit="patentStatusEmit" :patentStatus2A="patentStatus2A" :switchValue="switchValue"></patent-Message>
|
|
|
</el-aside>
|
|
|
<!-- </el-container> -->
|
|
@@ -40,7 +40,7 @@
|
|
|
<span v-html="getViewDom(patent.publicNo)"></span>
|
|
|
<el-tag type="primary" effect="dark" size="mini" class="margin-left_10">{{ patent.simpleStatus
|
|
|
}}</el-tag>
|
|
|
- <el-tag :type="patentStatus2 == '0' ? 'info' : 'primary'" effect="dark" size="mini" class="margin-left_10"
|
|
|
+ <el-tag v-if="reportType!=4" :type="patentStatus2 == '0' ? 'info' : 'primary'" effect="dark" size="mini" class="margin-left_10"
|
|
|
style="cursor: pointer" @click="changeStatus(patentStatus2)">{{ patentStatus[patentStatus2]
|
|
|
}}</el-tag>
|
|
|
</div>
|
|
@@ -171,6 +171,7 @@ export default {
|
|
|
coordinationA:this.coordination,
|
|
|
taskWorkRemakA: this.taskWorkRemak,
|
|
|
reportType: '',
|
|
|
+ reportStatus:'',
|
|
|
ban: 0,
|
|
|
pNo: '',
|
|
|
location1: this.location ? this.location : '',
|
|
@@ -280,9 +281,11 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
+ console.log(this.$s.getSession('params'));
|
|
|
this.taskId = this.$s.getSession('params').taskId
|
|
|
this.type = this.$s.getSession('params').type
|
|
|
this.reportType = this.$s.getSession('params').reportType
|
|
|
+ this.reportStatus = this.$s.getSession('params').reportStatus
|
|
|
|
|
|
this.reportId = this.$s.getSession('params').reportId
|
|
|
console.log(this.$s.getSession('params'));
|
|
@@ -295,7 +298,26 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
isRead(val) {
|
|
|
- this.changeStatus(val)
|
|
|
+
|
|
|
+ if(this.patentStatus2==0 && this.reportType != 4){
|
|
|
+ this.changeStatus(val)
|
|
|
+ }
|
|
|
+ if(this.reportType == 4 && this.reportStatus == 1){
|
|
|
+ var a = {
|
|
|
+ reportId:this.reportId,
|
|
|
+ status:2
|
|
|
+ }
|
|
|
+ this.$api.UpdateStatus(a).then(response=>{
|
|
|
+ if(response.code == 200){
|
|
|
+ var a = this.$s.getSession('params')
|
|
|
+ a.reportStatus = 2
|
|
|
+ this.$s.setSession('params',a)
|
|
|
+ var b = this.$s.getSession('reportMessage1')
|
|
|
+ b.status = 2
|
|
|
+ this.$s.setSession('reportMessage1',b)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
behindNumber(val) {
|
|
|
this.FeaturesNumber = val
|
|
@@ -375,10 +397,20 @@ export default {
|
|
|
},
|
|
|
//查询任务下专利状态
|
|
|
getPatentStatus() {
|
|
|
- var a = {
|
|
|
- taskID: this.taskId,
|
|
|
- patentNo: this.patentNo1?this.patentNo1:this.patentNo
|
|
|
+ if(this.taskId){
|
|
|
+ var a = {
|
|
|
+ reportId:null,
|
|
|
+ taskID: this.taskId,
|
|
|
+ patentNo: this.patentNo1?this.patentNo1:this.patentNo
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ var a = {
|
|
|
+ reportId:this.reportId,
|
|
|
+ taskID:null,
|
|
|
+ patentNo: this.patentNo1?this.patentNo1:this.patentNo
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
this.$api.getPatentStatus(a).then(response => {
|
|
|
if (response.code == 200) {
|
|
|
this.patentStatus2 = response.data
|
|
@@ -388,9 +420,18 @@ export default {
|
|
|
//修改已读未读
|
|
|
changeStatus(val) {
|
|
|
if (val == '0') {
|
|
|
- var a = {
|
|
|
- taskID: this.taskId?this.taskId:this.taskId1,
|
|
|
- patentNo:this.patentNo1?this.patentNo1:this.patentNo,
|
|
|
+ if(this.taskId){
|
|
|
+ var a = {
|
|
|
+ reportId:null,
|
|
|
+ taskID: this.taskId?this.taskId:this.taskId1,
|
|
|
+ patentNo: this.patentNo1?this.patentNo1:this.patentNo
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ var a = {
|
|
|
+ reportId:this.reportId,
|
|
|
+ taskID:null,
|
|
|
+ patentNo: this.patentNo1?this.patentNo1:this.patentNo
|
|
|
+ }
|
|
|
}
|
|
|
this.$api.updatePatentStatus(a).then(response => {
|
|
|
if (response.code == 200) {
|