Commit 294fb81a by wangzhihui

```

feat(withdraw): 添加levyChannelCode字段并修复支付实体列表重复问题

- 在支付请求参数中添加levyChannelCode字段
- 修复支付实体列表重复显示的问题,基于code字段进行去重处理
- 优化渠道筛选逻辑,确保子级数据正确加载
```
1 parent dec1522b
......@@ -335,9 +335,8 @@ export default {
optionsName: 'channelList',
changeAttr: val => {
this.searchForm.paymentEntityCode = ''
this.getPaymentEntityList()
}
},
{
......@@ -877,17 +876,18 @@ export default {
getPaymentEntityList() {
let res = []
this.baseData.channelList.forEach(item => {
if(item.code == this.searchForm.channel||this.searchForm.channel ===''){
if (item.child) {
res = res.concat(item.child)
}
if (item.code == this.searchForm.channel || this.searchForm.channel === '') {
if (item.child) {
res = res.concat(item.child)
}
}
})
this.baseData.paymentEntityList = res.filter(item => {
return item.type != 1
// 去重处理:基于 code 字段去重
this.baseData.paymentEntityList = res.filter((item, index, self) => {
return item.type != 1 && self.findIndex(t => t.code === item.code) === index
})
this.$utils.getOptionsList(this, 'showFormData', true, 'paymentEntityCode')
},
getPayChannelTree() {
......@@ -1488,6 +1488,7 @@ export default {
captcha: this.payForm.captcha,
remark: this.payForm.remark,
payChannelProvider: this.payForm.channelProvider,
levyChannelCode: this.payForm.levyChannelCode,
paymentEntityCode: this.payForm.paymentEntityCode,
levyCode: this.payForm.levyCode
}
......@@ -1498,6 +1499,7 @@ export default {
captcha: this.payForm.captcha,
remark: this.payForm.remark,
channelProvider: this.payForm.channelProvider,
levyChannelCode: this.payForm.levyChannelCode,
paymentEntityCode: this.payForm.paymentEntityCode,
levyCode: this.payForm.levyCode
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!