|
|
|
@ -11,36 +11,36 @@ |
|
|
|
|
> |
|
|
|
|
<a-tabs :activeKey="tabKey" :tabBarStyle="{ marginBottom: '30px' }" @change="handleTabs"> |
|
|
|
|
<a-tab-pane :key="0" tab="基础设置"></a-tab-pane> |
|
|
|
|
<a-tab-pane :key="1" tab="分销商条件"></a-tab-pane> |
|
|
|
|
<!-- <a-tab-pane :key="1" tab="分销商条件"></a-tab-pane> --> |
|
|
|
|
<a-tab-pane :key="2" tab="佣金设置"></a-tab-pane> |
|
|
|
|
<a-tab-pane :key="3" tab="结算"></a-tab-pane> |
|
|
|
|
<a-tab-pane :key="4" tab="自定义文字"></a-tab-pane> |
|
|
|
|
<!-- <a-tab-pane :key="4" tab="自定义文字"></a-tab-pane> |
|
|
|
|
<a-tab-pane :key="5" tab="申请协议"></a-tab-pane> |
|
|
|
|
<a-tab-pane :key="6" tab="页面背景图"></a-tab-pane> |
|
|
|
|
<a-tab-pane :key="6" tab="页面背景图"></a-tab-pane> --> |
|
|
|
|
</a-tabs> |
|
|
|
|
<div class="tabs-content"> |
|
|
|
|
<!-- 基本信息 --> |
|
|
|
|
<div class="tab-pane" v-show="tabKey == 0"> |
|
|
|
|
<a-form-model-item label="是否开启分销功能" required> |
|
|
|
|
<a-form-model-item label="是否开启服务商分销功能" required> |
|
|
|
|
<a-radio-group v-model="setting.basic.is_open"> |
|
|
|
|
<a-radio :value="1">开启</a-radio> |
|
|
|
|
<a-radio :value="0">关闭</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="分销层级" required> |
|
|
|
|
<a-form-model-item label="服务商分销层级" required> |
|
|
|
|
<a-radio-group v-model="setting.basic.level"> |
|
|
|
|
<a-radio :value="1">一级</a-radio> |
|
|
|
|
<a-radio :value="2">二级</a-radio> |
|
|
|
|
<a-radio :value="3">三级</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="分销商内购" required> |
|
|
|
|
<a-form-model-item label="服务商内购" required> |
|
|
|
|
<a-radio-group v-model="setting.basic.self_buy"> |
|
|
|
|
<a-radio :value="1">开启</a-radio> |
|
|
|
|
<a-radio :value="0">关闭</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
<div class="form-item-help"> |
|
|
|
|
<small>注:分销商自己购买商品,获得一级佣金,上级获得二级佣金</small> |
|
|
|
|
<small>注:服务商自己购买商品,获得一级佣金,上级获得二级佣金</small> |
|
|
|
|
</div> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</div> |
|
|
|
@ -78,9 +78,9 @@ |
|
|
|
|
:max="100" |
|
|
|
|
:precision="0" |
|
|
|
|
/> |
|
|
|
|
<span class="ml-10">%</span> |
|
|
|
|
<span class="ml-10">‰</span> |
|
|
|
|
<div class="form-item-help"> |
|
|
|
|
<small>注:佣金比例范围 0% - 100%</small> |
|
|
|
|
<small>注:佣金比例范围 0‰ - 1000‰</small> |
|
|
|
|
</div> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="二级佣金比例 " required> |
|
|
|
@ -90,9 +90,9 @@ |
|
|
|
|
:max="100" |
|
|
|
|
:precision="0" |
|
|
|
|
/> |
|
|
|
|
<span class="ml-10">%</span> |
|
|
|
|
<span class="ml-10">‰</span> |
|
|
|
|
<div class="form-item-help"> |
|
|
|
|
<small>注:佣金比例范围 0% - 100%</small> |
|
|
|
|
<small>注:佣金比例范围 0‰ - 1000‰</small> |
|
|
|
|
</div> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="三级佣金比例 " required> |
|
|
|
@ -102,9 +102,9 @@ |
|
|
|
|
:max="100" |
|
|
|
|
:precision="0" |
|
|
|
|
/> |
|
|
|
|
<span class="ml-10">%</span> |
|
|
|
|
<span class="ml-10">‰</span> |
|
|
|
|
<div class="form-item-help"> |
|
|
|
|
<small>注:佣金比例范围 0% - 100%</small> |
|
|
|
|
<small>注:佣金比例范围 0‰ - 1000‰</small> |
|
|
|
|
</div> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</div> |
|
|
|
@ -372,7 +372,7 @@ export default { |
|
|
|
|
// 当前记录详情 |
|
|
|
|
setting: {}, |
|
|
|
|
// 购买指定商品的列表 |
|
|
|
|
becomeBuyGoodsList: [], |
|
|
|
|
becomeBuyGoodsList: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 初始化数据 |
|
|
|
@ -424,6 +424,7 @@ export default { |
|
|
|
|
// 显示成功 |
|
|
|
|
this.$message.success(result.message, 1.5) |
|
|
|
|
}) |
|
|
|
|
// eslint-disable-next-line no-return-assign |
|
|
|
|
.finally(() => this.confirmLoading = false) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -432,6 +433,7 @@ export default { |
|
|
|
|
this.isLoading = true |
|
|
|
|
Api.update({ form: values }) |
|
|
|
|
.then(result => this.$message.success(result.message, 1.5)) |
|
|
|
|
// eslint-disable-next-line no-return-assign |
|
|
|
|
.finally(() => this.isLoading = false) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|