|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="tran-detail">
|
|
|
<inputBlock
|
|
|
inlineBlock
|
|
|
- v-model.trim="realName"
|
|
|
+ v-model.trim="searchRealName"
|
|
|
prefix="姓名:"
|
|
|
></inputBlock>
|
|
|
<inputBlock
|
|
|
@@ -11,6 +11,7 @@
|
|
|
prefix="手机号:"
|
|
|
></inputBlock>
|
|
|
<Button type="primary" class="margin-right20" @click="search">查询</Button>
|
|
|
+ <Button type="primary" class="margin-right20" @click="addAccount">添加新用户</Button>
|
|
|
<Table
|
|
|
border
|
|
|
:columns="tableTitle"
|
|
|
@@ -19,41 +20,45 @@
|
|
|
:loading="loading"
|
|
|
>
|
|
|
<template slot-scope="{ row }" slot="do" >
|
|
|
- <el-button size="small" class="marginrb" type="success" @click="shareholderOpen(row)">股东转账开启</el-button>
|
|
|
- <el-button v-if="row.isTreasurer===1" class="marginrb" style="margin-left: 0" size="small" type="warning" @click="financeRechargeShow(row)">财务账号充值</el-button>
|
|
|
+<!-- <el-button size="small" class="marginrb" type="success" @click="shareholderOpen(row)">股东转账开启</el-button>-->
|
|
|
+ <el-button v-if="row.isTreasurer===1" class="marginrb" size="small" type="warning" @click="financeRechargeShow(row)">财务账号充值</el-button>
|
|
|
<el-popconfirm v-if="row.isTreasurer===0"
|
|
|
title="确定设置该账号为财务账号吗?"
|
|
|
@confirm="setFinance(row)"
|
|
|
>
|
|
|
<el-button class="marginrb" slot="reference" size="small" type="primary">财务账号设置</el-button>
|
|
|
</el-popconfirm>
|
|
|
- <el-popconfirm v-if="row.withdrawalDisable===0"
|
|
|
- title="确定禁止该用户提现吗?"
|
|
|
- @confirm="setRole(row,2,1)"
|
|
|
- >
|
|
|
- <el-button class="marginrb" slot="reference" size="small" type="danger" style="margin-top: 6px">提现禁用</el-button>
|
|
|
- </el-popconfirm>
|
|
|
- <el-popconfirm v-if="row.withdrawalDisable===1"
|
|
|
- title="确定启用该用户提现吗?"
|
|
|
- @confirm="setRole(row,2,0)"
|
|
|
- >
|
|
|
- <el-button class="marginrb" slot="reference" size="small" type="success" style="margin-top: 6px" >提现启用</el-button>
|
|
|
- </el-popconfirm>
|
|
|
- <el-popconfirm v-if="row.transferDisable===0"
|
|
|
- title="确定禁止该用户转账吗?"
|
|
|
- @confirm="setRole(row,1,1)"
|
|
|
- >
|
|
|
- <el-button class="marginrb" slot="reference" size="small" type="danger" style="margin-top: 6px">转账禁用</el-button>
|
|
|
- </el-popconfirm>
|
|
|
- <el-popconfirm v-if="row.transferDisable===1"
|
|
|
- title="确定启用该用户转账吗?"
|
|
|
- @confirm="setRole(row,1,0)"
|
|
|
- >
|
|
|
- <el-button class="marginrb" slot="reference" size="small" type="success" style="margin-top: 6px" >转账启用</el-button>
|
|
|
- </el-popconfirm>
|
|
|
- <el-button class="marginrb" type="primary" size="small" style="margin-top: 6px" @click="dataEditing(row)">资料编辑</el-button>
|
|
|
- <el-button class="marginrb" style="margin-left: 0;margin-top: 6px" size="small" type="warning" @click="limitShow(row,1)">提现每日限额</el-button>
|
|
|
- <el-button class="marginrb" style="margin-left: 0;margin-top: 6px" size="small" type="warning" @click="limitShow(row,2)">转账每日限额</el-button>
|
|
|
+
|
|
|
+<!-- <el-popconfirm v-if="row.withdrawalDisable===0"-->
|
|
|
+<!-- title="确定禁止该用户提现吗?"-->
|
|
|
+<!-- @confirm="setRole(row,2,1)"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <el-button class="marginrb" slot="reference" size="small" type="danger" style="margin-top: 6px">提现禁用</el-button>-->
|
|
|
+<!-- </el-popconfirm>-->
|
|
|
+<!-- <el-popconfirm v-if="row.withdrawalDisable===1"-->
|
|
|
+<!-- title="确定启用该用户提现吗?"-->
|
|
|
+<!-- @confirm="setRole(row,2,0)"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <el-button class="marginrb" slot="reference" size="small" type="success" style="margin-top: 6px" >提现启用</el-button>-->
|
|
|
+<!-- </el-popconfirm>-->
|
|
|
+<!-- <el-popconfirm v-if="row.transferDisable===0"-->
|
|
|
+<!-- title="确定禁止该用户转账吗?"-->
|
|
|
+<!-- @confirm="setRole(row,1,1)"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <el-button class="marginrb" slot="reference" size="small" type="danger" style="margin-top: 6px">转账禁用</el-button>-->
|
|
|
+<!-- </el-popconfirm>-->
|
|
|
+<!-- <el-popconfirm v-if="row.transferDisable===1"-->
|
|
|
+<!-- title="确定启用该用户转账吗?"-->
|
|
|
+<!-- @confirm="setRole(row,1,0)"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <el-button class="marginrb" slot="reference" size="small" type="success" style="margin-top: 6px" >转账启用</el-button>-->
|
|
|
+<!-- </el-popconfirm>-->
|
|
|
+ <el-button class="marginrb" type="primary" size="small" style="margin-left: 0" @click="dataEditing(row)">资料编辑</el-button>
|
|
|
+ <br>
|
|
|
+ <el-button class="marginrb" size="small" type="success" @click="financeShow(row,0)">人工充值</el-button>
|
|
|
+ <el-button class="marginrb" size="small" type="danger" style="margin-top: 6px;margin-left: 0" @click="financeShow(row,1)">人工提现</el-button>
|
|
|
+<!-- <el-button class="marginrb" style="margin-left: 0;margin-top: 6px" size="small" type="warning" @click="limitShow(row,1)">提现每日限额</el-button>-->
|
|
|
+<!-- <el-button class="marginrb" style="margin-left: 0;margin-top: 6px" size="small" type="warning" @click="limitShow(row,2)">转账每日限额</el-button>-->
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="sumAmount" >
|
|
|
<div>{{ parseFloat(row.agileAmount+row.auctionAmount+row.shareholderAmount).toFixed(2) }}</div>
|
|
|
@@ -262,6 +267,67 @@
|
|
|
<el-button type="primary" @click="setLimitAction()">提交</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ width="25%"
|
|
|
+ title="添加新用户"
|
|
|
+ :show-close="true"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :visible.sync="addAccountShow"
|
|
|
+ append-to-body
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.3)"
|
|
|
+ >
|
|
|
+ <div class="margin-left20 margin-top15">
|
|
|
+ <el-form
|
|
|
+ ref="addAccountForm"
|
|
|
+ label-width="90px"
|
|
|
+ >
|
|
|
+ <el-form-item label="用户账号:" prop="account">
|
|
|
+ <el-input v-model="account"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="真实姓名:" prop="realName">
|
|
|
+ <el-input v-model="realName"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="身份证号:" prop="idNumber">
|
|
|
+ <el-input v-model="idNumber"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="addAccountShow = false">取消</el-button>
|
|
|
+ <el-button type="primary" @click="addAccountSubmit()">提交</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ width="22%"
|
|
|
+ :title="financeTitle"
|
|
|
+ :show-close="true"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :visible.sync="financeShowModal"
|
|
|
+ append-to-body
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.3)"
|
|
|
+ >
|
|
|
+ <div class="margin-left20 margin-top15">
|
|
|
+ <el-form
|
|
|
+ ref="passForm"
|
|
|
+ label-width="100px"
|
|
|
+ >
|
|
|
+ <el-form-item label="金额:" prop="amount">
|
|
|
+ <el-input type="number" style="width: 180px" v-model="amount"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="财务凭证:" prop="certificate">
|
|
|
+ <!-- 图片上传 -->
|
|
|
+ <uploadPic :imgList="certificateImages" prefixMinWidht='10px' :maxPic="1" @fileData="imageData"></uploadPic>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="financeShowModal = false">取消</el-button>
|
|
|
+ <el-button type="primary" @click="submitFinance()">提交</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -269,6 +335,7 @@ import inputBlock from '_c/base/input/input-block'
|
|
|
import selectBlock from '_c/base/input/select-block'
|
|
|
import TableMinxin from '@/mixin/TableMixin'
|
|
|
import {Pass} from "codemirror/src/util/misc";
|
|
|
+import uploadPic from '_c/upload-pic/index'
|
|
|
import {
|
|
|
accountLimit,
|
|
|
accountList,
|
|
|
@@ -279,7 +346,7 @@ import {
|
|
|
shareholderOpen,
|
|
|
updatePromotion,
|
|
|
accountInfo,
|
|
|
- updateAccountInfo, proxyTypeEnum
|
|
|
+ updateAccountInfo, proxyTypeEnum, addAccountMethod, manualRecharge, manualWithdrawal
|
|
|
} from "@/api/account";
|
|
|
export default {
|
|
|
name: 'rechargeExamine',
|
|
|
@@ -290,13 +357,15 @@ export default {
|
|
|
},
|
|
|
components:{
|
|
|
inputBlock,
|
|
|
- selectBlock
|
|
|
+ selectBlock,
|
|
|
+ uploadPic
|
|
|
},
|
|
|
mixins: [TableMinxin],
|
|
|
data () {
|
|
|
return {
|
|
|
phone: '', // 充值手机号
|
|
|
realName: '', // 姓名
|
|
|
+ searchRealName: '', // 搜索姓名
|
|
|
phones: '', // 充值手机号
|
|
|
realNames: '', // 姓名
|
|
|
total: 0,
|
|
|
@@ -305,11 +374,18 @@ export default {
|
|
|
totalAmount:0,
|
|
|
setProxyShowModal:false,
|
|
|
configShowModal:false,
|
|
|
+ financeShowModal:false,
|
|
|
rechargeShowModal:false,
|
|
|
limitShowModal:false,
|
|
|
shareholderShowModal:false,
|
|
|
dataEditingdio:false,
|
|
|
+ addAccountShow:false,
|
|
|
+ certificateImages:[],
|
|
|
+ certificate:'',
|
|
|
currentRow:{},
|
|
|
+ account:'',
|
|
|
+ financeTitle:'人工充值',
|
|
|
+ idNumber:'',
|
|
|
tableContent:[],
|
|
|
proxyId:'',
|
|
|
amount:'',
|
|
|
@@ -347,7 +423,7 @@ export default {
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
- title: '购物宝账户',
|
|
|
+ title: '定租账户',
|
|
|
key: 'agileAmount',
|
|
|
align: 'center'
|
|
|
},
|
|
|
@@ -424,7 +500,7 @@ export default {
|
|
|
this.loading = false
|
|
|
let data = {
|
|
|
account: this.phone, // 账户手机号
|
|
|
- realName: this.realName // 姓名
|
|
|
+ realName: this.searchRealName // 姓名
|
|
|
}
|
|
|
let params = {
|
|
|
data:data,
|
|
|
@@ -451,6 +527,53 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ imageData(data){
|
|
|
+ this.certificate=data[0].ossUrl
|
|
|
+ },
|
|
|
+ financeShow(row,isRecharge){
|
|
|
+ this.currentRow = this.v_deepClone(row);
|
|
|
+ if(isRecharge===1){
|
|
|
+ this.financeTitle = '人工提现'
|
|
|
+ }else {
|
|
|
+ this.financeTitle = '人工充值'
|
|
|
+ }
|
|
|
+ this.certificateImages=[]
|
|
|
+ this.amount=''
|
|
|
+ this.financeShowModal=true
|
|
|
+ },
|
|
|
+ submitFinance(){
|
|
|
+ let params = {
|
|
|
+ data:{
|
|
|
+ accountId: this.currentRow.id,
|
|
|
+ amount: this.amount,
|
|
|
+ certificate: this.certificate
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.financeTitle === '人工充值'){
|
|
|
+ //调用充值接口
|
|
|
+ manualRecharge(params).then(res => {
|
|
|
+ if (res.rspCode === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '操作成功'
|
|
|
+ })
|
|
|
+ this.getTableData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ //调用提现接口
|
|
|
+ manualWithdrawal(params).then(res => {
|
|
|
+ if (res.rspCode === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '设置成功'
|
|
|
+ })
|
|
|
+ this.getTableData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.financeShowModal=false
|
|
|
+ },
|
|
|
setLimitAction(){
|
|
|
let data={}
|
|
|
if(this.isTransfer===1){
|
|
|
@@ -481,6 +604,25 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ addAccountSubmit(){
|
|
|
+ let params = {
|
|
|
+ data:{
|
|
|
+ account: this.account,
|
|
|
+ idNumber: this.idNumber,
|
|
|
+ realName: this.realName
|
|
|
+ }
|
|
|
+ }
|
|
|
+ addAccountMethod(params).then(res => {
|
|
|
+ if (res.rspCode === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '操作成功'
|
|
|
+ })
|
|
|
+ this.addAccountShow=false
|
|
|
+ this.getTableData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
proxyConfig(row){
|
|
|
this.currentRow = this.v_deepClone(row);
|
|
|
this.configShowModal=true;
|
|
|
@@ -652,6 +794,13 @@ export default {
|
|
|
this.bankReqList = res.data.bankList || []
|
|
|
})
|
|
|
},
|
|
|
+ //添加新用户
|
|
|
+ addAccount(){
|
|
|
+ this.account='';
|
|
|
+ this.idNumber='';
|
|
|
+ this.realName='';
|
|
|
+ this.addAccountShow = true;
|
|
|
+ },
|
|
|
// 确定修改
|
|
|
editCard(){
|
|
|
let params = {
|