|
@@ -195,7 +195,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'业务类型不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.businessType" placeholder="请选择业务类型" style="width:100%;">
|
|
|
+ <el-select v-model="inputForm.businessType" @change="changeBusinessType" placeholder="请选择业务类型" style="width:100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('cw_business_type')"
|
|
|
:key="item.value"
|
|
@@ -208,7 +208,7 @@
|
|
|
<el-col :span="12" v-if="inputForm.businessType === '1'">
|
|
|
<el-form-item label="审计业务类型" prop="auditBusinessType"
|
|
|
:rules="[
|
|
|
- {required: true, message:'审计业务类型不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'审计业务类型不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
|
|
|
<el-option
|
|
@@ -223,7 +223,7 @@
|
|
|
<el-col :span="12" v-if="inputForm.businessType === '2'">
|
|
|
<el-form-item label="审计业务类型" prop="auditBusinessType"
|
|
|
:rules="[
|
|
|
- {required: true, message:'审计业务类型不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'审计业务类型不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
|
|
|
<el-option
|
|
@@ -238,7 +238,7 @@
|
|
|
<el-col :span="12" v-if="inputForm.businessType === '3'">
|
|
|
<el-form-item label="审计业务类型" prop="auditBusinessType"
|
|
|
:rules="[
|
|
|
- {required: true, message:'审计业务类型不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'审计业务类型不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
|
|
|
<el-option
|
|
@@ -253,7 +253,7 @@
|
|
|
<el-col :span="12" v-if="inputForm.businessType === '4'">
|
|
|
<el-form-item label="审计业务类型" prop="auditBusinessType"
|
|
|
:rules="[
|
|
|
- {required: true, message:'审计业务类型不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'审计业务类型不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
|
|
|
<el-option
|
|
@@ -268,7 +268,7 @@
|
|
|
<el-col :span="12" v-if="inputForm.businessType === '5'">
|
|
|
<el-form-item label="审计业务类型" prop="auditBusinessType"
|
|
|
:rules="[
|
|
|
- {required: true, message:'审计业务类型不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'审计业务类型不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
|
|
|
<el-option
|
|
@@ -283,7 +283,7 @@
|
|
|
<el-col :span="12" v-if="inputForm.businessType === '6'">
|
|
|
<el-form-item label="审计业务类型" prop="auditBusinessType"
|
|
|
:rules="[
|
|
|
- {required: true, message:'审计业务类型不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'审计业务类型不能为空', trigger:'change'}
|
|
|
]">
|
|
|
<el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
|
|
|
<el-option
|
|
@@ -1189,32 +1189,35 @@
|
|
|
// 表单提交
|
|
|
doSubmit (status, callback) {
|
|
|
if (status === 'save') {
|
|
|
- // 暂存
|
|
|
- // this.inputForm.status = '1'
|
|
|
- this.loading = true
|
|
|
- this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
|
|
|
- // this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
- // this.inputForm.cwFileInfoList = data
|
|
|
- // })
|
|
|
- // if (this.commonJS.isNotEmpty(this.$refs.signatureFile.getDataList())) {
|
|
|
- // this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
- // this.inputForm.signatureFileList = data
|
|
|
- // })
|
|
|
- // }
|
|
|
- this.inputForm.signatureFileList = this.$refs.signatureFile.getDataList()
|
|
|
- // 列表处理
|
|
|
- this.inputForm.details = []
|
|
|
- this.inputForm.detailFor1010.forEach(item => { this.inputForm.details.push(item) })
|
|
|
- this.inputForm.detailFor1020.forEach(item => { this.inputForm.details.push(item) })
|
|
|
- this.inputForm.detailFor1030.forEach(item => { this.inputForm.details.push(item) })
|
|
|
- this.reportReviewService.save(this.inputForm).then(() => {
|
|
|
- this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
|
- // callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
- this.close()
|
|
|
- this.loading = false
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
+ this.$refs['inputForm'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ // 暂存
|
|
|
+ // this.inputForm.status = '1'
|
|
|
+ this.loading = true
|
|
|
+ this.inputForm.cwFileInfoList2 = this.$refs.enclosure.getDataList()
|
|
|
+ // this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
+ // this.inputForm.cwFileInfoList = data
|
|
|
+ // })
|
|
|
+ // if (this.commonJS.isNotEmpty(this.$refs.signatureFile.getDataList())) {
|
|
|
+ // this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
+ // this.inputForm.signatureFileList = data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ this.inputForm.signatureFileList = this.$refs.signatureFile.getDataList()
|
|
|
+ // 列表处理
|
|
|
+ this.inputForm.details = []
|
|
|
+ this.inputForm.detailFor1010.forEach(item => { this.inputForm.details.push(item) })
|
|
|
+ this.inputForm.detailFor1020.forEach(item => { this.inputForm.details.push(item) })
|
|
|
+ this.inputForm.detailFor1030.forEach(item => { this.inputForm.details.push(item) })
|
|
|
+ this.reportReviewService.save(this.inputForm).then(() => {
|
|
|
+ this.projectReportService.saveForm(this.inputForm).then(() => {
|
|
|
+ this.close()
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
return
|
|
|
} else if (status === 'start') {
|
|
@@ -1496,6 +1499,10 @@
|
|
|
} else {
|
|
|
this.inputForm.signatureAnnotator2 = value
|
|
|
}
|
|
|
+ },
|
|
|
+ changeBusinessType () {
|
|
|
+ // 切换业务类型的时候,审计业务类型清空
|
|
|
+ this.inputForm.auditBusinessType = ''
|
|
|
}
|
|
|
}
|
|
|
}
|