资金转移

This commit is contained in:
“wanyongkang”
2021-03-17 18:32:20 +08:00
parent 708a417cb8
commit f11a5a518e
2 changed files with 71 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
<div v-loading="loading">
<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">
<el-input v-model="searchModel.keyWord" placeholder="请输入会员号/名称" clearable size="small">
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
@@ -150,6 +151,24 @@
</span>
</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-table
:data="detailAmountData"
@@ -178,6 +197,7 @@ export default {
showDialog: false,
showTestDialog: false,
showDetailDialog: false,
showMoneyDialog:false,
optype: 1, //1:添加 2编辑
userModel: {
LoginCode: "",
@@ -209,6 +229,11 @@ export default {
amountRules: {
// amount: [{ type: 'number', message: '金额必须为数字值'}],
},
moneyChaneg: {
luser:'',
ruser:'',
money:''
},
detailAmountData: [],
formatterCreateType(row, column, cellValue, index) {
switch (cellValue) {
@@ -315,6 +340,16 @@ export default {
this.testLimitModel.UserId = item.Id;
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() {
this.$api
.post(this.$api.phpURL + "user/user/testCount", this.testLimitModel)