|
@@ -46,8 +46,8 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1)" label="关联佣金配置"
|
|
|
|
- prop="ruleId"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1)"
|
|
|
|
+ label="关联佣金配置" prop="ruleId"
|
|
>
|
|
>
|
|
<el-select v-model="formData.ruleId" clearable size="mini" placeholder="请选择关联佣金配置" filterable>
|
|
<el-select v-model="formData.ruleId" clearable size="mini" placeholder="请选择关联佣金配置" filterable>
|
|
<el-option
|
|
<el-option
|
|
@@ -66,23 +66,23 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7].includes(formData.configType) && (formData.joinRole === 1)" label="参与值"
|
|
|
|
- prop="joinMoney"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7].includes(formData.configType) && (formData.joinRole === 1) && (formData.joinRule === 1)"
|
|
|
|
+ label="固定分配佣金总额" prop="commissionPrice"
|
|
>
|
|
>
|
|
- <el-input v-model="formData.joinMoney" placeholder="请输入商家参与活动金额或价格比例" style="width: 250px;">
|
|
|
|
|
|
+ <el-input v-model="formData.commissionPrice" placeholder="请输入固定分配佣金总额" style="width: 250px;">
|
|
<template #append>
|
|
<template #append>
|
|
- <div v-if="formData.joinRule === 1">元</div>
|
|
|
|
- <div v-else-if="formData.joinRule === 2">%</div>
|
|
|
|
|
|
+ <div>元</div>
|
|
</template>
|
|
</template>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7].includes(formData.configType) && (formData.joinRole === 1)" label="固定分配佣金总额"
|
|
|
|
- prop="commissionPrice"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7].includes(formData.configType) && (formData.joinRole === 1)" label="参与值"
|
|
|
|
+ prop="joinMoney"
|
|
>
|
|
>
|
|
- <el-input v-model="formData.commissionPrice" placeholder="请输入固定分配佣金总额" style="width: 250px;">
|
|
|
|
|
|
+ <el-input v-model="formData.joinMoney" placeholder="请输入商家参与活动金额或价格比例" style="width: 250px;">
|
|
<template #append>
|
|
<template #append>
|
|
- <div>元</div>
|
|
|
|
|
|
+ <div v-if="formData.joinRule === 1">元</div>
|
|
|
|
+ <div v-else-if="formData.joinRule === 2">%</div>
|
|
</template>
|
|
</template>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -102,12 +102,12 @@
|
|
label="是否发送卡包" prop="isCardHolder"
|
|
label="是否发送卡包" prop="isCardHolder"
|
|
>
|
|
>
|
|
<el-radio-group v-model="formData.isCardHolder">
|
|
<el-radio-group v-model="formData.isCardHolder">
|
|
- <el-radio :label="1">是</el-radio>
|
|
|
|
- <el-radio :label="0">否</el-radio>
|
|
|
|
|
|
+ <el-radio :label="true">是</el-radio>
|
|
|
|
+ <el-radio :label="false">否</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder"
|
|
label="卡券类型" prop="cardType"
|
|
label="卡券类型" prop="cardType"
|
|
>
|
|
>
|
|
<el-select v-model="formData.cardType" clearable size="mini" placeholder="请选择卡券类型">
|
|
<el-select v-model="formData.cardType" clearable size="mini" placeholder="请选择卡券类型">
|
|
@@ -117,7 +117,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder"
|
|
label="卡券类型规则" prop="cardRule"
|
|
label="卡券类型规则" prop="cardRule"
|
|
>
|
|
>
|
|
<el-radio-group v-model="formData.cardRule">
|
|
<el-radio-group v-model="formData.cardRule">
|
|
@@ -126,7 +126,7 @@
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder"
|
|
label="卡包价格规则" prop="cardMoney"
|
|
label="卡包价格规则" prop="cardMoney"
|
|
>
|
|
>
|
|
<el-input v-model="formData.cardMoney" placeholder="请输入卡包价格规则" style="width: 250px;">
|
|
<el-input v-model="formData.cardMoney" placeholder="请输入卡包价格规则" style="width: 250px;">
|
|
@@ -141,7 +141,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder"
|
|
label="卡券发放数量" prop="cardNum"
|
|
label="卡券发放数量" prop="cardNum"
|
|
>
|
|
>
|
|
<el-input v-model="formData.cardNum" placeholder="请输入卡券发放数量" style="width: 200px;">
|
|
<el-input v-model="formData.cardNum" placeholder="请输入卡券发放数量" style="width: 200px;">
|
|
@@ -151,7 +151,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder"
|
|
label="卡券有效期" prop="cardEffectiveTime"
|
|
label="卡券有效期" prop="cardEffectiveTime"
|
|
>
|
|
>
|
|
<el-input v-model="formData.cardEffectiveTime" placeholder="请输入卡券有效期" style="width: 200px;">
|
|
<el-input v-model="formData.cardEffectiveTime" placeholder="请输入卡券有效期" style="width: 200px;">
|
|
@@ -161,7 +161,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder"
|
|
label="卡券使用范围" prop="cardRange"
|
|
label="卡券使用范围" prop="cardRange"
|
|
>
|
|
>
|
|
<el-select v-model="formData.cardRange" clearable size="mini" placeholder="请选择卡券使用范围">
|
|
<el-select v-model="formData.cardRange" clearable size="mini" placeholder="请选择卡券使用范围">
|
|
@@ -170,7 +170,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1) && (formData.cardRange === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder && (formData.cardRange === 1)"
|
|
label="卡券指定区域" prop="cardRange"
|
|
label="卡券指定区域" prop="cardRange"
|
|
>
|
|
>
|
|
<el-cascader
|
|
<el-cascader
|
|
@@ -180,7 +180,7 @@
|
|
<div v-if="String(formData.cardJson)">已选ID:{{ formData.cardJson }}</div>
|
|
<div v-if="String(formData.cardJson)">已选ID:{{ formData.cardJson }}</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
- v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && (formData.isCardHolder === 1)"
|
|
|
|
|
|
+ v-if="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(formData.configType) && (formData.joinRole === 1) && formData.isCardHolder"
|
|
label="业务json字段" prop="cardBusinessFields"
|
|
label="业务json字段" prop="cardBusinessFields"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
@@ -331,7 +331,7 @@ export default {
|
|
joinRule: res.data.joinRule || '',
|
|
joinRule: res.data.joinRule || '',
|
|
roleType: res.data.roleType || '',
|
|
roleType: res.data.roleType || '',
|
|
joinMoney: (res.data.joinRule === 2) && (typeof res.data.joinMoney === 'number') ? res.data.joinMoney * 100 : res.data.joinMoney,
|
|
joinMoney: (res.data.joinRule === 2) && (typeof res.data.joinMoney === 'number') ? res.data.joinMoney * 100 : res.data.joinMoney,
|
|
- commissionPrice: '',
|
|
|
|
|
|
+ commissionPrice: res.data.commissionPrice || '',
|
|
ruleId: res.data.ruleId || '',
|
|
ruleId: res.data.ruleId || '',
|
|
isCardHolder: res.data.isCardHolder,
|
|
isCardHolder: res.data.isCardHolder,
|
|
cardType: res.data.cardType || '',
|
|
cardType: res.data.cardType || '',
|