|
@@ -2917,14 +2917,16 @@
|
|
|
message: '中石油准入证编号不能为空!'
|
|
message: '中石油准入证编号不能为空!'
|
|
|
})
|
|
})
|
|
|
this.saveLoading = false
|
|
this.saveLoading = false
|
|
|
- resolve(false)
|
|
|
|
|
|
|
+ return resolve(false)
|
|
|
}
|
|
}
|
|
|
- if (this.formData.InStyle === '3' && this.formData.MgrUnit.indexOf('大庆油田') != -1 && (this.formData.PACNumber == '' || typeof this.formData.PACNumber == 'undefined')) {
|
|
|
|
|
|
|
+ console.log(this.InStyle, this.formData.MgrUnit.indexOf('大庆油田'), '大庆油田')
|
|
|
|
|
+ if (this.InStyle === '3' && this.formData.MgrUnit.indexOf('大庆油田') != -1 && (this.formData.PACNumber == '' || typeof this.formData.PACNumber == 'undefined')) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: '中石油准入证编号不能为空!'
|
|
message: '中石油准入证编号不能为空!'
|
|
|
})
|
|
})
|
|
|
- return
|
|
|
|
|
|
|
+ this.saveLoading = false
|
|
|
|
|
+ return resolve(false)
|
|
|
}
|
|
}
|
|
|
if (this.formData.InStyle === '3' && this.formData.MgrUnit === '大港油田分公司') {
|
|
if (this.formData.InStyle === '3' && this.formData.MgrUnit === '大港油田分公司') {
|
|
|
this.$message({
|
|
this.$message({
|
|
@@ -2932,7 +2934,7 @@
|
|
|
message: '二级物资准入不能选择大港油田分公司!'
|
|
message: '二级物资准入不能选择大港油田分公司!'
|
|
|
})
|
|
})
|
|
|
this.saveLoading = false
|
|
this.saveLoading = false
|
|
|
- resolve(false)
|
|
|
|
|
|
|
+ return resolve(false)
|
|
|
}
|
|
}
|
|
|
if (valid1 && valid2) {
|
|
if (valid1 && valid2) {
|
|
|
api.checkBack(this.formData.BankAccount, this.formData.Id, this.$axios).then(res => {
|
|
api.checkBack(this.formData.BankAccount, this.formData.Id, this.$axios).then(res => {
|
|
@@ -2942,7 +2944,7 @@
|
|
|
message: '该银行账号与其他公司重复'
|
|
message: '该银行账号与其他公司重复'
|
|
|
})
|
|
})
|
|
|
this.saveLoading = false
|
|
this.saveLoading = false
|
|
|
- resolve(false)
|
|
|
|
|
|
|
+ return resolve(false)
|
|
|
} else {
|
|
} else {
|
|
|
// 检查是否缺少资质
|
|
// 检查是否缺少资质
|
|
|
let fileType = {
|
|
let fileType = {
|
|
@@ -2963,18 +2965,18 @@
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
})
|
|
})
|
|
|
this.saveLoading = false
|
|
this.saveLoading = false
|
|
|
- resolve(false)
|
|
|
|
|
|
|
+ return resolve(false)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
this.saveLoading = false
|
|
this.saveLoading = false
|
|
|
- resolve(false)
|
|
|
|
|
|
|
+ return resolve(false)
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
this.saveLoading = false
|
|
this.saveLoading = false
|
|
|
- resolve(false)
|
|
|
|
|
|
|
+ return resolve(false)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|