Commit adb6fbbe by 杨北旺

提交

1 parent 875e4704
......@@ -140,7 +140,10 @@ export default {
},
{
id: '1',
value: '积分订单'
value: 'B端积分订单'
},{
id: '2',
value: 'C端积分订单'
}],
optionId: 'id',
optionLabel: 'value'
......@@ -166,7 +169,7 @@ export default {
prop: 'salePrice',
align: 'right',
formatter: cell => {
return cell.businessType == 1 ? cell.redeemPoints + '积分' + '+' + cell.salePrice + '元' : cell.salePrice + '元'
return cell.businessType == 1 || cell.businessType == 2 ? cell.redeemPoints + '积分' + '+' + cell.salePrice + '元' : cell.salePrice + '元'
}
},
{
......@@ -179,7 +182,7 @@ export default {
line: 1,
align: 'right',
formatter: cell => {
return cell.businessType == 1 ? (cell.redeemPoints * cell.sellQty) + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
return cell.businessType == 1 || cell.businessType == 2 ? (cell.redeemPoints * cell.sellQty) + '积分' + '+' + +(cell.salePrice * cell.sellQty).toFixed(2) + '元' : +(cell.salePrice * cell.sellQty).toFixed(2) + '元'
}
},
{
......@@ -187,7 +190,7 @@ export default {
width: 130,
prop: 'businessType',
formatter: cell => {
return cell.businessType == 1 ? '积分订单' : '普通订单'
return cell.businessType == 1 || cell.businessType == 2? '积分订单' : '普通订单'
}
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!