|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<!-- 商品化专利主页面 -->
|
|
<!-- 商品化专利主页面 -->
|
|
- <div class="commodity">
|
|
|
|
|
|
+ <div class="commodity height_100">
|
|
<el-container>
|
|
<el-container>
|
|
<el-header class="header">
|
|
<el-header class="header">
|
|
<div class="headerDiv_one">产品名称:{{ productName }}</div>
|
|
<div class="headerDiv_one">产品名称:{{ productName }}</div>
|
|
@@ -46,7 +46,7 @@
|
|
</el-header>
|
|
</el-header>
|
|
<el-main v-loading="loading">
|
|
<el-main v-loading="loading">
|
|
<component :is="viewSelected" :tableData="tableData" :queryParams="queryParams" :patentNoList.sync="patentNoList"
|
|
<component :is="viewSelected" :tableData="tableData" :queryParams="queryParams" :patentNoList.sync="patentNoList"
|
|
- :column="customList" @on-sort="handleSort">
|
|
|
|
|
|
+ :column="customList" @on-sort="handleSort" @addSelect="getChoosePatentNo" :refresh='refresh' @clickPatentNo="handleClick">
|
|
</component>
|
|
</component>
|
|
</el-main>
|
|
</el-main>
|
|
<el-footer style="display: flex;justify-content: space-between;align-items: center;">
|
|
<el-footer style="display: flex;justify-content: space-between;align-items: center;">
|
|
@@ -56,7 +56,7 @@
|
|
已勾选 <b>{{ selectedTotal }}</b> 条
|
|
已勾选 <b>{{ selectedTotal }}</b> 条
|
|
</span>
|
|
</span>
|
|
<el-popover placement="bottom" title="" width="220" trigger="click">
|
|
<el-popover placement="bottom" title="" width="220" trigger="click">
|
|
- <el-main class="patent-fast-edit-popover">
|
|
|
|
|
|
+ <el-main class="patent-fast-edit-popover" v-loading="selectNumberLoading">
|
|
<div class="btn" @click="handleCancelSelectNumber">取消选择</div>
|
|
<div class="btn" @click="handleCancelSelectNumber">取消选择</div>
|
|
<div class="btn" @click="handleSelectNumber(0)">本页选择</div>
|
|
<div class="btn" @click="handleSelectNumber(0)">本页选择</div>
|
|
</el-main>
|
|
</el-main>
|
|
@@ -160,8 +160,26 @@ export default {
|
|
this.customList = await this.$commonJS.getCustomField('patent', { productId: this.productId })
|
|
this.customList = await this.$commonJS.getCustomField('patent', { productId: this.productId })
|
|
await this.getColumn()
|
|
await this.getColumn()
|
|
// 获取专利信息
|
|
// 获取专利信息
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 点击专利号进行跳转
|
|
|
|
+ handleClick(row, location) {
|
|
|
|
+ var search = {
|
|
|
|
+ searchOption: this.searchOption,
|
|
|
|
+ location: location,
|
|
|
|
+ }
|
|
|
|
+ this.$s.setSession('search', search)
|
|
|
|
+ this.$router.push(
|
|
|
|
+ {
|
|
|
|
+ path: '/patentDetails/' + row.patentNo,
|
|
|
|
+ query: {
|
|
|
|
+ productId: this.productId,
|
|
|
|
+ projectType:'3',//判断是不是从专题库进入专利详情1为专题库2为报告(报告未传2)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ },
|
|
// 删除
|
|
// 删除
|
|
handleDel() {
|
|
handleDel() {
|
|
this.$confirm('此操作将永久删除选中的专利, 不可恢复, 是否继续?', '提示', {
|
|
this.$confirm('此操作将永久删除选中的专利, 不可恢复, 是否继续?', '提示', {
|
|
@@ -169,9 +187,12 @@ export default {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- let params = this.isAdd
|
|
|
|
- this.$api.del(params).then(response => {
|
|
|
|
- if (response.code == 200) {
|
|
|
|
|
|
+ let params = {
|
|
|
|
+ productIds: [this.productId],
|
|
|
|
+ patentNos: this.patentNoList,
|
|
|
|
+ }
|
|
|
|
+ this.$api.delProductPatent(params).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
this.$message.success('删除成功')
|
|
this.$message.success('删除成功')
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
@@ -213,16 +234,18 @@ export default {
|
|
if (size) {
|
|
if (size) {
|
|
this.queryParams.size = size
|
|
this.queryParams.size = size
|
|
}
|
|
}
|
|
|
|
+ this.queryParams.isAdd=[]
|
|
|
|
+ this.queryParams.isDelete=[]
|
|
let params = {
|
|
let params = {
|
|
...this.queryParams,//分页信息及区分同族类型
|
|
...this.queryParams,//分页信息及区分同族类型
|
|
productId: this.productId,
|
|
productId: this.productId,
|
|
- from:'product',
|
|
|
|
|
|
+ from: 'product',
|
|
searchQuery: this.searchStr || '',//检索条件
|
|
searchQuery: this.searchStr || '',//检索条件
|
|
customFields: [],
|
|
customFields: [],
|
|
orderDTOList: this.sort,//排序信息
|
|
orderDTOList: this.sort,//排序信息
|
|
}
|
|
}
|
|
this.loading = true
|
|
this.loading = true
|
|
- // this.$store.commit("SET_PATENT_RECORDS", []);
|
|
|
|
|
|
+ this.$store.commit("SET_PATENT_RECORDS", []);
|
|
this.$api.QueryPatent(params).then(res => {
|
|
this.$api.QueryPatent(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
@@ -231,10 +254,10 @@ export default {
|
|
// this.$set(this.queryParams, 'startNumber', this.endNumber > 0 ? this.startNumber : 1)
|
|
// this.$set(this.queryParams, 'startNumber', this.endNumber > 0 ? this.startNumber : 1)
|
|
// this.$set(this.queryParams, 'endNumber', this.endNumber > 0 ? this.endNumber : this.total)
|
|
// this.$set(this.queryParams, 'endNumber', this.endNumber > 0 ? this.endNumber : this.total)
|
|
// this.$store.commit("SET_PATENT_PARAMS", params);
|
|
// this.$store.commit("SET_PATENT_PARAMS", params);
|
|
- // this.$store.commit("SET_PATENT_RECORDS", res.data.data);
|
|
|
|
- // if (this.quickSelect) {
|
|
|
|
- // this.commonSwitch()
|
|
|
|
- // }
|
|
|
|
|
|
+ this.$store.commit("SET_PATENT_RECORDS", res.data.data);
|
|
|
|
+ if (this.quickSelect) {
|
|
|
|
+ this.commonSwitch()
|
|
|
|
+ }
|
|
this.loading = false
|
|
this.loading = false
|
|
this.isRefresh()
|
|
this.isRefresh()
|
|
}
|
|
}
|
|
@@ -279,13 +302,13 @@ export default {
|
|
handleCommand(even) {
|
|
handleCommand(even) {
|
|
switch (even) {
|
|
switch (even) {
|
|
case '0'://Excel导入
|
|
case '0'://Excel导入
|
|
- this.patentImport(this.productId,1)
|
|
|
|
|
|
+ this.patentImport(this.productId, 1)
|
|
break
|
|
break
|
|
case '1'://专利号导入
|
|
case '1'://专利号导入
|
|
- this.patentImport(this.productId,2)
|
|
|
|
|
|
+ this.patentImport(this.productId, 2)
|
|
break
|
|
break
|
|
case '2'://检索条件导入
|
|
case '2'://检索条件导入
|
|
- this.patentImport(this.productId,4)
|
|
|
|
|
|
+ this.patentImport(this.productId, 4)
|
|
break
|
|
break
|
|
case '3'://显示栏位管理
|
|
case '3'://显示栏位管理
|
|
this.handleFieldManage()
|
|
this.handleFieldManage()
|
|
@@ -317,23 +340,27 @@ export default {
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
-<style lang="scss">
|
|
|
|
|
|
+<style lang="scss"></style>
|
|
|
|
+<style lang="scss" scoped>
|
|
.commodity {
|
|
.commodity {
|
|
- .el-footer {
|
|
|
|
- width: 100%;
|
|
|
|
- position: fixed;
|
|
|
|
- bottom: 0;
|
|
|
|
- z-index: 1;
|
|
|
|
- background: #fff;
|
|
|
|
|
|
+ .header {
|
|
|
|
+ height: 80px !important;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ padding: 10px 0px !important;
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
|
|
-.btn1 {
|
|
|
|
- background: #909399;
|
|
|
|
-}
|
|
|
|
|
|
+ .headerDiv_one {
|
|
|
|
+ width: 100%;
|
|
|
|
+ margin: 0 0 10px 10px
|
|
|
|
+ }
|
|
|
|
|
|
-.btn1:hover {
|
|
|
|
- background-color: #a4a7ab;
|
|
|
|
|
|
+ .headerDiv_two {
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.patent-fast-edit-popover {
|
|
.patent-fast-edit-popover {
|
|
@@ -341,9 +368,11 @@ export default {
|
|
|
|
|
|
.btn {
|
|
.btn {
|
|
color: #000;
|
|
color: #000;
|
|
- line-height: 40px;
|
|
|
|
|
|
+ line-height: 30px;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
padding-left: 10px;
|
|
padding-left: 10px;
|
|
|
|
+ text-align: left;
|
|
|
|
+ font-size: 14px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
|
|
&:hover {
|
|
&:hover {
|
|
@@ -378,33 +407,4 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-.patent-left {
|
|
|
|
- margin-top: 69px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- border-top: 1px solid rgb(228 231 237);
|
|
|
|
-}
|
|
|
|
-</style>
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
-.commodity {
|
|
|
|
- .header {
|
|
|
|
- height: 80px !important;
|
|
|
|
- display: flex;
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
- padding: 10px 0px !important;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .headerDiv_one {
|
|
|
|
- width: 100%;
|
|
|
|
- margin: 0 0 10px 10px
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .headerDiv_two {
|
|
|
|
- width: 100%;
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
</style>
|
|
</style>
|