修改审核bug

This commit is contained in:
haozq 2025-03-05 15:13:11 +08:00
parent 72fcf61898
commit c7dfb0cd7b
2 changed files with 25 additions and 33 deletions

View File

@ -776,7 +776,7 @@
<el-button <el-button
type="primary" type="primary"
plain plain
icon="el-icon-download" icon="el-icon-plus"
size="mini" size="mini"
v-if="this.paramsData.type !== 'view'" v-if="this.paramsData.type !== 'view'"
@click="equipAddBtn" @click="equipAddBtn"

View File

@ -971,8 +971,8 @@ export default {
}) })
}, },
submitForm(formName, submitType) { submitForm(formName, submitType) {
// this.loading = true this.loading = true
let isReturn = false
if (submitType === '提交') { if (submitType === '提交') {
const param = { const param = {
...this.getParams(), ...this.getParams(),
@ -981,28 +981,37 @@ export default {
uuid: this.$store.state.user.thisIds.uuid, uuid: this.$store.state.user.thisIds.uuid,
parentUuid: this.$store.state.user.thisIds.parentUuid, parentUuid: this.$store.state.user.thisIds.parentUuid,
} }
if ( if (this.formData.enterpriseQualificationFiles.length === 0 || this.formData.securityAgreementFiles.length === 0 ||
this.formData.enterpriseQualificationFiles.length === 0 || this.formData.supervisionPlanningFiles.length === 0 || this.formData.implementationRulesFiles.length === 0) {
this.formData.securityAgreementFiles.length === 0 ||
this.formData.supervisionPlanningFiles.length === 0 ||
this.formData.implementationRulesFiles.length === 0
) {
this.$message({ this.$message({
message: '请先上传企业资质、安全协议书、监理规划、实施细则文件!', message: '请先上传企业资质、安全协议书、监理规划、实施细则文件!',
type: 'error', type: 'error',
}) })
// this.loading = false this.loading = false
return false
} }
//
judgeIsFileComplete(param).then(response => { try {
const response = judgeIsFileComplete(param)
console.log('response=====', response) console.log('response=====', response)
if (response.msg === '部分人员文件不存在,请先仔细核对,上传相关文件!') { if (response.msg === '部分人员文件不存在,请先仔细核对,上传相关文件!') {
this.$message({ this.$message({
message: '部分人员文件不存在,请先仔细核对,上传相关文件!', message: '部分人员文件不存在,请先仔细核对,上传相关文件!',
type: 'error', type: 'error'
}) })
// this.loading = false // return false
} else { isReturn = true
}
} catch (error) {
this.$message({
message: '文件检查失败,请稍后重试!',
type: 'error'
})
// return false
}
}
if(isReturn) return
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (submitType === '提交' && !valid) { if (submitType === '提交' && !valid) {
return this.$modal.msgError('请完善全部上传信息') return this.$modal.msgError('请完善全部上传信息')
@ -1065,25 +1074,8 @@ export default {
this.loading = false this.loading = false
this.$modal.msgError('提交失败') this.$modal.msgError('提交失败')
}) })
} })
)
}) })
}
})
//
// try {
// // const response = judgeIsFileComplete(param)
// new Promise((resolve, reject) => {})
// } catch (error) {
// this.$message({
// message: '',
// type: 'error',
// })
// // return false
// }
}
}, },
/** /**
* 提交审批 * 提交审批