|
|
@ -27,7 +27,7 @@
|
|
|
|
<el-input v-model="form.bankCardNo"></el-input>
|
|
|
|
<el-input v-model="form.bankCardNo"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="充值金额">
|
|
|
|
<el-form-item label="充值金额">
|
|
|
|
<el-input-number v-model="form.amount" :min="1" :max="3000" label="充值金额" :readonly="amountReadonly"></el-input-number>
|
|
|
|
<el-input-number v-model="form.amount" :min="1" :max="3000" label="充值金额" :disabled="amountDisabled"></el-input-number>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="备注">
|
|
|
|
<el-form-item label="备注">
|
|
|
|
<el-input type="textarea" v-model="form.remark"></el-input>
|
|
|
|
<el-input type="textarea" v-model="form.remark"></el-input>
|
|
|
@ -99,7 +99,7 @@
|
|
|
|
amount: 1,
|
|
|
|
amount: 1,
|
|
|
|
remark: ''
|
|
|
|
remark: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
amountReadonly: false
|
|
|
|
amountDisabled: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -200,15 +200,19 @@
|
|
|
|
if (result.code != 1000) {
|
|
|
|
if (result.code != 1000) {
|
|
|
|
return this.$message.error(response.data.message);
|
|
|
|
return this.$message.error(response.data.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (result.user != null) {
|
|
|
|
|
|
|
|
this.form.name = result.user.name;
|
|
|
|
let data = result.data;
|
|
|
|
this.form.cardNo = result.user.cardNo;
|
|
|
|
if (data.user != null) {
|
|
|
|
this.form.mobile = result.user.mobile;
|
|
|
|
this.form.name = data.user.name;
|
|
|
|
this.form.bankCardNo = result.user.bankCardNo;
|
|
|
|
this.form.cardNo = data.user.cardNo;
|
|
|
|
if (result.user.amount > 0) {
|
|
|
|
this.form.mobile = data.user.mobile;
|
|
|
|
this.form.amount = result.user.amount;
|
|
|
|
this.form.bankCardNo = data.user.bankCardNo;
|
|
|
|
this.amountReadonly = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
if (data.amount > 0) {
|
|
|
|
|
|
|
|
this.form.amount = data.amount;
|
|
|
|
|
|
|
|
this.amountDisabled = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((error) => {
|
|
|
|
.catch((error) => {
|
|
|
|