|
@@ -17,7 +17,7 @@
|
|
|
<el-option label="499" :value="1" />
|
|
|
<el-option label="商圈" :value="2" />
|
|
|
<el-option label="爆品" :value="3" />
|
|
|
- <el-option label="交易金" :value="4" />
|
|
|
+ <el-option label="消费金" :value="4" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="团长规则" prop="leadersRule">
|
|
@@ -68,7 +68,7 @@
|
|
|
<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-option label="消费金" :value="3" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -153,7 +153,20 @@ export default {
|
|
|
this.activityList = res.data
|
|
|
},
|
|
|
handleOpen(params = {}) {
|
|
|
- this.modalOptions.title = params.ruleId ? '编辑平台交易金活动分佣规则' : '添加平台交易金活动分佣规则'
|
|
|
+ this.modalOptions.title = params.ruleId ? '编辑平台消费金活动分佣规则' : '添加平台消费金活动分佣规则'
|
|
|
+ this.formData = Object.assign(this.$options.data().formData, params, {
|
|
|
+ ruleId: params.ruleId || '',
|
|
|
+ activityId: params.activityId || '',
|
|
|
+ activityName: params.activityName || '',
|
|
|
+ activityType: params.activityType || '',
|
|
|
+ leadersRule: params.leadersRule || '',
|
|
|
+ leadersMoney: (params.leadersRule === 1) && (typeof params.leadersMoney === 'number') ? params.leadersMoney * 100 : params.leadersMoney,
|
|
|
+ leadersInMoney: (params.leadersRule === 1) && (typeof params.leadersInMoney === 'number') ? params.leadersInMoney * 100 : params.leadersInMoney,
|
|
|
+ partnerRule: params.partnerRule || '',
|
|
|
+ partnerMoney: (params.partnerRule === 1) && (typeof params.partnerMoney === 'number') ? params.partnerMoney * 100 : params.partnerMoney,
|
|
|
+ partnerInMoney: (params.partnerRule === 1) && (typeof params.partnerInMoney === 'number') ? params.partnerInMoney * 100 : params.partnerInMoney,
|
|
|
+ sourceType: params.sourceType || ''
|
|
|
+ })
|
|
|
this.visible = true
|
|
|
this.initList()
|
|
|
if (params.ruleId) {
|