|
@@ -58,6 +58,13 @@
|
|
|
.bg-con-warp:nth-child(2) th{
|
|
|
text-align: center !important;
|
|
|
}
|
|
|
+ .change-title {
|
|
|
+ font-size: 16px;
|
|
|
+ margin: 0;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
</style>
|
|
|
<div class="panel-sidebar">
|
|
|
<div class="panel-title">
|
|
@@ -85,39 +92,31 @@
|
|
|
<div class="title-main d-flex justify-content-between">
|
|
|
<h2 id="info_title" class="show_title">变更信息</h2>
|
|
|
<div id="bills_title" class="show_title" style="display: none">
|
|
|
- <% if (auditStatus === 1 || auditStatus === 2) { %>
|
|
|
<div>
|
|
|
+ <% if (auditStatus === 1 || auditStatus === 2) { %>
|
|
|
<div class="d-inline-block">
|
|
|
<a href="#addlist" data-toggle="modal" class="btn btn-sm" id="open-list-modal" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="添加清单"><i class="fa fa-plus" aria-hidden="true"></i> 添加清单</a>
|
|
|
</div>
|
|
|
- <div class="d-inline-block ml-3">
|
|
|
- <div class="custom-control custom-checkbox" style="line-height: normal;">
|
|
|
- <input type="checkbox" class="custom-control-input change-detail-checkbox" id="customCheck1" checked>
|
|
|
- <label class="custom-control-label" for="customCheck1">变更详情</label>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <% } else { %>
|
|
|
- <div>
|
|
|
+ <% } else { %>
|
|
|
<div class="d-inline-block">
|
|
|
- <h2>变更清单</h2>
|
|
|
+ <h2 class="change-title">变更清单</h2>
|
|
|
</div>
|
|
|
+ <% } %>
|
|
|
<div class="d-inline-block ml-3">
|
|
|
<div class="custom-control custom-checkbox" style="line-height: normal;">
|
|
|
- <input type="checkbox" class="custom-control-input change-detail-checkbox" id="customCheck1">
|
|
|
+ <input type="checkbox" class="custom-control-input change-detail-checkbox" id="customCheck1" checked>
|
|
|
<label class="custom-control-label" for="customCheck1">变更详情</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <% if (auditStatus !== 6 ) { %>
|
|
|
+ <% if (auditStatus === 3 || auditStatus === 4 || auditStatus === 5 || auditStatus === 7) { %>
|
|
|
<div class="d-inline-block ml-3">
|
|
|
<div class="custom-control custom-checkbox" style="line-height: normal;">
|
|
|
- <input type="checkbox" class="custom-control-input" id="customCheck1">
|
|
|
- <label class="custom-control-label" for="customCheck1">审批过程</label>
|
|
|
+ <input type="checkbox" class="custom-control-input" id="show-table-detail">
|
|
|
+ <label class="custom-control-label" for="show-table-detail">审批过程</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
- <% } %>
|
|
|
</div>
|
|
|
<div id="files_title" class="show_title" style="display: none">
|
|
|
<% if (auditStatus === 1 || auditStatus === 2 || auditStatus === 6) { %>
|
|
@@ -125,7 +124,7 @@
|
|
|
<i class="fa fa-cloud-upload" aria-hidden="true"></i> 上传附件
|
|
|
</a>
|
|
|
<% } else { %>
|
|
|
- <h2>附件</h2>
|
|
|
+ <h2 class="change-title">附件</h2>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
<input id="tenderId" value="<%= tender.id %>" type="hidden">
|
|
@@ -397,7 +396,7 @@
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label><b class="text-danger">* </b>批复文号</label>
|
|
|
- <input class="form-control" id="w_code" placeholder="" type="text" value="<%- change.w_code %>" <% if (auditStatus === 6) { %>readonly<% } %>>
|
|
|
+ <input class="form-control" id="w_code" placeholder="" type="text" value="<%- change.w_code %>" <% if (auditStatus !== 6) { %>readonly<% } %>>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
@@ -408,7 +407,7 @@
|
|
|
<div class="c-body tab-pane first-bill-pane" role="tabpanel" id="bills">
|
|
|
<!--变更清单-->
|
|
|
<% if (auditStatus === 1 || auditStatus === 2) { %>
|
|
|
- <table class="table table-striped table-bordered nowrap qd-table" id="tablelist" cellspacing="0" style="width:100%">
|
|
|
+ <table class="table table-striped table-bordered nowrap qd-table table-list" id="tablelist" cellspacing="0" style="width:100%">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th rowspan="2" class="text-center">清单编号</th>
|
|
@@ -481,7 +480,121 @@
|
|
|
</tfoot>
|
|
|
</table>
|
|
|
<% } else if (auditStatus === 3 || auditStatus === 4 || auditStatus === 5 || auditStatus === 7) { %>
|
|
|
+ <table class="table table-striped table-bordered nowrap qd-table table-list" id="tablelist" cellspacing="0" style="width:100%">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th rowspan="2" class="text-center">清单编号</th>
|
|
|
+ <th rowspan="2" class="text-center">名称</th>
|
|
|
+ <th rowspan="2" class="text-center">变更详情</th>
|
|
|
+ <th rowspan="2" class="text-center">单位</th>
|
|
|
+ <th rowspan="2" class="text-center">单价</th>
|
|
|
+ <th colspan="2" class="text-center">原设计</th>
|
|
|
+ <th colspan="2" class="text-center">申报变更</th>
|
|
|
+ <th colspan="2" class="text-center">审批后变更</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="text-center">数量</th>
|
|
|
+ <th class="text-center">金额</th>
|
|
|
+ <th class="text-center">数量</th>
|
|
|
+ <th class="text-center">金额</th>
|
|
|
+ <th class="text-center">数量</th>
|
|
|
+ <th class="text-center">金额</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="list">
|
|
|
+ <% for (const cl of changeList.sort()) { %>
|
|
|
+ <tr>
|
|
|
+ <td><%= cl.code %></td>
|
|
|
+ <td><%= cl.name %></td>
|
|
|
+ <td><%= cl.detail %></td>
|
|
|
+ <td><%= cl.unit %></td>
|
|
|
+ <td><%= ctx.helper.roundNum(cl.unit_price, tpUnit) %></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.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
+ <td><%= ctx.helper.roundNum(ctx.helper.accMul(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>
|
|
|
+ </tr>
|
|
|
+ <% } %>
|
|
|
+ </tbody>
|
|
|
+ <tfoot>
|
|
|
+ <tr class="info">
|
|
|
+ <td>合计</td><td></td><td></td><td></td><td></td><td></td>
|
|
|
+ <td><%= ctx.helper.roundNum(ototalCost, tpUnit) %></td><td></td>
|
|
|
+ <td><%= ctx.helper.roundNum(ctotalCost, tpUnit) %></td><td></td>
|
|
|
+ <td><%= stotalCost !== 0 ? ctx.helper.roundNum(stotalCost, tpUnit) : '' %></td>
|
|
|
+ </tr>
|
|
|
+ </tfoot>
|
|
|
+ </table>
|
|
|
|
|
|
+ <table class="table table-striped table-bordered nowrap qd-table table-list" id="tablelist2" cellspacing="0" style="width:100%;display: none;">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th rowspan="2" class="text-center">清单编号</th>
|
|
|
+ <th rowspan="2" class="text-center">名称</th>
|
|
|
+ <th rowspan="2" class="text-center">变更详情</th>
|
|
|
+ <th rowspan="2" class="text-center">单位</th>
|
|
|
+ <th rowspan="2" class="text-center">单价</th>
|
|
|
+ <th colspan="2" class="text-center">原设计</th>
|
|
|
+ <th colspan="2" class="text-center">申报变更</th>
|
|
|
+ <% for (const audit of auditList2) { %>
|
|
|
+ <% if (audit.usite !== 0) { %>
|
|
|
+ <th colspan="2" class="text-center"><%= audit.name %> 审批</th>
|
|
|
+ <% } %>
|
|
|
+ <% } %>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="text-center">数量</th>
|
|
|
+ <th class="text-center">金额</th>
|
|
|
+ <th class="text-center">数量</th>
|
|
|
+ <th class="text-center">金额</th>
|
|
|
+ <% for (const audit of auditList2) { %>
|
|
|
+ <% if (audit.usite !== 0) { %>
|
|
|
+ <th class="text-center">数量</th>
|
|
|
+ <th class="text-center">金额</th>
|
|
|
+ <% } %>
|
|
|
+ <% } %>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="list">
|
|
|
+ <% const audittotalCost = []; %>
|
|
|
+ <% for (const [cindex,cl] of changeList.sort().entries()) { %>
|
|
|
+ <tr>
|
|
|
+ <td><%= cl.code %></td>
|
|
|
+ <td><%= cl.name %></td>
|
|
|
+ <td><%= cl.detail %></td>
|
|
|
+ <td><%= cl.unit %></td>
|
|
|
+ <td><%= ctx.helper.roundNum(cl.unit_price, tpUnit) %></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.roundNum(cl.camount, ctx.helper.findDecimal(cl.unit)) %></td>
|
|
|
+ <td><%= ctx.helper.roundNum(ctx.helper.accMul(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>
|
|
|
+ </tr>
|
|
|
+ <% } %>
|
|
|
+ </tbody>
|
|
|
+ <tfoot>
|
|
|
+ <tr class="info">
|
|
|
+ <td>合计</td><td></td><td></td><td></td><td></td><td></td>
|
|
|
+ <td><%= ctx.helper.roundNum(ototalCost, tpUnit) %></td><td></td>
|
|
|
+ <td><%= ctx.helper.roundNum(ctotalCost, tpUnit) %></td>
|
|
|
+ <% for (const audit of auditList2) { %>
|
|
|
+ <% if (audit.usite !== 0) { %>
|
|
|
+ <td></td><td><%=audit.totalCost !== 0 ? ctx.helper.roundNum(audit.totalCost, tpUnit) : '' %></td>
|
|
|
+ <% } %>
|
|
|
+ <% } %>
|
|
|
+ </tr>
|
|
|
+ </tfoot>
|
|
|
+ </table>
|
|
|
<% } else if (auditStatus === 6) { %>
|
|
|
|
|
|
<% } %>
|
|
@@ -490,7 +603,13 @@
|
|
|
<div class="c-body tab-pane" role="tabpanel" id="files">
|
|
|
<table class="table table-bordered">
|
|
|
<thead>
|
|
|
- <tr><th width="50">序号</th><th>名称</th><th width="90">大小</th><th width="100">上传时间</th><th width="100">操作</th></tr>
|
|
|
+ <tr>
|
|
|
+ <th width="50">序号</th>
|
|
|
+ <th>名称</th>
|
|
|
+ <th width="90">大小</th>
|
|
|
+ <th width="100">上传时间</th>
|
|
|
+ <th width="100">操作</th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<tbody id="attList">
|
|
|
<% if (attList !== undefined && attList !== '') { %>
|
|
@@ -542,12 +661,39 @@
|
|
|
<script src="/public/js/datatable/dataTables.fixedColumns.min.js"></script>
|
|
|
<script src="/public/js/datatable/jlzf-change-table.js"></script>
|
|
|
<script src="/public/js/change_calculation.js"></script>
|
|
|
-<script src="/public/js/change_detail.js"></script>
|
|
|
<% if (auditStatus === 1 || auditStatus === 2) { %>
|
|
|
<script>
|
|
|
const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
|
|
|
const changeUnits = JSON.parse('<%- JSON.stringify(changeUnits) %>');
|
|
|
const totalPriceUnit = '<%- tpUnit %>';
|
|
|
+ const billsTable = {
|
|
|
+ columnDefs: [
|
|
|
+ { className: 'allwidth1', width: 100, targets: 0 },
|
|
|
+ { className: 'allwidth2', width: 150, targets: [1,2] },
|
|
|
+ { className: 'allwidth4', width: 40, targets: 9 },
|
|
|
+ { className: 'allwidth5', width: 60, targets: 3 },
|
|
|
+ { className: 'allwidth3',width: 80, targets: '_all' }
|
|
|
+ ],
|
|
|
+ fixedColumns: {
|
|
|
+ leftColumns: 5
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
<script src="/public/js/change_set.js"></script>
|
|
|
+<% } else if (auditStatus === 3 || auditStatus === 4 || auditStatus === 5 || auditStatus === 7) { %>
|
|
|
+<script>
|
|
|
+ const billsTable = {
|
|
|
+ columnDefs: [
|
|
|
+ { className: 'allwidth1', width: 100, targets: 0 },
|
|
|
+ { className: 'allwidth2', width: 150, targets: [1,2] },
|
|
|
+ { className: 'allwidth5', width: 60, targets: 3 },
|
|
|
+ { className: 'allwidth3',width: 80, targets: '_all' }
|
|
|
+ ],
|
|
|
+ fixedColumns: {
|
|
|
+ leftColumns: 5
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<script src="/public/js/change_show.js"></script>
|
|
|
<% } %>
|
|
|
+<script src="/public/js/change_detail.js"></script>
|