Commit 99de2d0e authored by pengyunqian's avatar pengyunqian

update:流水列表

parent bc73d18f
......@@ -70,6 +70,7 @@ exports.getApplyDetail = async ctx => {
}
ctx.body = await req(ctx, opts)
}
// 提现审核迭代
// 获取钱包账户列表
exports.getAccountList = async ctx => {
......@@ -81,6 +82,16 @@ exports.getAccountList = async ctx => {
}
ctx.body = await req(ctx, opts)
}
// 获取钱包账户流水列表
exports.getRecordList = async ctx => {
const url = `${WITHDRAWAL_URI}/wallet/background/record_list`;
const opts = {
url,
method: "GET",
qs: ctx.request.query
}
ctx.body = await req(ctx, opts)
}
const getUserPermission = async (ctx) => {
const url = `${WITHDRAWAL_URI}/merchant/authority/get_role_list`;
......
......@@ -89,5 +89,6 @@ router.post(`${API_VERSION}/get_freezing_fund`, withdrawal.getFreezingFund)
router.get(`${API_VERSION}/get_apply_detail`, withdrawal.getApplyDetail)
// 钱包账户
router.get(`${API_VERSION}/get_account_list`, withdrawal.getAccountList)
router.get(`${API_VERSION}/get_record_list`, withdrawal.getRecordList)
module.exports = router;
......@@ -62,6 +62,11 @@
prop="city_name"
align="center"
></el-table-column>
<el-table-column
label="登录地点"
prop="withdraw_address"
align="center"
></el-table-column>
<el-table-column
label="提现金额"
prop="amount"
......
......@@ -2,56 +2,55 @@
<el-card class="role_management">
<!-- 检索区域 -->
<div class="creatRole">
<el-form :model="searchForm">
<el-form>
<el-form-item label="用户Id">
<span></span>
<span>{{user_id}}</span>
</el-form-item>
<el-form-item label="交易类型">
<el-select v-model="searchForm">
<el-option label="提现" :value="1"></el-option>
<el-option label="转账" :value="2"></el-option>
<el-option label="退款" :value="2"></el-option>
<el-select v-model="type" clearable @change="getRecordList">
<el-option label="充值" :value="1"></el-option>
<el-option label="提现" :value="2"></el-option>
<el-option label="转账" :value="3"></el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<!-- 用户搜索列表 -->
<el-table border :data="managementList">
<el-table border :data="recordList">
<el-table-column
label="流水号"
width="200px"
prop="role_id"
prop="wallet_record_id"
align="center"
></el-table-column>
<el-table-column
label="更新时间"
prop="role_name"
prop="create_time"
align="center"
></el-table-column>
<el-table-column
label="金额"
prop="update_time"
prop="amount"
align="center"
></el-table-column>
<el-table-column
label="可用余额"
prop="update_user_name"
prop="balance"
align="center"
></el-table-column>
<el-table-column
label="交易类型"
prop="update_user_name"
align="center"
></el-table-column>
<el-table-column
label="状态"
width="200px"
:formatter="hasStatusFormat"
prop="trade_type"
align="center"
>
<template #default="scope">
{{getTradeType(scope.row.trade_type)}}
</template>
</el-table-column>
<el-table-column label="状态" width="200px" prop="status" align="center">
</el-table-column>
<el-table-column label="说明" align="center">
<el-table-column label="说明" align="center" prop="third_order_desc">
</el-table-column>
</el-table>
<page :totalNum="totalNum" @update="update" />
......@@ -59,15 +58,57 @@
</template>
<script>
import page from "../../../components/Pagination";
import { getRecordList } from "@/service/Withdrawal/withdrawal";
const tradeType = {1:"充值",2:"提现", 3:"转账"};
export default {
name: "flowRecord",
components:{page},
data() {
return {};
return {
user_id:"",
wallet_id:"",
type:"",
recordList: [],
params: {
page: 1,
page_size: 20,
},
};
},
mounted() {},
created() {
this.user_id = this.$route.query.user_id
this.wallet_id = this.$route.query.wallet_id
this.getRecordList();
},
methods: {},
methods: {
update(obj) {
Object.assign(this.params, obj);
this.getRecordList();
},
//获取账户流水列表
getRecordList() {
this.recordList=[];
let { page, page_size } = this.params;
let { wallet_id, type } = this;
let params_list = {
wallet_id,
page,
page_size,
type,
};
getRecordList(params_list).then((res) => {
this.recordList = res.result.list;
this.totalNum = res.result.count;
});
},
// 获取交易类型
getTradeType(code) {
return tradeType[code]
},
},
};
</script>
......
......@@ -55,3 +55,10 @@ export async function getAccountList(params) {
});
return res;
}
// 获取账户流水列表
export async function getRecordList(params) {
const res = await axios.get("/api/v1/get_record_list", {
params: getParams(params)
});
return res;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment