|
@@ -18,99 +18,103 @@
|
|
|
<el-option label="组合活动" :value="6" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="团长规则" prop="leadersRule">
|
|
|
- <el-select v-model="formData.leadersRule" size="mini" placeholder="请选择团长规则">
|
|
|
- <el-option label="比例" :value="1" />
|
|
|
- <el-option label="金额" :value="2" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="formData.leadersRule" label="直接团长规则" prop="leadersMoney">
|
|
|
- <el-input v-model="formData.leadersMoney" placeholder="请输入直接团长规则" style="width: 250px">
|
|
|
- <template #append>
|
|
|
- <div v-if="formData.leadersRule === 1">%</div>
|
|
|
- <div v-else-if="formData.leadersRule === 2">元</div>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="formData.leadersRule" label="间接团长规则" prop="leadersInMoney">
|
|
|
- <el-input v-model="formData.leadersInMoney" placeholder="请输入间接团长规则" style="width: 250px">
|
|
|
- <template #append>
|
|
|
- <div v-if="formData.leadersRule === 1">%</div>
|
|
|
- <div v-else-if="formData.leadersRule === 2">元</div>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="合伙人规则" prop="partnerRule">
|
|
|
- <el-select v-model="formData.partnerRule" size="mini" placeholder="请选择合伙人规则">
|
|
|
- <el-option label="比例" :value="1" />
|
|
|
- <el-option label="金额" :value="2" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="formData.partnerRule" label="直接合伙人规则" prop="partnerMoney">
|
|
|
- <el-input v-model="formData.partnerMoney" placeholder="请输入直接合伙人规则" style="width: 250px">
|
|
|
- <template #append>
|
|
|
- <div v-if="formData.partnerRule === 1">%</div>
|
|
|
- <div v-else-if="formData.partnerRule === 2">元</div>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="formData.partnerRule" label="间接合伙人规则" prop="partnerInMoney">
|
|
|
- <el-input v-model="formData.partnerInMoney" placeholder="请输入间接合伙人规则" style="width: 250px">
|
|
|
- <template #append>
|
|
|
- <div v-if="formData.partnerRule === 1">%</div>
|
|
|
- <div v-else-if="formData.partnerRule === 2">元</div>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="加盟商规则" prop="franchiseeRule">
|
|
|
- <el-select v-model="formData.franchiseeRule" size="mini" placeholder="请选择加盟商规则">
|
|
|
- <el-option label="比例" :value="1" />
|
|
|
- <el-option label="金额" :value="2" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="formData.franchiseeRule" label="加盟商佣金规则" prop="franchiseeMoney">
|
|
|
- <el-input v-model="formData.franchiseeMoney" placeholder="请输入加盟商佣金规则" style="width: 250px">
|
|
|
- <template #append>
|
|
|
- <div v-if="formData.franchiseeRule === 1">%</div>
|
|
|
- <div v-else-if="formData.franchiseeRule === 2">元</div>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="代理商规则" prop="agentRule">
|
|
|
- <el-select v-model="formData.agentRule" size="mini" placeholder="请选择代理商规则">
|
|
|
- <el-option label="比例" :value="1" />
|
|
|
- <el-option label="金额" :value="2" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="formData.agentRule" label="代理商佣金规则" prop="agentMoney">
|
|
|
- <el-input v-model="formData.agentMoney" placeholder="请输入代理商佣金规则" style="width: 250px">
|
|
|
- <template #append>
|
|
|
- <div v-if="formData.agentRule === 1">%</div>
|
|
|
- <div v-else-if="formData.agentRule === 2">元</div>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="社区店规则" prop="communityRule">
|
|
|
- <el-select v-model="formData.communityRule" size="mini" placeholder="请选择社区店规则">
|
|
|
- <el-option label="比例" :value="1" />
|
|
|
- <el-option label="金额" :value="2" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="formData.communityRule" label="社区店佣金规则" prop="communityMoney">
|
|
|
- <el-input v-model="formData.communityMoney" placeholder="请输入社区店佣金规则" style="width: 250px">
|
|
|
- <template #append>
|
|
|
- <div v-if="formData.communityRule === 1">%</div>
|
|
|
- <div v-else-if="formData.communityRule === 2">元</div>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="分佣来源" prop="sourceType">
|
|
|
- <el-select v-model="formData.sourceType" size="mini" placeholder="请选择分佣来源">
|
|
|
- <el-option label="订单金额" :value="1" />
|
|
|
- <el-option label="赠送代金券" :value="2" />
|
|
|
- <el-option label="消费金" :value="3" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+ <div v-show="[0, 1].includes(type)">
|
|
|
+ <el-form-item label="团长规则" prop="leadersRule">
|
|
|
+ <el-select v-model="formData.leadersRule" size="mini" placeholder="请选择团长规则">
|
|
|
+ <el-option label="比例" :value="1" />
|
|
|
+ <el-option label="金额" :value="2" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="formData.leadersRule" label="直接团长规则" prop="leadersMoney">
|
|
|
+ <el-input v-model="formData.leadersMoney" placeholder="请输入直接团长规则" style="width: 250px">
|
|
|
+ <template #append>
|
|
|
+ <div v-if="formData.leadersRule === 1">%</div>
|
|
|
+ <div v-else-if="formData.leadersRule === 2">元</div>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="formData.leadersRule" label="间接团长规则" prop="leadersInMoney">
|
|
|
+ <el-input v-model="formData.leadersInMoney" placeholder="请输入间接团长规则" style="width: 250px">
|
|
|
+ <template #append>
|
|
|
+ <div v-if="formData.leadersRule === 1">%</div>
|
|
|
+ <div v-else-if="formData.leadersRule === 2">元</div>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="合伙人规则" prop="partnerRule">
|
|
|
+ <el-select v-model="formData.partnerRule" size="mini" placeholder="请选择合伙人规则">
|
|
|
+ <el-option label="比例" :value="1" />
|
|
|
+ <el-option label="金额" :value="2" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="formData.partnerRule" label="直接合伙人规则" prop="partnerMoney">
|
|
|
+ <el-input v-model="formData.partnerMoney" placeholder="请输入直接合伙人规则" style="width: 250px">
|
|
|
+ <template #append>
|
|
|
+ <div v-if="formData.partnerRule === 1">%</div>
|
|
|
+ <div v-else-if="formData.partnerRule === 2">元</div>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="formData.partnerRule" label="间接合伙人规则" prop="partnerInMoney">
|
|
|
+ <el-input v-model="formData.partnerInMoney" placeholder="请输入间接合伙人规则" style="width: 250px">
|
|
|
+ <template #append>
|
|
|
+ <div v-if="formData.partnerRule === 1">%</div>
|
|
|
+ <div v-else-if="formData.partnerRule === 2">元</div>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div v-show="[0, 2].includes(type)">
|
|
|
+ <el-form-item label="加盟商规则" prop="franchiseeRule">
|
|
|
+ <el-select v-model="formData.franchiseeRule" size="mini" placeholder="请选择加盟商规则">
|
|
|
+ <el-option label="比例" :value="1" />
|
|
|
+ <el-option label="金额" :value="2" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="formData.franchiseeRule" label="加盟商佣金规则" prop="franchiseeMoney">
|
|
|
+ <el-input v-model="formData.franchiseeMoney" placeholder="请输入加盟商佣金规则" style="width: 250px">
|
|
|
+ <template #append>
|
|
|
+ <div v-if="formData.franchiseeRule === 1">%</div>
|
|
|
+ <div v-else-if="formData.franchiseeRule === 2">元</div>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="代理商规则" prop="agentRule">
|
|
|
+ <el-select v-model="formData.agentRule" size="mini" placeholder="请选择代理商规则">
|
|
|
+ <el-option label="比例" :value="1" />
|
|
|
+ <el-option label="金额" :value="2" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="formData.agentRule" label="代理商佣金规则" prop="agentMoney">
|
|
|
+ <el-input v-model="formData.agentMoney" placeholder="请输入代理商佣金规则" style="width: 250px">
|
|
|
+ <template #append>
|
|
|
+ <div v-if="formData.agentRule === 1">%</div>
|
|
|
+ <div v-else-if="formData.agentRule === 2">元</div>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="社区店规则" prop="communityRule">
|
|
|
+ <el-select v-model="formData.communityRule" size="mini" placeholder="请选择社区店规则">
|
|
|
+ <el-option label="比例" :value="1" />
|
|
|
+ <el-option label="金额" :value="2" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="formData.communityRule" label="社区店佣金规则" prop="communityMoney">
|
|
|
+ <el-input v-model="formData.communityMoney" placeholder="请输入社区店佣金规则" style="width: 250px">
|
|
|
+ <template #append>
|
|
|
+ <div v-if="formData.communityRule === 1">%</div>
|
|
|
+ <div v-else-if="formData.communityRule === 2">元</div>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="分佣来源" prop="sourceType">
|
|
|
+ <el-select v-model="formData.sourceType" size="mini" placeholder="请选择分佣来源">
|
|
|
+ <el-option label="订单金额" :value="1" />
|
|
|
+ <el-option label="赠送代金券" :value="2" />
|
|
|
+ <el-option label="消费金" :value="3" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
@@ -134,6 +138,7 @@ export default {
|
|
|
width: '820px',
|
|
|
title: ''
|
|
|
},
|
|
|
+ type: 0,
|
|
|
visible: false,
|
|
|
activityList: [],
|
|
|
formData: {
|
|
@@ -199,7 +204,8 @@ export default {
|
|
|
const res = await getAllPlatformBeeCurrency({})
|
|
|
this.activityList = res.data
|
|
|
},
|
|
|
- handleOpen(params = {}) {
|
|
|
+ handleOpen(params = {}, type) {
|
|
|
+ this.type = type
|
|
|
this.modalOptions.title = params.ruleId ? '编辑平台消费金活动分佣规则' : '添加平台消费金活动分佣规则'
|
|
|
this.formData = Object.assign(this.$options.data().formData, params, {
|
|
|
ruleId: params.ruleId || '',
|