Commit 2b64116c by 杨北旺

添加判断

1 parent d2c1cc53
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
align: 'right', align: 'right',
formatter: cell => { formatter: cell => {
let price = 0 let price = 0
if(cell.payStatus=1002){ if(cell.payStatus==1002){
price = cell.businessType == 1 || cell.businessType == 2 ? (cell.redeemPoints * cell.sellQty) + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元' price = cell.businessType == 1 || cell.businessType == 2 ? (cell.redeemPoints * cell.sellQty) + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
} }
return price return price
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!