Commit 8cef76da by 前端

修复二轮bug

1 parent 2d84c799
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
label: '申请金额 (元)', label: '申请金额 (元)',
prop: 'refundPrice', prop: 'refundPrice',
formatter: cell => { 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 { ...@@ -223,8 +223,10 @@ export default {
tparReturnOrderCode, tparReturnOrderCode,
returnType, returnType,
returnReasonType, returnReasonType,
returnTime returnTime,
redeemPoints
} = res || {} } = res || {}
console.log(res)
const {brandName, goodsSkuName, goodsImageUrl} = res.orderGoods || {} const {brandName, goodsSkuName, goodsImageUrl} = res.orderGoods || {}
this.showEmailInfo = returnType == 1001 this.showEmailInfo = returnType == 1001
res.returnType = {1001: '退货退款', 1002: '仅退款', 1003: '退货换货'}[returnType] || '--' res.returnType = {1001: '退货退款', 1002: '仅退款', 1003: '退货换货'}[returnType] || '--'
...@@ -237,12 +239,14 @@ export default { ...@@ -237,12 +239,14 @@ export default {
applyQty, applyQty,
refundPrice, refundPrice,
refundStatus, refundStatus,
tparReturnOrderCode tparReturnOrderCode,
redeemPoints
}] }]
res.createdDate = res.createdDate ? util.dateFormat(res.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--' 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.returnTime = returnTime ? util.dateFormat(returnTime, 'YYYY-MM-DD HH:mm:ss') : '--'
res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, returnTime: res.returnTime}] res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, returnTime: res.returnTime}]
this.orderInfo = res this.orderInfo = res
console.log(this.orderInfo)
} }
}).catch(err => { }).catch(err => {
this.isLoading = false this.isLoading = false
......
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
width: 130, width: 130,
prop: 'refundPrice', prop: 'refundPrice',
formatter: cell => { 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!