修改充值文字。增减余额
This commit is contained in:
@@ -97,14 +97,6 @@
|
|||||||
<el-dropdown-item>增减余额</el-dropdown-item>
|
<el-dropdown-item>增减余额</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
<!-- <el-button type="text" @click="editPop(scope.row)">增减余额</el-button> -->
|
|
||||||
<!-- <el-button type="text" @click="">历史订单</el-button>
|
|
||||||
<el-button type="text" @click="">充值记录</el-button> -->
|
|
||||||
|
|
||||||
<!-- <el-popconfirm title="确定删除吗?" @confirm="delTableHandle([scope.row.id])">
|
|
||||||
<el-button type="text" icon="el-icon-delete" style="margin-left: 20px !important;"
|
|
||||||
slot="reference">删除</el-button>
|
|
||||||
</el-popconfirm> -->
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -162,13 +154,13 @@
|
|||||||
<el-radio label="out">扣除</el-radio>
|
<el-radio label="out">扣除</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="余额">
|
<el-form-item label="金额">
|
||||||
<el-input v-model="userinfo.amount" @input="amountNum" style="width: 200px;"></el-input>
|
<el-input v-model="userinfo.amount" @input="amountNum" style="width: 200px;"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="类型">
|
<el-form-item label="类型">
|
||||||
<el-radio-group v-model="userinfo.type">
|
<el-radio-group v-model="userinfo.type">
|
||||||
<el-radio label="consume">消费</el-radio>
|
<el-radio label="consume">充值</el-radio>
|
||||||
<el-radio label="inMoney ">充值退款</el-radio>
|
<el-radio label="inMoney ">消费退款</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -208,7 +200,8 @@ export default {
|
|||||||
userinfo: {
|
userinfo: {
|
||||||
nickName: '',
|
nickName: '',
|
||||||
operationType: 'in',
|
operationType: 'in',
|
||||||
type: 'consume'
|
type: 'consume',
|
||||||
|
amount: ''
|
||||||
},
|
},
|
||||||
userinfos: {
|
userinfos: {
|
||||||
levelConsume: "0",
|
levelConsume: "0",
|
||||||
@@ -232,9 +225,9 @@ export default {
|
|||||||
checkIfNum() {
|
checkIfNum() {
|
||||||
this.userinfos.telephone = this.userinfos.telephone.toString().replace(/\D/g, '');
|
this.userinfos.telephone = this.userinfos.telephone.toString().replace(/\D/g, '');
|
||||||
},
|
},
|
||||||
amountNum(){
|
amountNum() {
|
||||||
this.userinfo.amount = this.userinfo.amount.toString().replace(/[^\d|\.]/g, '')
|
this.userinfo.amount = this.userinfo.amount.toString().replace(/[^\d|\.]/g, '')
|
||||||
|
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
@@ -261,6 +254,7 @@ export default {
|
|||||||
this.userinfo.nickName = d.nickName
|
this.userinfo.nickName = d.nickName
|
||||||
this.userinfo.amounts = d.amount
|
this.userinfo.amounts = d.amount
|
||||||
this.userinfo.id = d.id
|
this.userinfo.id = d.id
|
||||||
|
this.userinfo.amount = ""
|
||||||
},
|
},
|
||||||
edituser(d) {
|
edituser(d) {
|
||||||
let obj = { ...d }
|
let obj = { ...d }
|
||||||
|
|||||||
Reference in New Issue
Block a user