Commit 664570e8 authored by danfuman's avatar danfuman

修改

parent 9933b2b4
...@@ -204,26 +204,26 @@ export default { ...@@ -204,26 +204,26 @@ export default {
methods: { methods: {
//认领 //认领
async handleClaim(){ async handleClaim(){
if(this.companyInfo.uipId){ let res = await api.customerStatus(this.companyInfo.companyName)
this.claimLoading = true if(res.data === 1){
let param = { this.claimLoading = false
companyId:this.companyId, this.dialogVisible2=true;
uipId:this.companyInfo.uipId, }else{
companyName:this.companyInfo.companyName, if(this.companyInfo.uipId){
creditLevel:this.companyInfo.bratingSubjectLevel || '', this.claimLoading = true
legalPerson:this.companyInfo.corporatePerson || '', let param = {
registerCapital:this.companyInfo.registeredCapital || '', companyId:this.companyId,
provinceId:this.companyInfo.provinceId || '', uipId:this.companyInfo.uipId,
cityId:this.companyInfo.cityId || '', companyName:this.companyInfo.companyName,
districtId:this.companyInfo.districtCode || '', creditLevel:this.companyInfo.bratingSubjectLevel || '',
registerAddress:this.companyInfo.provinceName+(this.companyInfo.cityName?'-'+this.companyInfo.cityName:'')+(this.companyInfo.districtName?'-'+this.companyInfo.districtName:''), legalPerson:this.companyInfo.corporatePerson || '',
creditCode:this.companyInfo.creditCode registerCapital:this.companyInfo.registeredCapital || '',
} provinceId:this.companyInfo.provinceId || '',
let res = await api.customerStatus(this.companyInfo.companyName) cityId:this.companyInfo.cityId || '',
if(res.data === 1){ districtId:this.companyInfo.districtCode || '',
this.claimLoading = false registerAddress:this.companyInfo.provinceName+(this.companyInfo.cityName?'-'+this.companyInfo.cityName:'')+(this.companyInfo.districtName?'-'+this.companyInfo.districtName:''),
this.dialogVisible2=true; creditCode:this.companyInfo.creditCode
}else{ }
let res = await claim(param) let res = await claim(param)
this.claimLoading = false this.claimLoading = false
if(res.code==200){ if(res.code==200){
...@@ -231,9 +231,9 @@ export default { ...@@ -231,9 +231,9 @@ export default {
this.companyInfo.claimStatus = 1 this.companyInfo.claimStatus = 1
this.customerId = res.data.customerId this.customerId = res.data.customerId
} }
}else{
this.$message.warning('对不起,当前不能认领')
} }
}else{
this.$message.warning('对不起,当前不能认领')
} }
}, },
//取消认领 //取消认领
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment