|
@@ -2,196 +2,156 @@
|
|
|
<div class="height_100">
|
|
|
<el-container>
|
|
|
<el-header>
|
|
|
- <div>
|
|
|
+ <div style="padding: 20px;">
|
|
|
<p> 标的专利号:<el-link type="primary" @click="toPatentDetails(patentNo)">{{ patentNo }}</el-link> </p>
|
|
|
</div>
|
|
|
</el-header>
|
|
|
- <el-main class="height_100" style="padding:20px">
|
|
|
+ <el-main style="padding:20px;height: calc(100% - 100px);">
|
|
|
<!-- 拆分特征公用组件 -->
|
|
|
- <splitPage :tableData="tableData" :word="{ patentNo: patentNo, reportId: reportId }" :columnList="columnList"
|
|
|
- @splitSelect="splitSelect" @isSave="isSave"></splitPage>
|
|
|
+ <splitPage style="height: calc(100% - 103px);overflow: auto;" :tableData="tableData"
|
|
|
+ :word="{ patentNo: patentNo, projectId: projectId }" :columnList="columnList" @splitSelect="splitSelect"
|
|
|
+ @isSave="isSave"></splitPage>
|
|
|
|
|
|
<!-- 回避设计总体方向 -->
|
|
|
<div style="margin-top: 20px;">
|
|
|
<p>回避设计总体方向:</p>
|
|
|
<div>
|
|
|
-
|
|
|
- <myRichText v-model="textarea.wholeDirection" placeholder="请输入回避设计总体方向(可粘贴图片)"></myRichText>
|
|
|
-
|
|
|
+ <myRichText v-model="wholeContent" placeholder="请输入回避设计总体方向(可粘贴图片)"></myRichText>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import splitPage from './splitPage.vue';
|
|
|
+import { patentDetails } from '../../components/mixins/index2'
|
|
|
+import mixins from './mixins'
|
|
|
+import splitPage from '../../components/splitPage/splitPage.vue';
|
|
|
export default {
|
|
|
- props: ['patentNo', 'reportId', 'splitBy', 'splitType'],
|
|
|
+ props: ['patentNo', 'projectId',],
|
|
|
+ mixins:[patentDetails,mixins],
|
|
|
components: {
|
|
|
splitPage,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- // 回避设计栏位
|
|
|
- columnList: [
|
|
|
- {
|
|
|
- name: "回避设计方向(可粘贴图片)",
|
|
|
- type: "String",
|
|
|
- value: "littleDirection",
|
|
|
- },
|
|
|
- ],
|
|
|
- // 数据源
|
|
|
- tableData: [],
|
|
|
- // 回避设计总体方案
|
|
|
- textarea: {},
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.getList()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
// 保存
|
|
|
isSave(val) {
|
|
|
- this.handleData(val)
|
|
|
- // 回避设计总体方案
|
|
|
- val.wholeDirection = this.textarea.wholeDirection
|
|
|
- this.$api.save(val).then(res => {
|
|
|
+ // let params = this.handleData(val)
|
|
|
+ let params = {
|
|
|
+ projectId: this.projectId,
|
|
|
+ wholeContent: this.wholeContent,
|
|
|
+ avoidDesignDTOS: val,
|
|
|
+ }
|
|
|
+ this.$api.addAvoidDesign(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 处理需要保存的数据()
|
|
|
handleData(tableData) {
|
|
|
let keepArr = [
|
|
|
{
|
|
|
- pRightName: tableData[0].pRightName,
|
|
|
- RightName: tableData[0].pRightName,
|
|
|
+ rightName: tableData[0].pRightName,
|
|
|
signPatentNo: tableData[0].pSignPatentNo,
|
|
|
- // patentId: tableData[0].pPatentId,
|
|
|
- content: tableData[0].content,
|
|
|
- // type: tableData[0].pType,
|
|
|
- // sort: tableData[0].pSort,
|
|
|
- rightId: tableData[0].rightId,
|
|
|
- reportId: tableData[0].pReportId,
|
|
|
+ patentNo: tableData[0].pPatentNo,
|
|
|
+ content: tableData[0].pContent,
|
|
|
contentOut: tableData[0].pContentOut,
|
|
|
+ sort: tableData[0].pSort,
|
|
|
+ type: tableData[0].pType,
|
|
|
+ projectId: tableData[0].pReportId,
|
|
|
features: [],
|
|
|
}
|
|
|
]
|
|
|
var j = 0
|
|
|
for (let i = 0; i < tableData.length; i++) {
|
|
|
- if (keepArr.findIndex(item => { return (item.pRightName || item.RightName) == tableData[i].rightName }) < 0) {
|
|
|
-
|
|
|
+ if (keepArr.findIndex(item => { return item.rightName == tableData[i].pRightName }) < 0) {
|
|
|
+
|
|
|
j += 1
|
|
|
keepArr.push(
|
|
|
{
|
|
|
- RightName: tableData[i].pRightName,
|
|
|
+ rightName: tableData[i].pRightName,
|
|
|
signPatentNo: tableData[i].pSignPatentNo,
|
|
|
- // patentId: tableData[i].pPatentId,
|
|
|
+ patentNo: tableData[i].pPatentNo,
|
|
|
content: tableData[i].pContent,
|
|
|
- // type: tableData[i].pType,
|
|
|
- // sort: tableData[i].pSort,
|
|
|
- rightId: tableData[i].rightId,
|
|
|
- reportId: tableData[i].pReportId,
|
|
|
contentOut: tableData[i].pContentOut,
|
|
|
+ sort: tableData[i].pSort,
|
|
|
+ type: tableData[i].pType,
|
|
|
+ projectId: tableData[i].pReportId,
|
|
|
features: [],
|
|
|
}
|
|
|
)
|
|
|
}
|
|
|
keepArr[j].features.push({
|
|
|
- signPatentNo: tableData[i].signPatentNo,
|
|
|
- patentId: tableData[i].patentId,
|
|
|
- content: tableData[i].content.trim(),
|
|
|
- type: tableData[i].type,
|
|
|
- littleDirection: tableData[i].littleDirection ? tableData[i].littleDirection : '',
|
|
|
- // littleDirection:
|
|
|
- // reportId: tableData[i].pReportId,
|
|
|
- reportId: tableData[i].reportId,
|
|
|
+ content: tableData[i].content,
|
|
|
+ direction: tableData[i].direction ? tableData[i].direction : '',
|
|
|
+ projectId: tableData[i].projectId,
|
|
|
explainText: tableData[i].explainText ? tableData[i].explainText : '',
|
|
|
- contentOut: tableData[i].contentOut.trim(),
|
|
|
- splitBy: tableData[i].splitBy,
|
|
|
- splitType: tableData[i].splitType,
|
|
|
- featuresOrder: tableData[i].featuresOrder,
|
|
|
- partnerId: tableData[i].partnerId,
|
|
|
- rightId: tableData[i].rightId,
|
|
|
+ contentOut: tableData[i].contentOut ? tableData[i].contentOut : '',
|
|
|
+ rightSort: tableData[i].rightSort,
|
|
|
rightType: tableData[i].rightType,
|
|
|
id: tableData[i].id,
|
|
|
- rightName: tableData[i].rightName,
|
|
|
- pRightName: tableData[i].rightName,
|
|
|
- isFinal: tableData[i].isFinal,
|
|
|
- pContent: tableData[i].pContent,
|
|
|
- pContentOut: tableData[i].pContentOut,
|
|
|
+ patentNo: tableData[i].patentNo,
|
|
|
})
|
|
|
- // console.log(tableData[i].littleDirection);
|
|
|
}
|
|
|
let keepStr = {
|
|
|
- reportId: this.reportId,
|
|
|
- avoidDesignLittleDirectionDTOs: keepArr,
|
|
|
- wholeDirection: this.textarea1.wholeDirection ? this.textarea1.wholeDirection : ''
|
|
|
+ projectId: this.projectId,
|
|
|
+ avoidDesignDTOS: keepArr,
|
|
|
+ wholeContent: this.wholeContent ? this.wholeContent : ''
|
|
|
}
|
|
|
+ return keepStr
|
|
|
},
|
|
|
// 改变拆分条件
|
|
|
splitSelect(split) {
|
|
|
- this.getList(split)
|
|
|
+ this.getList(split,true)
|
|
|
},
|
|
|
- // 获取数据
|
|
|
+ // 获取拆分数据(弃用)
|
|
|
getSplitList(val) {
|
|
|
let params = {
|
|
|
patentNo: this.patentNo,
|
|
|
- reportId: this.reportId,
|
|
|
+ projectId: Number(this.projectId),
|
|
|
...val,//拆分条件
|
|
|
}
|
|
|
- this.$api.query(params).then(res => {
|
|
|
+ this.$api.spiltFeature(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.textarea.wholeDirection = res.data.wholeDirection
|
|
|
- if (res.data.patentRightVos.length > 0) {
|
|
|
- res.data.patentRightVos.forEach(RightVosItem => {
|
|
|
+ // this.textarea.wholeDirection = res.data.wholeDirection
|
|
|
+ if (res.data.data.length > 0) {
|
|
|
+ var data = []
|
|
|
+ res.data.data.forEach(RightVosItem => {
|
|
|
if (RightVosItem.features.length > 0) {
|
|
|
RightVosItem.features.forEach(FeaturesItem => {
|
|
|
- FeaturesItem.pRightName = RightVosItem.RightName
|
|
|
+ FeaturesItem.pRightName = RightVosItem.rightName
|
|
|
FeaturesItem.pSignPatentNo = RightVosItem.signPatentNo
|
|
|
+ FeaturesItem.pPatentNo = RightVosItem.patentNo
|
|
|
FeaturesItem.pContentOut = RightVosItem.contentOut
|
|
|
FeaturesItem.pContent = RightVosItem.content
|
|
|
- FeaturesItem.pReportId = RightVosItem.reportId
|
|
|
- FeaturesItem.pPatentId = RightVosItem.patentId
|
|
|
+ FeaturesItem.pProjectId = RightVosItem.projectId
|
|
|
FeaturesItem.pType = RightVosItem.type
|
|
|
FeaturesItem.pSort = RightVosItem.sort
|
|
|
this.hasOwn(FeaturesItem)
|
|
|
- this.tableData.push(FeaturesItem)
|
|
|
+ data.push(FeaturesItem)
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ this.tableData = data
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- hasOwn(item) {
|
|
|
- if (!item.hasOwnProperty("explainText")) {
|
|
|
- item.explainText = item.contentOut
|
|
|
- } else {
|
|
|
- if (item.explainText == "") {
|
|
|
- item.explainText = item.contentOut
|
|
|
- }
|
|
|
- }
|
|
|
- if (!item.hasOwnProperty("littleDirection")) {
|
|
|
- item.littleDirection = ''
|
|
|
- } else {
|
|
|
- if (item.littleDirection == "") {
|
|
|
- item.littleDirection = ''
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // 跳转专利详情(放在公用js)
|
|
|
- toPatentDetails(patentNo) {
|
|
|
+
|
|
|
|
|
|
- },
|
|
|
}
|
|
|
}
|
|
|
</script>
|