!5 提现审核功能

Merge pull request !5 from pipi
master
chopper711 2021-07-26 06:15:36 +00:00 committed by Gitee
commit 64bfe1cdc2
3 changed files with 20 additions and 10 deletions

View File

@ -91,11 +91,15 @@
</TabPane> </TabPane>
<TabPane label="提现记录" name="log"> <TabPane label="提现记录" name="log">
<Table stripe :columns="logColumns" :data="logData.records"> <Table stripe :columns="logColumns" :data="logData.records">
<template slot-scope="{ row }" slot="sn">
<span>{{row.sn}}</span>
</template>
<template slot-scope="{ row }" slot="time"> <template slot-scope="{ row }" slot="time">
<span>{{row.createTime}}</span> <span>{{row.createTime}}</span>
</template> </template>
<template slot-scope="{ row }" slot="price"> <template slot-scope="{ row }" slot="price">
<span> +{{ row.price | unitPrice }}</span> <span v-if="row.distributionCashStatus == 'REFUSE'" style="color: green"> +{{ row.price | unitPrice }}</span>
<span v-else style="color: red"> -{{ row.price | unitPrice }}</span>
</template> </template>
<template slot-scope="{ row }" slot="status"> <template slot-scope="{ row }" slot="status">
<span> {{row.distributionCashStatus == "APPLY" ? "待处理" : row.distributionCashStatus == "PASS" ? "通过" : "拒绝"}}</span> <span> {{row.distributionCashStatus == "APPLY" ? "待处理" : row.distributionCashStatus == "PASS" ? "通过" : "拒绝"}}</span>
@ -186,6 +190,7 @@ export default {
{title: '操作', slot: 'action', width: 120} {title: '操作', slot: 'action', width: 120}
], ],
logColumns: [ // logColumns: [ //
{title: '编号', slot: 'sn'},
{title: '申请时间', slot: 'time'}, {title: '申请时间', slot: 'time'},
{title: '提现金额', slot: 'price'}, {title: '提现金额', slot: 'price'},
{title: '提现状态', slot: 'status'} {title: '提现状态', slot: 'status'}
@ -298,7 +303,7 @@ export default {
}, },
getLog () { // getLog () { //
distCashHistory(this.logParams).then(res => { distCashHistory(this.logParams).then(res => {
if (res.success) this.goodsData = res.result if (res.success) this.logData = res.result
}) })
}, },
distribution () { // distribution () { //

View File

@ -339,7 +339,7 @@ export default {
} else if (params.row.applyStatus === 'VIA_AUDITING') { } else if (params.row.applyStatus === 'VIA_AUDITING') {
return h('div', [h('span', {}, '提现成功')]); return h('div', [h('span', {}, '提现成功')]);
} else { } else {
return h('div', [h('span', {}, '审核未通过')]); return h('div', [h('span', {}, '审核拒绝')]);
} }
} }
}, },
@ -350,7 +350,8 @@ export default {
}, },
{ {
title: '审核备注', title: '审核备注',
key: 'inspectRemark' key: 'inspectRemark',
tooltip: true
} }
], ],

View File

@ -59,24 +59,27 @@
<Modal :title="modalTitle" v-model="queryModalVisible" :mask-closable="false" :width="500"> <Modal :title="modalTitle" v-model="queryModalVisible" :mask-closable="false" :width="500">
<Form :label-width="80"> <Form :label-width="80">
<FormItem label="申请编号"> <FormItem label="申请编号">
<span>{{showList.sn}}</span> <span>{{showList.sn}}</span>
</FormItem> </FormItem>
<FormItem label="用户名称"> <FormItem label="用户名称">
<span>{{showList.memberName}}</span> <span>{{showList.memberName}}</span>
</FormItem> </FormItem>
<FormItem label="申请金额"> <FormItem label="申请金额">
<span>{{showList.applyMoney}}</span> <span>{{showList.applyMoney}}</span>
</FormItem> </FormItem>
<FormItem label="提现状态"> <FormItem label="提现状态">
<span>{{showList.applyStatus | paramTypeFilter}}</span> <span>{{showList.applyStatus | paramTypeFilter}}</span>
</FormItem> </FormItem>
<FormItem label="申请时间"> <FormItem label="申请时间">
<span>{{showList.createTime}}</span> <span>{{showList.createTime}}</span>
</FormItem> </FormItem>
<FormItem label="审核时间"> <FormItem label="审核时间">
<span>{{showList.inspectTime}}</span> <span>{{showList.inspectTime}}</span>
</FormItem> </FormItem>
<FormItem label="审核备注:">
<span>{{showList.inspectRemark}}</span>
</FormItem>
</Form> </Form>
<div slot="footer" v-if="showList.applyStatus == 'APPLY'"> <div slot="footer" v-if="showList.applyStatus == 'APPLY'">
@ -202,6 +205,7 @@ export default {
this.showList = {}; this.showList = {};
this.roleModalVisible = true; this.roleModalVisible = true;
this.showList = params.row; this.showList = params.row;
this.audit =""
}, },
}, },
}, },