|
@@ -17,7 +17,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-else label="标的专利" prop="signPatentNo">
|
|
<el-form-item v-else label="标的专利" prop="signPatentNo">
|
|
<div style="display:flex;align-items:center">
|
|
<div style="display:flex;align-items:center">
|
|
- <el-input v-model="form.signPatentNo" autocomplete="off" placeholder="请输入标的专利" @change="getPatentNo"></el-input>
|
|
|
|
|
|
+ <el-input v-model="form.signPatentNo" autocomplete="off" placeholder="请输入标的专利" @change="getPatentNo(1)"></el-input>
|
|
<span v-if="patentLoading">
|
|
<span v-if="patentLoading">
|
|
<i class="el-icon-loading"></i>
|
|
<i class="el-icon-loading"></i>
|
|
</span>
|
|
</span>
|
|
@@ -283,7 +283,6 @@ import { mapGetters } from 'vuex'
|
|
import addMatter from './addMatter.vue'
|
|
import addMatter from './addMatter.vue'
|
|
import ClientTable from '@/views/client'
|
|
import ClientTable from '@/views/client'
|
|
import addFlowPath from '@/views/report/InvalidResponse/components/dialog/editFlowPath.vue'
|
|
import addFlowPath from '@/views/report/InvalidResponse/components/dialog/editFlowPath.vue'
|
|
-import task from '@/api/task'
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
addMatter,
|
|
addMatter,
|
|
@@ -441,7 +440,7 @@ export default {
|
|
value:0
|
|
value:0
|
|
},
|
|
},
|
|
],
|
|
],
|
|
-
|
|
|
|
|
|
+ isExist:true
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
@@ -694,6 +693,9 @@ export default {
|
|
this.personnelList.queryParams.id = null
|
|
this.personnelList.queryParams.id = null
|
|
}
|
|
}
|
|
this.getPermissionPersonnel()
|
|
this.getPermissionPersonnel()
|
|
|
|
+ if(this.form.signPatentNo){
|
|
|
|
+ this.getPatentNo()
|
|
|
|
+ }
|
|
// this.getEventList()
|
|
// this.getEventList()
|
|
this.showDialog = true
|
|
this.showDialog = true
|
|
},
|
|
},
|
|
@@ -785,7 +787,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
//获取专利号且填入报告名称
|
|
//获取专利号且填入报告名称
|
|
- getPatentNo() {
|
|
|
|
|
|
+ getPatentNo(sign) {
|
|
// if (!this.form.name) {
|
|
// if (!this.form.name) {
|
|
var a = this.dictMessage.REPORT_TYPE.filter(item => { return item.value == this.form.reportType })[0].label
|
|
var a = this.dictMessage.REPORT_TYPE.filter(item => { return item.value == this.form.reportType })[0].label
|
|
if (this.form.signProjectId) {
|
|
if (this.form.signProjectId) {
|
|
@@ -809,7 +811,10 @@ export default {
|
|
name+=a
|
|
name+=a
|
|
this.$set(this.form, 'name', name)
|
|
this.$set(this.form, 'name', name)
|
|
}
|
|
}
|
|
- this.checkPatent()
|
|
|
|
|
|
+ if(sign){
|
|
|
|
+ this.checkPatent()
|
|
|
|
+ }
|
|
|
|
+
|
|
// }
|
|
// }
|
|
},
|
|
},
|
|
//校验专利是否存在
|
|
//校验专利是否存在
|
|
@@ -823,6 +828,8 @@ export default {
|
|
this.$api.queryPatentByNo(params).then(response=>{
|
|
this.$api.queryPatentByNo(params).then(response=>{
|
|
if(response.code == 200){
|
|
if(response.code == 200){
|
|
if(response.data){
|
|
if(response.data){
|
|
|
|
+ this.isExist = true
|
|
|
|
+ this.patentLoading = false
|
|
this.$set(this.form,'inventionName',response.data.title[0].text_content)
|
|
this.$set(this.form,'inventionName',response.data.title[0].text_content)
|
|
}else{
|
|
}else{
|
|
this.checkPatent2()
|
|
this.checkPatent2()
|
|
@@ -838,12 +845,17 @@ export default {
|
|
this.$api.queryPatentByNoFromWeb(params).then(response=>{
|
|
this.$api.queryPatentByNoFromWeb(params).then(response=>{
|
|
if(response.code == 200){
|
|
if(response.code == 200){
|
|
if(response.data){
|
|
if(response.data){
|
|
|
|
+ this.isExist = true
|
|
this.patentImport()
|
|
this.patentImport()
|
|
}else{
|
|
}else{
|
|
|
|
+ this.isExist = false
|
|
|
|
+ this.patentLoading = false
|
|
this.$message.warning('该专利不存在')
|
|
this.$message.warning('该专利不存在')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}).catch(error=>{
|
|
}).catch(error=>{
|
|
|
|
+ this.isExist = false
|
|
|
|
+ this.patentLoading = false
|
|
this.$message.warning('该专利不存在')
|
|
this.$message.warning('该专利不存在')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -921,6 +933,10 @@ export default {
|
|
submit() {
|
|
submit() {
|
|
this.$refs.reportForm.validate((valid) => {
|
|
this.$refs.reportForm.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ if(!this.isExist){
|
|
|
|
+ this.$message.warning('标的专利不存在')
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
this.form.type = 2//项目类型(1专利数据库 2报告 3专利挖掘项目)
|
|
this.form.type = 2//项目类型(1专利数据库 2报告 3专利挖掘项目)
|
|
// 判断文件是否都上传完毕
|
|
// 判断文件是否都上传完毕
|
|
var guids = this.$commonJS.checkUploadFile(this.form.systemFile)
|
|
var guids = this.$commonJS.checkUploadFile(this.form.systemFile)
|