|
@@ -1,6 +1,7 @@
|
|
-<% if (ctx.stage.status === auditConst.status.uncheck && ctx.stage.user_id === ctx.session.sessionUser.accountId) { %>
|
|
|
|
-<!--上报审批-->
|
|
|
|
-<div class="modal fade" id="sub-sp" data-backdrop="static">
|
|
|
|
|
|
+<% if (ctx.stage.status === auditConst.status.uncheck) { %>
|
|
|
|
+ <% if (ctx.session.sessionUser.accountId === ctx.stage.user_id) {%>
|
|
|
|
+ <!--上报审批-->
|
|
|
|
+ <div class="modal fade" id="sub-sp" data-backdrop="static">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
@@ -49,53 +50,11 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-<% } %>
|
|
|
|
-<% if (ctx.stage.status === auditConst.status.checkNo && ctx.stage.user_id === ctx.session.sessionUser.accountId) { %>
|
|
|
|
-<!--重新上报-->
|
|
|
|
-<div class="modal fade" id="sub-sp2" data-backdrop="static">
|
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
|
- <div class="modal-content">
|
|
|
|
- <div class="modal-header">
|
|
|
|
- <h5 class="modal-title">重新上报</h5>
|
|
|
|
- </div>
|
|
|
|
- <div class="modal-body">
|
|
|
|
- <!--显示上次退回意见-->
|
|
|
|
- <div class="card mt-3">
|
|
|
|
- <ul class="list-group list-group-flush">
|
|
|
|
- <li class="list-group-item">
|
|
|
|
- <span class="text-success pull-right">上报</span>
|
|
|
|
- <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> 布尔 <small class="text-muted">施工</small></h5>
|
|
|
|
- <p class="card-text">2017-11-25</p>
|
|
|
|
- </li>
|
|
|
|
- <li class="list-group-item">
|
|
|
|
- <span class="text-success pull-right">审批通过</span>
|
|
|
|
- <h5 class="card-title"><i class="fa fa-chevron-circle-down text-success"></i> 张三 <small class="text-muted">监理</small></h5>
|
|
|
|
- <p class="card-text">审批意见。2017-11-25</p>
|
|
|
|
- </li>
|
|
|
|
- <li class="list-group-item">
|
|
|
|
- <span class="text-success pull-right">审批通过</span>
|
|
|
|
- <h5 class="card-title"><i class="fa fa-chevron-circle-down text-success"></i> 王五 <small class="text-muted">监理</small></h5>
|
|
|
|
- <p class="card-text">审批通过。2017-11-26</p>
|
|
|
|
- </li>
|
|
|
|
- <li class="list-group-item">
|
|
|
|
- <span class="text-warning pull-right">审批退回</span>
|
|
|
|
- <h5 class="card-title"><i class="fa fa-stop-circle text-warning"></i> 李四 <small class="text-muted">监理</small></h5>
|
|
|
|
- <p class="card-text">审批退回,审批意见文本。2017-11-27</p>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="modal-footer">
|
|
|
|
- <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
- <button type="submit" class="btn btn-primary">确认上报</button>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-</div>
|
|
|
|
-<% } %>
|
|
|
|
-<% if (ctx.stage.status === auditConst.status.checking && ctx.stage.curAuditor.aid === ctx.session.sessionUser.accountId) { %>
|
|
|
|
-<!--审批通过-->
|
|
|
|
-<div class="modal fade" id="sp-done" data-backdrop="static">
|
|
|
|
|
|
+ <% } %>
|
|
|
|
+<% } else if (ctx.stage.status === auditConst.status.checking) { %>
|
|
|
|
+ <% if (ctx.stage.curAuditor && ctx.stage.curAuditor.aid === ctx.session.sessionUser.accountId) { %>
|
|
|
|
+ <!--审批通过-->
|
|
|
|
+ <div class="modal fade" id="sp-done" data-backdrop="static">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-dialog" role="document">
|
|
<form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
<form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
@@ -163,8 +122,8 @@
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-<!--审批退回-->
|
|
|
|
-<div class="modal fade" id="sp-back" data-backdrop="static">
|
|
|
|
|
|
+ <!--审批退回-->
|
|
|
|
+ <div class="modal fade" id="sp-back" data-backdrop="static">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-dialog" role="document">
|
|
<form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
<form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
@@ -243,9 +202,143 @@
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-<% } else { %>
|
|
|
|
-<!--审批流程/结果-->
|
|
|
|
-<div class="modal fade" id="sp-list" data-backdrop="static">
|
|
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <!--审批流程/结果-->
|
|
|
|
+ <div class="modal fade" id="sp-list" data-backdrop="static">
|
|
|
|
+ <div class="modal-dialog modal-lg" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <h5 class="modal-title">审批流程</h5>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-4">
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small>
|
|
|
|
+ </li>
|
|
|
|
+ <% for (let i = 0; i < ctx.stage.auditors.length; i++) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (i < ctx.stage.auditors.length - 1) { %>
|
|
|
|
+ <i class="fa fa-chevron-circle-down"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <i class="fa fa fa-stop-circle"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
|
+ <% for (const ah of ctx.stage.auditHistory) { %>
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <% for (let iA = 0; iA < ah.length; iA++) { %>
|
|
|
|
+ <% if (iA === 0) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><% if (ctx.stage.auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].begin_time.toLocaleDateString() %></small></p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else if (iA === ah.length - 1) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% if (ctx.stage.status === auditConst.status.checking || tender.ledger_status === auditConst.status.checked) {%>
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <% const auditors = ctx.stage.auditors; %>
|
|
|
|
+ <% for (let iA = 0; iA < auditors.length; iA++) { %>
|
|
|
|
+ <% if (iA === 0) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><% if (ctx.stage.times > 1) { %>重新<% } %>上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].begin_time.toLocaleDateString() %></small></p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else if (iA === auditors.length - 1) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+ <% } %>
|
|
|
|
+<% } else if (ctx.stage.status === auditConst.status.checked) { %>
|
|
|
|
+ <!--审批流程/结果-->
|
|
|
|
+ <div class="modal fade" id="sp-list" data-backdrop="static">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
@@ -376,4 +469,464 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+<% } else if (ctx.stage.status === auditConst.status.checkNo) { %>
|
|
|
|
+ <!--审批流程/结果-->
|
|
|
|
+ <div class="modal fade" id="sp-list" data-backdrop="static">
|
|
|
|
+ <div class="modal-dialog modal-lg" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <h5 class="modal-title">审批流程</h5>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-4">
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small>
|
|
|
|
+ </li>
|
|
|
|
+ <% for (let i = 0; i < ctx.stage.auditors.length; i++) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (i < ctx.stage.auditors.length - 1) { %>
|
|
|
|
+ <i class="fa fa-chevron-circle-down"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <i class="fa fa fa-stop-circle"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
|
+ <% for (const ah of ctx.stage.auditHistory) { %>
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <% for (let iA = 0; iA < ah.length; iA++) { %>
|
|
|
|
+ <% if (iA === 0) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><% if (ctx.stage.auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].begin_time.toLocaleDateString() %></small></p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else if (iA === ah.length - 1) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% if (ctx.stage.status === auditConst.status.checking || tender.ledger_status === auditConst.status.checked) {%>
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <% const auditors = ctx.stage.auditors; %>
|
|
|
|
+ <% for (let iA = 0; iA < auditors.length; iA++) { %>
|
|
|
|
+ <% if (iA === 0) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><% if (ctx.stage.times > 1) { %>重新<% } %>上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].begin_time.toLocaleDateString() %></small></p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else if (iA === auditors.length - 1) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+ <% if (ctx.session.sessionUser.accountId === ctx.stage.user_id) { %>
|
|
|
|
+ <!--重新上报-->
|
|
|
|
+ <div class="modal fade" id="sub-sp2" data-backdrop="static">
|
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <h5 class="modal-title">重新上报</h5>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <!--显示上次退回意见-->
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right">上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> 布尔 <small class="text-muted">施工</small></h5>
|
|
|
|
+ <p class="card-text">2017-11-25</p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right">审批通过</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down text-success"></i> 张三 <small class="text-muted">监理</small></h5>
|
|
|
|
+ <p class="card-text">审批意见。2017-11-25</p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right">审批通过</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down text-success"></i> 王五 <small class="text-muted">监理</small></h5>
|
|
|
|
+ <p class="card-text">审批通过。2017-11-26</p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-warning pull-right">审批退回</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle text-warning"></i> 李四 <small class="text-muted">监理</small></h5>
|
|
|
|
+ <p class="card-text">审批退回,审批意见文本。2017-11-27</p>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
+ <button type="submit" class="btn btn-primary">确认上报</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+ <% } %>
|
|
|
|
+<% } else if (ctx.stage.status === auditConst.status.checkNoPre) { %>
|
|
|
|
+ <!--审批流程/结果-->
|
|
|
|
+ <div class="modal fade" id="sp-list" data-backdrop="static">
|
|
|
|
+ <div class="modal-dialog modal-lg" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <h5 class="modal-title">审批流程</h5>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-4">
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small>
|
|
|
|
+ </li>
|
|
|
|
+ <% for (let i = 0; i < ctx.stage.auditors.length; i++) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (i < ctx.stage.auditors.length - 1) { %>
|
|
|
|
+ <i class="fa fa-chevron-circle-down"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <i class="fa fa fa-stop-circle"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
|
+ <% for (const ah of ctx.stage.auditHistory) { %>
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <% for (let iA = 0; iA < ah.length; iA++) { %>
|
|
|
|
+ <% if (iA === 0) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><% if (ctx.stage.auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].begin_time.toLocaleDateString() %></small></p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else if (iA === ah.length - 1) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% if (ctx.stage.status === auditConst.status.checking || tender.ledger_status === auditConst.status.checked) {%>
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <% const auditors = ctx.stage.auditors; %>
|
|
|
|
+ <% for (let iA = 0; iA < auditors.length; iA++) { %>
|
|
|
|
+ <% if (iA === 0) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><% if (ctx.stage.times > 1) { %>重新<% } %>上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].begin_time.toLocaleDateString() %></small></p>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text mb-1"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else if (iA === auditors.length - 1) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
|
|
+ <span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
|
+ <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
|
+ <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+ <% if (ctx.session.sessionUser.accountId === ctx.stage.curAuditor.aid) { %>
|
|
|
|
+ <!--审批通过-->
|
|
|
|
+ <div class="modal fade" id="sp-done" data-backdrop="static">
|
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
|
+ <form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <h5 class="modal-title">审批通过</h5>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-4">
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small>
|
|
|
|
+ </li>
|
|
|
|
+ <% for (let i = 0; i < ctx.stage.auditors.length; i++) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (i < ctx.stage.auditors.length - 1) { %>
|
|
|
|
+ <i class="fa fa-chevron-circle-down"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <i class="fa fa fa-stop-circle"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><small><%- ctx.stage.auditors[0].begin_time.toLocaleDateString() %></small> 上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ </li>
|
|
|
|
+ <% for (let iA = 0; iA < ctx.stage.auditors.length; iA++) { %>
|
|
|
|
+ <% const auditors = ctx.stage.auditors; %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked) { %>
|
|
|
|
+ <span class="text-success pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批通过</span>
|
|
|
|
+ <% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
|
|
|
|
+ <span class="pull-right">审批中</span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title">
|
|
|
|
+ <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down' : 'fa fa-stop-circle') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small>
|
|
|
|
+ </h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked) { %>
|
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
|
+ <% } else if (auditors[iA].status === auditConst.status.checking) { %>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label>审批意见<b class="text-danger">*</b></label>
|
|
|
|
+ <textarea class="form-control" name="opinion"></textarea>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
+ <input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
|
|
+ <input type="hidden" name="checkType" value="<%= auditConst.status.checked %>" />
|
|
|
|
+ <button type="submit" class="btn btn-success" >确认通过</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+ <!--审批退回-->
|
|
|
|
+ <div class="modal fade" id="sp-back" data-backdrop="static">
|
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
|
+ <form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <h5 class="modal-title">审批退回</h5>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-4">
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small>
|
|
|
|
+ </li>
|
|
|
|
+ <% for (let i = 0; i < ctx.stage.auditors.length; i++) { %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (i < ctx.stage.auditors.length - 1) { %>
|
|
|
|
+ <i class="fa fa-chevron-circle-down"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } else { %>
|
|
|
|
+ <i class="fa fa fa-stop-circle"></i> <%- ctx.stage.auditors[i].name %> <small class="text-muted"><%- ctx.stage.auditors[i].role %></small>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <ul class="list-group list-group-flush">
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <span class="text-success pull-right"><small><%- ctx.stage.auditors[0].begin_time.toLocaleDateString() %></small> 上报</span>
|
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.stage.user.name %> <small class="text-muted"><%- ctx.stage.user.role %></small></h5>
|
|
|
|
+ </li>
|
|
|
|
+ <% for (let iA = 0; iA < ctx.stage.auditors.length; iA++) { %>
|
|
|
|
+ <% const auditors = ctx.stage.auditors; %>
|
|
|
|
+ <li class="list-group-item">
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked) { %>
|
|
|
|
+ <span class="text-success pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批通过</span>
|
|
|
|
+ <% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
|
|
|
|
+ <span class="pull-right">审批中</span>
|
|
|
|
+ <% } %>
|
|
|
|
+ <h5 class="card-title">
|
|
|
|
+ <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down' : 'fa fa-stop-circle') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small>
|
|
|
|
+ </h5>
|
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked) { %>
|
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
|
+ <% } else if (auditors[iA].status === auditConst.status.checking) { %>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label>审批意见<b class="text-danger">*</b></label>
|
|
|
|
+ <textarea class="form-control" name="opinion"></textarea>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="alert alert-warning">
|
|
|
|
+ <div class="form-check form-check-inline">
|
|
|
|
+ <input class="form-check-input" type="radio" name="checkType" id="inlineRadio1" value="<%- auditConst.status.checkNo %>">
|
|
|
|
+ <label class="form-check-label" for="inlineRadio1">退回上报 <%- ctx.stage.user.name %></label>
|
|
|
|
+ </div>
|
|
|
|
+ <% if (auditors[iA].order > 1) { %>
|
|
|
|
+ <div class="form-check form-check-inline">
|
|
|
|
+ <input class="form-check-input" type="radio" name="checkType" id="inlineRadio2" value="<%- auditConst.status.checkNoPre %>">
|
|
|
|
+ <label class="form-check-label" for="inlineRadio2">退回上一审批人 <%- auditors[iA-1].name %></label>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ </div>
|
|
|
|
+ <% } %>
|
|
|
|
+ </li>
|
|
|
|
+ <% } %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
+ <input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
|
|
+ <button type="submit" class="btn btn-warning" >确认退回</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+ <% } %>
|
|
<% } %>
|
|
<% } %>
|