|
@@ -31,13 +31,13 @@
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</a>
|
|
<% if ((material.status === auditConst.status.uncheck || material.status === auditConst.status.checkNo) && ctx.session.sessionUser.accountId === material.user_id) { %>
|
|
<% if ((material.status === auditConst.status.uncheck || material.status === auditConst.status.checkNo) && ctx.session.sessionUser.accountId === material.user_id) { %>
|
|
- <a href="#import-info" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#import-info">导入信息价</a>
|
|
|
|
|
|
+ <a href="#import-info" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#import-info">导入信息价</a>
|
|
<% } %>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ml-auto">
|
|
<div class="ml-auto">
|
|
<% if (ctx.session.sessionProject.page_show.openMaterialChecklist && material.order === material.highOrder) { %>
|
|
<% if (ctx.session.sessionProject.page_show.openMaterialChecklist && material.order === material.highOrder) { %>
|
|
- <a href="/tender/<%- ctx.tender.id %>/measure/material/<%- material.highOrder %>/checklist" class="btn btn-sm btn-outline-primary">批量设置调差清单</a>
|
|
|
|
|
|
+ <a href="/tender/<%- ctx.tender.id %>/measure/material/<%- material.highOrder %>/checklist" class="btn btn-sm btn-outline-primary">批量设置调差清单</a>
|
|
<% } %>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -90,134 +90,191 @@
|
|
<!--下部分-->
|
|
<!--下部分-->
|
|
<div class="bcontent-wrap mt-1" id="main-bottom">
|
|
<div class="bcontent-wrap mt-1" id="main-bottom">
|
|
<div id="main-resize" class="resize-y" r-Type="height" div1=".sjs-height-1" div2=".bcontent-wrap" title="调整大小"><!--调整上下高度条--></div>
|
|
<div id="main-resize" class="resize-y" r-Type="height" div1=".sjs-height-1" div2=".bcontent-wrap" title="调整大小"><!--调整上下高度条--></div>
|
|
-
|
|
|
|
- <div class="bc-bar mb-1">
|
|
|
|
- <div class="input-group input-group-sm ">
|
|
|
|
- <div class="input-group-prepend">
|
|
|
|
- <span class="input-group-text" id="basic-addon1">建筑增值税</span>
|
|
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-6">
|
|
|
|
+ <div class="bc-bar mb-1">
|
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
|
+ <li class="nav-item">
|
|
|
|
+ <a class="nav-link active" data-toggle="tab" href="#yhly" role="tab">应耗来源</a>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
</div>
|
|
</div>
|
|
- <input id="rateInput" class="form-control form-control-sm col-1" <% if (material.material_tax || material.readOnly || material.editForAudit) { %>disabled<% } %> type="number" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" min="0" step="1" max="100" value="<%- material.rate %>">
|
|
|
|
- <% if (!material.readOnly || !material.editForAudit || !material.material_tax) { %>
|
|
|
|
- <div class="dropdown-menu">
|
|
|
|
- <a class="dropdown-item changeRate" href="javascript:void(0);" data-value="9">9%</a>
|
|
|
|
- <a class="dropdown-item changeRate" href="javascript:void(0);" data-value="10">10%</a>
|
|
|
|
- <a class="dropdown-item changeRate" href="javascript:void(0);" data-value="11">11%</a>
|
|
|
|
|
|
+ <div class="tab-content">
|
|
|
|
+ <div class="tab-pane active" id="yhly">
|
|
|
|
+ <div class="sp-wrap" id="material-source-spread">
|
|
|
|
+ <!--<table class="table table-sm table-bordered">-->
|
|
|
|
+ <!--<tr class="text-center">-->
|
|
|
|
+ <!--<th width="80px">清单编号</th>-->
|
|
|
|
+ <!--<th width="">名称</th>-->
|
|
|
|
+ <!--<th width="80px">单位</th>-->
|
|
|
|
+ <!--<th width="100px">本期应耗</th>-->
|
|
|
|
+ <!--</tr>-->
|
|
|
|
+ <!--<tr>-->
|
|
|
|
+ <!--<td class="text-left">403-1-a</td>-->
|
|
|
|
+ <!--<td class="text-left">光圆钢筋(HPB235、HPB300)</td>-->
|
|
|
|
+ <!--<td class="text-center">kg</td>-->
|
|
|
|
+ <!--<td class="text-right">50.256</td>-->
|
|
|
|
+ <!--</tr>-->
|
|
|
|
+ <!--<tr>-->
|
|
|
|
+ <!--<td class="text-left">403-1-b</td>-->
|
|
|
|
+ <!--<td class="text-left">带肋钢筋(HRB335、HRB400)</td>-->
|
|
|
|
+ <!--<td class="text-center">kg</td>-->
|
|
|
|
+ <!--<td class="text-right">60.258</td>-->
|
|
|
|
+ <!--</tr>-->
|
|
|
|
+ <!--<tr>-->
|
|
|
|
+ <!--<td class="text-left">403-2-a</td>-->
|
|
|
|
+ <!--<td class="text-left">光圆钢筋(HPB235、HPB300)</td>-->
|
|
|
|
+ <!--<td class="text-center">kg</td>-->
|
|
|
|
+ <!--<td class="text-right">40</td>-->
|
|
|
|
+ <!--</tr>-->
|
|
|
|
+ <!--</table>-->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <% } %>
|
|
|
|
- <!--<select class="form-control form-control-sm col-1" id="changeRate" <% if (material.material_tax) { %>disabled<% } %>>-->
|
|
|
|
- <!--<% if (!material.readOnly) { %>-->
|
|
|
|
- <!--<option value="9" <% if(material.rate === 9) { %>selected<% } %>>9%</option>-->
|
|
|
|
- <!--<option value="10" <% if(material.rate === 10) { %>selected<% } %>>10%</option>-->
|
|
|
|
- <!--<option value="11" <% if(material.rate === 11) { %>selected<% } %>>11%</option>-->
|
|
|
|
- <!--<% } else { %>-->
|
|
|
|
- <!--<option value="<%= material.rate %>" selected><%= material.rate %>%</option>-->
|
|
|
|
- <!--<% } %>-->
|
|
|
|
- <!--</select>-->
|
|
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="material-table-height row mr-1" style="overflow-y: auto">
|
|
|
|
- <div class="col-8">
|
|
|
|
- <% if (!material.material_tax && !old_had_tax) { %>
|
|
|
|
- <div class="sp-wrap" style="max-width: 800px;min-width: 500px;">
|
|
|
|
- <div class="col-12 p-0">
|
|
|
|
- <table class="table table-sm table-bordered">
|
|
|
|
- <tr><th rowspan="2"></th><th colspan="2" class="text-center">信息价</th><th colspan="2" class="text-center">价格指数</th></tr>
|
|
|
|
- <tr class="text-center"><th>本期金额</th><th>截止本期金额</th>
|
|
|
|
- <th>本期金额
|
|
|
|
- <a href="javascript:void(0);" id="ex_expr" data-toggle="tooltip" data-placement="bottom" title="本期价差:<%- material.ex_expr ? material.ex_expr : '' %>"><i class="fa fa-question-circle-o"></i></a></th>
|
|
|
|
- <th>截止本期金额</th></tr>
|
|
|
|
- <tr id="tp_set"><td>材料价差费用</td>
|
|
|
|
- <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(material.m_tp, material.decimal.tp) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.add(material.pre_tp, ctx.helper.round(material.m_tp, material.decimal.tp)) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.decimal.tp) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(material.ex_pre_tp, ctx.helper.round(material.ex_tp, material.decimal.tp)) : null %></td>
|
|
|
|
- </tr>
|
|
|
|
- <tr id="rate_set"><td>材料价差费用(含建筑税)</td>
|
|
|
|
- <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.m_tp !== null || pre_tp_hs !== null ? ctx.helper.add(pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp)) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp)) : null %></td>
|
|
|
|
- </tr>
|
|
|
|
- </table>
|
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
+ <div class="bc-bar mb-1">
|
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
|
+ <li class="nav-item">
|
|
|
|
+ <a class="nav-link active" data-toggle="tab" href="#fysum" role="tab">费用统计</a>
|
|
|
|
+ </li>
|
|
|
|
+ <% if (material.is_stage_self) { %>
|
|
|
|
+ <li class="nav-item">
|
|
|
|
+ <a class="nav-link " data-toggle="tab" href="#qidetail" role="tab">各期统计</a>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <li class="nav-item ml-2">
|
|
|
|
+ <div class="ml-2">
|
|
|
|
+ <!--调整税率-->
|
|
|
|
+ <div class="d-inline-flex">
|
|
|
|
+ <div class="input-group input-group-sm">
|
|
|
|
+ <div class="input-group-prepend">
|
|
|
|
+ <span class="input-group-text" id="basic-addon1">建筑增值税</span>
|
|
|
|
+ </div>
|
|
|
|
+ <input id="rateInput" class="form-control form-control-sm" <% if (material.material_tax || material.readOnly || material.editForAudit) { %>disabled<% } %> type="number" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" min="0" step="1" max="100" value="<%- material.rate %>">
|
|
|
|
+ <% if (!material.readOnly || !material.editForAudit || !material.material_tax) { %>
|
|
|
|
+ <div class="dropdown-menu">
|
|
|
|
+ <a class="dropdown-item changeRate" href="javascript:void(0);" data-value="9">9%</a>
|
|
|
|
+ <a class="dropdown-item changeRate" href="javascript:void(0);" data-value="10">10%</a>
|
|
|
|
+ <a class="dropdown-item changeRate" href="javascript:void(0);" data-value="11">11%</a>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ <!--<select class="form-control form-control-sm col-1" id="changeRate" <% if (material.material_tax) { %>disabled<% } %>>-->
|
|
|
|
+ <!--<% if (!material.readOnly) { %>-->
|
|
|
|
+ <!--<option value="9" <% if(material.rate === 9) { %>selected<% } %>>9%</option>-->
|
|
|
|
+ <!--<option value="10" <% if(material.rate === 10) { %>selected<% } %>>10%</option>-->
|
|
|
|
+ <!--<option value="11" <% if(material.rate === 11) { %>selected<% } %>>11%</option>-->
|
|
|
|
+ <!--<% } else { %>-->
|
|
|
|
+ <!--<option value="<%= material.rate %>" selected><%= material.rate %>%</option>-->
|
|
|
|
+ <!--<% } %>-->
|
|
|
|
+ <!--</select>-->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="tab-content">
|
|
|
|
+ <div class="tab-pane active" id="fysum">
|
|
|
|
+ <div class="sp-wrap">
|
|
|
|
+ <% if (!material.material_tax && !old_had_tax) { %>
|
|
|
|
+ <table class="table table-sm table-bordered">
|
|
|
|
+ <tr><th rowspan="2"></th><th colspan="2" class="text-center">信息价</th><th colspan="2" class="text-center">价格指数</th></tr>
|
|
|
|
+ <tr class="text-center"><th>本期金额</th><th>截止本期金额</th>
|
|
|
|
+ <th>本期金额
|
|
|
|
+ <a href="javascript:void(0);" id="ex_expr" data-toggle="tooltip" data-placement="bottom" title="本期价差:<%- material.ex_expr ? material.ex_expr : '' %>"><i class="fa fa-question-circle-o"></i></a></th>
|
|
|
|
+ <th>截止本期金额</th></tr>
|
|
|
|
+ <tr id="tp_set"><td>材料价差费用</td>
|
|
|
|
+ <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(material.m_tp, material.decimal.tp) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.add(material.pre_tp, ctx.helper.round(material.m_tp, material.decimal.tp)) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.decimal.tp) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(material.ex_pre_tp, ctx.helper.round(material.ex_tp, material.decimal.tp)) : null %></td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr id="rate_set"><td>材料价差费用(含建筑税)</td>
|
|
|
|
+ <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.m_tp !== null || pre_tp_hs !== null ? ctx.helper.add(pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp)) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp)) : null %></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <table class="table table-sm table-bordered">
|
|
|
|
+ <tr><th rowspan="2"></th><th colspan="2" class="text-center">信息价</th><th colspan="2" class="text-center">价格指数</th></tr>
|
|
|
|
+ <tr class="text-center"><th>本期金额</th><th>截止本期金额</th>
|
|
|
|
+ <th>本期金额
|
|
|
|
+ <a href="javascript:void(0);" id="ex_expr" data-toggle="tooltip" data-placement="bottom" title="本期价差:<%- material.ex_expr ? material.ex_expr : '' %>"><i class="fa fa-question-circle-o"></i></a></th>
|
|
|
|
+ <th>截止本期金额</th></tr>
|
|
|
|
+ <tr id="tp_set"><td>材料价差费用</td>
|
|
|
|
+ <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(material.m_tp, material.decimal.tp) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.add(material.pre_tp, ctx.helper.round(material.m_tp, material.decimal.tp)) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.decimal.tp) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(material.ex_pre_tp, ctx.helper.round(material.ex_tp, material.decimal.tp)) : null %></td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr id="tax_rate_set"><td>材料价差费用(含材料税)</td>
|
|
|
|
+ <td class="text-center"><%= material.material_tax ? (material.m_tax_tp !== null ? material.m_tax_tp : null) : '-' %></td>
|
|
|
|
+ <td class="text-center"><%= material.material_tax ? (material.m_tax_tp !== null || material.m_tax_pre_tp !== null ? ctx.helper.add(material.m_tax_pre_tp, material.m_tax_tp) : null) : material.m_tax_pre_tp %></td>
|
|
|
|
+ <td class="text-center">-</td>
|
|
|
|
+ <td class="text-center">-</td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr id="rate_set"><td>材料价差费用(含建筑税)</td>
|
|
|
|
+ <td class="text-center"><%= !material.material_tax ? (material.m_tp !== null ? ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp) : null) : '-' %></td>
|
|
|
|
+ <td class="text-center"><%= !material.material_tax ? (material.m_tp !== null || pre_tp_hs !== null ? ctx.helper.add(pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp)) : null) : pre_tp_hs !== null ? pre_tp_hs : '-' %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp) : null %></td>
|
|
|
|
+ <td class="text-center"><%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp)) : null %></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <% } else { %>
|
|
|
|
- <div class="sp-wrap" style="max-width: 800px;min-width: 500px;">
|
|
|
|
- <div class="col-12 p-0">
|
|
|
|
- <table class="table table-sm table-bordered">
|
|
|
|
- <tr><th rowspan="2"></th><th colspan="2" class="text-center">信息价</th><th colspan="2" class="text-center">价格指数</th></tr>
|
|
|
|
- <tr class="text-center"><th>本期金额</th><th>截止本期金额</th>
|
|
|
|
- <th>本期金额
|
|
|
|
- <a href="javascript:void(0);" id="ex_expr" data-toggle="tooltip" data-placement="bottom" title="本期价差:<%- material.ex_expr ? material.ex_expr : '' %>"><i class="fa fa-question-circle-o"></i></a></th>
|
|
|
|
- <th>截止本期金额</th></tr>
|
|
|
|
- <tr id="tp_set"><td>材料价差费用</td>
|
|
|
|
- <td class="text-center"><%= material.m_tp !== null ? ctx.helper.round(material.m_tp, material.decimal.tp) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.m_tp !== null || material.pre_tp !== null ? ctx.helper.add(material.pre_tp, ctx.helper.round(material.m_tp, material.decimal.tp)) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(material.ex_tp, material.decimal.tp) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null || material.ex_pre_tp !== null ? ctx.helper.add(material.ex_pre_tp, ctx.helper.round(material.ex_tp, material.decimal.tp)) : null %></td>
|
|
|
|
- </tr>
|
|
|
|
- <tr id="tax_rate_set"><td>材料价差费用(含材料税)</td>
|
|
|
|
- <td class="text-center"><%= material.material_tax ? (material.m_tax_tp !== null ? material.m_tax_tp : null) : '-' %></td>
|
|
|
|
- <td class="text-center"><%= material.material_tax ? (material.m_tax_tp !== null || material.m_tax_pre_tp !== null ? ctx.helper.add(material.m_tax_pre_tp, material.m_tax_tp) : null) : material.m_tax_pre_tp %></td>
|
|
|
|
- <td class="text-center">-</td>
|
|
|
|
- <td class="text-center">-</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr id="rate_set"><td>材料价差费用(含建筑税)</td>
|
|
|
|
- <td class="text-center"><%= !material.material_tax ? (material.m_tp !== null ? ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp) : null) : '-' %></td>
|
|
|
|
- <td class="text-center"><%= !material.material_tax ? (material.m_tp !== null || pre_tp_hs !== null ? ctx.helper.add(pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.m_tp, 1+material.rate/100), material.decimal.tp)) : null) : pre_tp_hs !== null ? pre_tp_hs : '-' %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp) : null %></td>
|
|
|
|
- <td class="text-center"><%= material.ex_tp !== null || ex_pre_tp_hs !== null ? ctx.helper.add(ex_pre_tp_hs, ctx.helper.round(ctx.helper.mul(material.ex_tp, 1+material.exponent_rate/100), material.decimal.tp)) : null %></td>
|
|
|
|
- </tr>
|
|
|
|
- </table>
|
|
|
|
|
|
+ <% if (material.is_stage_self) { %>
|
|
|
|
+ <div class="tab-pane" id="qidetail">
|
|
|
|
+ <div class="sp-wrap">
|
|
|
|
+ <table class="table table-bordered">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr class="text-center"><th colspan="<% if (material.material_tax) { %>3<% } else { %>2<% } %>">期明细</th></tr>
|
|
|
|
+ <tr><th class="text-center">期数</th>
|
|
|
|
+ <th class="text-center">本期调差金额</th>
|
|
|
|
+ <% if (material.material_tax) { %>
|
|
|
|
+ <th class="text-center">本期调差金额(材料税)</th>
|
|
|
|
+ <% } %>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="materialStageTable">
|
|
|
|
+ <% for (const ms of materialStageData) { %>
|
|
|
|
+ <tr><td>第<%- ms.order %>期</td><td class="text-center"><%- ms.m_tp !== null ? ms.m_tp : null %></td>
|
|
|
|
+ <% if (material.material_tax) { %>
|
|
|
|
+ <td class="text-center"><%- ms.m_tax_tp !== null ? ms.m_tax_tp : null %></td>
|
|
|
|
+ <% } %>
|
|
|
|
+ </tr>
|
|
|
|
+ <% } %>
|
|
|
|
+ <tr><td>合计</td><td class="text-center"><%- material.m_tp %></td>
|
|
|
|
+ <% if (material.material_tax) { %>
|
|
|
|
+ <td class="text-center"><%- material.m_tax_tp %></td>
|
|
|
|
+ <% } %>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <% } %>
|
|
|
|
- </div>
|
|
|
|
- <% if (material.is_stage_self) { %>
|
|
|
|
- <div class="col-4">
|
|
|
|
- <table class="table table-bordered">
|
|
|
|
- <thead>
|
|
|
|
- <tr class="text-center"><th colspan="<% if (material.material_tax) { %>3<% } else { %>2<% } %>">期明细</th></tr>
|
|
|
|
- <tr><th class="text-center">期数</th>
|
|
|
|
- <th class="text-center">本期调差金额</th>
|
|
|
|
- <% if (material.material_tax) { %>
|
|
|
|
- <th class="text-center">本期调差金额(材料税)</th>
|
|
|
|
- <% } %>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody id="materialStageTable">
|
|
|
|
- <% for (const ms of materialStageData) { %>
|
|
|
|
- <tr><td>第<%- ms.order %>期</td><td class="text-center"><%- ms.m_tp !== null ? ms.m_tp : null %></td>
|
|
|
|
- <% if (material.material_tax) { %>
|
|
|
|
- <td class="text-center"><%- ms.m_tax_tp !== null ? ms.m_tax_tp : null %></td>
|
|
|
|
- <% } %>
|
|
|
|
- </tr>
|
|
|
|
<% } %>
|
|
<% } %>
|
|
- <tr><td>合计</td><td class="text-center"><%- material.m_tp %></td>
|
|
|
|
- <% if (material.material_tax) { %>
|
|
|
|
- <td class="text-center"><%- material.m_tax_tp %></td>
|
|
|
|
- <% } %>
|
|
|
|
- </tr>
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <% } %>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="side-menu">
|
|
|
|
- <!--右侧菜单-->
|
|
|
|
- <ul class="nav flex-column right-nav">
|
|
|
|
- <% if (!material.is_stage_self) { %>
|
|
|
|
- <li class="nav-item">
|
|
|
|
- <a class="nav-link" content="#month-tab" href="javascript: void(0);">月信息价</a>
|
|
|
|
- </li>
|
|
|
|
- <% } %>
|
|
|
|
- <li class="nav-item">
|
|
|
|
- <a class="nav-link" content="#material-tab" href="javascript: void(0);">工料机库</a>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="side-menu">
|
|
|
|
+ <!--右侧菜单-->
|
|
|
|
+ <ul class="nav flex-column right-nav">
|
|
|
|
+ <% if (!material.is_stage_self) { %>
|
|
|
|
+ <li class="nav-item">
|
|
|
|
+ <a class="nav-link" content="#month-tab" href="javascript: void(0);">月信息价</a>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <li class="nav-item">
|
|
|
|
+ <a class="nav-link" content="#material-tab" href="javascript: void(0);">工料机库</a>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -259,4 +316,6 @@
|
|
const months = JSON.parse('<%- JSON.stringify(months) %>');
|
|
const months = JSON.parse('<%- JSON.stringify(months) %>');
|
|
let monthsList = JSON.parse('<%- JSON.stringify(monthsList) %>');
|
|
let monthsList = JSON.parse('<%- JSON.stringify(monthsList) %>');
|
|
const gljLists = JSON.parse(unescape('<%- escape(JSON.stringify(gljLists)) %>'));
|
|
const gljLists = JSON.parse(unescape('<%- escape(JSON.stringify(gljLists)) %>'));
|
|
|
|
+ const openMaterialChecklist = parseInt(<%- ctx.session.sessionProject.page_show.openMaterialChecklist %>);
|
|
|
|
+ let materialListData2, materialChecklistData, notJoinList, ledger, curLedgerData, pos, curPosData, gclGatherData, gclList, selfList, gclGatherListData;
|
|
</script>
|
|
</script>
|