|
@@ -5,8 +5,8 @@
|
|
<el-form :model="form" :rules="rules" ref="reportForm" label-width="120px" v-loading="loading" :element-loading-text="load_text" element-loading-spinner="el-icon-loading"
|
|
<el-form :model="form" :rules="rules" ref="reportForm" label-width="120px" v-loading="loading" :element-loading-text="load_text" element-loading-spinner="el-icon-loading"
|
|
element-loading-background-color="rgba(0, 0, 0, 0.8)">
|
|
element-loading-background-color="rgba(0, 0, 0, 0.8)">
|
|
|
|
|
|
- <el-form-item :label="[3].includes(Number(form.type))?'标的产品':'标的专利号'" prop="signPatentNo">
|
|
|
|
- <el-input v-model="form.signPatentNo" autocomplete="off" :placeholder="[3].includes(Number(form.type))?'请输入标的产品':'请输入标的专利号'" @change="getPatentNo"></el-input>
|
|
|
|
|
|
+ <el-form-item :label="[3].includes(Number(form.type))?'标的产品':'标的专利'" prop="signPatentNo">
|
|
|
|
+ <el-input v-model="form.signPatentNo" autocomplete="off" :placeholder="[3].includes(Number(form.type))?'请输入标的产品':'请输入标的专利'" @change="getPatentNo"></el-input>
|
|
<p v-if="show==1" class="tips">查不到该专利请
|
|
<p v-if="show==1" class="tips">查不到该专利请
|
|
<el-upload style="display:inline-block;width: 30px !important;" ref="upload" class="upload-file" action="#" :auto-upload="false" :show-file-list="false" :on-change="onChange1">
|
|
<el-upload style="display:inline-block;width: 30px !important;" ref="upload" class="upload-file" action="#" :auto-upload="false" :show-file-list="false" :on-change="onChange1">
|
|
<span>导入</span>
|
|
<span>导入</span>
|
|
@@ -290,7 +290,7 @@ export default {
|
|
signPatentNo: [{ required: true, validator:isExist, trigger: 'blur' },],
|
|
signPatentNo: [{ required: true, validator:isExist, trigger: 'blur' },],
|
|
personId: [{ required: true, message: '请选择负责人', trigger: 'change' },],
|
|
personId: [{ required: true, message: '请选择负责人', trigger: 'change' },],
|
|
clientId: [{ required: true, validator:isClientId, trigger: 'change' },],
|
|
clientId: [{ required: true, validator:isClientId, trigger: 'change' },],
|
|
- departmentId: [{ required: true, validator:isDepartmentId, trigger: 'change' },],
|
|
|
|
|
|
+ // departmentId: [{ required: true, validator:isDepartmentId, trigger: 'change' },],
|
|
},
|
|
},
|
|
TaskRules:{
|
|
TaskRules:{
|
|
taskName:[{ required: true, message: '请输入任务名称', trigger: 'blur' },],
|
|
taskName:[{ required: true, message: '请输入任务名称', trigger: 'blur' },],
|
|
@@ -335,14 +335,14 @@ export default {
|
|
if(val == 3){
|
|
if(val == 3){
|
|
this.rules.personId[0].required = false
|
|
this.rules.personId[0].required = false
|
|
this.rules.clientId[0].required = false
|
|
this.rules.clientId[0].required = false
|
|
- this.rules.departmentId[0].required = false
|
|
|
|
|
|
+ // this.rules.departmentId[0].required = false
|
|
this.$set(this.form,'conclusionIds',[])
|
|
this.$set(this.form,'conclusionIds',[])
|
|
this.conclusion = this.dictMessage[this.reportAsDicItem[this.form.type]]
|
|
this.conclusion = this.dictMessage[this.reportAsDicItem[this.form.type]]
|
|
this.matterType = 2
|
|
this.matterType = 2
|
|
}else{
|
|
}else{
|
|
this.rules.personId[0].required = true
|
|
this.rules.personId[0].required = true
|
|
this.rules.clientId[0].required = true
|
|
this.rules.clientId[0].required = true
|
|
- this.rules.departmentId[0].required = true
|
|
|
|
|
|
+ // this.rules.departmentId[0].required = true
|
|
this.matterType = null
|
|
this.matterType = null
|
|
}
|
|
}
|
|
},
|
|
},
|