|
|
@@ -8,19 +8,25 @@
|
|
|
</el-switch>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" v-if="formValidate.is_pack">
|
|
|
- <el-form-item label="赠送股份:" prop="share">
|
|
|
- <el-input-number :controls="false" v-model="formValidate.share" :min="0" :max="9999999999" placeholder="请输入赠送股份"
|
|
|
- class="input_width input-number-unit-class" class-unit="股份" />
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="报单数:" v-if="formValidate.is_pack">
|
|
|
+ <el-input-number :controls="false" v-model="formValidate.share" :min="0" :max="9999999999"
|
|
|
+ placeholder="请输入报单数" class="input_width input-number-unit-class" class-unit="单" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="是否复购:">
|
|
|
+ <el-switch v-model="formValidate.is_share" class="defineSwitch" active-text="是" inactive-text="否"
|
|
|
+ :active-value="1" :inactive-value="0" size="large" @change="changeTemplates">
|
|
|
+ </el-switch>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" v-if="!formValidate.is_pack">
|
|
|
- <el-form-item label="积分抵扣比例" prop="max_use_integral">
|
|
|
- <el-input-number :controls="false" v-model="formValidate.max_use_integral" :min="0" :max="100" placeholder="请输入积分抵扣比例"
|
|
|
- class="input_width input-number-unit-class" class-unit="%" />
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="PV:">
|
|
|
+ <el-input-number :controls="false" v-model="formValidate.pv" :min="0" :max="9999999999"
|
|
|
+ placeholder="请输入PV值" class="input_width input-number-unit-class" class-unit="" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- share -->
|
|
|
<el-col :span="24">
|
|
|
<div class="line"></div>
|
|
|
</el-col>
|
|
|
@@ -204,10 +210,17 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
changeTemplate(e) {
|
|
|
- if (!e) {
|
|
|
+ if (e) {
|
|
|
+ this.formValidate.is_share = 0
|
|
|
+ }else {
|
|
|
+ this.formValidate.share = 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changeTemplates(e) {
|
|
|
+ if (e) {
|
|
|
+ this.formValidate.is_pack = 0
|
|
|
this.formValidate.share = 0
|
|
|
}
|
|
|
- this.formValidate.max_use_integral = 0
|
|
|
},
|
|
|
handleClose(tag) {
|
|
|
this.$emit('handleClose', tag);
|