<% for (const ah of ctx.material.auditHistory) { %>
<% for (let iA = 0; iA < ah.length; iA++) { %>
<% if (iA === 0) { %>
-
<% if (ctx.material.auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报
<%- ctx.material.user.name %> <%- ctx.material.user.role %>
<%- ah[iA].begin_time.toLocaleDateString() %>
-
<% if (ah[iA].status !== auditConst.status.uncheck) { %>
<%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %>
<% } %>
<%- ah[iA].name %> <%- ah[iA].role %>
<% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
<%- ah[iA].opinion %>
<%- ah[iA].end_time.toLocaleDateString() %>
<% } %>
<% } else if (iA === ah.length - 1) { %>
-
<% if (ah[iA].status !== auditConst.status.uncheck) { %>
<%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %>
<% } %>
<%- ah[iA].name %> <%- ah[iA].role %>
<% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
<%- ah[iA].opinion %>
<%- ah[iA].end_time.toLocaleDateString() %>
<% } %>
<% } else { %>
-
<% if (ah[iA].status !== auditConst.status.uncheck) { %>
<%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %>
<% } %>
<%- ah[iA].name %> <%- ah[iA].role %>
<% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
<%- ah[iA].opinion %>
<%- ah[iA].end_time.toLocaleDateString() %>
<% } %>
<% } %>
<% } %>
<% } %>
<% if (ctx.material.status === auditConst.status.checking) {%>
<% const auditors = ctx.material.auditors; %>
<% for (let iA = 0; iA < auditors.length; iA++) { %>
<% if (iA === 0) { %>
-
<% if (ctx.material.times > 1) { %>重新<% } %>上报
<%- ctx.material.user.name %> <%- ctx.material.user.role %>
<%- auditors[iA].begin_time.toLocaleDateString() %>
-
<% if (auditors[iA].status !== auditConst.status.uncheck) { %>
<%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %>
<% } %>
<%- auditors[iA].name %> <%- auditors[iA].role %>
<% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
<%- auditors[iA].opinion %>
<%- auditors[iA].end_time.toLocaleDateString() %>
<% } %>
<% } else if (iA === auditors.length - 1) { %>
-
<% if (auditors[iA].status !== auditConst.status.uncheck) { %>
<%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %>
<% } %>
<%- auditors[iA].name %> <%- auditors[iA].role %>
<% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
<%- auditors[iA].opinion %>
<%- auditors[iA].end_time.toLocaleDateString() %>
<% } %>
<% } else { %>
-
<% if (auditors[iA].status !== auditConst.status.uncheck) { %>
<%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %>
<% } %>
<%- auditors[iA].name %> <%- auditors[iA].role %>
<% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
<%- auditors[iA].opinion %>
<%- auditors[iA].end_time.toLocaleDateString() %>
<% } %>
<% } %>
<% } %>
<% } %>