Browse Source

’码商列表编辑字段添加’

master
j1ack 2 years ago
parent
commit
a154c5e400
  1. 17
      src/views/carddealer/carddealer/index.vue

17
src/views/carddealer/carddealer/index.vue

@ -47,13 +47,11 @@
<el-row :gutter="10" class="mb8" style="margin-left:8px"> <el-row :gutter="10" class="mb8" style="margin-left:8px">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="" size="medium" @click="handleAdd()" <el-button type="primary" plain icon="" size="medium" @click="handleAdd()"
v-hasPermi="['carddealer:carddealer:add']" v-hasPermi="['carddealer:carddealer:add']">添加码商</el-button>
>添加码商</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="" size="medium" @click="handleExport()" <el-button type="primary" plain icon="" size="medium" @click="handleExport()"
v-hasPermi="['carddealer:carddealer:export']" v-hasPermi="['carddealer:carddealer:export']">导出</el-button>
>导出</el-button>
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row :gutter="10" class="mb8"> <!-- <el-row :gutter="10" class="mb8">
@ -197,6 +195,10 @@
<el-input v-model="form.limitReceive" placeholder="请输入最大收款限额" style="width:300px" @input="change" /> <el-input v-model="form.limitReceive" placeholder="请输入最大收款限额" style="width:300px" @input="change" />
</el-form-item> </el-form-item>
<el-form-item label="收款额度" prop="">
<el-input v-model="form.collectionLimit" placeholder="请输入收款额度" style="width:300px" @input="change" />
</el-form-item>
<el-form-item label="上级" prop="superiorId"> <el-form-item label="上级" prop="superiorId">
<el-select v-model="form.superiorId" placeholder="请选择上级" clearable size="medium"> <el-select v-model="form.superiorId" placeholder="请选择上级" clearable size="medium">
<el-option v-for="(item, i) in allList" :key="i" :label="item.username" :value="item.id"></el-option> <el-option v-for="(item, i) in allList" :key="i" :label="item.username" :value="item.id"></el-option>
@ -880,6 +882,7 @@ export default {
payCard.getInfo(id).then(response => { payCard.getInfo(id).then(response => {
this.form = response.data; this.form = response.data;
this.form.limitReceive = this.NumberDiv(this.form.limitReceive, 100) this.form.limitReceive = this.NumberDiv(this.form.limitReceive, 100)
this.form.collectionLimit ? this.form.collectionLimit = this.NumberDiv(this.form.collectionLimit, 100) : this.form.collectionLimit = null
this.usernameShow = true this.usernameShow = true
this.open = true; this.open = true;
this.title = "修改码商"; this.title = "修改码商";
@ -998,7 +1001,9 @@ export default {
} }
} else if (type == "form") { } else if (type == "form") {
let limitReceive; let limitReceive;
let collectionLimit;
this.form.limitReceive ? limitReceive = this.NumberMul(this.form.limitReceive, 100) : limitReceive = null this.form.limitReceive ? limitReceive = this.NumberMul(this.form.limitReceive, 100) : limitReceive = null
this.form.collectionLimit ? collectionLimit = this.NumberMul(this.form.collectionLimit, 100) : collectionLimit = null
if (this.form.id != null) { if (this.form.id != null) {
payCard.updateInfo({ payCard.updateInfo({
limitReceive: limitReceive, limitReceive: limitReceive,
@ -1009,7 +1014,8 @@ export default {
superiorId: this.form.superiorId, superiorId: this.form.superiorId,
remark: this.form.remark, remark: this.form.remark,
password: this.form.password, password: this.form.password,
id: this.form.id id: this.form.id,
collectionLimit: collectionLimit
}).then((response) => { }).then((response) => {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
this.open = false; this.open = false;
@ -1025,6 +1031,7 @@ export default {
superiorId: this.form.superiorId, superiorId: this.form.superiorId,
remark: this.form.remark, remark: this.form.remark,
password: this.form.password, password: this.form.password,
collectionLimit: collectionLimit
}).then((response) => { }).then((response) => {
this.msgSuccess("新增成功"); this.msgSuccess("新增成功");
this.open = false; this.open = false;

Loading…
Cancel
Save