Commit 30187bb7 by 徐忆琳

Merge branch 'v3.15.1_10' into 'v3.15.1'

修复bug

See merge request !15
2 parents 650ae96b eceafeba
...@@ -127,14 +127,14 @@ export default { ...@@ -127,14 +127,14 @@ export default {
{ {
label: '小计 (元)', label: '小计 (元)',
formatter: cell => { formatter: cell => {
return cell.redeemPoints ? cell.redeemPoints + '积分' + '+' + (cell.salePrice * cell.sellQty).toFixed(2) + '元' : (cell.salePrice * cell.sellQty).toFixed(2) + '元' return cell.redeemPoints ? cell.redeemPoints + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
} }
}, },
{ {
label: '实收金额 (元)', label: '实收金额 (元)',
prop: 'orderAmount', prop: 'orderAmount',
formatter: cell => { formatter: cell => {
return cell.redeemPoints ? cell.redeemPoints + '积分' + '+' + +(cell.salePrice).toFixed(2) + '元' : (cell.salePrice * cell.sellQty).toFixed(2) + '元' return cell.redeemPoints ? cell.redeemPoints + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
} }
} }
] ]
......
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
line: 1, line: 1,
align:'right', align:'right',
formatter: cell => { formatter: cell => {
return cell.businessType == 1 ? cell.redeemPoints + '积分' + '+' + cell.salePrice + '元' : (cell.salePrice * cell.sellQty).toFixed(2) + '元' return cell.businessType == 1 ? cell.redeemPoints + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
} }
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!