|
@@ -189,7 +189,8 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="报告文号" prop="reportNo"
|
|
|
:rules="[
|
|
|
- {required: true, message:'报告文号不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'报告文号不能为空', trigger:'blur'},
|
|
|
+ {required: true, message:'报告文号不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<el-input :readonly="true" v-model="inputForm.reportNo" placeholder="请填写报告文号" clearable>
|
|
|
<el-button slot="append" :disabled="formReadOnly" @click="openReportChoose" icon="el-icon-search"></el-button>
|
|
@@ -333,7 +334,8 @@
|
|
|
signatureAnnotator1Name: '',
|
|
|
signatureAnnotator2: '',
|
|
|
signatureAnnotator2Name: '',
|
|
|
- reportCreateName: ''
|
|
|
+ reportCreateName: '',
|
|
|
+ reportId: ''
|
|
|
},
|
|
|
keyWatch: '',
|
|
|
activeName: 'files',
|
|
@@ -442,7 +444,8 @@
|
|
|
signatureAnnotator1Name: '',
|
|
|
signatureAnnotator2: '',
|
|
|
signatureAnnotator2Name: '',
|
|
|
- reportCreateName: ''
|
|
|
+ reportCreateName: '',
|
|
|
+ reportId: ''
|
|
|
}
|
|
|
this.inputForm.id = id
|
|
|
this.loading = false
|
|
@@ -644,7 +647,8 @@
|
|
|
signatureAnnotator1Name: '',
|
|
|
signatureAnnotator2: '',
|
|
|
signatureAnnotator2Name: '',
|
|
|
- reportCreateName: ''
|
|
|
+ reportCreateName: '',
|
|
|
+ reportId: ''
|
|
|
}
|
|
|
this.$refs.uploadComponent.clearUpload()
|
|
|
this.$refs.inputForm.resetFields()
|
|
@@ -704,14 +708,24 @@
|
|
|
},
|
|
|
// 审计报告选择结果获取
|
|
|
getReport (row) {
|
|
|
- this.inputForm.reportDate = row.reportDate
|
|
|
- this.inputForm.reportNo = row.reportNo
|
|
|
- this.inputForm.signatureAnnotator1 = row.signatureAnnotator1
|
|
|
- this.inputForm.signatureAnnotator1Name = row.signatureAnnotator1Name
|
|
|
- this.inputForm.signatureAnnotator2 = row.signatureAnnotator2
|
|
|
- this.inputForm.signatureAnnotator2Name = row.signatureAnnotator2Name
|
|
|
- // this.inputForm.createBy = row.createBy
|
|
|
- this.inputForm.reportCreateName = row.createName
|
|
|
+ if (this.commonJS.isNotEmpty(row)) {
|
|
|
+ if (this.commonJS.isNotEmpty(row.reportId)) {
|
|
|
+ this.projectReportArchiveService.findReportUse(row.reportId).then(({data}) => {
|
|
|
+ if (data === false) {
|
|
|
+ this.inputForm.reportDate = row.reportDate
|
|
|
+ this.inputForm.reportNo = row.reportNo
|
|
|
+ this.inputForm.signatureAnnotator1 = row.signatureAnnotator1
|
|
|
+ this.inputForm.signatureAnnotator1Name = row.signatureAnnotator1Name
|
|
|
+ this.inputForm.signatureAnnotator2 = row.signatureAnnotator2
|
|
|
+ this.inputForm.signatureAnnotator2Name = row.signatureAnnotator2Name
|
|
|
+ this.inputForm.reportCreateName = row.createName
|
|
|
+ this.inputForm.reportId = row.reportId
|
|
|
+ } else {
|
|
|
+ this.$message.error('此报告正在归档中或已归档,请重新选择')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|