|
@@ -147,8 +147,10 @@
|
|
|
<li class="list-group-item">
|
|
|
<i class="fa fa fa-play-circle fa-rotate-90"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small>
|
|
|
</li>
|
|
|
+ </ul>
|
|
|
+ <ul class="list-group list-group-flush" id="auditors-list">
|
|
|
<% for (let i = 0; i < auditors.length; i++) { %>
|
|
|
- <li class="list-group-item">
|
|
|
+ <li class="list-group-item" data-auditid="<%- auditors[i].audit_id %>">
|
|
|
<% if (i < auditors.length - 1) { %>
|
|
|
<i class="fa fa-chevron-circle-down"></i> <%- auditors[i].name %> <small class="text-muted"><%- auditors[i].role %></small>
|
|
|
<% } else {%>
|
|
@@ -207,47 +209,24 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<% } %>
|
|
|
- <% if (tender.ledger_status === auditConst.status.checking || tender.ledger_status === auditConst.status.checked) {%>
|
|
|
+ <% if (tender.ledger_status === auditConst.status.checkNo) {%>
|
|
|
<div class="card mt-3">
|
|
|
<ul class="list-group list-group-flush">
|
|
|
+ <li class="list-group-item">
|
|
|
+ <span class="pull-right">重新上报中</span>
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small></h5>
|
|
|
+ <p class="card-text"><small class="text-muted"></small></p>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul class="list-group list-group-flush" id="auditors-list2">
|
|
|
<% for (let iA = 0; iA < auditors.length; iA++) { %>
|
|
|
- <% if (iA === 0) { %>
|
|
|
- <li class="list-group-item">
|
|
|
- <span class="text-success pull-right"><% if (tender.ledger_times > 1) { %>重新<% } %>上报</span>
|
|
|
- <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- user.name %> <small class="text-muted"><%- 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) { %> <%- 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"><%- 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) { %> <%- 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 mb-1"><%- auditors[iA].opinion %></p>
|
|
|
- <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
- <% } %>
|
|
|
+ <% if (iA === auditors.length - 1) { %>
|
|
|
+ <li class="list-group-item" data-auditid="<%- auditors[iA].audit_id %>">
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
</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) { %> <%- 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"><%- auditors[iA].opinion %></p>
|
|
|
- <p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
- <% } %>
|
|
|
+ <li class="list-group-item" data-auditid="<%- auditors[iA].audit_id %>">
|
|
|
+ <h5 class="card-title"><i class="fa fa-chevron-circle-down"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
</li>
|
|
|
<% } %>
|
|
|
<% } %>
|