<% if (lastStage) { %>
                <% for (let i = lastStage.order; i > 0; i--) { %>
                    <% if (i === lastStage.order && lastStage.status !== auditConst.status.uncheck) { %>
                    
                        
                        | 第<%- lastStage.order %>期 | 
                        
                        
                            
                                <% for (const la in lastAuditList) { %>
                                
                                    
                                    | <%- lastAuditList[la][0].auditors[0].times %>#
                                            <% if (parseInt(la) === 0) { %>
                                                <% if (lastStage.times === 1 || (lastStage.times === 2 && lastStage.status === auditConst.status.checkNo)) { %>
                                                删除本期
                                                <% } else { %>
                                                删除本次审批
                                                <% } %>
                                                <% if (lastStage.status === auditConst.status.checked) { %>
                                                设置终审审批
                                                <% } %>
                                            <% } %>
                                         |  
                                    
                                    
                                    
                                        | 审批流程 | 
                                        审批人 | 
                                        审批状态 | 
                                        审批意见 | 
                                     
                                    <% for (const group of lastAuditList[la]) { %>
                                    
                                        | 
                                            <% if (group.is_final) { %>终<% } else { %><%- group.audit_order %><% } %>审
                                            <% if (group.audit_type !== auditType.key.common) { %><%- auditType.info[group.audit_type].short %><% } %>
                                         | 
                                        
                                            <% for (const audit of group.auditors) { %>
                                            
                                                <%- audit.name %><% if (audit.role) { %>(<%- audit.role %>)<% } %> <%- audit.company %> 
                                             
                                            <% } %>
                                         | 
                                        
                                            <% if (group.status === auditConst.status.checkNo) { %>
                                            退回原报
                                            <% } else { %>
                                            <% if (group.status !== auditConst.status.uncheck) { %><%- auditConst.auditProgress[group.status] %><% } %>
                                            <% } %>
                                             <% if (group.status !== auditConst.status.uncheck && group.status !== auditConst.status.checking) { %><%- group.end_time.toLocaleDateString() %><% } %>  | 
                                        
                                            <% for (const audit of group.auditors) { %>
                                            <%- audit.opinion %>
                                            <% } %>
                                         | 
                                     
                                    <% } %>
                                    
                                        | 原报 | 
                                        <%- lastStageUser.name %><% if (lastStageUser.role) { %>(<%- lastStageUser.role %>)<% } %> <%- lastStageUser.company %>  | 
                                        上报 <%- lastAuditList[la][lastAuditList[la].length - 1].begin_time.toLocaleDateString() %>  | 
                                         | 
                                     
                                    
                                 
                                <% } %>
                             | 
                        
                    
                    <% } else { %>
                    
                        
                        | 第<%- i %>期 | 
                        
                        | <% if (i === lastStage.order && lastStage.status !== auditConst.status.checked) { %><%- auditConst.statusString[lastStage.status] %><% } else { %>需处理前一期后,再进行管理<% } %> | 
                    
                    <% } %>
                <% } %>
                <% } %>