mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-11 21:40:19 +08:00
修改运营商,以及财务中心页面
This commit is contained in:
@@ -1,75 +1,75 @@
|
|||||||
import request from '@/utils/request'
|
import request from "@/utils/request";
|
||||||
|
|
||||||
export function createAdapayMember(data) {
|
export function createAdapayMember(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/createAdapayMember',
|
url: "/adapay/member/createAdapayMember",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function selectAdapayMember(data) {
|
export function selectAdapayMember(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/selectAdapayMember',
|
url: "/adapay/member/selectAdapayMember",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 营收报表
|
// 营收报表
|
||||||
export function getMerchantOrderReport(data) {
|
export function getMerchantOrderReport(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/order/report/getMerchantOrderReport',
|
url: "/order/report/getMerchantOrderReportV2",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 汇付结算账号
|
// 汇付结算账号
|
||||||
export function selectSettleAccount(data) {
|
export function selectSettleAccount(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/selectSettleAccount',
|
url: "/adapay/member/selectSettleAccount",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 查看钱包
|
// 查看钱包
|
||||||
export function queryAdapayAccountBalance(data) {
|
export function queryAdapayAccountBalance(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/queryAdapayAccountBalance',
|
url: "/adapay/member/queryAdapayAccountBalance",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 新增企业
|
// 新增企业
|
||||||
export function createCorpMember(data) {
|
export function createCorpMember(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/createCorpMember',
|
url: "/adapay/member/createCorpMember",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 结算 createSettleAccount
|
// 结算 createSettleAccount
|
||||||
export function createSettleAccount(data) {
|
export function createSettleAccount(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/createSettleAccount',
|
url: "/adapay/member/createSettleAccount",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 修改信息
|
// 修改信息
|
||||||
export function updateAdapayMember(data) {
|
export function updateAdapayMember(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/updateAdapayMember',
|
url: "/adapay/member/updateAdapayMember",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 提现金额接口
|
// 提现金额接口
|
||||||
export function withdraw(data) {
|
export function withdraw(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/adapay/member/drawCash',
|
url: "/adapay/member/drawCash",
|
||||||
method: 'post',
|
method: "post",
|
||||||
data: data
|
data: data,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,10 +172,10 @@ export const constantRoutes = [
|
|||||||
hidden: true,
|
hidden: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "merchantVirtual",
|
path: "index/:id",
|
||||||
component: () => import("@/views/financial/components/virtualFinance"),
|
component: () => import("@/views/financial/accountUserInfo"),
|
||||||
name: "merchantVirtual",
|
name: "accountUserInfo",
|
||||||
meta: { title: "虚拟财务", activeMenu: "/financial/merchant" },
|
meta: { title: "开户信息", activeMenu: "/financial/merchant" },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -185,13 +185,26 @@ export const constantRoutes = [
|
|||||||
hidden: true,
|
hidden: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "cleanFinancial",
|
path: "financeDetail",
|
||||||
component: () => import("@/views/financial/components/cleanFinancial"),
|
component: () => import("@/views/financial/financeDetail"),
|
||||||
name: "cleanFinancial",
|
name: "financeDetail",
|
||||||
meta: { title: "清分财务", activeMenu: "/financial/merchant" },
|
meta: { title: "财务详情", activeMenu: "/financial/merchant" },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
|
// {
|
||||||
|
// path: "/financial/merchant",
|
||||||
|
// component: Layout,
|
||||||
|
// hidden: true,
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: "withdrawalRecords",
|
||||||
|
// component: () => import("@/views/financial/withdrawalRecords"),
|
||||||
|
// name: "withdrawalRecords",
|
||||||
|
// meta: { title: "提现记录", activeMenu: "/financial/merchant" },
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
// 动态路由,基于用户权限动态去加载
|
// 动态路由,基于用户权限动态去加载
|
||||||
|
|||||||
14
jsowell-ui/src/views/financial/accountUserInfo.vue
Normal file
14
jsowell-ui/src/views/financial/accountUserInfo.vue
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<adapay-member></adapay-member>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import adapayMember from "../pile/merchant/components/adapayMember.vue";
|
||||||
|
export default {
|
||||||
|
components: { adapayMember },
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style></style>
|
||||||
608
jsowell-ui/src/views/financial/financeDetail.vue
Normal file
608
jsowell-ui/src/views/financial/financeDetail.vue
Normal file
@@ -0,0 +1,608 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-txt">运营汇总</div>
|
||||||
|
<el-button type="primary" @click="goAccount">开户信息</el-button>
|
||||||
|
</div>
|
||||||
|
<div class="header">
|
||||||
|
<template v-if="operationStatus == null">
|
||||||
|
<div class="foot1">
|
||||||
|
<div style="margin: 12px 0">没有查询到结算账户</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<template v-if="showAccountList">
|
||||||
|
<div
|
||||||
|
class="foot1"
|
||||||
|
v-for="(item, index) in settleAccountList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<span>运营商:</span>
|
||||||
|
{{ merchant }}
|
||||||
|
</div>
|
||||||
|
<div class="margin-10">
|
||||||
|
商家性质:{{ merchantNature === "1" ? "对公" : "对私" }}
|
||||||
|
</div>
|
||||||
|
<div class="margin-10">
|
||||||
|
开户行名称:{{ cityBankCode(item.bankCode) }}
|
||||||
|
</div>
|
||||||
|
<div>收款卡号:{{ item.cardId }}</div>
|
||||||
|
<div class="margin-10">预留手机:{{ item.telNo }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<div class="foot1" v-else>
|
||||||
|
<div>
|
||||||
|
<span>运营商:</span>
|
||||||
|
{{ merchant }}
|
||||||
|
</div>
|
||||||
|
<div class="margin-10">
|
||||||
|
商家性质:{{ merchantNature === "1" ? "对公" : "对私" }}
|
||||||
|
</div>
|
||||||
|
<div>开户状态:{{ adapayCorpMember.auditDesc }}</div>
|
||||||
|
<div class="margin-10">
|
||||||
|
开户行名称:{{ cityBankCode(adapayCorpMember.bankCode) }}
|
||||||
|
</div>
|
||||||
|
<div>收款卡号:{{ adapayCorpMember.cardNo }}</div>
|
||||||
|
<div class="margin-10">预留手机:{{ adapayCorpMember.legalMp }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<div class="foot2">
|
||||||
|
<el-descriptions :column="1">
|
||||||
|
<el-descriptions-item label="总度数(度)">
|
||||||
|
<span class="color">
|
||||||
|
{{ merchantOrderReport.useElectricity }}
|
||||||
|
</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="充电时长(分钟)">
|
||||||
|
<span class="color">{{ merchantOrderReport.chargeTime }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="电费金额(元)">
|
||||||
|
<span class="color">{{
|
||||||
|
merchantOrderReport.electricityAmount
|
||||||
|
}}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="交易金额(元)">
|
||||||
|
<span class="color">{{ merchantOrderReport.tradeAmount }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="虚拟金额(元)">
|
||||||
|
<span class="color">{{ merchantOrderReport.virtualAmount }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
|
<div class="foot3">
|
||||||
|
<el-descriptions :column="1">
|
||||||
|
<el-descriptions-item label="充电次数(次)">
|
||||||
|
<span class="color">{{ merchantOrderReport.chargeNum }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="收入金额(元)">
|
||||||
|
<span class="color">{{ merchantOrderReport.totalAmount }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="服务费金额(元)">
|
||||||
|
<span class="color">{{ merchantOrderReport.serviceAmount }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="交易手续费(元)">
|
||||||
|
<span class="color">{{ merchantOrderReport.tradeFee }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="白名单支付(次)">
|
||||||
|
<span class="color">{{
|
||||||
|
merchantOrderReport.whitelistPaymentsNum === null
|
||||||
|
? "一"
|
||||||
|
: merchantOrderReport.whitelistPaymentsNum
|
||||||
|
}}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
|
<template v-if="operationStatus == null">
|
||||||
|
<div class="foot4">未查询到运营商结算账户,提现功能现已关闭</div>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<div class="foot4">
|
||||||
|
<div class="margin-right">
|
||||||
|
<div>可提现(元)</div>
|
||||||
|
<div class="margin-10">{{ adapayMember.avlBalance }}</div>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
v-if="adapayMember.avlBalance > withdrawalFee"
|
||||||
|
@click="dialogVisible = true"
|
||||||
|
>提现申请</el-button
|
||||||
|
>
|
||||||
|
<p class="center" v-else>
|
||||||
|
注:
|
||||||
|
<span class="text"
|
||||||
|
>该余额大于{{ withdrawalFee }}元时,才可发起取现</span
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="margin-right">
|
||||||
|
<div class="">冻结金额(元)</div>
|
||||||
|
<div class="margin-10">{{ adapayMember.frzBalance }}</div>
|
||||||
|
<div class="">
|
||||||
|
注:
|
||||||
|
<span class="text"
|
||||||
|
>当配置了自动结算功能,在每日发起结算时会将可用余额转为冻结金额。该部分金额不允许取现。</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="margin-right">
|
||||||
|
<div class="">昨日日终余额(元)</div>
|
||||||
|
<div class="margin-10">{{ adapayMember.lastAvlBalance }}</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="margin-right">
|
||||||
|
<div>提现申请中</div>
|
||||||
|
<div class="margin-10">
|
||||||
|
{{ adapayMember.withdrawalApplication }}(元)
|
||||||
|
</div>
|
||||||
|
<el-button type="primary" @click="recordDialog = true"
|
||||||
|
>提现记录</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div class="margin-right">
|
||||||
|
<div>已提现</div>
|
||||||
|
<div class="margin-10">{{ adapayMember.withdrawn }}(元)</div>
|
||||||
|
<div style="font-size: 13px">已成功提现到绑定银行卡的金额汇总</div>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<div class="center">
|
||||||
|
<div class="header-txt">运营分析</div>
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
inline
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item label="日期" prop="tradeDate">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="createTimeRange"
|
||||||
|
style="width: 240px"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
:default-time="['00:00:00', '23:59:59']"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
:clearable="false"
|
||||||
|
></el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<el-table :data="reportList">
|
||||||
|
<el-table-column label="日期" align="center" prop="tradeDate" />
|
||||||
|
<!-- <el-table-column label="站点名称" align="center" prop="stationName">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<router-link
|
||||||
|
:to="
|
||||||
|
'/station/detail/index/' +
|
||||||
|
scope.row.stationId +
|
||||||
|
'/' +
|
||||||
|
scope.row.stationName
|
||||||
|
"
|
||||||
|
class="link-type"
|
||||||
|
>
|
||||||
|
<span>{{ scope.row.stationName }}</span>
|
||||||
|
</router-link>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
|
||||||
|
<el-table-column label="账单状态" align="center" prop="billStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag
|
||||||
|
:options="dict.type.bill_status"
|
||||||
|
:value="scope.row.billStatus"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="应收金额(元)"
|
||||||
|
align="center"
|
||||||
|
prop="receivableAmount"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="可提现金额(元)"
|
||||||
|
align="center"
|
||||||
|
prop="withdrawAbleAmount"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="交易手续费(元)"
|
||||||
|
align="center"
|
||||||
|
prop="feeAmount"
|
||||||
|
/>
|
||||||
|
<!-- <el-table-column label="清分时间" align="center" prop="clearingTime" /> -->
|
||||||
|
<!-- <el-table-column
|
||||||
|
label="应清分金额"
|
||||||
|
align="center"
|
||||||
|
prop="shouldClearingAmount"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="实际清分金额"
|
||||||
|
align="center"
|
||||||
|
prop="actualClearingAmount"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="清分账单编号"
|
||||||
|
align="center"
|
||||||
|
prop="clearingBillCode"
|
||||||
|
/> -->
|
||||||
|
<el-table-column label="提现订单号" align="center" prop=" withdrawCode" />
|
||||||
|
<el-table-column
|
||||||
|
label="提现申请时间"
|
||||||
|
align="center"
|
||||||
|
prop="withdrawalTime"
|
||||||
|
/>
|
||||||
|
<el-table-column label="操作" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span class="link-type" @click="goTradeDate(scope)">订单流水</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="reportTotal > 0"
|
||||||
|
:total="reportTotal"
|
||||||
|
:page.sync="reportQueryParams.pageNum"
|
||||||
|
:limit.sync="reportQueryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
<!-- 提现申请弹窗 -->
|
||||||
|
<el-dialog title="提现申请" :visible.sync="dialogVisible" width="33%">
|
||||||
|
温馨提示
|
||||||
|
<div style="font-size: 12px; color: gray">
|
||||||
|
<p>1.提现将在3个工作日内审核到账,节假日审核顺延</p>
|
||||||
|
<p>2.部分流量方的充电订单存在账期,需要一定周期后才开始执行清分</p>
|
||||||
|
<p>3.提现为银行自动付款,根据银行要求会收取手续费,请知悉</p>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
可提现(元):
|
||||||
|
<span class="number">{{ adapayMember.avlBalance }}</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
手续费(元):
|
||||||
|
<span class="number">{{ withdrawalFee.toFixed(2) }}</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
实际到账(元):
|
||||||
|
<span class="number">
|
||||||
|
<!-- <span>11</span> -->
|
||||||
|
{{ adapayMember.avlBalance - withdrawalFee }}
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="submit">提交</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 提现记录 -->
|
||||||
|
<el-dialog title="提现记录" :visible.sync="recordDialog">
|
||||||
|
<el-table :data="tableData" style="width: 100%">
|
||||||
|
<el-table-column label="日期" />
|
||||||
|
<el-table-column label="账单状态" />
|
||||||
|
<el-table-column label="应收金额(元)" />
|
||||||
|
<el-table-column label="充值手续费(元)" />
|
||||||
|
<el-table-column label="可提现金额(元)" />
|
||||||
|
<el-table-column label="提现订单号(元)" />
|
||||||
|
<el-table-column label="提现申请时间(元)" />
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<router-link
|
||||||
|
:to="{
|
||||||
|
path: '/financial/merchant/merchantVirtual',
|
||||||
|
query: {
|
||||||
|
merchantId: scope.row.id,
|
||||||
|
merchantName: scope.row.merchantName,
|
||||||
|
},
|
||||||
|
}"
|
||||||
|
class="link-type"
|
||||||
|
>
|
||||||
|
<span>订单流水</span>
|
||||||
|
</router-link>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog
|
||||||
|
title="订单流水"
|
||||||
|
:visible.sync="dialogTableVisible"
|
||||||
|
:before-close="orderClose"
|
||||||
|
>
|
||||||
|
<el-table :data="orderList">
|
||||||
|
<el-table-column property="orderCode" label="订单编号" />
|
||||||
|
<el-table-column property="settleAmount" label="结算金额(元)" />
|
||||||
|
<el-table-column property="clearingStatus" label="清分状态">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{
|
||||||
|
scope.row.clearingStatus === "0" ? "未清分" : "已清分"
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="clearingBillCode" label="清分账单编号" />
|
||||||
|
<el-table-column property="withdrawStatus" label="提现状态" />
|
||||||
|
<el-table-column property="withdrawCode" label="提现编号" />
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="orderTotal > 0"
|
||||||
|
:total="orderTotal"
|
||||||
|
:page.sync="getOrderParams.pageNum"
|
||||||
|
:limit.sync="getOrderParams.pageSize"
|
||||||
|
@pagination="getOrderList"
|
||||||
|
/>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getMerchantOrderReport,
|
||||||
|
withdraw,
|
||||||
|
selectAdapayMember,
|
||||||
|
queryAdapayAccountBalance,
|
||||||
|
} from "@/api/adapayMember/adapayMember";
|
||||||
|
import { getOrderReportDetail } from "@/api/order/order";
|
||||||
|
import { getDay } from "@/utils/common";
|
||||||
|
import text from "@/assets/json/bank_code.json";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
dicts: ["bill_status"],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
operationStatus: null,
|
||||||
|
adapayMember: {},
|
||||||
|
// 开启
|
||||||
|
recordDialog: false,
|
||||||
|
tableData: [],
|
||||||
|
merchant: this.$route.query.merchantName,
|
||||||
|
orderTotal: 0,
|
||||||
|
getOrderParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
merchantId: null,
|
||||||
|
tradeDate: null,
|
||||||
|
},
|
||||||
|
orderList: [],
|
||||||
|
dialogTableVisible: false,
|
||||||
|
dialogVisible: false,
|
||||||
|
withdrawalFee: 5,
|
||||||
|
reportTotal: 0,
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
|
merchantId: this.$route.query.merchantId,
|
||||||
|
createTimeRange: [],
|
||||||
|
reportList: [],
|
||||||
|
reportQueryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
merchantId: this.$route.query.merchantId,
|
||||||
|
startTime: "",
|
||||||
|
endTime: "",
|
||||||
|
},
|
||||||
|
merchantOrderReport: {},
|
||||||
|
adapayCorpMember: {},
|
||||||
|
settleAccountList: [],
|
||||||
|
merchantNature: "",
|
||||||
|
showAdapayCorp: "",
|
||||||
|
showAccountList: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 银行编码
|
||||||
|
cityBankCode(code) {
|
||||||
|
// if (code === undefined) return;
|
||||||
|
const cityList = text.cityList;
|
||||||
|
let arr = cityList.find((item) => item.bankCode === code);
|
||||||
|
// console.log("银行编码对应的银行名称 arr", arr);
|
||||||
|
return arr.bankName;
|
||||||
|
},
|
||||||
|
selectAdapayMember() {
|
||||||
|
console.log("this.merchantId", this.merchantId);
|
||||||
|
let param = {
|
||||||
|
merchantId: this.merchantId,
|
||||||
|
};
|
||||||
|
selectAdapayMember(param).then((response) => {
|
||||||
|
console.log("查询结算账户", response);
|
||||||
|
this.operationStatus = response.data;
|
||||||
|
// console.log("this.operationStatus", this.operationStatus.bankAcctType);
|
||||||
|
// 商家性质:
|
||||||
|
if (response.data != null) {
|
||||||
|
// 对公返回的结果 商家性质:
|
||||||
|
this.merchantNature = this.operationStatus.bankAcctType;
|
||||||
|
console.log("对公信息", this.adapayCorpMember);
|
||||||
|
if (response.data.settleAccountList !== null) {
|
||||||
|
// 个人账户
|
||||||
|
this.adapayCorpMember = response.data.adapayMember;
|
||||||
|
this.settleAccountList = response.data.settleAccountList;
|
||||||
|
this.showAccountList = true;
|
||||||
|
}
|
||||||
|
this.showAdapayCorp = response.data.adapayCorpMember;
|
||||||
|
if (response.data.adapayCorpMember != null)
|
||||||
|
return (this.adapayCorpMember = response.data.adapayCorpMember);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getAdapayBalance() {
|
||||||
|
let param = {
|
||||||
|
merchantId: this.merchantId,
|
||||||
|
};
|
||||||
|
queryAdapayAccountBalance(param).then((response) => {
|
||||||
|
console.log("查询 可提现金额 queryAdapayAccountBalance", response);
|
||||||
|
this.adapayMember = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getOrderList() {
|
||||||
|
console.log("this.getOrderParams", this.getOrderParams);
|
||||||
|
getOrderReportDetail(this.getOrderParams).then((res) => {
|
||||||
|
console.log("获取订单列表res", res);
|
||||||
|
this.orderList = res.rows;
|
||||||
|
this.orderTotal = res.total;
|
||||||
|
// console.log("this.orderTotal", this.orderTotal);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 弹层关闭之前执行的事情
|
||||||
|
orderClose() {
|
||||||
|
this.dialogTableVisible = false;
|
||||||
|
this.getOrderParams.pageNum = 1;
|
||||||
|
this.orderList = [];
|
||||||
|
this.orderTotal = 0;
|
||||||
|
},
|
||||||
|
// 订单流水按钮
|
||||||
|
goTradeDate(scope) {
|
||||||
|
// console.log("点击日期出现弹层", scope);
|
||||||
|
if (scope.row.tradeDate === null)
|
||||||
|
return this.$message.info("此条数据暂不显示订单流水");
|
||||||
|
// console.log("点击日期出现弹层", scope.row.tradeDate);
|
||||||
|
this.dialogTableVisible = true;
|
||||||
|
this.getOrderParams.merchantId = scope.row.merchantId;
|
||||||
|
this.getOrderParams.tradeDate = scope.row.tradeDate;
|
||||||
|
this.getOrderList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
console.log("queryParams", this.queryParams);
|
||||||
|
getMerchantOrderReport(this.reportQueryParams).then((response) => {
|
||||||
|
// console.log("查询报表", reportList, merchantOrderReport);
|
||||||
|
console.log("getMerchantOrderReport", response);
|
||||||
|
if (response.data) {
|
||||||
|
this.merchantOrderReport = response.data.merchantOrderReport;
|
||||||
|
if (response.data.pageResponse === null)
|
||||||
|
return (this.reportList = []);
|
||||||
|
this.reportList = response.data.pageResponse.list;
|
||||||
|
this.reportTotal = response.data.pageResponse.total;
|
||||||
|
} else {
|
||||||
|
this.reportList = [];
|
||||||
|
this.merchantOrderReport = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.$confirm("确认提交?")
|
||||||
|
.then((_) => {
|
||||||
|
let params = {
|
||||||
|
merchantId: this.merchantId,
|
||||||
|
cashAmt: this.adapayMember.avlBalance,
|
||||||
|
};
|
||||||
|
console.log("点击提交按钮之前执行 params", params);
|
||||||
|
withdraw(params).then((response) => {
|
||||||
|
console.log("res 提现金额", response);
|
||||||
|
if (response.code !== 200)
|
||||||
|
return this.$modal.msgError(response.msg);
|
||||||
|
this.$modal.msgSuccess("操作成功");
|
||||||
|
// 重新查询当前 显示的可提现金额
|
||||||
|
this.getAdapayBalance();
|
||||||
|
});
|
||||||
|
this.dialogVisible = false;
|
||||||
|
})
|
||||||
|
.catch((_) => {});
|
||||||
|
},
|
||||||
|
// 点击提交按钮
|
||||||
|
submit() {
|
||||||
|
this.handleClose();
|
||||||
|
},
|
||||||
|
withdrawalClick() {
|
||||||
|
// this.$router.push({
|
||||||
|
// name: "withdrawalRecords",
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
goAccount() {
|
||||||
|
this.$router.push({
|
||||||
|
name: "accountUserInfo",
|
||||||
|
params: {
|
||||||
|
id: this.merchantId,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 点击搜索按钮
|
||||||
|
handleQuery() {
|
||||||
|
let arr = this.createTimeRange[0];
|
||||||
|
let str = this.createTimeRange[1];
|
||||||
|
console.log("点击搜索时展示的日期数据", arr, str);
|
||||||
|
this.reportQueryParams.startTime = arr;
|
||||||
|
this.reportQueryParams.endTime = str;
|
||||||
|
this.reportQueryParams.pageNum = 1;
|
||||||
|
this.reportTotal = 0;
|
||||||
|
this.getList();
|
||||||
|
// this.getOrderList();
|
||||||
|
},
|
||||||
|
defaultDate() {
|
||||||
|
//字符串拼接,开始时间,结束时间
|
||||||
|
let beg = getDay(-30); //当月第一天
|
||||||
|
let end = getDay(0); //当天
|
||||||
|
this.createTimeRange = [beg, end];
|
||||||
|
// console.log("this.createTimeRange", this.createTimeRange);
|
||||||
|
// return this.createTimeRange;
|
||||||
|
this.reportQueryParams.startTime = beg;
|
||||||
|
this.reportQueryParams.endTime = end;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.defaultDate();
|
||||||
|
this.getAdapayBalance();
|
||||||
|
this.selectAdapayMember();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.center {
|
||||||
|
display: flex;
|
||||||
|
align-content: center;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
.margin-10 {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
.font-13 {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.header-txt {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
.text {
|
||||||
|
font-size: 12px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.foot1 {
|
||||||
|
margin-top: 10px;
|
||||||
|
// width: 320px;
|
||||||
|
// margin-right: 10px;
|
||||||
|
// font-size: 13px;
|
||||||
|
}
|
||||||
|
.foot2 {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
.foot3 {
|
||||||
|
width: 200px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.foot4 {
|
||||||
|
flex: 1;
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
.margin-right {
|
||||||
|
width: 180px;
|
||||||
|
margin-right: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.color {
|
||||||
|
color: #000;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,183 +1,213 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-table
|
<!-- <el-form
|
||||||
:data="merchantList"
|
:model="queryParams"
|
||||||
stripe
|
ref="queryForm"
|
||||||
border
|
size="small"
|
||||||
style="width: 100%">
|
:inline="true"
|
||||||
<el-table-column
|
label-width="110px"
|
||||||
prop="merchantName"
|
@submit.native.prevent
|
||||||
label="运营商"
|
>
|
||||||
align="center"
|
<el-form-item label="运营商名称" prop="merchantName">
|
||||||
/>
|
<el-input
|
||||||
<el-table-column
|
v-model="queryParams.merchantName"
|
||||||
prop="organizationCode"
|
placeholder="请输入运营商名称"
|
||||||
label="组织机构代码"
|
clearable
|
||||||
align="center"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
</el-form-item>
|
||||||
prop="status"
|
<el-form-item>
|
||||||
label="状态"
|
<el-button
|
||||||
align="center"
|
type="primary"
|
||||||
width="130"
|
icon="el-icon-search"
|
||||||
>
|
size="mini"
|
||||||
<template slot-scope="scope">
|
@click="handleQuery"
|
||||||
<dict-tag
|
>搜索</el-button
|
||||||
:options="dict.type.merchant_status"
|
>
|
||||||
:value="scope.row.status"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
/>
|
>重置</el-button
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
</el-form-item>
|
||||||
<el-table-column
|
</el-form> -->
|
||||||
prop="managerName"
|
<el-table :data="merchantList" style="width: 100%" v-loading="loading">
|
||||||
label="联系人"
|
<el-table-column prop="merchantName" label="运营商" align="center">
|
||||||
align="center"
|
<template slot-scope="scope">
|
||||||
width="130"
|
<router-link
|
||||||
/>
|
:to="{
|
||||||
<el-table-column
|
path: '/financial/merchant/financeDetail',
|
||||||
prop="managerPhone"
|
query: {
|
||||||
label="联系方式"
|
merchantId: scope.row.id,
|
||||||
align="center"
|
merchantName: scope.row.merchantName,
|
||||||
width="300"
|
},
|
||||||
/>
|
}"
|
||||||
<el-table-column
|
class="link-type"
|
||||||
prop="createTime"
|
>
|
||||||
label="入驻时间"
|
<span>{{ scope.row.merchantName }}</span>
|
||||||
align="center"
|
</router-link>
|
||||||
/>
|
</template>
|
||||||
<el-table-column
|
</el-table-column>
|
||||||
prop="address"
|
|
||||||
label="操作"
|
|
||||||
align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<!-- :to="'/merchant/detail/index/' + scope.row.id" -->
|
|
||||||
<router-link
|
|
||||||
:to="{path:'/financial/merchant/merchantVirtual', query: {merchantId: scope.row.id,merchantName:scope.row.merchantName}} "
|
|
||||||
class="link-type"
|
|
||||||
>
|
|
||||||
<span>虚拟财务</span>
|
|
||||||
</router-link>
|
|
||||||
<router-link
|
|
||||||
:to="{path:'/financial/merchant/cleanFinancial', query: {merchantId: scope.row.id,merchantName:scope.row.merchantName}} "
|
|
||||||
class="link-type"
|
|
||||||
>
|
|
||||||
<span style="margin-left:10px;color: darkblue;">清分财务</span>
|
|
||||||
</router-link>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
|
|
||||||
<pagination
|
<el-table-column
|
||||||
v-show="total > 0"
|
prop="organizationCode"
|
||||||
:total="total"
|
label="组织机构代码"
|
||||||
:page.sync="queryParams.pageNum"
|
align="center"
|
||||||
:limit.sync="queryParams.pageSize"
|
/>
|
||||||
@pagination="getMerchantList"
|
<el-table-column prop="status" label="状态" align="center" width="130">
|
||||||
/>
|
<template slot-scope="scope">
|
||||||
</div>
|
<dict-tag
|
||||||
|
:options="dict.type.merchant_status"
|
||||||
|
:value="scope.row.status"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="managerName"
|
||||||
|
label="联系人"
|
||||||
|
align="center"
|
||||||
|
width="130"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="managerPhone"
|
||||||
|
label="联系方式"
|
||||||
|
align="center"
|
||||||
|
width="300"
|
||||||
|
/>
|
||||||
|
<el-table-column prop="createTime" label="入驻时间" align="center" />
|
||||||
|
<!-- :to="'/merchant/detail/index/' + scope.row.id" -->
|
||||||
|
<!-- <el-table-column prop="address" label="操作" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<router-link
|
||||||
|
:to="{
|
||||||
|
path: '/financial/merchant/merchantVirtual',
|
||||||
|
query: {
|
||||||
|
merchantId: scope.row.id,
|
||||||
|
merchantName: scope.row.merchantName,
|
||||||
|
},
|
||||||
|
}"
|
||||||
|
class="link-type"
|
||||||
|
>
|
||||||
|
<span>虚拟财务</span>
|
||||||
|
</router-link>
|
||||||
|
<router-link
|
||||||
|
:to="{
|
||||||
|
path: '/financial/merchant/financeDetail',
|
||||||
|
query: {
|
||||||
|
merchantId: scope.row.id,
|
||||||
|
},
|
||||||
|
}"
|
||||||
|
class="link-type"
|
||||||
|
>
|
||||||
|
<span style="margin-left: 10px; color: darkblue">清分财务</span>
|
||||||
|
</router-link>
|
||||||
|
</template>
|
||||||
|
</el-table-column> -->
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getMerchantList"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { getFinancialMerchantList } from "@/api/pile/merchant";
|
||||||
import {getFinancialMerchantList} from "@/api/pile/merchant";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
dicts: ["merchant_status"],
|
dicts: ["merchant_status"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 运营商列表
|
// 运营商列表
|
||||||
merchantList: [],
|
merchantList: [],
|
||||||
|
loading: true,
|
||||||
showOrHideText: "显示更多查询条件",
|
showOrHideText: "显示更多查询条件",
|
||||||
buttonBoolean: false,
|
buttonBoolean: false,
|
||||||
//图标,可根据自己的需求匹配
|
//图标,可根据自己的需求匹配
|
||||||
icon: "el-icon-caret-bottom",
|
icon: "el-icon-caret-bottom",
|
||||||
total: 0,
|
total: 0,
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10
|
pageSize: 10,
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getMerchantList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
showOrHide() {
|
||||||
|
if (this.buttonBoolean) {
|
||||||
|
this.icon = "el-icon-caret-bottom";
|
||||||
|
this.showOrHideText = "显示更多查询条件";
|
||||||
|
this.buttonBoolean = !this.buttonBoolean;
|
||||||
|
} else {
|
||||||
|
this.icon = "el-icon-caret-top";
|
||||||
|
this.showOrHideText = "收起";
|
||||||
|
this.buttonBoolean = !this.buttonBoolean;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
created() {
|
// 获取运营商列表
|
||||||
this.getMerchantList();
|
getMerchantList() {
|
||||||
|
this.loading = true;
|
||||||
|
getFinancialMerchantList(this.queryParams).then((response) => {
|
||||||
|
this.merchantList = response.rows;
|
||||||
|
// console.log("response", response);
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
/** 搜索按钮操作 */
|
||||||
showOrHide() {
|
handleQuery() {
|
||||||
if (this.buttonBoolean) {
|
console.log("搜索的值", this.queryParams);
|
||||||
this.icon = "el-icon-caret-bottom";
|
this.queryParams.pageNum = 1;
|
||||||
this.showOrHideText = "显示更多查询条件";
|
this.getMerchantList();
|
||||||
this.buttonBoolean = !this.buttonBoolean;
|
|
||||||
} else {
|
|
||||||
this.icon = "el-icon-caret-top";
|
|
||||||
this.showOrHideText = "收起";
|
|
||||||
this.buttonBoolean = !this.buttonBoolean;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 获取运营商列表
|
|
||||||
getMerchantList() {
|
|
||||||
getFinancialMerchantList(this.queryParams).then((response) => {
|
|
||||||
this.merchantList = response.rows;
|
|
||||||
this.total = response.total;
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 取消按钮
|
|
||||||
cancel() {
|
|
||||||
this.open = false;
|
|
||||||
this.reset();
|
|
||||||
},
|
|
||||||
/** 搜索按钮操作 */
|
|
||||||
handleQuery() {
|
|
||||||
this.queryParams.pageNum = 1;
|
|
||||||
// 获取订单列表
|
|
||||||
// this.getList();
|
|
||||||
// 获取订单总金额
|
|
||||||
// this.getOrderTotalData();
|
|
||||||
},
|
|
||||||
/** 重置按钮操作 */
|
|
||||||
resetQuery() {
|
|
||||||
this.resetForm("queryForm");
|
|
||||||
// this.handleQuery();
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
// this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep
|
::v-deep
|
||||||
.el-descriptions--medium:not(.is-bordered)
|
.el-descriptions--medium:not(.is-bordered)
|
||||||
.el-descriptions-item__cell {
|
.el-descriptions-item__cell {
|
||||||
padding-bottom: 4px;
|
padding-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-descriptions__header {
|
::v-deep .el-descriptions__header {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardview-box {
|
.cardview-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #4a4a4a;
|
color: #4a4a4a;
|
||||||
border: 1px solid #f0f0f0;
|
border: 1px solid #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardview-static {
|
.cardview-static {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
height: 46px;
|
height: 46px;
|
||||||
line-height: 46px;
|
line-height: 46px;
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -742,8 +742,6 @@ import { getToken } from "@/utils/auth";
|
|||||||
import text from "@/assets/json/bank_code.json";
|
import text from "@/assets/json/bank_code.json";
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
|
|
||||||
props: ["merchantId"],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dataDisabled: false,
|
dataDisabled: false,
|
||||||
@@ -816,7 +814,7 @@ export default {
|
|||||||
dialog: false,
|
dialog: false,
|
||||||
adapayCorpMember: {
|
adapayCorpMember: {
|
||||||
bankAcctType: "1",
|
bankAcctType: "1",
|
||||||
merchantId: this.merchantId,
|
merchantId: this.$route.params.id,
|
||||||
},
|
},
|
||||||
// 汇付会员
|
// 汇付会员
|
||||||
adapayMember: "",
|
adapayMember: "",
|
||||||
@@ -1338,7 +1336,7 @@ export default {
|
|||||||
this.adapayCorpMember.socialCreditCodeExpires =
|
this.adapayCorpMember.socialCreditCodeExpires =
|
||||||
this.updateSocialCreditCode;
|
this.updateSocialCreditCode;
|
||||||
console.log(this.adapayCorpMember, "this.adapayCorpMember");
|
console.log(this.adapayCorpMember, "this.adapayCorpMember");
|
||||||
this.adapayCorpMember.merchantId = this.merchantId;
|
// this.adapayCorpMember.merchantId = this.merchantId;
|
||||||
console.log("修改成功", form);
|
console.log("修改成功", form);
|
||||||
this.$refs[form].validate((valid) => {
|
this.$refs[form].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -1426,7 +1424,7 @@ export default {
|
|||||||
);
|
);
|
||||||
this.adapayCorpMember.socialCreditCodeExpires = this.dataValue;
|
this.adapayCorpMember.socialCreditCodeExpires = this.dataValue;
|
||||||
this.adapayCorpMember.legalCertIdExpires = this.addLegalCertIdDate;
|
this.adapayCorpMember.legalCertIdExpires = this.addLegalCertIdDate;
|
||||||
this.adapayCorpMember.merchantId = this.merchantId;
|
// this.adapayCorpMember.merchantId = this.$route.params.id;
|
||||||
this.$refs[adapayCorpMember].validate((valid) => {
|
this.$refs[adapayCorpMember].validate((valid) => {
|
||||||
console.log(this.adapayCorpMember, "this.adapayCorpMember");
|
console.log(this.adapayCorpMember, "this.adapayCorpMember");
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -1476,9 +1474,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询汇付会员
|
// 查询汇付会员
|
||||||
selectAdapayMember() {
|
selectAdapayMember() {
|
||||||
console.log("this.merchantId", this.merchantId);
|
console.log("this.merchantId", this.adapayCorpMember.merchantId);
|
||||||
let param = {
|
let param = {
|
||||||
merchantId: this.merchantId,
|
merchantId: this.adapayCorpMember.merchantId,
|
||||||
};
|
};
|
||||||
selectAdapayMember(param).then((response) => {
|
selectAdapayMember(param).then((response) => {
|
||||||
console.log("查询 selectAdapayMember", response);
|
console.log("查询 selectAdapayMember", response);
|
||||||
|
|||||||
@@ -1,43 +1,35 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
<div class="app-container">
|
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
|
||||||
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
|
<el-tab-pane label="钱包汇总" name="wallet">
|
||||||
<el-tab-pane label="支付设置" name="first">
|
<adapay-member :merchantId="merchantId"></adapay-member>
|
||||||
<adapay-member :merchantId="merchantId"></adapay-member>
|
<wallet-summary :merchantId="merchantId"></wallet-summary>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane> -->
|
<el-tab-pane label="营收报表" name="revenue">
|
||||||
<!-- <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>-->
|
<revenue :merchantId="merchantId"></revenue>
|
||||||
<el-tab-pane label="钱包汇总" name="wallet">
|
</el-tab-pane>
|
||||||
<wallet-summary :merchantId="merchantId"></wallet-summary>
|
</el-tabs>
|
||||||
</el-tab-pane>
|
</div>
|
||||||
<el-tab-pane label="营收报表" name="revenue">
|
|
||||||
<revenue :merchantId="merchantId"></revenue>
|
|
||||||
</el-tab-pane>
|
|
||||||
</el-tabs>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import adapayMember from './components/adapayMember.vue';
|
import adapayMember from "./components/adapayMember.vue";
|
||||||
import Revenue from './components/revenue.vue';
|
import Revenue from "./components/revenue.vue";
|
||||||
import WalletSummary from './components/walletSummary.vue';
|
import WalletSummary from "./components/walletSummary.vue";
|
||||||
export default {
|
export default {
|
||||||
components: { adapayMember, Revenue, WalletSummary },
|
components: { adapayMember, Revenue, WalletSummary },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeName: 'first',
|
activeName: "wallet",
|
||||||
merchantId:this.$route.params.id
|
merchantId: this.$route.params.id,
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleClick(tab, event) {
|
||||||
|
console.log(tab, event);
|
||||||
},
|
},
|
||||||
methods: {
|
},
|
||||||
handleClick(tab, event) {
|
};
|
||||||
console.log(tab, event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user