微信号更改添加判断
This commit is contained in:
@@ -168,11 +168,16 @@ export default {
|
|||||||
}).then(async() => {
|
}).then(async() => {
|
||||||
let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId})
|
let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId})
|
||||||
console.log('res',this.personInfo,res.data?.name,this.personInfo.wechatName)
|
console.log('res',this.personInfo,res.data?.name,this.personInfo.wechatName)
|
||||||
if(res.data?.name == this.personInfo.wechatName){
|
if((res.data?.name == this.personInfo.wechatName) || (!res.data && this.personInfo.wechatName)){
|
||||||
|
console.log('11111111')
|
||||||
this.$set(this.personList[this.reviseIndex],'isChange',false)
|
this.$set(this.personList[this.reviseIndex],'isChange',false)
|
||||||
}else {
|
}else {
|
||||||
|
console.log('2222222')
|
||||||
this.$set(this.personList[this.reviseIndex],'isChange',true)
|
this.$set(this.personList[this.reviseIndex],'isChange',true)
|
||||||
}
|
}
|
||||||
|
console.log('this.personList',this.personList)
|
||||||
|
let flagRevise=this.personList.some(item => 'isChange' in item && !item.isChange)
|
||||||
|
console.log('存在未修改',flagRevise)
|
||||||
if(res.data){
|
if(res.data){
|
||||||
this.personList[this.reviseIndex].wechatId=res.data?.externalUserId
|
this.personList[this.reviseIndex].wechatId=res.data?.externalUserId
|
||||||
this.personList[this.reviseIndex].wechatName=res.data?.name
|
this.personList[this.reviseIndex].wechatName=res.data?.name
|
||||||
|
|||||||
Reference in New Issue
Block a user