Commit a4411d2b by 前端

Merge branch 'v3.24.0' into 'master'

上线合并

See merge request !28
2 parents 875e4704 9a3d3bde
......@@ -27,9 +27,10 @@
</el-tooltip>
</div>
<div class="orderAmount" slot="orderAmount" slot-scope="scope">
{{
<span v-if="orderInfo.payStatus==1002">{{
scope.scope.redeemPoints ? (scope.scope.redeemPoints * scope.scope.sellQty) + '积分' + '+' + +(scope.scope.salePrice * scope.scope.sellQty).toFixed(2) + '元' : +(scope.scope.salePrice * scope.scope.sellQty).toFixed(2) + '元'
}}
}}</span>
<span v-else>0</span>
</div>
</GLTable>
</div>
......
......@@ -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,12 @@ 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) + '元'
let price = 0
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) + '元'
}
return price
// 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 +195,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!