修改资金管理接口

master
pikachu 2021-06-26 16:49:44 +08:00
parent d7434f3e4a
commit f436d17735
2 changed files with 52 additions and 12 deletions

View File

@ -188,10 +188,10 @@ export default {
}, },
formValidate: { formValidate: {
price: [ price: [
{ required: true, message: '请输入大于0小于9999的合法充值金额' }, { required: true, message: '请输入大于等于1小于9999的合法充值金额' },
{ {
pattern: /^[1-9]\d{0,3}(\.\d{1,2})?$/, pattern: /^[1-9]\d{0,3}(\.\d{1,2})?$/,
message: '请输入大于0小于9999的合法充值金额', message: '请输入大于等于1小于9999的合法充值金额',
trigger: 'change' trigger: 'change'
} }
] ]
@ -200,11 +200,13 @@ export default {
logColumns: [ logColumns: [
{ {
title: '时间', title: '时间',
width: 190,
key: 'createTime' key: 'createTime'
}, },
{ {
title: '金额', title: '金额',
key: 'money', key: 'money',
width: 180,
render: (h, params) => { render: (h, params) => {
if (params.row.money > 0) { if (params.row.money > 0) {
return h('div', [ return h('div', [
@ -241,20 +243,29 @@ export default {
logColumnsData: {}, // logColumnsData: {}, //
// //
rechargeListColumns: [ rechargeListColumns: [
{
title: '充值时间',
key: 'createTime',
width: 168
},
{ {
title: '支付单号', title: '支付单号',
key: 'rechargeSn', key: 'rechargeSn',
width: 200 width: 200
}, },
{
title: '支付方式',
key: 'rechargeWay'
},
{ {
title: '充值金额', title: '充值金额',
key: 'rechargeMoney', key: 'rechargeMoney',
render: (h, params) => { render: (h, params) => {
return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]); if (params.row.payStatus === 'PAID') {
return h('div', [h('span',{
style: {
color: 'green'
}
}, this.$options.filters.unitPrice(params.row.rechargeMoney, '+ ¥'))]);
} else {
return h('div', [h('span',this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]);
}
} }
}, },
{ {
@ -268,29 +279,49 @@ export default {
} }
} }
}, },
{
title: '支付方式',
key: 'rechargeWay'
},
{ {
title: '支付时间', title: '支付时间',
key: 'payTime' key: 'payTime',
width: 180
} }
], ],
rechargeListData: {}, // rechargeListData: {}, //
// //
withdrawApplyColumns: [ withdrawApplyColumns: [
{
title: '申请时间',
key: 'createTime',
width: 168
},
{ {
title: '提现单号', title: '提现单号',
key: 'sn', key: 'sn',
width: 215 width: 200
}, },
{ {
title: '提现金额', title: '提现金额',
key: 'applyMoney', key: 'applyMoney',
width: 110,
render: (h, params) => { render: (h, params) => {
return h('div', [h('span', this.$options.filters.unitPrice(params.row.applyMoney, '¥'))]); if (params.row.applyStatus === 'VIA_AUDITING') {
return h('div', [h('span',{
style: {
color: 'green'
}
}, this.$options.filters.unitPrice(params.row.applyMoney, '+ ¥'))]);
} else {
return h('div', [h('span', this.$options.filters.unitPrice(params.row.applyMoney, '¥'))]);
}
} }
}, },
{ {
title: '提现状态', title: '提现状态',
key: 'applyStatus', key: 'applyStatus',
width: 95,
render: (h, params) => { render: (h, params) => {
if (params.row.applyStatus === 'APPLY') { if (params.row.applyStatus === 'APPLY') {
return h('div', [h('span', {}, '申请中')]); return h('div', [h('span', {}, '申请中')]);
@ -302,12 +333,14 @@ export default {
} }
}, },
{ {
title: '提现时间', title: '审核时间',
key: 'inspectTime' key: 'inspectTime',
width: 168
}, },
{ {
title: '审核备注', title: '审核备注',
key: 'inspectRemark' key: 'inspectRemark'
} }
], ],
withdrawApplyColumnsListData: {} // withdrawApplyColumnsListData: {} //

View File

@ -137,6 +137,13 @@
} }
}, },
}, },
{
title: "充值时间",
key: "createTime",
align: "left",
width: 190,
sortable: false,
},
{ {
title: "支付时间", title: "支付时间",
key: "payTime", key: "payTime",