Commit 163ee009 by wangzhihui

```

feat(withdraw): 新增银行渠道字段和付款主体筛选功能

- 在提现详情页面新增银行渠道字段显示
- 在提现列表页面新增付款主体下拉选择框,与渠道联动
- 修改验证码输入框宽度为432px
- 添加paymentEntityCode和channel字段到搜索表单
- 实现渠道与付款主体的级联选择功能
- 优化getBalance接口调用,增加levyChannelCode参数
- 清除多级选择器时同步清空levyChannelCode字段
```
1 parent cebf946c
...@@ -264,6 +264,10 @@ export default { ...@@ -264,6 +264,10 @@ export default {
name: 'levyName' name: 'levyName'
}, },
{ {
label: '银行渠道',
name: 'levyChannelName'
},
{
label: '结算金额', label: '结算金额',
name: 'settleAmount', name: 'settleAmount',
addHtml: obj => { addHtml: obj => {
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</tempalte> </tempalte>
<template slot="captcha"> <template slot="captcha">
<div class="captcha-wrap"> <div class="captcha-wrap">
<el-input v-model="payForm.captcha" placeholder="请输入"></el-input> <el-input v-model="payForm.captcha" placeholder="请输入" style="width: 432px"></el-input>
<div class="captcha-text" @click.prevent="getCode"> <div class="captcha-text" @click.prevent="getCode">
{{ !isCodeDisabled ? '获取验证码' : count + 's' }} {{ !isCodeDisabled ? '获取验证码' : count + 's' }}
</div> </div>
...@@ -266,7 +266,9 @@ export default { ...@@ -266,7 +266,9 @@ export default {
transferType: '', transferType: '',
mode: '', mode: '',
withdrawalSource: '', withdrawalSource: '',
realityMerchantName: '' realityMerchantName: '',
channel: '',
paymentEntityCode: ''
}, },
hasFooter: false, hasFooter: false,
tableSearchForm: {}, tableSearchForm: {},
...@@ -327,10 +329,26 @@ export default { ...@@ -327,10 +329,26 @@ export default {
name: 'channel', name: 'channel',
type: 'select', type: 'select',
optionList: [], optionList: [],
addHtml: 'channel', // addHtml: 'channel',
optionId: 'confId', optionId: 'code',
optionLabel: 'confLabel', optionLabel: 'name',
optionsName: 'channelList' optionsName: 'channelList',
changeAttr: val => {
this.searchForm.paymentEntityCode = ''
this.getPaymentEntityList()
}
},
{
label: '付款主体',
name: 'paymentEntityCode',
type: 'select',
optionList: [],
// addHtml: 'channel',
optionId: 'code',
optionLabel: 'name',
optionsName: 'paymentEntityList'
}, },
{ {
label: '所属门店', label: '所属门店',
...@@ -495,40 +513,6 @@ export default { ...@@ -495,40 +513,6 @@ export default {
line: 1, line: 1,
width: 150 width: 150
}, },
// {
// label: '平台方',
// prop: 'realityMerchantName',
// line: 1,
// width: 150,
// renderHeader: (h, { column, $index }) => {
// return h(
// 'el-popover',
// {
// props: {
// placement: 'top-start',
// width: 200,
// trigger: 'hover',
// content: '积分会小程序发起提现时,获取提现时关联的最新平台方'
// }
// },
// [
// h(
// 'span',
// {
// slot: 'reference'
// ,
// style: {
// color: '#333',
// cursor: 'pointer'
// }
// },
// '平台方'
// )
// ]
// )
// }
// },
{ {
label: '平台方', label: '平台方',
prop: 'realityMerchantName', prop: 'realityMerchantName',
...@@ -721,6 +705,7 @@ export default { ...@@ -721,6 +705,7 @@ export default {
merchantList: [], merchantList: [],
auditStatusStatusList: auditStatusStatusList, auditStatusStatusList: auditStatusStatusList,
channelList: [], channelList: [],
paymentEntityList: [],
channelPayList: [], channelPayList: [],
withdrawalTypeList: withdrawalTypeList, withdrawalTypeList: withdrawalTypeList,
modeTypeList: modeTypeList, modeTypeList: modeTypeList,
...@@ -885,7 +870,25 @@ export default { ...@@ -885,7 +870,25 @@ export default {
getChannelTree() { getChannelTree() {
this.$apis.withdraw.getChannelTree({}).then(res => { this.$apis.withdraw.getChannelTree({}).then(res => {
this.baseData.channelList = this.removeEmptyChild(res) this.baseData.channelList = this.removeEmptyChild(res)
this.getPaymentEntityList()
this.$utils.getOptionsList(this, 'showFormData', true, 'channel')
})
},
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)
}
}
})
this.baseData.paymentEntityList = res.filter(item => {
return item.type != 1
}) })
this.$utils.getOptionsList(this, 'showFormData', true, 'paymentEntityCode')
}, },
getPayChannelTree() { getPayChannelTree() {
this.$apis.withdraw.getChannelTree({ transferType: this.payForm.transferType, mode: this.payForm.mode }).then(res => { this.$apis.withdraw.getChannelTree({ transferType: this.payForm.transferType, mode: this.payForm.mode }).then(res => {
...@@ -976,7 +979,7 @@ export default { ...@@ -976,7 +979,7 @@ export default {
return null return null
}, },
selectAddAttr(e, formName) { selectAddAttr(e, formName) {
let [value1, value2, value3] = e || ['', '', ''] let [value1, value2, value3, value4] = e || ['', '', '', '']
// 处理清除情况 // 处理清除情况
if (!e || e.length === 0) { if (!e || e.length === 0) {
this[formName].channel = '' this[formName].channel = ''
...@@ -996,6 +999,7 @@ export default { ...@@ -996,6 +999,7 @@ export default {
this[formName].levyCode = value3 ? value3 : '' //代征主体 this[formName].levyCode = value3 ? value3 : '' //代征主体
this[formName].channelProvider = '' this[formName].channelProvider = ''
this[formName].paymentEntityCode = '' this[formName].paymentEntityCode = ''
this[formName].levyChannelCode = value4 ? value4 : ''
if (value2) { if (value2) {
let item = this.findChannelByCode(this.baseData.channelList, value2) let item = this.findChannelByCode(this.baseData.channelList, value2)
if (item.type == 1) { if (item.type == 1) {
...@@ -1413,7 +1417,7 @@ export default { ...@@ -1413,7 +1417,7 @@ export default {
}) })
}, },
getBalance() { getBalance() {
this.$apis.withdraw.getBalance({ channel: this.payForm.channel, channelProvider: this.payForm.channelProvider, paymentEntityCode: this.payForm.paymentEntityCode, levyCode: this.payForm.levyCode }).then(res => { this.$apis.withdraw.getBalance({ channel: this.payForm.channel, channelProvider: this.payForm.channelProvider, paymentEntityCode: this.payForm.paymentEntityCode, levyCode: this.payForm.levyCode, levyChannelCode: this.payForm.levyChannelCode }).then(res => {
if (res) { if (res) {
this.payForm.balance = res this.payForm.balance = res
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!