Commit 8cef76da by 前端

修复二轮bug

1 parent 2d84c799
......@@ -128,7 +128,7 @@ export default {
label: '申请金额 (元)',
prop: 'refundPrice',
formatter: cell => {
return cell.redeemPoints ? (cell.redeemPoints * cell.sellQty) + '积分' + '+' + (cell.refundPrice * cell.sellQty) + '元' : (cell.refundPrice * cell.sellQty) + '元'
return cell.redeemPoints ? (cell.redeemPoints * cell.applyQty) + '积分' + '+' + cell.refundPrice .toFixed(2) + '元' : cell.refundPrice + '元'
}
},
{
......@@ -223,8 +223,10 @@ export default {
tparReturnOrderCode,
returnType,
returnReasonType,
returnTime
returnTime,
redeemPoints
} = res || {}
console.log(res)
const {brandName, goodsSkuName, goodsImageUrl} = res.orderGoods || {}
this.showEmailInfo = returnType == 1001
res.returnType = {1001: '退货退款', 1002: '仅退款', 1003: '退货换货'}[returnType] || '--'
......@@ -237,12 +239,14 @@ export default {
applyQty,
refundPrice,
refundStatus,
tparReturnOrderCode
tparReturnOrderCode,
redeemPoints
}]
res.createdDate = res.createdDate ? util.dateFormat(res.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
res.returnTime = returnTime ? util.dateFormat(returnTime, 'YYYY-MM-DD HH:mm:ss') : '--'
res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, returnTime: res.returnTime}]
this.orderInfo = res
console.log(this.orderInfo)
}
}).catch(err => {
this.isLoading = false
......
......@@ -183,7 +183,7 @@ export default {
width: 130,
prop: 'refundPrice',
formatter: cell => {
return cell.businessType == 1 ? (cell.redeemPoints * cell.applyQty) + '积分' + '+' + (cell.refundPrice * cell.applyQty) + '元' : (cell.refundPrice * cell.applyQty) + '元'
return cell.businessType == 1 ? (cell.redeemPoints * cell.applyQty) + '积分' + '+' + cell.refundPrice + '元' : cell.refundPrice + '元'
}
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!