<% if (ctx.detail.status === auditConst.status.uncheck) { %> <% if (ctx.session.sessionUser.accountId === ctx.detail.uid) { %> 上报审批 <% } else { %> 上报中 <% } %> <% } else if (ctx.detail.status === auditConst.status.checking) { %> <% if (ctx.detail.curAuditor && ctx.detail.curAuditor.aid === ctx.session.sessionUser.accountId) { %> 审批退回 审批通过 <% } else { %> 审批中 <% } %> <% } else if (ctx.detail.status === auditConst.status.checked) { %> 审批完成 <% } else if (ctx.detail.status === auditConst.status.checkNo) { %> 审批退回 <% if (ctx.session.sessionUser.accountId === ctx.detail.uid) { %> 重新上报 <% } %> <% } %>