|
@@ -206,7 +206,7 @@
|
|
|
</td>
|
|
|
<td width="70%">
|
|
|
|
|
|
- <% auditHistory.forEach((auditors, idx) => { %>
|
|
|
+ <% auditHistory.forEach((history, idx) => { %>
|
|
|
<!-- 展开/收起历史流程 -->
|
|
|
<% if(idx === auditHistory.length - 1 && auditHistory.length !== 1) { %>
|
|
|
<div class="text-right">
|
|
@@ -216,7 +216,7 @@
|
|
|
<div class="<%- idx < auditHistory.length - 1 ? 'fold-card' : '' %>">
|
|
|
<div class="text-center text-muted" ><%- idx+1 %>#</div>
|
|
|
<ul class="timeline-list list-unstyled mt-2">
|
|
|
- <% auditors.forEach((auditor, index) => { %>
|
|
|
+ <% history.forEach((auditor, index) => { %>
|
|
|
<% if (index === 0) { %>
|
|
|
<li class="timeline-list-item pb-2">
|
|
|
<div class="timeline-item-date">
|
|
@@ -244,7 +244,7 @@
|
|
|
<div class="timeline-item-date">
|
|
|
<%- ctx.helper.formatDate(auditor.end_time) %>
|
|
|
</div>
|
|
|
- <% if(index < auditors.length - 1) { %>
|
|
|
+ <% if(index < history.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
<% if(auditor.status === auditConst.status.checked) { %>
|
|
@@ -288,7 +288,7 @@
|
|
|
<div class="timeline-item-date">
|
|
|
<%- ctx.helper.formatDate(auditor.end_time) %>
|
|
|
</div>
|
|
|
- <% if(index < auditors.length - 1) { %>
|
|
|
+ <% if(index < history.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
<% if(auditor.status === auditConst.status.checked) { %>
|
|
@@ -317,7 +317,7 @@
|
|
|
class="pull-right
|
|
|
<%- auditConst.statusClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''%>
|
|
|
<%- auditor.status === auditConst.status.checkNo ? advance.user.name : '' %>
|
|
|
- <%- auditor.status === auditConst.status.checkNoPre ? auditors[index-1].name : '' %>
|
|
|
+ <%- auditor.status === auditConst.status.checkNoPre ? auditors.find(item => item.order === auditor.sort-1).name : '' %>
|
|
|
</span>
|
|
|
</p>
|
|
|
<p class="text-muted mb-0"><%- auditor.role %></p>
|