Commit a013d4ad by wangzhihui

修复付款渠道显示bug

1 parent 3c71f7a2
...@@ -45,10 +45,11 @@ export default { ...@@ -45,10 +45,11 @@ export default {
type: 'select', type: 'select',
optionsName: 'payChannelList', optionsName: 'payChannelList',
optionId: 'id', optionId: 'id',
optionLabel: 'channelInfo', optionLabel: 'name',
changeAttr: val => { changeAttr: val => {
this.payForm.channel = this.baseData.payChannelList.find(item => item.id === val).channel 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.recordInfo.taxRate = this.baseData.payChannelList.find(item => item.id === val).tax + '%'
this.payForm.paymentSubjectId=''
this.getAdmin() this.getAdmin()
this.getPaymentEntityList() this.getPaymentEntityList()
this.calculateAmount() this.calculateAmount()
...@@ -172,14 +173,16 @@ export default { ...@@ -172,14 +173,16 @@ export default {
this.$apis.withdraw.getChannelAccount().then(res => { this.$apis.withdraw.getChannelAccount().then(res => {
if (res) { if (res) {
console.log(res) console.log(res)
arr = res.map(item => { // arr = res.map(item => {
let channelInfo = item.channelName + item.name // let channelInfo = item.name
return { // return {
channelInfo, // channelInfo,
...item // ...item
} // }
}) // })
this.baseData.payChannelList = arr this.baseData.payChannelList = [
...res
]
this.$utils.getOptionsList(this, 'payFormData', false, 'paymentChannelId') this.$utils.getOptionsList(this, 'payFormData', false, 'paymentChannelId')
//默认选择 //默认选择
if (this.baseData.payChannelList.length > 0) { 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!