Sfoglia il codice sorgente

fix: 预付款列表页支付比例四舍五入保留两位小数

lanjianrong 4 anni fa
parent
commit
c57d1060dc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/view/advance/index.ejs

+ 1 - 1
app/view/advance/index.ejs

@@ -59,7 +59,7 @@
                         <% advanceList.forEach(item => { %>
                             <tr>
                                 <td><a href="/tender/<%- ctx.tender.id %>/advance/<%- item.id %>/detail" data-id="<%- item.id %>">第<%- item.order %>期</a></td>
-                                <td><%- item.cur_amount && ctx.helper.mul(ctx.helper.div(item.cur_amount, advancePayTotal), 100).toFixed(2) || 0 %>%</td>
+                                <td><%- item.cur_amount && ctx.helper.mul(ctx.helper.div(item.cur_amount, advancePayTotal), 100, 2) || 0 %>%</td>
                                 <td class="text-right"><%- ctx.helper.formatMoney(item.cur_amount, ',', decimal)%></td>
                                 <td class="text-right"><%- ctx.helper.formatMoney(item.prev_amount, ',', decimal)%></td>
                                 <td class="text-right"><%- ctx.helper.formatMoney(item.prev_total_amount, ',', decimal)%></td>