Commit 664570e8 authored by danfuman's avatar danfuman

修改

parent 9933b2b4
...@@ -204,6 +204,11 @@ export default { ...@@ -204,6 +204,11 @@ export default {
methods: { methods: {
//认领 //认领
async handleClaim(){ async handleClaim(){
let res = await api.customerStatus(this.companyInfo.companyName)
if(res.data === 1){
this.claimLoading = false
this.dialogVisible2=true;
}else{
if(this.companyInfo.uipId){ if(this.companyInfo.uipId){
this.claimLoading = true this.claimLoading = true
let param = { let param = {
...@@ -219,11 +224,6 @@ export default { ...@@ -219,11 +224,6 @@ export default {
registerAddress:this.companyInfo.provinceName+(this.companyInfo.cityName?'-'+this.companyInfo.cityName:'')+(this.companyInfo.districtName?'-'+this.companyInfo.districtName:''), registerAddress:this.companyInfo.provinceName+(this.companyInfo.cityName?'-'+this.companyInfo.cityName:'')+(this.companyInfo.districtName?'-'+this.companyInfo.districtName:''),
creditCode:this.companyInfo.creditCode creditCode:this.companyInfo.creditCode
} }
let res = await api.customerStatus(this.companyInfo.companyName)
if(res.data === 1){
this.claimLoading = false
this.dialogVisible2=true;
}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,10 +231,10 @@ export default { ...@@ -231,10 +231,10 @@ export default {
this.companyInfo.claimStatus = 1 this.companyInfo.claimStatus = 1
this.customerId = res.data.customerId this.customerId = res.data.customerId
} }
}
}else{ }else{
this.$message.warning('对不起,当前不能认领') this.$message.warning('对不起,当前不能认领')
} }
}
}, },
//取消认领 //取消认领
cancelClaimClick(){ cancelClaimClick(){
......
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