<% if (ctx.material.status === auditConst.status.uncheck) { %> <% if (ctx.session.sessionUser.accountId === ctx.material.user_id) { %> 上报审批 <% } else { %> 上报中 <% } %> <% } else if (ctx.material.status === auditConst.status.checking) { %> <% if (ctx.material.curAuditor && ctx.material.curAuditor.aid === ctx.session.sessionUser.accountId) { %> 审批通过 审批退回 <% } else { %> 审批中 <% } %> <% } else if (ctx.material.status === auditConst.status.checked) { %> 审批完成 <% } else if (ctx.material.status === auditConst.status.checkNo) { %> 审批退回 <% if (ctx.session.sessionUser.accountId === ctx.material.user_id) { %> 重新上报 <% } %> <% } %> <% if (ctx.material.auditors !== undefined && ctx.material.auditors.length !== 0 && ctx.material.auditors[ctx.material.auditors.length-1].aid === ctx.session.sessionUser.accountId && ctx.material.status === auditConst.status.checked && ctx.material.order === ctx.material.highOrder) { %> 重新审批 <% } %>