资金转移
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<div class="heior_box">
|
<div class="heior_box">
|
||||||
<el-button size="small" type="primary" icon="el-icon-plus" @click="add">添加会员</el-button>
|
<el-button size="small" type="primary" icon="el-icon-plus" @click="add">添加会员</el-button>
|
||||||
|
<el-button size="small" type="primary" icon="el-icon-plus" @click="showUpdateMoney">资金转移</el-button>
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
<el-input v-model="searchModel.keyWord" placeholder="请输入会员号/名称" clearable size="small">
|
<el-input v-model="searchModel.keyWord" placeholder="请输入会员号/名称" clearable size="small">
|
||||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||||
@@ -150,6 +151,24 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<el-dialog title="资金转移" :visible.sync="showMoneyDialog" width="369px">
|
||||||
|
<el-form label-width="100px">
|
||||||
|
<el-form-item prop="luser" label="被转移会员">
|
||||||
|
<el-input v-model="moneyChaneg.luser" size="small" type="number"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="ruser" label="转移对象">
|
||||||
|
<el-input v-model="moneyChaneg.ruser" size="small" type="number"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="money" label="转移金额">
|
||||||
|
<el-input v-model="moneyChaneg.money" size="small" type="number"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="showMoneyDialog = false">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="updateMoney()">确定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog title="资金明细" :visible.sync="showDetailDialog" width="500px">
|
<el-dialog title="资金明细" :visible.sync="showDetailDialog" width="500px">
|
||||||
<el-table
|
<el-table
|
||||||
:data="detailAmountData"
|
:data="detailAmountData"
|
||||||
@@ -178,6 +197,7 @@ export default {
|
|||||||
showDialog: false,
|
showDialog: false,
|
||||||
showTestDialog: false,
|
showTestDialog: false,
|
||||||
showDetailDialog: false,
|
showDetailDialog: false,
|
||||||
|
showMoneyDialog:false,
|
||||||
optype: 1, //1:添加 2:编辑
|
optype: 1, //1:添加 2:编辑
|
||||||
userModel: {
|
userModel: {
|
||||||
LoginCode: "",
|
LoginCode: "",
|
||||||
@@ -209,6 +229,11 @@ export default {
|
|||||||
amountRules: {
|
amountRules: {
|
||||||
// amount: [{ type: 'number', message: '金额必须为数字值'}],
|
// amount: [{ type: 'number', message: '金额必须为数字值'}],
|
||||||
},
|
},
|
||||||
|
moneyChaneg: {
|
||||||
|
luser:'',
|
||||||
|
ruser:'',
|
||||||
|
money:''
|
||||||
|
},
|
||||||
detailAmountData: [],
|
detailAmountData: [],
|
||||||
formatterCreateType(row, column, cellValue, index) {
|
formatterCreateType(row, column, cellValue, index) {
|
||||||
switch (cellValue) {
|
switch (cellValue) {
|
||||||
@@ -315,6 +340,16 @@ export default {
|
|||||||
this.testLimitModel.UserId = item.Id;
|
this.testLimitModel.UserId = item.Id;
|
||||||
this.testLimitModel.limit = item.TestCountLimit;
|
this.testLimitModel.limit = item.TestCountLimit;
|
||||||
},
|
},
|
||||||
|
showUpdateMoney(){
|
||||||
|
this.showMoneyDialog = true;
|
||||||
|
},
|
||||||
|
updateMoney(){
|
||||||
|
this.$api
|
||||||
|
.post(this.$api.phpURL + "user/user/moneyChange", this.moneyChaneg)
|
||||||
|
.then(res => {
|
||||||
|
this.showMoneyDialog = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
updateTestLimit() {
|
updateTestLimit() {
|
||||||
this.$api
|
this.$api
|
||||||
.post(this.$api.phpURL + "user/user/testCount", this.testLimitModel)
|
.post(this.$api.phpURL + "user/user/testCount", this.testLimitModel)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<div class="heior_box">
|
<div class="heior_box">
|
||||||
<el-button size="small" type="primary" icon="el-icon-plus" @click="add">添加会员</el-button>
|
<el-button size="small" type="primary" icon="el-icon-plus" @click="showUpdateMoney">资金转移</el-button>
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
<el-input v-model="searchModel.keyWord" placeholder="请输入会员号/名称" clearable size="small">
|
<el-input v-model="searchModel.keyWord" placeholder="请输入会员号/名称" clearable size="small">
|
||||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||||
@@ -137,6 +137,25 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
<el-dialog title="资金转移" :visible.sync="showMoneyDialog" width="369px">
|
||||||
|
<el-form label-width="100px">
|
||||||
|
<el-form-item prop="luser" label="被转移会员">
|
||||||
|
<el-input v-model="moneyChaneg.luser" size="small" type="number"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="ruser" label="转移对象">
|
||||||
|
<el-input v-model="moneyChaneg.ruser" size="small" type="number"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="money" label="转移金额">
|
||||||
|
<el-input v-model="moneyChaneg.money" size="small" type="number"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="showMoneyDialog = false">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="updateMoney()">确定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog title="资金明细" :visible.sync="showDetailDialog" width="500px">
|
<el-dialog title="资金明细" :visible.sync="showDetailDialog" width="500px">
|
||||||
<el-table
|
<el-table
|
||||||
:data="detailAmountData"
|
:data="detailAmountData"
|
||||||
@@ -164,6 +183,7 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
showDialog: false,
|
showDialog: false,
|
||||||
showTestDialog: false,
|
showTestDialog: false,
|
||||||
|
showMoneyDialog:false,
|
||||||
showDetailDialog: false,
|
showDetailDialog: false,
|
||||||
optype: 1, //1:添加 2:编辑
|
optype: 1, //1:添加 2:编辑
|
||||||
userModel: {
|
userModel: {
|
||||||
@@ -178,6 +198,11 @@ export default {
|
|||||||
opAmountType: 1, ////1:充值 2:扣款
|
opAmountType: 1, ////1:充值 2:扣款
|
||||||
showAmountDialog: false
|
showAmountDialog: false
|
||||||
},
|
},
|
||||||
|
moneyChaneg: {
|
||||||
|
luser:'',
|
||||||
|
ruser:'',
|
||||||
|
money:''
|
||||||
|
},
|
||||||
testLimitModel: {
|
testLimitModel: {
|
||||||
userId: 0,
|
userId: 0,
|
||||||
limit: 3
|
limit: 3
|
||||||
@@ -230,6 +255,16 @@ export default {
|
|||||||
this.retData = res;
|
this.retData = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
showUpdateMoney(){
|
||||||
|
this.showMoneyDialog = true;
|
||||||
|
},
|
||||||
|
updateMoney(){
|
||||||
|
this.$api
|
||||||
|
.post(this.$api.phpURL + "user/user/moneyChange", this.moneyChaneg)
|
||||||
|
.then(res => {
|
||||||
|
this.showMoneyDialog = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
del(item) {
|
del(item) {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.$confirm("确定删除?", "", {
|
this.$confirm("确定删除?", "", {
|
||||||
|
|||||||
Reference in New Issue
Block a user