|
|
|
@ -57,7 +57,7 @@ |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<view style="height: 80rpx;line-height: 80rpx;display: flex;" |
|
|
|
v-if="orderDetail.packageFee != null && orderDetail.packageFee > 0"> |
|
|
|
v-if="shouldIncludePackageFee() && orderDetail.packageFee != null && orderDetail.packageFee > 0"> |
|
|
|
<view style="flex: 1;color: #777;font-weight: 700;"> |
|
|
|
打包费 |
|
|
|
</view> |
|
|
|
@ -465,6 +465,9 @@ |
|
|
|
let num = Number(value) |
|
|
|
return isNaN(num) ? 0 : num |
|
|
|
}, |
|
|
|
shouldIncludePackageFee() { |
|
|
|
return this.orderDetail.deliveryType == 1 || this.orderDetail.isPack == 1 |
|
|
|
}, |
|
|
|
getCouponAmount() { |
|
|
|
if (this.toAmount(this.orderDetail.userCouponNum) > 0) { |
|
|
|
return this.toAmount(this.orderDetail.userCouponNum) |
|
|
|
@ -586,7 +589,7 @@ |
|
|
|
this.returnData.shopId = this.orderDetail.shopId |
|
|
|
this.returnData.totalAmount = this.orderDetail.totalAmount |
|
|
|
this.returnData.goodsAmount = this.orderDetail.goodsAmount |
|
|
|
this.returnData.packageFee = this.orderDetail.packageFee |
|
|
|
this.returnData.packageFee = this.shouldIncludePackageFee() ? this.orderDetail.packageFee : 0 |
|
|
|
if (this.orderDetail.deliveryInfo) { |
|
|
|
this.returnData.workerId = this.orderDetail.deliveryInfo.workerId |
|
|
|
this.returnData.deliveryFee = this.orderDetail.deliveryFee |
|
|
|
@ -658,7 +661,7 @@ |
|
|
|
if ((this.orderDetail.goodsList[index].returnCount + 1) <= this.orderDetail.goodsList[index] |
|
|
|
.quantity) { |
|
|
|
this.orderDetail.goodsList[index].returnCount += 1 |
|
|
|
if (this.orderDetail.deliveryType == 1 || this.orderDetail.isPack == 1) { |
|
|
|
if (this.shouldIncludePackageFee()) { |
|
|
|
if(this.orderDetail.packageFee > 0){ |
|
|
|
this.returnData.refundAmount += Number((this.toAmount(this.orderDetail.goodsList[index].price) + this |
|
|
|
.toAmount(this.orderDetail.goodsList[index].packageFee)).toFixed(2)) |
|
|
|
@ -674,7 +677,7 @@ |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (this.orderDetail.goodsList[index].returnCount > 0) { |
|
|
|
if (this.orderDetail.deliveryType == 1 || this.orderDetail.isPack == 1) { |
|
|
|
if (this.shouldIncludePackageFee()) { |
|
|
|
if(this.orderDetail.packageFee > 0){ |
|
|
|
this.returnData.refundAmount -= Number((this.toAmount(this.orderDetail.goodsList[index].price) + this |
|
|
|
.toAmount(this.orderDetail.goodsList[index].packageFee)).toFixed(2)) |
|
|
|
|