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