@@ -394,14 +394,18 @@ export default {
// 新增
addactiveDiscountChildList(){
let data = {
- amount :this.form.activeDiscountChildList.discount,
- deductionAmount:this.form.activeDiscountChildList.amount,
+ // amount :this.form.activeDiscountChildList.discount,
+ // deductionAmount:this.form.activeDiscountChildList.amount,
+ amount :this.activeDiscountChildList.discount,
+ deductionAmount:this.activeDiscountChildList.amount,
}
this.form.activeDiscountChildList.push(data)
+ this.activeDiscountChildList.push(data)
},
deleteactiveDiscountChildList(index){
this.form.activeDiscountChildList.splice(index, 1)
+ this.activeDiscountChildList.splice(index, 1)
},
// 取消按钮
cancel() {
From 2e3575b4de09c4ad854706e4da2a490fbcfd5a7d Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Thu, 7 Mar 2024 16:11:59 +0800
Subject: [PATCH 2/2] bug
---
.../activeConsumption/index.vue | 4 +++-
.../impl/ActiveConsumptionServiceImpl.java | 20 +++++++++----------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue
index 449a09161..7a51bea9e 100644
--- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue
@@ -213,7 +213,7 @@
-
+
{
this.form = response.data;
+ if (!response.data.activeGift) this.form.activeGift = ""
if(response.data.activeConsumptionChildList && response.data.activeConsumptionChildList.length >0){
this.form.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '1')
this.tableData1 = response.data.activeConsumptionChildList.filter(item => item.activeGift == '1')
this.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '2')
this.form.shiwudata = response.data.activeConsumptionChildList.filter(item => item.activeGift == '4')
}
+ console.log(this.tableData1)
this.open = true;
this.title = "修改消费有礼活动";
});
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java
index f8d819e82..f0856c08b 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java
@@ -287,17 +287,17 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl