Commit 294fb81a by wangzhihui

```

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

- 在支付请求参数中添加levyChannelCode字段
- 修复支付实体列表重复显示的问题,基于code字段进行去重处理
- 优化渠道筛选逻辑,确保子级数据正确加载
```
1 parent dec1522b
...@@ -335,9 +335,8 @@ export default { ...@@ -335,9 +335,8 @@ export default {
optionsName: 'channelList', optionsName: 'channelList',
changeAttr: val => { changeAttr: val => {
this.searchForm.paymentEntityCode = '' this.searchForm.paymentEntityCode = ''
this.getPaymentEntityList() this.getPaymentEntityList()
} }
}, },
{ {
...@@ -877,17 +876,18 @@ export default { ...@@ -877,17 +876,18 @@ export default {
getPaymentEntityList() { getPaymentEntityList() {
let res = [] let res = []
this.baseData.channelList.forEach(item => { this.baseData.channelList.forEach(item => {
if(item.code == this.searchForm.channel||this.searchForm.channel ===''){ if (item.code == this.searchForm.channel || this.searchForm.channel === '') {
if (item.child) { if (item.child) {
res = res.concat(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') this.$utils.getOptionsList(this, 'showFormData', true, 'paymentEntityCode')
}, },
getPayChannelTree() { getPayChannelTree() {
...@@ -1488,6 +1488,7 @@ export default { ...@@ -1488,6 +1488,7 @@ export default {
captcha: this.payForm.captcha, captcha: this.payForm.captcha,
remark: this.payForm.remark, remark: this.payForm.remark,
payChannelProvider: this.payForm.channelProvider, payChannelProvider: this.payForm.channelProvider,
levyChannelCode: this.payForm.levyChannelCode,
paymentEntityCode: this.payForm.paymentEntityCode, paymentEntityCode: this.payForm.paymentEntityCode,
levyCode: this.payForm.levyCode levyCode: this.payForm.levyCode
} }
...@@ -1498,6 +1499,7 @@ export default { ...@@ -1498,6 +1499,7 @@ export default {
captcha: this.payForm.captcha, captcha: this.payForm.captcha,
remark: this.payForm.remark, remark: this.payForm.remark,
channelProvider: this.payForm.channelProvider, channelProvider: this.payForm.channelProvider,
levyChannelCode: this.payForm.levyChannelCode,
paymentEntityCode: this.payForm.paymentEntityCode, paymentEntityCode: this.payForm.paymentEntityCode,
levyCode: this.payForm.levyCode 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!