修改审核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
type="primary"
plain
icon="el-icon-download"
icon="el-icon-plus"
size="mini"
v-if="this.paramsData.type !== 'view'"
@click="equipAddBtn"

View File

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