Commit a013d4ad by wangzhihui

修复付款渠道显示bug

1 parent 3c71f7a2
......@@ -45,10 +45,11 @@ export default {
type: 'select',
optionsName: 'payChannelList',
optionId: 'id',
optionLabel: 'channelInfo',
optionLabel: 'name',
changeAttr: val => {
this.payForm.channel = this.baseData.payChannelList.find(item => item.id === val).channel
this.recordInfo.taxRate = this.baseData.payChannelList.find(item => item.id === val).tax + '%'
this.payForm.paymentSubjectId=''
this.getAdmin()
this.getPaymentEntityList()
this.calculateAmount()
......@@ -172,14 +173,16 @@ export default {
this.$apis.withdraw.getChannelAccount().then(res => {
if (res) {
console.log(res)
arr = res.map(item => {
let channelInfo = item.channelName + item.name
return {
channelInfo,
...item
}
})
this.baseData.payChannelList = arr
// arr = res.map(item => {
// let channelInfo = item.name
// return {
// channelInfo,
// ...item
// }
// })
this.baseData.payChannelList = [
...res
]
this.$utils.getOptionsList(this, 'payFormData', false, 'paymentChannelId')
//默认选择
if (this.baseData.payChannelList.length > 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!