分包商入场申请代码提交
This commit is contained in:
parent
be9c863f3b
commit
6eb212ae28
|
|
@ -865,6 +865,7 @@ 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(),
|
||||||
|
|
@ -883,16 +884,29 @@ export default {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
//查询判断当前下所以人员文件是否上传
|
//查询判断当前下所以人员文件是否上传
|
||||||
judgeIsFileComplete(param).then(response => {
|
|
||||||
if (response.code === 500) {
|
|
||||||
|
try {
|
||||||
|
const response = judgeIsFileComplete(param)
|
||||||
|
console.log('response=====', response)
|
||||||
|
if (response.msg === '部分人员文件不存在,请先仔细核对,上传相关文件!') {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '部分人员文件不存在,请先仔细核对,上传相关文件!',
|
message: '部分人员文件不存在,请先仔细核对,上传相关文件!',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
return false
|
// return false
|
||||||
|
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('请完善全部上传信息')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue