| | |
| | | methods: { |
| | | openMod(type,data,id){ |
| | | const t = this |
| | | console.log(data,'data') |
| | | t.getLeaders() |
| | | t.form.acceptingUnitIds = [] |
| | | t.form.peerRecipientIds = [] |
| | |
| | | const newAList = [].concat(...aList) |
| | | for(let i of newAList){ |
| | | // const {realName,...data} = i |
| | | const {id:recipienterId,name: recipienterName,phone: recipienterPhone,company: receiveUnit,realName: recipienterRealName,...rest} = i |
| | | const obj = { recipienterId, recipienterName, recipienterRealName, recipienterPhone, receiveUnit,...rest} |
| | | const {id:recipienterId,name: recipienterName,phone: recipienterPhone,company: receiveUnit,realName: recipienterRealName, registrationId: registrationId,...rest} = i |
| | | const obj = { recipienterId, recipienterName, recipienterRealName, recipienterPhone, receiveUnit, registrationId,...rest} |
| | | this.form.acceptingUnitIds.push(obj) |
| | | } |
| | | this.form.acceptingUnitIds = [...this.form.acceptingUnitIds,...this.sendLeaders] |
| | |
| | | phone: recipienterPhone,
|
| | | company: receiveUnit,
|
| | | realName: recipienterRealName,
|
| | | registrationId: registrationId,
|
| | | ...rest
|
| | | } = i
|
| | | const obj = {
|
| | |
| | | recipienterRealName,
|
| | | recipienterPhone,
|
| | | receiveUnit,
|
| | | registrationId,
|
| | | ...rest
|
| | | }
|
| | | this.form.acceptingUnitIds.push(obj)
|