Commit b4b18033 authored by liwenhong's avatar liwenhong

Merge branch 'master' of https://git.yidian-inc.com:8021/bp/op-web-service into lwh/goods-add-time

parents d1f81833 6c270262
...@@ -114,6 +114,27 @@ exports.getReblackList = async ctx => { ...@@ -114,6 +114,27 @@ exports.getReblackList = async ctx => {
} }
ctx.body = await req(ctx, opts) ctx.body = await req(ctx, opts)
} }
// 获取钱包账户余额状态
exports.getWalletAccountStatus = async ctx=>{
const url = `${WITHDRAWAL_URI}/wallet/background/get_wallet_account_status`;
const opts = {
url,
method: "GET",
qs: ctx.request.query
}
ctx.body = await req(ctx,opts)
}
// 钱包账户余额状态
exports.resetAccountStatus = async ctx=>{
const url = `${WITHDRAWAL_URI}/wallet/background/reset_wallet_account_status`;
const opts = {
url,
method:"POST",
json:true,
body:ctx.request.body
}
ctx.body = await req(ctx,opts)
}
const getUserPermission = async (ctx) => { const getUserPermission = async (ctx) => {
const url = `${WITHDRAWAL_URI}/merchant/authority/get_role_list`; const url = `${WITHDRAWAL_URI}/merchant/authority/get_role_list`;
......
...@@ -128,5 +128,7 @@ router.get(`${API_VERSION}/get_account_list`, withdrawal.getAccountList) ...@@ -128,5 +128,7 @@ router.get(`${API_VERSION}/get_account_list`, withdrawal.getAccountList)
router.get(`${API_VERSION}/get_record_list`, withdrawal.getRecordList) router.get(`${API_VERSION}/get_record_list`, withdrawal.getRecordList)
router.post(`${API_VERSION}/get_account_black_list`, withdrawal.getAccountBlackList) router.post(`${API_VERSION}/get_account_black_list`, withdrawal.getAccountBlackList)
router.post(`${API_VERSION}/get_reblack_list`, withdrawal.getReblackList) router.post(`${API_VERSION}/get_reblack_list`, withdrawal.getReblackList)
router.get(`${API_VERSION}/get_wallet_account_status`, withdrawal.getWalletAccountStatus)
router.post(`${API_VERSION}/reset_wallet_account_status`, withdrawal.resetAccountStatus)
module.exports = router; module.exports = router;
\ No newline at end of file
...@@ -201,10 +201,10 @@ ...@@ -201,10 +201,10 @@
>退款</el-button >退款</el-button
> >
<el-button-group v-show="scope.row.order_status == '3'"> <el-button-group v-show="scope.row.order_status == '3'">
<el-button type="text" size="small" @click="agree(scope.row)" <el-button type="text" @click="agree(scope.row)"
>同意</el-button >同意</el-button
> >
<el-button type="text" size="small" @click="refuse(scope.row)" <el-button type="text" @click="refuse(scope.row)"
>拒绝</el-button >拒绝</el-button
> >
</el-button-group> </el-button-group>
...@@ -292,10 +292,10 @@ ...@@ -292,10 +292,10 @@
>退款</el-button >退款</el-button
> >
<el-button-group v-show="scope.row.order_status == '3'"> <el-button-group v-show="scope.row.order_status == '3'">
<el-button type="text" size="small" @click="agree(scope.row)" <el-button type="text" @click="agree(scope.row)"
>同意</el-button >同意</el-button
> >
<el-button type="text" size="small" @click="refuse(scope.row)" <el-button type="text" @click="refuse(scope.row)"
>拒绝</el-button >拒绝</el-button
> >
</el-button-group> </el-button-group>
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
margin-bottom:10px; margin-bottom:10px;
} }
.el-button-group>.el-button:first-child {
margin-right: 10px;
}
.exportForm,.exportBtn{ .exportForm,.exportBtn{
text-align:center; text-align:center;
} }
......
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
</el-form-item> </el-form-item>
</el-dialog> </el-dialog>
<!-- 退款弹窗 --> <!-- 退款弹窗 -->
<el-dialog title="退款" width="30%" top="10%" v-model="refundShow"> <el-dialog title="退款" width="50%" top="10%" v-model="refundShow">
<el-checkbox <el-checkbox
:indeterminate="isIndeterminate" :indeterminate="isIndeterminate"
v-model="checkAll" v-model="checkAll"
......
<template> <template>
<!-- 提现失败页 --> <!-- 提现失败页 -->
<!-- <auditTab v-if="status_text == 'fourth'"></auditTab> --> <!-- <auditTab v-if="status_text == 'fourth'"></auditTab> -->
<!-- <el-card class="goods-h5"> --> <!-- <el-card class="goods-h5"> -->
<div class="goods-h5"> <div class="goods-h5">
<el-table :data="goodsList" border max-height="700"> <el-table :data="goodsList" border max-height="700">
<el-table-column <el-table-column
label="登录地点" label="登录地点"
prop="withdraw_address" prop="withdraw_address"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="申请用户" label="风控等级"
prop="user_id" prop="risk_level_text"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="提现金额" label="申请用户"
prop="amount" prop="user_id"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="申请时间" label="提现金额"
prop="create_time" prop="amount"
align="center" align="center"
></el-table-column> ></el-table-column>
<!-- 操作快捷键 --> <el-table-column
<el-table-column label="操作" align="center"> label="申请时间"
<template v-slot:default="scope"> prop="create_time"
<el-button align="center"
type="text" ></el-table-column>
v-show="searchProps.status == '0' && isAllowedToAudit" <!-- 操作快捷键 -->
@click="handleDetail(scope.row.id)" <el-table-column label="操作" align="center">
>审核</el-button <template v-slot:default="scope">
> <el-button
</template> type="text"
</el-table-column> v-show="searchProps.status == '0' && isAllowedToAudit"
</el-table> @click="handleDetail(scope.row.id)"
>审核</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 页码区 --> <!-- 页码区 -->
<el-pagination <el-pagination
class="pagination" class="pagination"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
v-model:currentPage="searchProps.page" v-model:currentPage="searchProps.page"
:page-size="searchProps.page_size" :page-size="searchProps.page_size"
layout="total,prev, pager, next, jumper" layout="total,prev, pager, next, jumper"
:total="searchProps.count" :total="searchProps.count"
> >
</el-pagination> </el-pagination>
</div> </div>
<!-- </el-card> --> <!-- </el-card> -->
</template> </template>
<script> <script>
import { import {
...@@ -168,7 +173,7 @@ export default { ...@@ -168,7 +173,7 @@ export default {
}, },
// 提现申请审核详情 // 提现申请审核详情
async handleDetail(id) { async handleDetail(id) {
this.$router.push({ name: 'withdrawDetail', query: {id: id} }) this.$router.push({ name: "withdrawDetail", query: { id: id } });
// try { // try {
// const res = await getApplyDetail({ id }); // const res = await getApplyDetail({ id });
// const showData = res.info || {}; // const showData = res.info || {};
...@@ -307,7 +312,9 @@ export default { ...@@ -307,7 +312,9 @@ export default {
const WITHDRAWAL_PERMISSION_ID1 = 10000005; const WITHDRAWAL_PERMISSION_ID1 = 10000005;
let withdrawlPermission = this.permissions.filter( let withdrawlPermission = this.permissions.filter(
(item) => (item.id === WITHDRAWAL_PERMISSION_ID || item.id === WITHDRAWAL_PERMISSION_ID1) (item) =>
item.id === WITHDRAWAL_PERMISSION_ID ||
item.id === WITHDRAWAL_PERMISSION_ID1
); );
// 无此模块权限 // 无此模块权限
if (withdrawlPermission.length === 0) { if (withdrawlPermission.length === 0) {
...@@ -317,7 +324,8 @@ export default { ...@@ -317,7 +324,8 @@ export default {
const AUDIT_PERMSSION_ID = 14; const AUDIT_PERMSSION_ID = 14;
const AUDIT_PERMSSION_ID1 = 10000014; const AUDIT_PERMSSION_ID1 = 10000014;
const auditPermission = withdrawlPermission[0].sub_permissions.filter( const auditPermission = withdrawlPermission[0].sub_permissions.filter(
(item) => (item.id === AUDIT_PERMSSION_ID || item.id === AUDIT_PERMSSION_ID1) (item) =>
item.id === AUDIT_PERMSSION_ID || item.id === AUDIT_PERMSSION_ID1
); );
return auditPermission.length !== 0; return auditPermission.length !== 0;
...@@ -327,28 +335,27 @@ export default { ...@@ -327,28 +335,27 @@ export default {
</script> </script>
<style lang="less" src="./index.less" scope> <style lang="less" src="./index.less" scope>
.goods-h5 { .goods-h5 {
width: 90%; width: 90%;
margin: 20px auto; margin: 20px auto;
.dialog-footer { .dialog-footer {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.apply-list { .apply-list {
li { li {
width: 70%; width: 70%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
span { span {
width: 70px; width: 70px;
text-align: left; text-align: left;
} }
} }
} }
} }
.el-message-box { .el-message-box {
width: 80vw; width: 80vw;
margin: 0 auto; margin: 0 auto;
} }
</style> </style>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
padding-right: 10px; padding-right: 10px;
} }
.list-right { .list-right {
display:inline-block; // display:inline-block;
width: 70%; width: 70%;
} }
} }
...@@ -93,11 +93,11 @@ ...@@ -93,11 +93,11 @@
} }
.apply-list { .apply-list {
li { li {
width: 70%; width: 90%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
span { span {
width: 70px; width: 150px;
text-align: left; text-align: left;
} }
} }
...@@ -108,3 +108,12 @@ ...@@ -108,3 +108,12 @@
width: 20vw; width: 20vw;
margin: 0 auto; margin: 0 auto;
} }
.shell {
float: right;
width: 550px;
margin-top: -20px;
}
.open {
float: right;
margin-bottom: 10px;
}
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
@tab-click="handleTabChange" @tab-click="handleTabChange"
v-model="searchProps.status" v-model="searchProps.status"
> >
<!-- <el-tab-pane
label="风控审核"
:name="TABS.riskControl"
@tab-click="handleTabChange"
></el-tab-pane> -->
<el-tab-pane <el-tab-pane
label="待审核" label="待审核"
:name="TABS.pending" :name="TABS.pending"
...@@ -31,16 +36,20 @@ ...@@ -31,16 +36,20 @@
</el-tabs> </el-tabs>
</div> </div>
<!-- 提现失败页 --> <!-- 提现失败页 -->
<!-- <auditTab v-if="status_text == 'fourth'"></auditTab> -->
<el-card class="goods"> <el-card class="goods">
<!-- 筛选区 --> <!-- 筛选区 -->
<el-form inline class="search_condition"> <el-form inline class="search_condition">
<!-- 用户id --> <!-- 用户id -->
<el-form-item label="用户id"> <el-form-item label="用户id">
<el-input v-model="searchProps.user_id" @input=" <el-input
searchProps.user_id = $event clearable
.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g, '') v-model="searchProps.user_id"
" @input="
searchProps.user_id = $event.replace(
/[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,
''
)
"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-button <el-button
...@@ -50,6 +59,43 @@ ...@@ -50,6 +59,43 @@
>查询</el-button >查询</el-button
> >
</el-form> </el-form>
<div class="shell" v-if="searchProps.status == TABS.failed">
<div class="open" v-for="(item, index) in balance" :key="index">
<span>{{ item.account }} 商户号余额不足,请在充值后操作开启</span>
<el-button
type="primary"
@click="handleResetStatus(item.id)"
style="margin-left: 10px"
>开启</el-button
>
</div>
</div>
<!-- 风控审核列表 -->
<!-- <el-table
class="goods_list"
:data="goodsList"
border
stripe
v-if="searchProps.status == TABS.riskControl"
style="width: 100%"
>
<el-table-column label="提现用户" prop="user_id" align="center">
</el-table-column>
<el-table-column label="风控状态" prop="status_text" align="center">
</el-table-column>
<el-table-column label="所在圈" 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" align="center">
</el-table-column>
<el-table-column label="申请时间" prop="create_time" align="center">
</el-table-column>
</el-table> -->
<!-- 列表区 --> <!-- 列表区 -->
<el-table class="goods_list" :data="goodsList" border stripe> <el-table class="goods_list" :data="goodsList" border stripe>
<el-table-column <el-table-column
...@@ -67,6 +113,11 @@ ...@@ -67,6 +113,11 @@
prop="withdraw_address" prop="withdraw_address"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column
label="风控等级"
prop="risk_level_text"
align="center"
></el-table-column>
<el-table-column <el-table-column
label="提现金额" label="提现金额"
prop="amount" prop="amount"
...@@ -76,31 +127,37 @@ ...@@ -76,31 +127,37 @@
label="最近24小时收入" label="最近24小时收入"
prop="lately_amount" prop="lately_amount"
align="center" align="center"
v-if="searchProps.status !== TABS.failed"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="近两天分享增长" label="近两天分享增长"
prop="lately_share" prop="lately_share"
align="center" align="center"
v-if="searchProps.status !== TABS.failed"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="近两天分享下载量" label="近两天分享下载量"
prop="lately_download" prop="lately_download"
align="center" align="center"
v-if="searchProps.status !== TABS.failed"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="历史分享增长" label="历史分享增长"
prop="history_share" prop="history_share"
align="center" align="center"
v-if="searchProps.status !== TABS.failed"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="历史分享下载量" label="历史分享下载量"
prop="history_download" prop="history_download"
align="center" align="center"
v-if="searchProps.status !== TABS.failed"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="历史下载留存" label="历史下载留存"
prop="history_download_keep" prop="history_download_keep"
align="center" align="center"
v-if="searchProps.status !== TABS.failed"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="申请时间" label="申请时间"
...@@ -109,6 +166,12 @@ ...@@ -109,6 +166,12 @@
></el-table-column> ></el-table-column>
<el-table-column label="状态" prop="status_text" align="center"> <el-table-column label="状态" prop="status_text" align="center">
</el-table-column> </el-table-column>
<el-table-column
label="失败原因"
prop="desc"
align="center"
v-if="searchProps.status == TABS.failed"
></el-table-column>
<el-table-column <el-table-column
label="审核时间" label="审核时间"
prop="withdraw_audit_time" prop="withdraw_audit_time"
...@@ -122,10 +185,7 @@ ...@@ -122,10 +185,7 @@
<!-- 操作快捷键 --> <!-- 操作快捷键 -->
<el-table-column label="操作" align="center" width="130"> <el-table-column label="操作" align="center" width="130">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-button <el-button type="text" @click="handleDetail('look', scope.row.id)"
type="text"
@click="handleDetail('look', scope.row.id)"
v-show="searchProps.status !== '3'"
>查看</el-button >查看</el-button
> >
<el-button <el-button
...@@ -197,7 +257,15 @@ ...@@ -197,7 +257,15 @@
<ul class="listShow"> <ul class="listShow">
<li> <li>
<span class="list-left">登录地点 :</span> <span class="list-left">登录地点 :</span>
<span class="list-right">{{ dialogData.showData.withdraw_address }}</span> <span class="list-right">{{
dialogData.showData.withdraw_address
}}</span>
</li>
<li>
<span class="list-left">风控等级 :</span>
<span class="list-right">{{
dialogData.showData.risk_level_text
}}</span>
</li> </li>
<li> <li>
<span class="list-left">提现金额 :</span> <span class="list-left">提现金额 :</span>
...@@ -233,6 +301,10 @@ ...@@ -233,6 +301,10 @@
dialogData.showData.history_download_keep dialogData.showData.history_download_keep
}}</span> }}</span>
</li> </li>
<li v-if="searchProps.status == TABS.failed">
<span class="list-left">失败原因 :</span
><span class="list-right">{{ dialogData.showData.desc }}</span>
</li>
</ul> </ul>
<el-form-item class="text-area" label="奖励明细:"> <el-form-item class="text-area" label="奖励明细:">
<el-table <el-table
...@@ -301,6 +373,8 @@ import { ...@@ -301,6 +373,8 @@ import {
getApplyDetail, getApplyDetail,
getFreezingFund, getFreezingFund,
getRolesForUser, getRolesForUser,
getWalletAccountStatus,
resetAccountStatus,
} from "@/service/Withdrawal/withdrawal"; } from "@/service/Withdrawal/withdrawal";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { fetchCurrentUser } from "../../../service/user"; import { fetchCurrentUser } from "../../../service/user";
...@@ -311,6 +385,7 @@ const TABS = { ...@@ -311,6 +385,7 @@ const TABS = {
passed: "1", passed: "1",
rejected: "2", rejected: "2",
failed: "3", failed: "3",
// riskControl: "10",
}; };
export default { export default {
...@@ -358,41 +433,47 @@ export default { ...@@ -358,41 +433,47 @@ export default {
award: "", //奖励明细 award: "", //奖励明细
outerVisible: false, //外层弹框 outerVisible: false, //外层弹框
permissions: [], permissions: [],
// constants // constants
TABS, TABS,
id: "",
status: 0,
balance: [],
}; };
}, },
created() { created() {
this.getApplyList(); this.getApplyList();
this.getWalletAccountStatus();
this.permissionsAudit();
}, },
async mounted() {
const res = await this.getPermissionsAll();
if (!res) {
redirectToLogin();
return ElMessage("您没有权限");
}
let withdrawlPermission = res.filter(
({ name }) => name === "withdrawal_audit"
);
if (withdrawlPermission.length === 0) {
// push to forbidden
redirectToLogin();
return ElMessage("您没有权限");
}
withdrawlPermission = withdrawlPermission[0];
// judge subpermission
let subpermissions = withdrawlPermission.sub_permissions.filter(
({ name }) => name === "show"
);
if (subpermissions.length === 0) {
redirectToLogin();
return ElMessage("您没有权限");
}
},
methods: { methods: {
async permissionsAudit() {
const res = await this.getPermissionsAll();
if (!res) {
redirectToLogin();
return ElMessage("您没有权限");
}
let withdrawlPermission = res.filter(
({ name }) => name === "withdrawal_audit"
);
if (withdrawlPermission.length === 0) {
// push to forbidden
redirectToLogin();
return ElMessage("您没有权限");
}
withdrawlPermission = withdrawlPermission[0];
// judge subpermission
let subpermissions = withdrawlPermission.sub_permissions.filter(
({ name }) => name === "show"
);
if (subpermissions.length === 0) {
redirectToLogin();
return ElMessage("您没有权限");
}
},
async getPermissionsAll() { async getPermissionsAll() {
// 不能够信赖 store 中的 email,无法知道全局中的 fetchCurrentUser 处理完毕 // 不能够信赖 store 中的 email,无法知道全局中的 fetchCurrentUser 处理完毕
// 是一个重构的点 // 是一个重构的点
...@@ -407,11 +488,13 @@ export default { ...@@ -407,11 +488,13 @@ export default {
handleTabChange() { handleTabChange() {
this.searchProps.page = 0; this.searchProps.page = 0;
this.getApplyList(); this.getApplyList();
this.getWalletAccountStatus();
}, },
// 分页 // 分页
handleCurrentChange(e) { handleCurrentChange(e) {
this.searchProps.page = e; this.searchProps.page = e;
this.getApplyList(); this.getApplyList();
this.getWalletAccountStatus();
}, },
// 提现申请审核详情 // 提现申请审核详情
async handleDetail(showMode, id) { async handleDetail(showMode, id) {
...@@ -425,23 +508,39 @@ export default { ...@@ -425,23 +508,39 @@ export default {
} }
}, },
// 二次确认弹框 // 二次确认弹框
handleConfirm(action, params) { handleConfirm(
action,
params,
successCb = () => {
this.getApplyList();
this.outerVisible = false;
}
) {
const urlObj = { const urlObj = {
黑名单: getBlackList, 黑名单: getBlackList,
通过: getWithdrawAudit, 通过: getWithdrawAudit,
拒绝: getWithdrawAudit, 拒绝: getWithdrawAudit,
开启: resetAccountStatus,
}; };
this.$confirm(`<p>你确定此操作吗</p><p>${action}</p>`, "再次确认", { this.$confirm(
confirmButtonText: "取消", `${
cancelButtonText: "确定", this.searchProps.status == TABS.failed
cancelButtonClass: "cancel", ? "确认已完成商户号充值"
confirmButtonClass: "confirm", : `<p>你确定此操作吗</p><p>${action}</p>`
closeOnClickModal: false, }`,
dangerouslyUseHTMLString: true, "再次确认",
center: true, {
showClose: false, confirmButtonText: "取消",
type: "warning", cancelButtonText: "确定",
}) cancelButtonClass: "cancel",
confirmButtonClass: "confirm",
closeOnClickModal: false,
dangerouslyUseHTMLString: true,
center: true,
showClose: false,
type: "warning",
}
)
.then(() => { .then(() => {
this.$message({ this.$message({
type: "info", type: "info",
...@@ -451,8 +550,7 @@ export default { ...@@ -451,8 +550,7 @@ export default {
.catch(async () => { .catch(async () => {
try { try {
const res = await urlObj[action](params); const res = await urlObj[action](params);
this.getApplyList(); successCb();
this.outerVisible = false;
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功", message: "操作成功",
...@@ -508,14 +606,36 @@ export default { ...@@ -508,14 +606,36 @@ export default {
ElMessage.error("请求查询列表失败"); ElMessage.error("请求查询列表失败");
} }
}, },
// 获取钱包账户余额状态
async getWalletAccountStatus() {
try {
const res = await getWalletAccountStatus({
id: this.id,
status: this.status,
});
this.balance = res.result.filter((item) => !!item.status);
console.log(res);
console.log(this.balance);
} catch (error) {
ElMessage.error("请求账户余额状态失败");
}
},
// 查询 // 查询
findProducts() { findProducts() {
this.getApplyList(); this.getApplyList();
this.getWalletAccountStatus();
},
// 开启按钮
handleResetStatus(id) {
this.handleConfirm("开启", { id }, () => {
this.getWalletAccountStatus();
});
}, },
// 解冻 // 解冻
async handleFinzingFind(id) { async handleFinzingFind(id) {
try { try {
await getFreezingFund({ id }); const res = await getFreezingFund({ id });
if (res.code !== 0) return this.$message.error(res.reason);
this.getApplyList(); this.getApplyList();
ElMessage.success("解冻成功"); ElMessage.success("解冻成功");
} catch (error) { } catch (error) {
...@@ -553,7 +673,9 @@ export default { ...@@ -553,7 +673,9 @@ export default {
const WITHDRAWAL_PERMISSION_ID1 = 10000005; const WITHDRAWAL_PERMISSION_ID1 = 10000005;
let withdrawlPermission = this.permissions.filter( let withdrawlPermission = this.permissions.filter(
(item) => (item.id === WITHDRAWAL_PERMISSION_ID || item.id === WITHDRAWAL_PERMISSION_ID1) (item) =>
item.id === WITHDRAWAL_PERMISSION_ID ||
item.id === WITHDRAWAL_PERMISSION_ID1
); );
// 无此模块权限 // 无此模块权限
if (withdrawlPermission.length === 0) { if (withdrawlPermission.length === 0) {
...@@ -563,7 +685,8 @@ export default { ...@@ -563,7 +685,8 @@ export default {
const AUDIT_PERMSSION_ID = 14; const AUDIT_PERMSSION_ID = 14;
const AUDIT_PERMSSION_ID1 = 10000014; const AUDIT_PERMSSION_ID1 = 10000014;
const auditPermission = withdrawlPermission[0].sub_permissions.filter( const auditPermission = withdrawlPermission[0].sub_permissions.filter(
(item) => (item.id === AUDIT_PERMSSION_ID || item.id === AUDIT_PERMSSION_ID1) (item) =>
item.id === AUDIT_PERMSSION_ID || item.id === AUDIT_PERMSSION_ID1
); );
return auditPermission.length !== 0; return auditPermission.length !== 0;
......
...@@ -2,13 +2,34 @@ ...@@ -2,13 +2,34 @@
<div class="goods-h5"> <div class="goods-h5">
<el-form> <el-form>
<ul class="apply-list"> <ul class="apply-list">
<li><span>登录地点:</span><span>{{ dialogData.showData.withdraw_address }}</span></li> <li>
<li> 提现用户:<span>{{ dialogData.showData.user_id }}</span></li> <span>登录地点:</span
<li> 提现金额:<span>{{ dialogData.showData.amount }}</span></li> ><span>{{ dialogData.showData.withdraw_address }}</span>
<li> 最近24小时收入:<span>{{ dialogData.showData.lately_amount }}</span></li> </li>
<li> 近两天分享增长:<span>{{ dialogData.showData.lately_share }}</span></li> <li>
<li> 近两天分享下载量:<span>{{ dialogData.showData.lately_download }}</span></li> <span>风控等级:</span
<li> 历史分享增长: <span>{{ dialogData.showData.history_share }}</span></li> ><span>{{ dialogData.showData.risk_level_text }}</span>
</li>
<li>
提现用户:<span>{{ dialogData.showData.user_id }}</span>
</li>
<li>
提现金额:<span>{{ dialogData.showData.amount }}</span>
</li>
<li>
最近24小时收入:<span>{{ dialogData.showData.lately_amount }}</span>
</li>
<li>
近两天分享增长:<span>{{ dialogData.showData.lately_share }}</span>
</li>
<li>
近两天分享下载量:<span>{{
dialogData.showData.lately_download
}}</span>
</li>
<li>
历史分享增长: <span>{{ dialogData.showData.history_share }}</span>
</li>
</ul> </ul>
<el-form-item label="奖励明细:"> <el-form-item label="奖励明细:">
<el-table <el-table
...@@ -17,61 +38,41 @@ ...@@ -17,61 +38,41 @@
align="center" align="center"
max-height="300" max-height="300"
size="small" size="small"
> >
<el-table-column <el-table-column align="center" prop="create_time" label="流水时间">
align="center"
prop="create_time"
label="流水时间"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column align="center" prop="amount" label="分享用户量">
align="center"
prop="amount"
label="分享用户量"
>
<template v-slot:default="scope"> <template v-slot:default="scope">
<span>{{ scope ? "+" + scope.row.amount : null }}</span> <span>{{ scope ? "+" + scope.row.amount : null }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column align="center" prop="third_order_desc" label="说明">
align="center"
prop="third_order_desc"
label="说明"
>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="dialog-footer"> <div class="dialog-footer">
<div v-if="!showBackBtn"> <div v-if="!showBackBtn">
<el-button
type="primary"
size="small"
@click="handleAdoptRefuse('通过')"
>通过</el-button
>
<el-button
type="danger"
size="small"
@click="handleAdoptRefuse('拒绝')"
>拒绝</el-button
>
<el-button
type="primary"
size="small"
@click="handleBlackList('黑名单')"
>黑名单</el-button
>
</div>
<el-button <el-button
type="primary"
size="small" size="small"
@click="handleAdoptRefuse('通过')"
>通过</el-button
>
<el-button type="danger" size="small" @click="handleAdoptRefuse('拒绝')"
>拒绝</el-button
>
<el-button
type="primary" type="primary"
v-else size="small"
@click="$router.go(-1)" @click="handleBlackList('黑名单')"
>返回</el-button >黑名单</el-button
> >
</div> </div>
<el-button size="small" type="primary" v-else @click="$router.go(-1)"
>返回</el-button
>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -118,9 +119,7 @@ export default { ...@@ -118,9 +119,7 @@ export default {
const showData = res.info || {}; const showData = res.info || {};
this.dialogData = { ...this.dialogData, showData }; this.dialogData = { ...this.dialogData, showData };
}, },
async mounted() { async mounted() {},
},
methods: { methods: {
async getPermissionsAll() { async getPermissionsAll() {
// 不能够信赖 store 中的 email,无法知道全局中的 fetchCurrentUser 处理完毕 // 不能够信赖 store 中的 email,无法知道全局中的 fetchCurrentUser 处理完毕
...@@ -157,7 +156,7 @@ export default { ...@@ -157,7 +156,7 @@ export default {
}) })
.catch(async () => { .catch(async () => {
const res = await urlObj[action](params); const res = await urlObj[action](params);
if(+res.code === 0) { if (+res.code === 0) {
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功", message: "操作成功",
...@@ -167,8 +166,8 @@ export default { ...@@ -167,8 +166,8 @@ export default {
this.$message({ this.$message({
type: "error", type: "error",
message: res.reason, message: res.reason,
}); });
} }
}); });
}, },
...@@ -205,7 +204,9 @@ export default { ...@@ -205,7 +204,9 @@ export default {
const WITHDRAWAL_PERMISSION_ID1 = 10000005; const WITHDRAWAL_PERMISSION_ID1 = 10000005;
let withdrawlPermission = this.permissions.filter( let withdrawlPermission = this.permissions.filter(
(item) => (item.id === WITHDRAWAL_PERMISSION_ID || item.id === WITHDRAWAL_PERMISSION_ID1) (item) =>
item.id === WITHDRAWAL_PERMISSION_ID ||
item.id === WITHDRAWAL_PERMISSION_ID1
); );
// 无此模块权限 // 无此模块权限
if (withdrawlPermission.length === 0) { if (withdrawlPermission.length === 0) {
...@@ -215,7 +216,8 @@ export default { ...@@ -215,7 +216,8 @@ export default {
const AUDIT_PERMSSION_ID = 14; const AUDIT_PERMSSION_ID = 14;
const AUDIT_PERMSSION_ID1 = 10000014; const AUDIT_PERMSSION_ID1 = 10000014;
const auditPermission = withdrawlPermission[0].sub_permissions.filter( const auditPermission = withdrawlPermission[0].sub_permissions.filter(
(item) => (item.id === AUDIT_PERMSSION_ID || item.id === AUDIT_PERMSSION_ID1) (item) =>
item.id === AUDIT_PERMSSION_ID || item.id === AUDIT_PERMSSION_ID1
); );
return auditPermission.length !== 0; return auditPermission.length !== 0;
......
...@@ -67,4 +67,14 @@ export async function getAccountBlackList(params) { ...@@ -67,4 +67,14 @@ export async function getAccountBlackList(params) {
export async function getReblackList(params) { export async function getReblackList(params) {
const res = await axios.post("/api/v1/get_reblack_list",params) const res = await axios.post("/api/v1/get_reblack_list",params)
return res; return res;
}
// 获取钱包账户余额状态
export async function getWalletAccountStatus(params) {
const res = await axios.get("/api/v1/get_wallet_account_status",{params})
return res;
}
// 钱包账户余额状态(开启按钮)
export async function resetAccountStatus(params) {
const res = await axios.post("/api/v1/reset_wallet_account_status",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