|
@@ -166,8 +166,8 @@ const formatAllGoods = (data, kitGroupPurchaseType) => {
|
|
|
if (json[kitGroupPurchaseType] !== undefined) {
|
|
|
const _item = {
|
|
|
...item,
|
|
|
- kitGroupPurchaseTypePrice: json[kitGroupPurchaseType],
|
|
|
- coursePurchaseTypeJsonTypePrice: courseJson[kitGroupPurchaseType],
|
|
|
+ kitGroupPurchaseTypePrice: json[kitGroupPurchaseType] || 0,
|
|
|
+ coursePurchaseTypeJsonTypePrice: courseJson[kitGroupPurchaseType] || 0,
|
|
|
_calculated_price: (kitGroupPurchaseType === 'FREE' ? 0 : (kitGroupPurchaseType === 'LEASE' ? item.depositFee : item.price))
|
|
|
}
|
|
|
musicalGoods.push(_item)
|
|
@@ -291,8 +291,8 @@ export default {
|
|
|
this.originalAccessoriesPrice -
|
|
|
this.originalMusicalPrice -
|
|
|
this.originalCourseFee -
|
|
|
- this.coursePurchaseTypeJsonTypePrice -
|
|
|
- this.kitGroupPurchaseTypePrice
|
|
|
+ (this.coursePurchaseTypeJsonTypePrice || 0) -
|
|
|
+ (this.kitGroupPurchaseTypePrice || 0)
|
|
|
)
|
|
|
// console.log(
|
|
|
// this.item.kitGroupPurchaseType,
|