Compare commits
5 Commits
91b3c069ad
...
58f1f5033d
| Author | SHA1 | Date | |
|---|---|---|---|
| 58f1f5033d | |||
| c8400442a5 | |||
| 6dbb1377be | |||
| 847fdc48c6 | |||
| 234853b603 |
@@ -168,13 +168,20 @@ 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)
|
||||||
}
|
}
|
||||||
this.personList[this.reviseIndex].wechatId=res.data?.externalUserId
|
console.log('this.personList',this.personList)
|
||||||
this.personList[this.reviseIndex].wechatName=res.data?.name
|
let flagRevise=this.personList.some(item => 'isChange' in item && !item.isChange)
|
||||||
|
console.log('存在未修改',flagRevise)
|
||||||
|
if(res.data){
|
||||||
|
this.personList[this.reviseIndex].wechatId=res.data?.externalUserId
|
||||||
|
this.personList[this.reviseIndex].wechatName=res.data?.name
|
||||||
|
}
|
||||||
await this.cancelHandle()
|
await this.cancelHandle()
|
||||||
}).catch(async () => {
|
}).catch(async () => {
|
||||||
await this.cancelHandle()
|
await this.cancelHandle()
|
||||||
|
|||||||
Reference in New Issue
Block a user