<% 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.curAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0) { %> 审批通过 审批退回 <% } 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.finalAuditorIds.indexOf(ctx.session.sessionUser.accountId) >= 0 && ctx.material.status === auditConst.status.checked && ctx.material.order === ctx.material.highOrder) { %> 重新审批 <% } %>