|
@@ -25,6 +25,16 @@
|
|
|
.tab-content > .active,.pill-content > .active {
|
|
|
height: auto;
|
|
|
}
|
|
|
+ .nav-tabs-scrollable {
|
|
|
+ overflow-x: auto;
|
|
|
+ white-space: nowrap;
|
|
|
+ -webkit-overflow-scrolling: touch; /* 平滑滚动 */
|
|
|
+ scrollbar-width: none; /* Firefox 隐藏滚动条 */
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav-tabs-scrollable::-webkit-scrollbar {
|
|
|
+ display: none; /* Chrome / Safari 隐藏滚动条 */
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -50,24 +60,32 @@
|
|
|
</nav>
|
|
|
<!--标段概况-->
|
|
|
<div class="py-6">
|
|
|
- <!--标签-->
|
|
|
- <ul class="nav nav-tabs nav-fill">
|
|
|
- <li class="nav-item">
|
|
|
- <a class="px-1 nav-link active" data-toggle="tab" href="#gaikuang" role="tab">概况</a>
|
|
|
- </li>
|
|
|
- <li class="nav-item">
|
|
|
- <a class="px-1 nav-link" data-toggle="tab" href="#yufukuan" role="tab">预付款</a>
|
|
|
- </li>
|
|
|
- <li class="nav-item">
|
|
|
- <a class="px-1 nav-link" data-toggle="tab" href="#tzxiuding" role="tab">台账修订</a>
|
|
|
- </li>
|
|
|
- <li class="nav-item">
|
|
|
- <a class="px-1 nav-link" data-toggle="tab" href="#jlqi" role="tab">计量期</a>
|
|
|
- </li>
|
|
|
- <li class="nav-item">
|
|
|
- <a class="px-1 nav-link" data-toggle="tab" href="#biangeng" role="tab">工程变更</a>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <div class="nav-tabs-scrollable">
|
|
|
+ <!--标签-->
|
|
|
+ <ul class="nav nav-tabs nav-fill" style="flex-wrap: nowrap;min-width: max-content;">
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="px-2 nav-link active" data-toggle="tab" href="#gaikuang" role="tab">概况</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="px-2 nav-link" data-toggle="tab" href="#yufukuan" role="tab">预付款</a>
|
|
|
+ </li>
|
|
|
+<!-- <li class="nav-item">-->
|
|
|
+<!-- <a class="px-2 nav-link" data-toggle="tab" href="#ledger" role="tab">台账分解</a>-->
|
|
|
+<!-- </li>-->
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="px-2 nav-link" data-toggle="tab" href="#tzxiuding" role="tab">台账修订</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="px-2 nav-link" data-toggle="tab" href="#jlqi" role="tab">计量期</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="px-2 nav-link" data-toggle="tab" href="#biangeng" role="tab">工程变更</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="px-2 nav-link" data-toggle="tab" href="#material" role="tab">材料调差</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
<div class="tab-content">
|
|
|
<div class="tab-pane active" id="gaikuang">
|
|
|
<!--图表-->
|
|
@@ -101,6 +119,8 @@
|
|
|
</div>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
+ <div class="tab-pane" id="ledger">
|
|
|
+ </div>
|
|
|
<div class="tab-pane" id="tzxiuding">
|
|
|
<dl class="mb-2 mt-3">
|
|
|
<% for (const lr of revises) { %>
|
|
@@ -235,6 +255,76 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="tab-pane" id="material">
|
|
|
+ <!--期列表-->
|
|
|
+ <dl class="mb-2 mt-3">
|
|
|
+ <% for (const m of materials) { %>
|
|
|
+ <dt class="bg-light p-2 d-flex justify-content-between"><span>第<%- m.order %>期</span>
|
|
|
+ <span class="<%- auditMaterialConst.auditStringClass[m.status] %>">
|
|
|
+ <% if (m.curAuditors && m.curAuditors.length > 0 && m.status !== auditMaterialConst.status.checked) { %>
|
|
|
+ <% if (m.curAuditors[0].audit_type === auditType.key.common) { %>
|
|
|
+ <%- m.curAuditors[0].name %><%if (m.curAuditors[0].role !== '' && m.curAuditors[0].role !== null) { %>-<%- m.curAuditors[0].role %><% } %>
|
|
|
+ <% } else { %>
|
|
|
+ <%- ctx.helper.transFormToChinese(m.curAuditors[0].audit_order) + '审' %>
|
|
|
+ <% } %>
|
|
|
+ <% } %>
|
|
|
+ <%- m.status === auditMaterialConst.status.checked ? '审批完成' : auditMaterialConst.auditProgress[m.status] %>
|
|
|
+ </span>
|
|
|
+ </dt>
|
|
|
+ <dd>
|
|
|
+ <table class="table table-hover">
|
|
|
+ <tbody><tr>
|
|
|
+ <td>
|
|
|
+ <p class="mb-0">计量期</p>
|
|
|
+ <b>第<%- m.s_order %>期</b>
|
|
|
+ </td>
|
|
|
+ <% if (materialColShow[0].checked) { %>
|
|
|
+ <td>
|
|
|
+ <p class="mb-0">信息价价差费用</p>
|
|
|
+ <b>¥<%= m.m_tp !== null ? ctx.helper.round(m.m_tp, m.decimal.tp) : 0 %></b>
|
|
|
+ </td>
|
|
|
+ <% } %>
|
|
|
+ </tr>
|
|
|
+ <% if (materialColShow[0].checked) { %>
|
|
|
+ <tr>
|
|
|
+ <% if (openMaterialTax) { %>
|
|
|
+ <td>
|
|
|
+ <p class="mb-0">信息价(含材料税)</p>
|
|
|
+ <b>¥<% if (m.material_tax) { %><% if (m.m_tax_tp) { %><%- m.m_tax_tp || 0 %><% } else { %><%- m.m_tp || 0 %><% } %><% } else { %>0<% } %></b>
|
|
|
+ </td>
|
|
|
+ <% } %>
|
|
|
+ <% if ((openMaterialTax && !allMaterialTax) || !openMaterialTax) { %>
|
|
|
+ <td>
|
|
|
+ <p class="mb-0">信息价(含建筑税)</p>
|
|
|
+ <b>¥<% if (!m.material_tax) { %><%- m.rate_tp || 0 %><% } else { %>0<% } %></b>
|
|
|
+ </td>
|
|
|
+ <% } %>
|
|
|
+ </tr>
|
|
|
+ <% } %>
|
|
|
+ <% if (materialColShow[1].checked) { %>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <p class="mb-0">指数法价差费用</p>
|
|
|
+ <b>¥<%= m.ex_tp !== null ? ctx.helper.round(m.ex_tp, m.decimal.tp) : 0 %></b>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <p class="mb-0">指数法(含建筑税)</p>
|
|
|
+ <b>¥<%= m.ex_tp !== null ? ctx.helper.round(ctx.helper.mul(m.ex_tp, 1+m.exponent_rate/100), m.decimal.tp) : 0 %></b>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <% } %>
|
|
|
+ <% if (m.curAuditors && m.curAuditors.length > 0 && m.status == auditMaterialConst.status.checking && m.curAuditors.find(x => { return x.aid === ctx.session.sessionUser.accountId})) { %>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <a class="btn btn-block btn-success" href="/wap/tender/<%- m.tid %>/measure/material/<%- m.order %>">审批本期</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <% } %>
|
|
|
+ </tbody></table>
|
|
|
+ </dd>
|
|
|
+ <% } %>
|
|
|
+ </dl>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--底栏菜单-->
|
|
@@ -482,36 +572,41 @@
|
|
|
</script>
|
|
|
<script>
|
|
|
$(document).ready(function () {
|
|
|
- if (window.location.hash && window.location.hash === '#yufukuan') {
|
|
|
+ if (window.location.hash && window.location.hash !== '#gaikuang') {
|
|
|
$('#gaikuang').removeClass('active');
|
|
|
$('.nav-item a[href="#gaikuang"]').removeClass('active');
|
|
|
-
|
|
|
+ }
|
|
|
+ if (window.location.hash && window.location.hash === '#yufukuan') {
|
|
|
$('#yufukuan').addClass('active');
|
|
|
$('.nav-item a[href="#yufukuan"]').addClass('active');
|
|
|
+ } else if (window.location.hash && window.location.hash === '#ledger') {
|
|
|
+ $('#ledger').addClass('active');
|
|
|
+ $('.nav-item a[href="#ledger"]').addClass('active');
|
|
|
} else if (window.location.hash && window.location.hash === '#tzxiuding') {
|
|
|
- $('#gaikuang').removeClass('active');
|
|
|
- $('.nav-item a[href="#gaikuang"]').removeClass('active');
|
|
|
-
|
|
|
$('#tzxiuding').addClass('active');
|
|
|
$('.nav-item a[href="#tzxiuding"]').addClass('active');
|
|
|
} else if (window.location.hash && window.location.hash === '#jlqi') {
|
|
|
- $('#gaikuang').removeClass('active');
|
|
|
- $('.nav-item a[href="#gaikuang"]').removeClass('active');
|
|
|
-
|
|
|
$('#jlqi').addClass('active');
|
|
|
$('.nav-item a[href="#jlqi"]').addClass('active');
|
|
|
} else if (window.location.hash && window.location.hash === '#biangeng') {
|
|
|
- $('#gaikuang').removeClass('active');
|
|
|
- $('.nav-item a[href="#gaikuang"]').removeClass('active');
|
|
|
-
|
|
|
$('#biangeng').addClass('active');
|
|
|
$('.nav-item a[href="#biangeng"]').addClass('active');
|
|
|
+ } else if (window.location.hash && window.location.hash === '#material') {
|
|
|
+ $('#material').addClass('active');
|
|
|
+ $('.nav-item a[href="#material"]').addClass('active');
|
|
|
}
|
|
|
|
|
|
$('.show-content').on('click', function () {
|
|
|
$(this).parents('td').html($(this).data('content'));
|
|
|
});
|
|
|
|
|
|
+ const $container = $('.nav-tabs-scrollable');
|
|
|
+ const $activeTab = $container.find('.nav-tabs .nav-link.active');
|
|
|
+ if ($activeTab) {
|
|
|
+ $container.animate({
|
|
|
+ scrollLeft: $activeTab.position().left + $container.scrollLeft() - 20
|
|
|
+ }, 300); // 300 毫秒平滑滚动
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|