|
@@ -8,7 +8,7 @@
|
|
|
<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">查不到该专利请
|
|
|
- <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="uploads" class="upload-file" action="#" :auto-upload="false" :show-file-list="false" :on-change="onChange1">
|
|
|
<span>导入</span>
|
|
|
</el-upload></p>
|
|
|
<p v-if="show==2" class="tips" style="color:black"><span @click="toPatentDetails(form.signPatentNo)">查看详情</span></p>
|
|
@@ -377,7 +377,7 @@ export default {
|
|
|
this.$api.AddTask(formData).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
this.file = []
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
+ // this.$refs.upload.clearFiles()
|
|
|
this.$message.success('报告创建成功并发送审核')
|
|
|
this.$emit('getList',true)
|
|
|
this.handleCloseTask()
|
|
@@ -770,7 +770,7 @@ export default {
|
|
|
this.$api.AddReport(formData).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
this.file = []
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
+ // this.$refs.upload.clearFiles()
|
|
|
this.$message.success('报告创建成功')
|
|
|
this.$emit('getList',true)
|
|
|
this.handleClose()
|
|
@@ -810,7 +810,7 @@ export default {
|
|
|
this.$api.AddReport(formData).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
this.file = []
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
+ // this.$refs.upload.clearFiles()
|
|
|
this.$message.success('报告创建成功')
|
|
|
this.$emit('getList',true)
|
|
|
this.handleClose()
|
|
@@ -840,7 +840,7 @@ export default {
|
|
|
this.$api.UpdateReport(formData).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
this.file = []
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
+ // this.$refs.upload.clearFiles()
|
|
|
this.$message.success('报告更新成功')
|
|
|
this.$emit('getList',true)
|
|
|
this.handleClose()
|
|
@@ -861,11 +861,14 @@ export default {
|
|
|
},
|
|
|
// 弹出框关闭
|
|
|
handleClose() {
|
|
|
- if(!this.form.id){
|
|
|
+ if (!this.form.id) {
|
|
|
this.getPermissions()
|
|
|
}
|
|
|
this.copyIndex = {}
|
|
|
this.matterType = null
|
|
|
+ if (this.$refs.uploads) {
|
|
|
+ this.$refs.uploads.clearFiles()
|
|
|
+ }
|
|
|
this.$refs.upload.clearFiles()
|
|
|
this.file = []
|
|
|
this.$refs.reportForm.resetFields();
|