|
@@ -457,9 +457,9 @@
|
|
|
<td data-site="4"><%= cl.unit %></td>
|
|
|
<td data-site="5"><%= ctx.helper.roundNum(cl.unit_price, upUnit) %></td>
|
|
|
<td data-site="6"><%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
- <td data-site="7"><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.oamount), tpUnit) %></td>
|
|
|
+ <td data-site="7"><%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %></td>
|
|
|
<td data-site="8"><input class="form-control form-control-sm" placeholder="变更数量" type="text" onkeyup="RegNum(this,event,<%= ctx.helper.findDecimal(cl.unit) %>)" value="<%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %>"></td>
|
|
|
- <td data-site="9"><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.camount), tpUnit) %></td>
|
|
|
+ <td data-site="9"><%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %></td>
|
|
|
<td><a class="text-danger">移除</a>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -483,9 +483,9 @@
|
|
|
</td>
|
|
|
<td data-site="5"><input class="form-control form-control-sm" placeholder="单价" onkeyup="RegNum(this,event, <%= upUnit %>)" type="text" value="<%= ctx.helper.roundNum(cl.unit_price, upUnit) %>"></td>
|
|
|
<td data-site="6"><input class="form-control form-control-sm" placeholder="数量" onkeyup="RegNum(this,event,<%= ctx.helper.findDecimal(cl.unit) %>)" type="text" value="<%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %>"></td>
|
|
|
- <td data-site="7"><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.oamount), tpUnit) %></td>
|
|
|
+ <td data-site="7"><%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %></td>
|
|
|
<td data-site="8"><input class="form-control form-control-sm" placeholder="变更数量" onkeyup="RegNum(this,event,<%= ctx.helper.findDecimal(cl.unit) %>)" type="text" value="<%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %>"></td>
|
|
|
- <td data-site="9"><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.camount), tpUnit) %></td>
|
|
|
+ <td data-site="9"><%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %></td>
|
|
|
<td><a class="text-danger">移除</a>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -534,11 +534,11 @@
|
|
|
<td><%= cl.unit %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.unit_price, upUnit) %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
- <td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.oamount), tpUnit) %></td>
|
|
|
+ <td><%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
- <td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.camount), tpUnit) %></td>
|
|
|
+ <td><%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %></td>
|
|
|
<td><%= cl.samount !== '' ? ctx.helper.roundNum(cl.samount, ctx.helper.findDecimal(cl.unit)) : '' %></td>
|
|
|
- <td><%= cl.samount !== '' ? ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.samount), tpUnit) : '' %></td>
|
|
|
+ <td><%= cl.samount !== '' ? ctx.helper.mul(cl.unit_price, cl.samount, tpUnit) : '' %></td>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<% } %>
|
|
@@ -593,13 +593,13 @@
|
|
|
<td><%= cl.unit %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.unit_price, upUnit) %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
- <td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.oamount), tpUnit) %></td>
|
|
|
+ <td><%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
- <td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.camount), tpUnit) %></td>
|
|
|
+ <td><%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %></td>
|
|
|
<% for (const audit of auditList2) { %>
|
|
|
<% if (audit.usite !== 0) { %>
|
|
|
<td><%= audit.list_amount[cindex] !== undefined ? ctx.helper.roundNum(audit.list_amount[cindex], ctx.helper.findDecimal(cl.unit)) : '' %></td>
|
|
|
- <td><%= audit.list_amount[cindex] !== undefined ? ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, audit.list_amount[cindex]), tpUnit) : '' %></td>
|
|
|
+ <td><%= audit.list_amount[cindex] !== undefined ? ctx.helper.mul(cl.unit_price, audit.list_amount[cindex], tpUnit) : '' %></td>
|
|
|
<% } %>
|
|
|
<% } %>
|
|
|
</td>
|
|
@@ -661,9 +661,9 @@
|
|
|
<td><%= cl.unit %></td>
|
|
|
<td data-site="5"><%= ctx.helper.roundNum(cl.unit_price, upUnit) %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.oamount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
- <td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.oamount), tpUnit) %></td>
|
|
|
+ <td><%= ctx.helper.mul(cl.unit_price, cl.oamount, tpUnit) %></td>
|
|
|
<td><%= ctx.helper.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
- <td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.camount), tpUnit) %></td>
|
|
|
+ <td><%= ctx.helper.mul(cl.unit_price, cl.camount, tpUnit) %></td>
|
|
|
<% for (const audit of auditList) { %>
|
|
|
<% if (audit.usite !== 0) { %>
|
|
|
<% if (uid === audit.uid && audit.status === 2) { %>
|
|
@@ -676,7 +676,7 @@
|
|
|
<% } else { %>
|
|
|
<td><%= audit.list_amount[cindex] !== undefined ? ctx.helper.roundNum(audit.list_amount[cindex], ctx.helper.findDecimal(cl.unit)) : '' %></td>
|
|
|
<% } %>
|
|
|
- <td<% if (uid === audit.uid) { %> class="amount_cost"<% } %>><%= audit.list_amount[cindex] !== undefined ? ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, audit.list_amount[cindex]), tpUnit) : '' %></td>
|
|
|
+ <td<% if (uid === audit.uid) { %> class="amount_cost"<% } %>><%= audit.list_amount[cindex] !== undefined ? ctx.helper.mul(cl.unit_price, audit.list_amount[cindex], tpUnit) : '' %></td>
|
|
|
<% } %>
|
|
|
<% } %>
|
|
|
</td>
|