|
|
@@ -37,10 +37,14 @@
|
|
|
</view>
|
|
|
<view class="flex refund-item">
|
|
|
<view class="refund-label">可退金额:</view>
|
|
|
- <view class="list">¥{{coundRefundPrice}}</view>
|
|
|
+ <view class="list">¥{{couldRefundPrice}}</view>
|
|
|
</view>
|
|
|
<view class="flex refund-item">
|
|
|
- <view class="refund-label"><text></text>退款金额:</view>
|
|
|
+ <view class="refund-label">合计退款:</view>
|
|
|
+ <view class="list">¥{{refundPrice}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex refund-item">
|
|
|
+ <view class="refund-label"><text></text>实际退款:</view>
|
|
|
<input type="digit" v-model="refundMoney">
|
|
|
</view>
|
|
|
<view class="refund-item">
|
|
|
@@ -72,13 +76,14 @@ export default {
|
|
|
refundType:1,
|
|
|
remark:'',
|
|
|
orderInfo:{},
|
|
|
- coundRefundPrice:0
|
|
|
+ couldRefundPrice:0
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
|
},
|
|
|
computed:{
|
|
|
refundPrice(){
|
|
|
+ console.log('tttt')
|
|
|
let price = 0
|
|
|
if(this.product){
|
|
|
for (const item of this.product) {
|
|
|
@@ -90,6 +95,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ price = parseFloat(price.toFixed(2))
|
|
|
this.refundMoney = price
|
|
|
return price
|
|
|
}
|
|
|
@@ -141,9 +147,9 @@ export default {
|
|
|
const res = await getDetail({ id: this.option.id,getOriginalItem:1 })
|
|
|
this.orderInfo = res.data
|
|
|
|
|
|
- this.coundRefundPrice = Number(res.data.orderPrice) - Number(res.data.tkPrice)
|
|
|
- this.coundRefundPrice = this.coundRefundPrice.toFixed(2)
|
|
|
- this.coundRefundPrice = parseFloat(this.coundRefundPrice)
|
|
|
+ this.couldRefundPrice = Number(res.data.orderPrice) - Number(res.data.tkPrice)
|
|
|
+ this.couldRefundPrice = this.couldRefundPrice.toFixed(2)
|
|
|
+ this.couldRefundPrice = parseFloat(this.couldRefundPrice)
|
|
|
|
|
|
this.product = res.data.product.map(ele=>{
|
|
|
return {...ele,refundCount:null}
|