parent
48ffd39831
commit
e68fedfa2a
|
|
@ -54,7 +54,7 @@
|
|||
<!-- </el-form-item>-->
|
||||
<!--</el-col>-->
|
||||
<!-- 地区选择,仅需要的显示 类型:1=总部发起人,2=省发起人,3=省公司外勤,4=省公司内勤,5=区县运营商,6=区县合伙人,7=餐厅,8=配送商 && info.is_headquarters == 0-->
|
||||
<el-col :span="24" v-if="['2','3','4','5','6','7'].includes(String(info.agent_type))">
|
||||
<el-col :span="24" v-if="['5','6','7'].includes(String(info.agent_type))">
|
||||
<el-form-item label="地区:">
|
||||
<div class="selected-city">
|
||||
<!--省选择-->
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- 地区选择,仅需要的显示 类型:1=总部发起人,2=省发起人,3=省公司外勤,4=省公司内勤,5=区县运营商,6=区县合伙人,7=餐厅,8=配送商 && children_list[index].is_headquarters == 0-->
|
||||
<el-col :span="24" v-if="['2','3','4','5','6','7'].includes(String(children_list[index].agent_type))">
|
||||
<el-col :span="24" v-if="['5','6','7'].includes(String(children_list[index].agent_type))">
|
||||
<el-form-item label="地区:">
|
||||
<div class="selected-city">
|
||||
<!--省选择-->
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="mainContent">
|
||||
<el-select @change="changeMer" :value="mer_id ? mer_id : '' " :multiple="is_multiple" filterable remote reserve-keyword placeholder="请输入关键词搜索商户" :remote-method="searchMer" :loading="loading">
|
||||
<el-select class="select-merchant" @change="changeMer" :value="mer_id ? mer_id : '' " :multiple="is_multiple" filterable remote reserve-keyword placeholder="请输入关键词搜索商户" :remote-method="searchMer" :loading="loading">
|
||||
<el-option v-for="(item,index) in list" :key="index" :label="item.mer_name" :value="item.mer_id"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
|
|
@ -96,5 +96,7 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.select-merchant{
|
||||
width: 100% !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -458,6 +458,71 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="邀请限制" name="invite_limit">
|
||||
<!--类型:1=总部发起人,2=省公司发起人,3=省合伙人(外勤),4=省合伙人(内勤),5=区县运营商,6=区县合伙人,7=餐厅,8=配送商,9=总部外勤,10=总部内勤-->
|
||||
<div class="invite-limit">
|
||||
<!-- 总部发起人 -->
|
||||
<el-form-item>
|
||||
<span slot="label">总部发起人:</span>
|
||||
<el-input v-model="invite_limit.invite_1_9" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【总部外勤】</template>
|
||||
</el-input>
|
||||
<el-input v-model="invite_limit.invite_1_10" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【总部内勤】</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<!-- 总部外勤 -->
|
||||
<el-form-item>
|
||||
<span slot="label">总部外勤:</span>
|
||||
<el-input v-model="invite_limit.invite_9_2" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【省公司发起人】</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<!--省公司发起人-->
|
||||
<el-form-item>
|
||||
<span slot="label">省公司发起人:</span>
|
||||
<el-input v-model="invite_limit.invite_2_3" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【省公司外勤】</template>
|
||||
</el-input>
|
||||
<el-input v-model="invite_limit.invite_2_4" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【省公司内勤】</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<!--省公司外勤-->
|
||||
<el-form-item>
|
||||
<span slot="label">省公司外勤:</span>
|
||||
<el-input v-model="invite_limit.invite_3_5" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【区县运营商】</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<!--区县运营商-->
|
||||
<el-form-item>
|
||||
<span slot="label">区县运营商:</span>
|
||||
<el-input v-model="invite_limit.invite_5_6" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【区县合伙人】</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<!--区县合伙人-->
|
||||
<el-form-item>
|
||||
<span slot="label">区县合伙人:</span>
|
||||
<el-input v-model="invite_limit.invite_6_7" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【餐厅】</template>
|
||||
</el-input>
|
||||
<el-input v-model="invite_limit.invite_6_8" :min="0" type="number" class="selWidth">
|
||||
<template slot="prepend">最多可邀请</template>
|
||||
<template slot="append">位【配送商】</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<!-- 提交按钮 -->
|
||||
<el-form-item>
|
||||
|
|
@ -500,7 +565,6 @@ export default {
|
|||
partner_money_field_personnel: 0.00,
|
||||
mer_money_field_personnel: 0.00,
|
||||
delivery_money_field_personnel: 0.00,
|
||||
|
||||
field_personnel_money: 0,
|
||||
field_personnel_process: 0,
|
||||
field_personnel_money_platform: 0,
|
||||
|
|
@ -510,6 +574,7 @@ export default {
|
|||
external_personnel_money_platform: 0,
|
||||
external_personnel_money_initiator: 0,
|
||||
},
|
||||
invite_limit: {},// 邀请人数限制
|
||||
// 加载及验证
|
||||
rules: {
|
||||
province_money: [{ required: true, message: '请输入成为省发起人费用', trigger: 'change'}],
|
||||
|
|
@ -531,8 +596,13 @@ export default {
|
|||
// 提交配置信息
|
||||
setConfig(){
|
||||
let _this = this;
|
||||
setAgentConfig(_this.config).then((res) => {
|
||||
// 信息处理
|
||||
let config = Object.assign({}, _this.config);
|
||||
config.invite_limit = Object.assign({}, _this.invite_limit) || {};
|
||||
// 提交配置信息
|
||||
setAgentConfig(config).then((res) => {
|
||||
_this.$message.success(res.message);
|
||||
_this.getConfig();
|
||||
}).catch((res) => {
|
||||
_this.$message.error(res.message);
|
||||
});
|
||||
|
|
@ -542,6 +612,7 @@ export default {
|
|||
let _this = this;
|
||||
getAgentConfig().then((res) => {
|
||||
_this.config = res.data || {};
|
||||
_this.invite_limit = Object.assign({}, res.data.invite_limit) || {};
|
||||
}).catch((res) => {
|
||||
_this.$message.error(res.message);
|
||||
});
|
||||
|
|
@ -554,6 +625,13 @@ export default {
|
|||
.selWidth{
|
||||
margin-bottom: 10px!important;
|
||||
}
|
||||
|
||||
.invite-limit{
|
||||
.el-form-item{
|
||||
margin-bottom: 0!important;
|
||||
}
|
||||
.selWidth{
|
||||
width: 350px!important;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue