Compare commits
5 Commits
91b3c069ad
...
dev-2025
| Author | SHA1 | Date | |
|---|---|---|---|
| 58f1f5033d | |||
| c8400442a5 | |||
| 6dbb1377be | |||
| 847fdc48c6 | |||
| 234853b603 |
@@ -168,13 +168,20 @@ export default {
|
||||
}).then(async() => {
|
||||
let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId})
|
||||
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)
|
||||
}else {
|
||||
console.log('2222222')
|
||||
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){
|
||||
this.personList[this.reviseIndex].wechatId=res.data?.externalUserId
|
||||
this.personList[this.reviseIndex].wechatName=res.data?.name
|
||||
}
|
||||
await this.cancelHandle()
|
||||
}).catch(async () => {
|
||||
await this.cancelHandle()
|
||||
|
||||
Reference in New Issue
Block a user