解决金额精度问题

master
胡锐 3 months ago
parent c11b493560
commit 1e0969951b
  1. 4
      src/app/pages/trade/order-oil-list/order-oil-list.component.html

@ -217,7 +217,7 @@
<td>{{data.gasOilLiters}}升</td>
<td>{{data.gasOilNo}}#</td>
<td>{{data.gasGunNo}}号枪</td>
<td>{{data.gasDiscount != 1?(data.gasDiscount*100) + '折':'无'}}</td>
<td>{{data.gasDiscount != 1?(data.gasDiscount*100).toFixed(2) + '折':'无'}}</td>
<td>{{data.gasPricePlatform}}元</td>
<td>{{data.gasPriceGun}}元</td>
<td>{{data.gasPriceOfficial}}元</td>
@ -272,7 +272,7 @@
<nz-descriptions-item nzTitle="油品">{{orderDetailObject.gasOrder.gasOilNo}} # </nz-descriptions-item>
<nz-descriptions-item nzTitle="油枪">{{orderDetailObject.gasOrder.gasGunNo}} 号枪</nz-descriptions-item>
<nz-descriptions-item nzSpan="1" nzTitle="平台优惠">
<span nz-typography>平台折扣:{{orderDetailObject.gasOrder.gasDiscount != 1?(orderDetailObject.gasOrder.gasDiscount * 100)+'折':'无'}}</span><br>
<span nz-typography>平台折扣:{{orderDetailObject.gasOrder.gasDiscount != 1?(orderDetailObject.gasOrder.gasDiscount * 100).toFixed(2)+'折':'无'}}</span><br>
<span nz-typography>总优惠:{{orderDetailObject.gasOrder.totalDeductionPrice}}元</span><br>
<span nz-typography>优惠券优惠:{{orderDetailObject.gasOrder.deductionCouponPrice}}元</span><br>
<span nz-typography>加油优惠:{{orderDetailObject.gasOrder.deductionOilPrice}}元</span><br>

Loading…
Cancel
Save