|
@@ -10,7 +10,7 @@
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip content="协同办公" placement="right">
|
|
|
- <div @click="coordination" class="iconBtn">
|
|
|
+ <div v-if="!taskId" @click="coordination" class="iconBtn">
|
|
|
<i class="el-icon-s-custom"></i>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
@@ -36,18 +36,21 @@
|
|
|
</el-header>
|
|
|
<el-main style="padding-top: 0px !important">
|
|
|
|
|
|
- <component :is="viewType" style="height: calc(100% - 0px);overflow: auto;" :tableData="tableData"
|
|
|
- :word="{ patentNo: patentNo, projectId: projectId }" :reportType="reportType" :columnList="columnList"
|
|
|
- @splitSelect="splitSelect" @isSave="isSave"></component>
|
|
|
+ <component :is="viewType" style="height: calc(100% - -10px);overflow: auto;" :tableData="tableData"
|
|
|
+ :patentNo="patentNo" :projectId="projectId" :reportType="reportType" :columnList="columnList"
|
|
|
+ @splitSelect="splitSelect" @isSave="isSave" :isEdit="taskId ? false : true" :isResult="isResult" @changeResult="changeResult"
|
|
|
+ ></component>
|
|
|
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
|
|
|
- <div v-show="look" slot="right"></div>
|
|
|
+ <div v-show="look" slot="right" style="height: 100%;width:100%;">
|
|
|
+ <!-- <patentDetailsPage :projectId="projectId"></patentDetailsPage> -->
|
|
|
+ </div>
|
|
|
</myView>
|
|
|
</div>
|
|
|
|
|
|
- <teamwork ref="teamwork" :word="{ patentNo: patentNo, projectId: projectId }"></teamwork>
|
|
|
+ <teamwork ref="teamwork" :patentNo="patentNo" :projectId="projectId"></teamwork>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -56,13 +59,16 @@ import { patentDetails } from '../../components/mixins/index2'
|
|
|
import splitPage from '../../components/splitPage/splitPage.vue'
|
|
|
import informationEntry from './informationEntry/informationEntry.vue'
|
|
|
import teamwork from '../../components/dialog/teamwork.vue'
|
|
|
+import patentDetailsPage from '@/views/project/patentDetails/components/patentDetails.vue'
|
|
|
export default {
|
|
|
- props: ['patentNo', 'projectId', 'reportType'],
|
|
|
+ //isTaskLook只有处理或查看协同时传递//isConfirm只有确认协同结果时传递
|
|
|
+ props: ['patentNo', 'projectId', 'reportType', 'taskId', 'isResult'],
|
|
|
mixins: [patentDetails],
|
|
|
components: {
|
|
|
splitPage,
|
|
|
informationEntry,
|
|
|
teamwork,
|
|
|
+ patentDetailsPage,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -75,12 +81,12 @@ export default {
|
|
|
{
|
|
|
name: "标的说明(可粘贴图片)",
|
|
|
type: "String",
|
|
|
- value: "targetDescription",
|
|
|
+ value: ['originalRecordVO','targetDescription'],
|
|
|
},
|
|
|
{
|
|
|
name: "比对结果",
|
|
|
type: "Array",
|
|
|
- value: "compareResult",
|
|
|
+ value: ['originalRecordVO','compareResult'],
|
|
|
options: [
|
|
|
{
|
|
|
value: 0,
|
|
@@ -100,78 +106,190 @@ export default {
|
|
|
{
|
|
|
name: "比对说明(可粘贴图片)",
|
|
|
type: "String",
|
|
|
- value: "compareDescription",
|
|
|
+ value: ['originalRecordVO','compareDescription'],
|
|
|
},
|
|
|
],
|
|
|
// 查看详情
|
|
|
- look: false
|
|
|
+ look: false,
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+
|
|
|
+ this.getColumn()
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getColumn() {
|
|
|
+ var a = {
|
|
|
+ 1: '处理协同结果',
|
|
|
+ 2: '查看协同结果',
|
|
|
+ 3: '确认结果'
|
|
|
+ }
|
|
|
+ // var b = 3
|
|
|
+ var confirmColumn= [
|
|
|
+ {
|
|
|
+ name: "协同标的说明(可粘贴图片)",
|
|
|
+ type: "String",
|
|
|
+ value: ['originalRecordVO','targetDescription'],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "协同比对结果",
|
|
|
+ type: "Array",
|
|
|
+ value:['originalRecordVO','compareResult'],
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: '字面相同'
|
|
|
+ }, {
|
|
|
+ value: 1,
|
|
|
+ label: '等同'
|
|
|
+ }, {
|
|
|
+ value: 2,
|
|
|
+ label: '不相同'
|
|
|
+ }, {
|
|
|
+ value: 3,
|
|
|
+ label: '待确定'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "协同比对说明(可粘贴图片)",
|
|
|
+ type: "String",
|
|
|
+ value: ['originalRecordVO','compareDescription'],
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ switch (this.isResult) {
|
|
|
+ case '1':
|
|
|
+ this.columnList.forEach(item => {
|
|
|
+ item.disabled = true
|
|
|
+ })
|
|
|
+ break;
|
|
|
+ case '2':
|
|
|
+ this.columnList = this.columnList.concat(confirmColumn)
|
|
|
+ break;
|
|
|
+ case '3':
|
|
|
+ this.columnList.forEach(item => {
|
|
|
+ item.disabled = true
|
|
|
+ })
|
|
|
+ confirmColumn.push(
|
|
|
+ {
|
|
|
+ type: 'btn',
|
|
|
+ name:'操作',
|
|
|
+ btn: [
|
|
|
+ {
|
|
|
+ type: 'elButton',
|
|
|
+ name:'确认结果',
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ )
|
|
|
+ this.columnList = this.columnList.concat(confirmColumn)
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changeResult(row) {
|
|
|
+ console.log(row)
|
|
|
+ },
|
|
|
// 查看详情
|
|
|
lookDetails() {
|
|
|
this.look = !this.look
|
|
|
},
|
|
|
// 协同办公
|
|
|
- coordination() {
|
|
|
+ coordination() {
|
|
|
this.$refs.teamwork.open()
|
|
|
},
|
|
|
// 返回
|
|
|
- goBack() { },
|
|
|
+ goBack() {
|
|
|
+ if (this.taskId) {
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/myTask',
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/AllReport',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 切换产品信息
|
|
|
handleSwitch() {
|
|
|
- this.viewType == 'splitPage' ? this.viewType = 'informationEntry' : this.viewType = 'splitPage'
|
|
|
+ this.viewType = (this.viewType == 'splitPage' ? 'informationEntry' : 'splitPage')
|
|
|
},
|
|
|
// 保存结果
|
|
|
isSave(val) {
|
|
|
- let params = {
|
|
|
- projectId: this.projectId,
|
|
|
- tortDTOS: val,
|
|
|
- }
|
|
|
- this.$api.addTortCompareRecord(params).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message.success('保存成功')
|
|
|
+ if (this.taskId) {//确认协同结果保存
|
|
|
+ } else if (this.taskId && this.isTaskLook) {//处理或查看协同结果保存
|
|
|
+ let params = {
|
|
|
+ taskId: this.taskId,
|
|
|
+ tortDTOS: val,
|
|
|
}
|
|
|
- })
|
|
|
+ this.$api.addTortTaskResult(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('保存成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {//侵权报告拆分保存
|
|
|
+ let params = {
|
|
|
+ projectId: this.projectId,
|
|
|
+ tortDTOS: val,
|
|
|
+ }
|
|
|
+ this.$api.addTortCompareRecord(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('保存成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
// 拆分信息
|
|
|
splitSelect(split) {
|
|
|
this.getList(split, true)
|
|
|
},
|
|
|
+ // 获取数据
|
|
|
getList(split = { splitType: '1', splitBy: '2' }, ifReSplit = false) {
|
|
|
- let params = {
|
|
|
- ifReSplit: ifReSplit,
|
|
|
- projectId: Number(this.projectId),
|
|
|
- ...split,//拆分条件
|
|
|
+ let params = {}
|
|
|
+ if (this.taskId) {//确认协同结果,处理协同
|
|
|
+ params = {
|
|
|
+ taskId: this.taskId
|
|
|
+ }
|
|
|
+ this.$api.getAllTortTaskResult(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.getInterface(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {//侵权报告拆分
|
|
|
+ params = {
|
|
|
+ ifReSplit: ifReSplit,
|
|
|
+ projectId: Number(this.projectId),
|
|
|
+ ...split,//拆分条件
|
|
|
+ }
|
|
|
+ this.$api.getTortCompareRecord(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.getInterface(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- this.$api.getTortCompareRecord(params).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.wholeContent = res.data.wholeContent
|
|
|
- if (res.data.tortRightVOS.length > 0) {
|
|
|
- var data = []
|
|
|
- res.data.tortRightVOS.forEach(RightVosItem => {
|
|
|
- if (RightVosItem.tortVOS.length > 0) {
|
|
|
- RightVosItem.tortVOS.forEach(FeaturesItem => {
|
|
|
- FeaturesItem.pRightName = RightVosItem.rightName
|
|
|
- FeaturesItem.pSignPatentNo = RightVosItem.signPatentNo
|
|
|
- FeaturesItem.pPatentNo = RightVosItem.patentNo
|
|
|
- FeaturesItem.pContentOut = RightVosItem.contentOut
|
|
|
- FeaturesItem.pContent = RightVosItem.content
|
|
|
- FeaturesItem.pProjectId = RightVosItem.projectId
|
|
|
- FeaturesItem.pType = RightVosItem.type
|
|
|
- FeaturesItem.pSort = RightVosItem.sort
|
|
|
- this.hasOwn(FeaturesItem)
|
|
|
- data.push(FeaturesItem)
|
|
|
- })
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 处理获取的数据
|
|
|
+ getInterface(res) {
|
|
|
+ if (res.data.tortRightVOS.length > 0) {
|
|
|
+ var data = []
|
|
|
+ res.data.tortRightVOS.forEach(RightVosItem => {
|
|
|
+ if (RightVosItem.tortVOS.length > 0) {
|
|
|
+ RightVosItem.tortVOS.forEach(FeaturesItem => {
|
|
|
+ FeaturesItem.pRightName = RightVosItem.rightName
|
|
|
+ FeaturesItem.pSignPatentNo = RightVosItem.signPatentNo
|
|
|
+ FeaturesItem.pPatentNo = RightVosItem.patentNo
|
|
|
+ FeaturesItem.pContentOut = RightVosItem.contentOut
|
|
|
+ FeaturesItem.pContent = RightVosItem.content
|
|
|
+ FeaturesItem.pProjectId = RightVosItem.projectId
|
|
|
+ FeaturesItem.pType = RightVosItem.type
|
|
|
+ FeaturesItem.pSort = RightVosItem.sort
|
|
|
+ this.hasOwn(FeaturesItem)
|
|
|
+ data.push(FeaturesItem)
|
|
|
})
|
|
|
- this.tableData = data
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ this.tableData = data
|
|
|
+ }
|
|
|
},
|
|
|
hasOwn(item) {
|
|
|
if (!item.hasOwnProperty("explainText")) {
|