|
@@ -0,0 +1,302 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="height_100">
|
|
|
|
+ <el-container>
|
|
|
|
+ <el-header>
|
|
|
|
+ <div class="head">
|
|
|
|
+ <el-button type="primary" size="small" @click="andClick('5')">
|
|
|
|
+ 专利检索
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-dropdown trigger="hover" @command="andClick($event)" :hide-on-click="false" type="primary" size="small">
|
|
|
|
+ <el-button type="primary" size="small">
|
|
|
|
+ 上传对比文件<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-dropdown-menu slot="dropdown" class="text-align_center">
|
|
|
|
+ <el-dropdown-item command="1">专利号导入</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="4">Excel导入</el-dropdown-item>
|
|
|
|
+ <!-- <el-dropdown-item command="5">检索导入</el-dropdown-item> -->
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </el-header>
|
|
|
|
+ <el-main v-DivHeight="getDivHeight">
|
|
|
|
+ <el-table :data="tableData" border :maxHeight="tableHeight - 35" style="width: 100%">
|
|
|
|
+ <el-table-column prop="sysOrder" label="序号" width="80" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ <el-link type="primary" @click="checkDetails(scope)">D{{ scope.$index+1 }}</el-link>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="patentNo" label="专利号" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.patentNo}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="name" label="名称" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span >
|
|
|
|
+ {{scope.row.name}}
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="publicNo" label="公开/公告号" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.publicNo}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="publicDate" label="公开/公告日" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.publicDate}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="appDate" label="申请日" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.appDate}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="appPerson" label="申请人" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.applicant.join('、')}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="relevance" label="相关度" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.relevance}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="innovate" label="影响新创新" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.innovate}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="description" label="标注" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{scope.row.description}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ <el-button @click="edit(scope.row)" type="text" size="small">编辑</el-button>
|
|
|
|
+ <el-button @click="remove(scope)" type="text" size="small">删除</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-main>
|
|
|
|
+ </el-container>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ import { mapGetters } from "vuex";
|
|
|
|
+ import { getTableHeight } from '@/views/components/mixins'
|
|
|
|
+ export default {
|
|
|
|
+ components: {
|
|
|
|
+ },
|
|
|
|
+ mixins:[getTableHeight],
|
|
|
|
+ props: {
|
|
|
|
+ projectId:{
|
|
|
|
+ default:null
|
|
|
|
+ },
|
|
|
|
+ projectName:{
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ projectType:{
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ reportType:{
|
|
|
|
+ default:0
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ tableData:[],
|
|
|
|
+ queryParams:{
|
|
|
|
+ projectId:this.projectId,
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ watch: {},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters(['webSocket', 'userinfo']),
|
|
|
|
+ },
|
|
|
|
+ created() {},
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+
|
|
|
|
+ //查看详情
|
|
|
|
+ checkDetails(scope){
|
|
|
|
+ var index = scope.$index
|
|
|
|
+ var row = scope.row
|
|
|
|
+ var search = {
|
|
|
|
+ location: index + 1
|
|
|
|
+ }
|
|
|
|
+ this.$s.setSession('search', search)
|
|
|
|
+ this.$router.push(
|
|
|
|
+ {
|
|
|
|
+ path: '/patentDetails/' + row.literatureNo,
|
|
|
|
+ query: {
|
|
|
|
+ projectId: this.projectId,
|
|
|
|
+ reportType: this.reportType,
|
|
|
|
+ evidenceType:row.type,
|
|
|
|
+ evidence:JSON.stringify(row),
|
|
|
|
+ signPatentNo:this.patentNo,
|
|
|
|
+ projectName: this.projectName,
|
|
|
|
+ projectType: this.projectType,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ },
|
|
|
|
+ //获取证据文献
|
|
|
|
+ getList(){
|
|
|
|
+ // this.tableData = [
|
|
|
|
+ // {
|
|
|
|
+ // "patentNo": "WO9719481A1",
|
|
|
|
+ // name:'A SOLID STATE BATTERY HAVING A DISORDERED HYDROGENATED CARBON NEGATIVE ELECTRODE',
|
|
|
|
+ // "publicNo": "WO9719481A1",
|
|
|
|
+ // "publicDate": "1997-05-29",
|
|
|
|
+ // "appNo": "US9618644W",
|
|
|
|
+ // "appDate": "1996-11-20",
|
|
|
|
+ // "priorityCountry": "US",
|
|
|
|
+ // "priorityDate": "1995-11-24",
|
|
|
|
+ // "priorityNo": "US19950562952",
|
|
|
|
+ // "appCountry": "WO",
|
|
|
|
+
|
|
|
|
+ // "applicant": [
|
|
|
|
+ // "OVONIC BATTERY CO"
|
|
|
|
+ // ],
|
|
|
|
+ // "mergeApplicant": [
|
|
|
|
+ // "OVONIC BATTERY CO"
|
|
|
|
+ // ],
|
|
|
|
+ // "rightHolder": [
|
|
|
|
+ // "OVONIC BATTERY CO"
|
|
|
|
+ // ],
|
|
|
|
+ // "mergeRightHolder": [
|
|
|
|
+ // "OVONIC BATTERY CO"
|
|
|
|
+ // ],
|
|
|
|
+ // "inventor": [
|
|
|
|
+ // "OVSHINSKY STANFORD R",
|
|
|
|
+ // "YOUNG ROSA"
|
|
|
|
+ // ],
|
|
|
|
+ // "mergeInventor": [
|
|
|
|
+ // "OVSHINSKY STANFORD R",
|
|
|
|
+ // "YOUNG ROSA"
|
|
|
|
+ // ],
|
|
|
|
+ // "quotePatentNoNum": 1,
|
|
|
|
+ // "inpadocFamilyNum": 1,
|
|
|
|
+ // "inpadocFamilyId": "iyjesZEBqw7ULz3TskB4",
|
|
|
|
+ // "pictureGuid": "US9618644W_p",
|
|
|
|
+ // "ifSearch": true
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ // return
|
|
|
|
+ this.$api.queryCompareLiterature(this.queryParams).then(response=>{
|
|
|
|
+ if(response.code == 200){
|
|
|
|
+ this.tableData = response.data.data.sort((a,b)=>{
|
|
|
|
+ return a.sysOrder - b.sysOrder
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }).catch(error=>{
|
|
|
|
+ this.tableData = []
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //上传证据文献
|
|
|
|
+ async andClick(option){
|
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
|
+ this.$showPermissionDialog()
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ switch(option){
|
|
|
|
+ case '1'://专利号导入
|
|
|
|
+ this.patentImport(2)
|
|
|
|
+ break;
|
|
|
|
+ case '4'://Excel导入
|
|
|
|
+ this.patentImport(1)
|
|
|
|
+ break;
|
|
|
|
+ case '5'://检索导入
|
|
|
|
+ this.patentImport(4)
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //专利导入
|
|
|
|
+ patentImport(type){
|
|
|
|
+ var form = {
|
|
|
|
+ importToId:this.projectId,
|
|
|
|
+ importToType:1,
|
|
|
|
+ type:type,
|
|
|
|
+ }
|
|
|
|
+ if(type == 4){
|
|
|
|
+ form.reportType = this.reportType
|
|
|
|
+ }
|
|
|
|
+ this.$commonJS.toImportParent(form,type)
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ //删除
|
|
|
|
+ remove(scope){
|
|
|
|
+ var row = scope.row
|
|
|
|
+ var index = scope.$index
|
|
|
|
+ var ids=[row.id]
|
|
|
|
+ this.$confirm('确认删除本条数据吗?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.$api.deleteCompareLiterature(ids).then(response=>{
|
|
|
|
+ if(response.code == 200){
|
|
|
|
+ this.$message.success('删除成功')
|
|
|
|
+ this.deleteUpdateOrder(index)
|
|
|
|
+ }
|
|
|
|
+ }).catch(error=>{
|
|
|
|
+ this.$message.error('删除失败')
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ //删除后更新排序
|
|
|
|
+ deleteUpdateOrder(index){
|
|
|
|
+ var data = []
|
|
|
|
+ for(var i = index+1;i<this.tableData.length;i++){
|
|
|
|
+ var order = this.tableData[i].sysOrder
|
|
|
|
+ data.push(
|
|
|
|
+ {
|
|
|
|
+ id:this.tableData[i].id,
|
|
|
|
+ sysOrder:Number(order) - 1
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ this.updateLiteratureOrder(data,true)
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ </script>
|
|
|
|
+ <style lang="scss" scoped>
|
|
|
|
+ .head{
|
|
|
|
+ width:100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ // flex-direction: row-reverse;
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
+ }
|
|
|
|
+ </style>
|