|
@@ -331,6 +331,7 @@ export default {
|
|
|
goodsIds = [],
|
|
|
tempCourseFee = 0,
|
|
|
musicClassFee = 0,
|
|
|
+ tempGroupRemissionCourseFee = 0, // 乐团减免费用
|
|
|
contractGoodsIds = '' // 合同所需要的商品Id (只需要乐器编号)
|
|
|
// 课程
|
|
|
let mgs = this.musicGroupSubject
|
|
@@ -344,6 +345,11 @@ export default {
|
|
|
if (item.id > 0) {
|
|
|
courseKeys.push(item.id)
|
|
|
}
|
|
|
+
|
|
|
+ // 不可选的课程才会减免课程费用
|
|
|
+ if(!item.isStudentOptional) {
|
|
|
+ tempGroupRemissionCourseFee += parseFloat(item.courseCurrentPrice)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -394,6 +400,11 @@ export default {
|
|
|
price: parseFloat(item.price - couponPrice)
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ // 是否减免课程费用,必须团购,并且开启了减免课程费用
|
|
|
+ if(item.kitType == 'GROUP' && item.groupRemissionCourseFee == 1) {
|
|
|
+ musicClassFee = parseFloat(musicClassFee - tempGroupRemissionCourseFee)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|