|
|
@ -24,20 +24,20 @@ |
|
|
|
@keyup.enter.native="handleQuery" style="width: 215px;border-color: #E6F1FF;" /> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="商户名称" prop="storeName"> |
|
|
|
<el-input size="medium" v-model="queryParams.storeName" placeholder="请输入商户名称" @keyup.enter.native="handleQuery" |
|
|
|
<el-input size="small" v-model="queryParams.storeName" placeholder="请输入商户名称" @keyup.enter.native="handleQuery" |
|
|
|
style="width: 180px;border-color: #E6F1FF;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="商户号" prop="storeNo"> |
|
|
|
<el-input size="medium" v-model="queryParams.storeNo" placeholder="请输入商户号" @keyup.enter.native="handleQuery" |
|
|
|
<el-input size="small" v-model="queryParams.storeNo" placeholder="请输入商户号" @keyup.enter.native="handleQuery" |
|
|
|
style="width: 180px;border-color: #E6F1FF;" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="上级姓名" prop="parentName"> |
|
|
|
<el-input size="medium" v-model="queryParams.parentName" placeholder="请输入上级名称" @keyup.enter.native="handleQuery" |
|
|
|
<el-input size="small" v-model="queryParams.parentName" placeholder="请输入上级名称" @keyup.enter.native="handleQuery" |
|
|
|
style="width: 180px;border-color: #E6F1FF;" /> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="创建时间"> |
|
|
|
<el-date-picker v-model="dateRange" size="small" style="width: 340px" value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
<el-date-picker v-model="dateRange" size="small" style="width: 340px; height: 32px; line-height: 12px;" value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :unlink-panels="true" |
|
|
|
:default-time="['00:00:00', '23:59:59']" :picker-options="pickerOptions"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
@ -45,27 +45,27 @@ |
|
|
|
<el-form-item> |
|
|
|
<div class="searchTop flexBet" style="align-items: center;"> |
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
|
<el-button type="primary" icon="" size="medium" @click="handleQuery">搜索</el-button> |
|
|
|
<el-button icon="el-icon-refresh" size="medium" @click="resetQuery">重置</el-button> |
|
|
|
<el-button type="primary" icon="" size="small" @click="handleQuery">搜索</el-button> |
|
|
|
<el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8" style="margin-left:20px"> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button v-hasPermi="['system:user:saveStoreOragent']" type="primary" plain icon="" size="medium" |
|
|
|
<el-button v-hasPermi="['system:user:saveStoreOragent']" type="primary" plain icon="" size="small" style="height: 32px;" |
|
|
|
@click="handleAdd('新增代理', 'agent')">新增代理</el-button> |
|
|
|
</el-col> <el-col :span="1.5"> |
|
|
|
<el-button v-hasPermi="['system:user:saveStoreOragent']" type="primary" plain icon="" size="medium" |
|
|
|
<el-button v-hasPermi="['system:user:saveStoreOragent']" type="primary" plain icon="" size="small" style="height: 32px;" |
|
|
|
@click="handleAdd('新增商户', 'store')">新增商户</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<div class="rig flex m20"> |
|
|
|
<div> |
|
|
|
<div class="rig flex"> |
|
|
|
<div style="height: 32px; line-height: 12px;"> |
|
|
|
累计代理:<span class="#197CFE">{{ sum.agentCount }}</span> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div style="height: 32px; line-height: 12px;"> |
|
|
|
累计商户:<span class="#197CFE">{{ sum.storeCount }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -77,15 +77,15 @@ |
|
|
|
<!-- <el-table-column label='商户Id' align="center" prop="storeId" min-width="160" /> --> |
|
|
|
|
|
|
|
<!-- <el-table-column label="用户姓名" align="center" prop="nickName" min-width="150" /> --> |
|
|
|
<el-table-column label="登陆账号" align="center" prop="userName" min-width="150"> |
|
|
|
<el-table-column label="登陆账号" align="left" prop="userName" min-width="110"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.userName }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column label="用户手机" align="center" prop="phonenumber" min-width="150" /> --> |
|
|
|
<el-table-column label="商户名称" align="center" prop="storeName" /> |
|
|
|
<el-table-column label="用户等级" align="center" prop="userLevel" /> |
|
|
|
<el-table-column label="用户类型" align="center" prop="userType" min-width="120"> |
|
|
|
<el-table-column label="商户名称" align="left" prop="storeName" min-width="130"/> |
|
|
|
<el-table-column label="用户等级" align="center" prop="userLevel" width="80"/> |
|
|
|
<el-table-column label="用户类型" align="center" prop="userType" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tag :type="scope.row.userType == 'store' |
|
|
|
? 'success' : 'primary' |
|
|
@ -101,33 +101,47 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
<el-table-column :label="'代理数\n商户数'" align="center" prop="storeNo" min-width="150"> |
|
|
|
<el-table-column :label="'代理数\n商户数'" align="center" prop="storeNo" width="80"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ scope.row.agentCount }} |
|
|
|
</div><br /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
{{ scope.row.storeCount }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="'在途资金(元)\n冻结资金(元)'" align="center" prop="storeNo" min-width="150"> |
|
|
|
<el-table-column :label="'在途资金(元)\n冻结资金(元)'" align="center" prop="storeNo" width="90"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ scope.row.userCapitalAccount.transitCapital }} |
|
|
|
</div><br /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
{{ scope.row.userCapitalAccount.frozenCapital }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="可用资金(元)" align="center" prop="useCapital" min-width="100"> |
|
|
|
<el-table-column label="可用资金(元)" align="center" prop="useCapital" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.userCapitalAccount.useCapital }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="上级用户" align="center" prop="parentName" /> |
|
|
|
|
|
|
|
<!-- :render-header="renderTestStatusHeader"--> |
|
|
|
<el-table-column label="测试状态" align="center" prop="testStatus" width="100px" > |
|
|
|
<template slot="header"> |
|
|
|
<el-tooltip class="item" effect="dark" placement="top-start"> |
|
|
|
<div slot="content">测试状态为开启时,创建的代付和代收订单,将不会推送三方系统!</div> |
|
|
|
<span>测试状态<i class="el-icon-question" style="color: #409EFF; margin-left: 5px;"></i></span> |
|
|
|
</el-tooltip> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-switch v-model="scope.row.testStatus" active-text="开" inactive-text="关" active-value="open" |
|
|
|
inactive-value="close" @change="changeStoreTestStatus(scope.row)" |
|
|
|
v-hasPermi="['store:store:updateStore']"> |
|
|
|
</el-switch> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="国家代码" align="center" prop="nationCode" /> |
|
|
|
<el-table-column label="国家名称" align="center" prop="nationName" /> |
|
|
|
<el-table-column label="国家货币符号" align="center" prop="nationSymbol" min-width="100" /> |
|
|
@ -432,7 +446,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { common_api, payAgentUser } from "@/api/form"; |
|
|
|
import {common_api, payAgentUser, payBankPayment} from "@/api/form"; |
|
|
|
import { resetUserPwd, delUser } from "@/api/system/user"; |
|
|
|
import Editor from "@/components/Editor"; |
|
|
|
import { getToken } from "@/utils/auth"; |
|
|
@ -794,6 +808,33 @@ export default { |
|
|
|
.then((response) => { |
|
|
|
this.form.googleCaptcha = response.data.googleCaptcha |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 商户测试状态有效无效 |
|
|
|
changeStoreTestStatus(row) { |
|
|
|
console.log("商户信息:" + JSON.stringify(row)); |
|
|
|
var data = {id: row.storeId, testStatus: row.testStatus, storeName: row.storeName} |
|
|
|
payAgentUser.updateStore(data).then((res) => { |
|
|
|
if (res.code === 200) { |
|
|
|
var msg = '【' + data.storeName + '】' + (row.testStatus === 'open' ? '已开启测试模式' : '测试模式已关闭'); |
|
|
|
this.$message.success(msg); |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
renderTestStatusHeader(h, { column }) { |
|
|
|
return h('span', [ |
|
|
|
column.label, |
|
|
|
h('i', { |
|
|
|
class: 'el-icon-question', |
|
|
|
style: 'color: #409EFF; margin-left: 5px;', |
|
|
|
on: { |
|
|
|
click: this.handleTooltip |
|
|
|
} |
|
|
|
}) |
|
|
|
]); |
|
|
|
}, |
|
|
|
handleTooltip() { |
|
|
|
this.$message({ message: '测试状态为开启时,创建的代付和代收订单,将不会推送三方系统!', type: 'info' }); |
|
|
|
}, |
|
|
|
/** 查询列表 */ |
|
|
|
getList() { |
|
|
@ -977,4 +1018,7 @@ export default { |
|
|
|
.el-radio { |
|
|
|
line-height: 2; |
|
|
|
} |
|
|
|
.el-form-item { |
|
|
|
margin-bottom: 10px; |
|
|
|
} |
|
|
|
</style> |