|
@@ -134,13 +134,13 @@
|
|
<div>
|
|
<div>
|
|
<a href="#sub-ap" data-category="save_change" data-toggle="modal" data-target="#sub-ap" class="btn btn-sm btn-success pull-right">保存修改</a>
|
|
<a href="#sub-ap" data-category="save_change" data-toggle="modal" data-target="#sub-ap" class="btn btn-sm btn-success pull-right">保存修改</a>
|
|
<a href="#sub-ap" data-category="up_change" data-toggle="modal" data-target="#sub-ap" class="btn btn-primary btn-sm pull-right">上报审批</a>
|
|
<a href="#sub-ap" data-category="up_change" data-toggle="modal" data-target="#sub-ap" class="btn btn-primary btn-sm pull-right">上报审批</a>
|
|
- <a href="#" class="btn btn-outline-danger btn-sm pull-right text-truncate" style="max-width: 100px;" title="删除 <%- change.code %>">删除 <%- change.code %></a>
|
|
|
|
|
|
+ <!--<a href="#" class="btn btn-outline-danger btn-sm pull-right text-truncate" style="max-width: 100px;" title="删除 <%- change.code %>">删除 <%- change.code %></a>-->
|
|
</div>
|
|
</div>
|
|
<% } else if (auditStatus === 2) { %>
|
|
<% } else if (auditStatus === 2) { %>
|
|
<div>
|
|
<div>
|
|
- <a href="#sub-ap" data-toggle="modal" class="btn btn-sm btn-success pull-right">保存修改</a>
|
|
|
|
- <a href="#sub-sp" data-toggle="modal" data-target="#sub-sp" class="btn btn-primary btn-sm pull-right">重新上报</a>
|
|
|
|
- <a href="#" class="btn btn-outline-danger btn-sm pull-right text-truncate" style="max-width: 100px;" title="删除 <%- change.code %>">删除 <%- change.code %></a>
|
|
|
|
|
|
+ <a href="#sub-ap" data-category="save_change" data-toggle="modal" data-target="#sub-ap" class="btn btn-sm btn-success pull-right">保存修改</a>
|
|
|
|
+ <a href="#sub-ap" data-category="up_change" data-toggle="modal" data-target="#sub-ap" class="btn btn-primary btn-sm pull-right">重新上报</a>
|
|
|
|
+ <!--<a href="#" class="btn btn-outline-danger btn-sm pull-right text-truncate" style="max-width: 100px;" title="删除 <%- change.code %>">删除 <%- change.code %></a>-->
|
|
</div>
|
|
</div>
|
|
<% } else if (auditStatus === 3) { %>
|
|
<% } else if (auditStatus === 3) { %>
|
|
<div>
|
|
<div>
|
|
@@ -158,7 +158,6 @@
|
|
<div>
|
|
<div>
|
|
<a href="#sp-done" data-toggle="modal" data-target="#sp-done" class="btn btn-success btn-sm pull-right">审批通过</a>
|
|
<a href="#sp-done" data-toggle="modal" data-target="#sp-done" class="btn btn-success btn-sm pull-right">审批通过</a>
|
|
<a href="#sp-back" data-toggle="modal" data-target="#sp-back" class="btn btn-warning btn-sm pull-right">审批退回</a>
|
|
<a href="#sp-back" data-toggle="modal" data-target="#sp-back" class="btn btn-warning btn-sm pull-right">审批退回</a>
|
|
- <a href="#sp-end" data-toggle="modal" data-target="#sp-end" class="btn btn-danger btn-sm pull-right">审批终止</a>
|
|
|
|
</div>
|
|
</div>
|
|
<% } else if (auditStatus === 7) { %>
|
|
<% } else if (auditStatus === 7) { %>
|
|
<div>
|
|
<div>
|
|
@@ -285,13 +284,11 @@
|
|
<form>
|
|
<form>
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label>申请编号</label>
|
|
<label>申请编号</label>
|
|
- <a href="#" class="pull-right" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="自动编号"><i class="fa fa-repeat"></i></a>
|
|
|
|
<input class="form-control" value="<%- change.code %>" type="text" readonly>
|
|
<input class="form-control" value="<%- change.code %>" type="text" readonly>
|
|
</div>
|
|
</div>
|
|
<% if (auditStatus === 4) { %>
|
|
<% if (auditStatus === 4) { %>
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label>批复编号</label>
|
|
<label>批复编号</label>
|
|
- <a href="#" class="pull-right" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="自动编号"><i class="fa fa-repeat"></i></a>
|
|
|
|
<input class="form-control" value="<%- change.p_code %>" type="text" readonly>
|
|
<input class="form-control" value="<%- change.p_code %>" type="text" readonly>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
<% } %>
|
|
@@ -324,7 +321,7 @@
|
|
<div class="col-md-4" style="z-index:999">
|
|
<div class="col-md-4" style="z-index:999">
|
|
<form>
|
|
<form>
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <label><b class="text-danger">* </b>工程变更理由及内容</label>
|
|
|
|
|
|
+ <label>工程变更理由及内容</label>
|
|
<textarea class="form-control" rows="6" readonly><%- change.content %></textarea>
|
|
<textarea class="form-control" rows="6" readonly><%- change.content %></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
@@ -395,7 +392,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <label><b class="text-danger">* </b>批复文号</label>
|
|
|
|
|
|
+ <label>批复文号</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>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
@@ -573,7 +570,6 @@
|
|
<td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.camount), tpUnit) %></td>
|
|
<td><%= ctx.helper.roundNum(ctx.helper.accMul(cl.unit_price, cl.camount), tpUnit) %></td>
|
|
<% for (const audit of auditList2) { %>
|
|
<% for (const audit of auditList2) { %>
|
|
<% if (audit.usite !== 0) { %>
|
|
<% 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(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.roundNum(ctx.helper.accMul(cl.unit_price, audit.list_amount[cindex]), tpUnit) : '' %></td>
|
|
<% } %>
|
|
<% } %>
|
|
@@ -596,7 +592,80 @@
|
|
</tfoot>
|
|
</tfoot>
|
|
</table>
|
|
</table>
|
|
<% } else if (auditStatus === 6) { %>
|
|
<% } else if (auditStatus === 6) { %>
|
|
-
|
|
|
|
|
|
+ <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>
|
|
|
|
+ <% for (const audit of auditList) { %>
|
|
|
|
+ <% 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 auditList) { %>
|
|
|
|
+ <% 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.entries()) { %>
|
|
|
|
+ <tr class="clist" data-lid="<%= cl.id %>">
|
|
|
|
+ <td><%= cl.code %></td>
|
|
|
|
+ <td><%= cl.name %></td>
|
|
|
|
+ <td><%= cl.detail %></td>
|
|
|
|
+ <td><%= cl.unit %></td>
|
|
|
|
+ <td data-site="4"><%= 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 auditList) { %>
|
|
|
|
+ <% if (audit.usite !== 0) { %>
|
|
|
|
+ <% if (uid === audit.uid) { %>
|
|
|
|
+ <td>
|
|
|
|
+ <input class="form-control form-control-sm" style="min-width:80px" placeholder="变更数量" type="text"
|
|
|
|
+ onkeyup="RegNum(this,event,<%= ctx.helper.findDecimal(cl.unit) %>)"
|
|
|
|
+ value="<%= audit.list_amount[cindex] !== undefined ?
|
|
|
|
+ ctx.helper.roundNum(audit.list_amount[cindex], ctx.helper.findDecimal(cl.unit)) : '' %>">
|
|
|
|
+ </td>
|
|
|
|
+ <% } 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>
|
|
|
|
+ </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 auditList) { %>
|
|
|
|
+ <% if (audit.usite !== 0) { %>
|
|
|
|
+ <td></td><td <% if (uid === audit.uid) { %>class="amount_totalcost"<% } %>><%=audit.totalCost !== 0 ? ctx.helper.roundNum(audit.totalCost, tpUnit) : '' %></td>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% } %>
|
|
|
|
+ </tr>
|
|
|
|
+ </tfoot>
|
|
|
|
+ </table>
|
|
<% } %>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -655,6 +724,7 @@
|
|
};
|
|
};
|
|
})
|
|
})
|
|
let table = '';
|
|
let table = '';
|
|
|
|
+ const totalPriceUnit = '<%- tpUnit %>';
|
|
</script>
|
|
</script>
|
|
<script src="/public/js/datatable/jquery.dataTables.min.js"></script>
|
|
<script src="/public/js/datatable/jquery.dataTables.min.js"></script>
|
|
<script src="/public/js/datatable/dataTables.bootstrap4.min.js"></script>
|
|
<script src="/public/js/datatable/dataTables.bootstrap4.min.js"></script>
|
|
@@ -665,7 +735,6 @@
|
|
<script>
|
|
<script>
|
|
const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
|
|
const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
|
|
const changeUnits = JSON.parse('<%- JSON.stringify(changeUnits) %>');
|
|
const changeUnits = JSON.parse('<%- JSON.stringify(changeUnits) %>');
|
|
- const totalPriceUnit = '<%- tpUnit %>';
|
|
|
|
const billsTable = {
|
|
const billsTable = {
|
|
columnDefs: [
|
|
columnDefs: [
|
|
{ className: 'allwidth1', width: 100, targets: 0 },
|
|
{ className: 'allwidth1', width: 100, targets: 0 },
|
|
@@ -695,5 +764,20 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<script src="/public/js/change_show.js"></script>
|
|
<script src="/public/js/change_show.js"></script>
|
|
|
|
+<% } else if (auditStatus === 6) { %>
|
|
|
|
+<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_approval.js"></script>
|
|
<% } %>
|
|
<% } %>
|
|
<script src="/public/js/change_detail.js"></script>
|
|
<script src="/public/js/change_detail.js"></script>
|