Explorar o código

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

lanjianrong %!s(int64=5) %!d(string=hai) anos
pai
achega
c57d1060dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>