Commit dbc00b63 by 前端

Merge branch 'SAAS+V5.6.4' into 'master'

上线合并

See merge request !22
2 parents cebf946c 294fb81a
...@@ -131,7 +131,15 @@ export default { ...@@ -131,7 +131,15 @@ export default {
{ {
confId: "购物兑换", confId: "购物兑换",
confLabel: "购物兑换" confLabel: "购物兑换"
} },
{
confId: "手动增加",
confLabel: "手动增加",
},
{
confId: "手动扣减",
confLabel: "手动扣减",
},
] ]
}, },
tableParams: { tableParams: {
......
...@@ -263,6 +263,10 @@ export default { ...@@ -263,6 +263,10 @@ export default {
label: '代征主体', label: '代征主体',
name: 'levyName' name: 'levyName'
}, },
{
label: '银行渠道',
name: 'levyChannelName'
},
{ {
label: '结算金额', label: '结算金额',
name: 'settleAmount', name: 'settleAmount',
......
...@@ -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,25 @@ export default { ...@@ -327,10 +329,25 @@ 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 +512,6 @@ export default { ...@@ -495,40 +512,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 +704,7 @@ export default { ...@@ -721,6 +704,7 @@ export default {
merchantList: [], merchantList: [],
auditStatusStatusList: auditStatusStatusList, auditStatusStatusList: auditStatusStatusList,
channelList: [], channelList: [],
paymentEntityList: [],
channelPayList: [], channelPayList: [],
withdrawalTypeList: withdrawalTypeList, withdrawalTypeList: withdrawalTypeList,
modeTypeList: modeTypeList, modeTypeList: modeTypeList,
...@@ -885,8 +869,27 @@ export default { ...@@ -885,8 +869,27 @@ 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)
}
}
})
// 去重处理:基于 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() { 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 => {
this.baseData.channelPayList = this.removeEmptyChild(res) this.baseData.channelPayList = this.removeEmptyChild(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 {
...@@ -1484,6 +1488,7 @@ export default { ...@@ -1484,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
} }
...@@ -1494,6 +1499,7 @@ export default { ...@@ -1494,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!