bug
This commit is contained in:
parent
07e128f836
commit
57adb30134
@ -436,15 +436,16 @@ export default {
|
|||||||
let data = {
|
let data = {
|
||||||
// discount :this.form.activeDiscountChildList.discount,
|
// discount :this.form.activeDiscountChildList.discount,
|
||||||
// amount:this.form.activeDiscountChildList.amount,
|
// amount:this.form.activeDiscountChildList.amount,
|
||||||
discount :this.activeDiscountChildList.discount,
|
discount :"",
|
||||||
amount:this.activeDiscountChildList.amount,
|
amount:"",
|
||||||
|
|
||||||
}
|
}
|
||||||
this.form.activeDiscountChildList.push(data)
|
console.log(data)
|
||||||
|
// this.form.activeDiscountChildList.push(data)
|
||||||
this.activeDiscountChildList.push(data)
|
this.activeDiscountChildList.push(data)
|
||||||
},
|
},
|
||||||
deleteactiveDiscountChildList(index){
|
deleteactiveDiscountChildList(index){
|
||||||
this.form.activeDiscountChildList.splice(index, 1)
|
// this.form.activeDiscountChildList.splice(index, 1)
|
||||||
this.activeDiscountChildList.splice(index, 1)
|
this.activeDiscountChildList.splice(index, 1)
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
|
@ -402,15 +402,15 @@ export default {
|
|||||||
let data = {
|
let data = {
|
||||||
// amount :this.form.activeDiscountChildList.discount,
|
// amount :this.form.activeDiscountChildList.discount,
|
||||||
// deductionAmount:this.form.activeDiscountChildList.amount,
|
// deductionAmount:this.form.activeDiscountChildList.amount,
|
||||||
amount :this.activeDiscountChildList.discount,
|
amount :"",
|
||||||
deductionAmount:this.activeDiscountChildList.amount,
|
deductionAmount:"",
|
||||||
|
|
||||||
}
|
}
|
||||||
this.form.activeDiscountChildList.push(data)
|
// this.form.activeDiscountChildList.push(data)
|
||||||
this.activeDiscountChildList.push(data)
|
this.activeDiscountChildList.push(data)
|
||||||
},
|
},
|
||||||
deleteactiveDiscountChildList(index){
|
deleteactiveDiscountChildList(index){
|
||||||
this.form.activeDiscountChildList.splice(index, 1)
|
// this.form.activeDiscountChildList.splice(index, 1)
|
||||||
this.activeDiscountChildList.splice(index, 1)
|
this.activeDiscountChildList.splice(index, 1)
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
|
@ -116,12 +116,12 @@
|
|||||||
<el-form-item label="活动名称" prop="activeName">
|
<el-form-item label="活动名称" prop="activeName">
|
||||||
<el-input v-model="form.activeName" placeholder="请输入活动名称" />
|
<el-input v-model="form.activeName" placeholder="请输入活动名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="会员等级" prop="" >
|
<el-form-item label="会员等级" prop="gradeIds" >
|
||||||
<el-select v-model="form.gradeIds" multiple clearable placeholder="会员等级" @change="change">
|
<el-select v-model="form.gradeIds" multiple clearable placeholder="会员等级" @change="change">
|
||||||
<el-option :label="item.name" :value="item.id.toString()" v-for="(item,index) in userGradeList" :key="index" > </el-option>
|
<el-option :label="item.name" :value="item.id.toString()" v-for="(item,index) in userGradeList" :key="index" > </el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="不活跃用户" prop="">
|
<el-form-item label="不活跃用户" prop="days">
|
||||||
<div style="display: flex;align-items: center">
|
<div style="display: flex;align-items: center">
|
||||||
<el-input-number v-model="form.days" :min="1" :max="999" label="描述文字"></el-input-number>
|
<el-input-number v-model="form.days" :min="1" :max="999" label="描述文字"></el-input-number>
|
||||||
<div style="margin-left: 5px">天 <span style="color: red">(查找最近N天未进行消费的用户)</span> </div>
|
<div style="margin-left: 5px">天 <span style="color: red">(查找最近N天未进行消费的用户)</span> </div>
|
||||||
@ -605,48 +605,13 @@ export default {
|
|||||||
days:15,
|
days:15,
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
adaptOil: [
|
activeName: [
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
||||||
],
|
],
|
||||||
name: [
|
gradeIds: [
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
{ required: true, message: '必填项不能为空', trigger: 'change' },
|
||||||
],
|
],
|
||||||
participationConditionMoney: [
|
days: [
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
activeStartTime: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
activeEndTime: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
adaptUserType: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
], dieselUserLevel: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
], gasolineUserLevel: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
], naturalUserLevel: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
], participationCondition: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
], participationAcount: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
], limitAcount: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
], activeGift: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
status: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
isonline: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
points: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
activeConsumptionChildList: [
|
|
||||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
@ -993,6 +958,7 @@ export default {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.rlist = []
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加一键发券";
|
this.title = "添加一键发券";
|
||||||
},
|
},
|
||||||
|
@ -206,14 +206,18 @@ public class ActiveOneCouponServiceImpl extends ServiceImpl<ActiveOneCouponMappe
|
|||||||
//优惠券
|
//优惠券
|
||||||
if (activeOneCouponChild.getActiveGift().equals("1")){
|
if (activeOneCouponChild.getActiveGift().equals("1")){
|
||||||
CardFavorable byId = cardFavorableService.getById(activeOneCouponChild.getVouchersId());
|
CardFavorable byId = cardFavorableService.getById(activeOneCouponChild.getVouchersId());
|
||||||
cardFavorableArrayList.add(byId);
|
if (ObjectUtil.isNotEmpty(byId)) {
|
||||||
cardFavorableIds.add(byId.getId());
|
cardFavorableArrayList.add(byId);
|
||||||
|
cardFavorableIds.add(byId.getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//兑换券
|
//兑换券
|
||||||
if (activeOneCouponChild.getActiveGift().equals("2")){
|
if (activeOneCouponChild.getActiveGift().equals("2")){
|
||||||
CardExchange byId = exchangeService.getById(activeOneCouponChild.getVouchersId());
|
CardExchange byId = exchangeService.getById(activeOneCouponChild.getVouchersId());
|
||||||
cardExchangeArrayList.add(byId);
|
if (ObjectUtil.isNotEmpty(byId)) {
|
||||||
cardExchangeIds.add(byId.getId());
|
cardExchangeArrayList.add(byId);
|
||||||
|
cardExchangeIds.add(byId.getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String[] split = oneCoupon.getGradeId().split(",");
|
String[] split = oneCoupon.getGradeId().split(",");
|
||||||
|
Loading…
Reference in New Issue
Block a user